Class AbstractWorkflowRunner
- java.lang.Object
-
- com.adobe.acs.commons.workflow.bulk.execution.impl.runners.AbstractWorkflowRunner
-
- All Implemented Interfaces:
BulkWorkflowRunner
- Direct Known Subclasses:
AbstractAEMWorkflowRunner,FastActionManagerRunnerImpl,SyntheticWorkflowRunnerImpl
public abstract class AbstractWorkflowRunner extends Object implements BulkWorkflowRunner
-
-
Constructor Summary
Constructors Constructor Description AbstractWorkflowRunner()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcomplete(Workspace workspace)Marks a Workspace as being complete, indicating all work has been processed.voidcomplete(Workspace workspace, Payload payload)Marks a payload as being completed.voidfail(Workspace workspace, Payload payload)abstract voidforceTerminate(Workspace workspace, Payload payload)Marks a payload being force terminated.voidinitialize(QueryHelper queryHelper, Config config)Collects and initializes the Workspace JCR structure with the payload nodes.voidinitialize(Workspace workspace, int totalCount)Initialize the Bulk Workflow Manager workspace w the total count of items to process.voidrun(Workspace workspace, Payload payload)Processes a payload under the Workspace.voidstart(Workspace workspace)Starts work on the Workspace.voidstop(Workspace workspace)Stops (or pauses) work in the Workspace.voidstop(Workspace workspace, SubStatus subStatus)Stops (or pauses) work in the Workspace.voidstopping(Workspace workspace)Used to request stop of a Workspace however workspace may still continue to run in order to allow active payloads to complete.voidstopWithError(Workspace workspace)Stops (or pauses) work in the Workspace due to Error.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adobe.acs.commons.workflow.bulk.execution.BulkWorkflowRunner
getOptions, getRunnable
-
-
-
-
Field Detail
-
SERVICE_NAME
protected static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(QueryHelper queryHelper, Config config) throws org.apache.sling.api.resource.PersistenceException, javax.jcr.RepositoryException
Collects and initializes the Workspace JCR structure with the payload nodes.- Specified by:
initializein interfaceBulkWorkflowRunner- Parameters:
queryHelper- the QueryHelperconfig- the Config- Throws:
org.apache.sling.api.resource.PersistenceExceptionjavax.jcr.RepositoryException
-
initialize
public void initialize(Workspace workspace, int totalCount) throws org.apache.sling.api.resource.PersistenceException
Description copied from interface:BulkWorkflowRunnerInitialize the Bulk Workflow Manager workspace w the total count of items to process.- Specified by:
initializein interfaceBulkWorkflowRunner- Parameters:
workspace- the WorkspacetotalCount- total number of items to process- Throws:
org.apache.sling.api.resource.PersistenceException
-
start
public void start(Workspace workspace) throws org.apache.sling.api.resource.PersistenceException
Description copied from interface:BulkWorkflowRunnerStarts work on the Workspace.- Specified by:
startin interfaceBulkWorkflowRunner- Parameters:
workspace- the Workspace- Throws:
org.apache.sling.api.resource.PersistenceException
-
stopping
public void stopping(Workspace workspace) throws org.apache.sling.api.resource.PersistenceException
Description copied from interface:BulkWorkflowRunnerUsed to request stop of a Workspace however workspace may still continue to run in order to allow active payloads to complete.- Specified by:
stoppingin interfaceBulkWorkflowRunner- Parameters:
workspace- the Workspace- Throws:
org.apache.sling.api.resource.PersistenceException
-
stop
public void stop(Workspace workspace) throws org.apache.sling.api.resource.PersistenceException
Description copied from interface:BulkWorkflowRunnerStops (or pauses) work in the Workspace.- Specified by:
stopin interfaceBulkWorkflowRunner- Parameters:
workspace- the Workspace- Throws:
org.apache.sling.api.resource.PersistenceException
-
stop
public void stop(Workspace workspace, SubStatus subStatus) throws org.apache.sling.api.resource.PersistenceException
Description copied from interface:BulkWorkflowRunnerStops (or pauses) work in the Workspace.- Specified by:
stopin interfaceBulkWorkflowRunner- Parameters:
workspace- the WorkspacesubStatus- SubStatus used to identify cause of stopping for corner cases- Throws:
org.apache.sling.api.resource.PersistenceException
-
stopWithError
public void stopWithError(Workspace workspace) throws org.apache.sling.api.resource.PersistenceException
Description copied from interface:BulkWorkflowRunnerStops (or pauses) work in the Workspace due to Error.- Specified by:
stopWithErrorin interfaceBulkWorkflowRunner- Parameters:
workspace- the Workspace- Throws:
org.apache.sling.api.resource.PersistenceException
-
complete
public void complete(Workspace workspace) throws org.apache.sling.api.resource.PersistenceException
Description copied from interface:BulkWorkflowRunnerMarks a Workspace as being complete, indicating all work has been processed.- Specified by:
completein interfaceBulkWorkflowRunner- Parameters:
workspace- the Workspace- Throws:
org.apache.sling.api.resource.PersistenceException
-
complete
public void complete(Workspace workspace, Payload payload) throws Exception
Description copied from interface:BulkWorkflowRunnerMarks a payload as being completed.- Specified by:
completein interfaceBulkWorkflowRunner- Parameters:
workspace- the Workspacepayload- the completed Payload- Throws:
Exception
-
run
public void run(Workspace workspace, Payload payload)
Description copied from interface:BulkWorkflowRunnerProcesses a payload under the Workspace.- Specified by:
runin interfaceBulkWorkflowRunner- Parameters:
workspace- the Workspacepayload- the Payload to process
-
forceTerminate
public abstract void forceTerminate(Workspace workspace, Payload payload) throws Exception
Description copied from interface:BulkWorkflowRunnerMarks a payload being force terminated.- Specified by:
forceTerminatein interfaceBulkWorkflowRunner- Parameters:
workspace- the Workspacepayload- the completed Payload- Throws:
Exception
-
-