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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMarks a Workspace as being complete, indicating all work has been processed.voidMarks a payload as being completed.voidabstract 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.voidProcesses a payload under the Workspace.voidStarts work on the Workspace.voidStops (or pauses) work in the Workspace.voidStops (or pauses) work in the Workspace.voidUsed 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, waitMethods inherited from interface com.adobe.acs.commons.workflow.bulk.execution.BulkWorkflowRunner
getOptions, getRunnable
-
Field Details
-
SERVICE_NAME
- See Also:
-
AUTH_INFO
-
-
Constructor Details
-
AbstractWorkflowRunner
public AbstractWorkflowRunner()
-
-
Method Details
-
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
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
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
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
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
Description copied from interface:BulkWorkflowRunnerMarks a payload as being completed.- Specified by:
completein interfaceBulkWorkflowRunner- Parameters:
workspace- the Workspacepayload- the completed Payload- Throws:
Exception
-
run
Description copied from interface:BulkWorkflowRunnerProcesses a payload under the Workspace.- Specified by:
runin interfaceBulkWorkflowRunner- Parameters:
workspace- the Workspacepayload- the Payload to process
-
fail
- Throws:
Exception
-
forceTerminate
Description copied from interface:BulkWorkflowRunnerMarks a payload being force terminated.- Specified by:
forceTerminatein interfaceBulkWorkflowRunner- Parameters:
workspace- the Workspacepayload- the completed Payload- Throws:
Exception
-