use of com.adobe.acs.commons.workflow.bulk.execution.model.Workspace in project acs-aem-commons by Adobe-Consulting-Services.
the class FastActionManagerRunnerImpl method initialize.
@Override
public void initialize(QueryHelper queryHelper, Config config) throws PersistenceException, RepositoryException {
Workspace workspace = config.getWorkspace();
initialize(workspace, 0);
workspace.commit();
}
use of com.adobe.acs.commons.workflow.bulk.execution.model.Workspace in project acs-aem-commons by Adobe-Consulting-Services.
the class FastActionManagerRunnerImpl method complete.
public void complete(ResourceResolver resourceResolver, String workspacePath, ActionManager manager, int success) throws PersistenceException, RepositoryException {
Workspace workspace = resourceResolver.getResource(workspacePath).adaptTo(Workspace.class);
workspace.setCompleteCount(success);
for (com.adobe.acs.commons.fam.Failure f : manager.getFailureList()) {
workspace.addFailure(f.getNodePath(), null, f.getTime());
workspace.incrementFailCount();
}
super.complete(workspace);
manager.closeAllResolvers();
if (actionManagerFactoryRef != null) {
actionManagerFactoryRef.purgeCompletedTasks();
} else {
log.warn("Action Manager Factory reference is null. Please purge completed tasks via the JMX console.");
}
}
Aggregations