public abstract class AbstractWorkflowRunner extends Object implements BulkWorkflowRunner
| Modifier and Type | Field and Description |
|---|---|
protected static Map<String,Object> |
AUTH_INFO |
protected static String |
SERVICE_NAME |
| Constructor and Description |
|---|
AbstractWorkflowRunner() |
| Modifier and Type | Method and Description |
|---|---|
void |
complete(Workspace workspace)
Marks a Workspace as being complete, indicating all work has been processed.
|
void |
complete(Workspace workspace,
Payload payload)
Marks a payload as being completed.
|
void |
fail(Workspace workspace,
Payload payload) |
abstract void |
forceTerminate(Workspace workspace,
Payload payload)
Marks a payload being force terminated.
|
void |
initialize(QueryHelper queryHelper,
Config config)
Collects and initializes the Workspace JCR structure with the payload nodes.
|
void |
initialize(Workspace workspace,
int totalCount)
Initialize the Bulk Workflow Manager workspace w the total count of items to process.
|
void |
run(Workspace workspace,
Payload payload)
Processes a payload under the Workspace.
|
void |
start(Workspace workspace)
Starts work on the Workspace.
|
void |
stop(Workspace workspace)
Stops (or pauses) work in the Workspace.
|
void |
stop(Workspace workspace,
SubStatus subStatus)
Stops (or pauses) work in the Workspace.
|
void |
stopping(Workspace workspace)
Used to request stop of a Workspace however workspace may still continue to run in order to allow active payloads to complete.
|
void |
stopWithError(Workspace workspace)
Stops (or pauses) work in the Workspace due to Error.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOptions, getRunnableprotected static final String SERVICE_NAME
public void initialize(QueryHelper queryHelper, Config config) throws org.apache.sling.api.resource.PersistenceException, javax.jcr.RepositoryException
initialize in interface BulkWorkflowRunnerqueryHelper - the QueryHelperconfig - the Configorg.apache.sling.api.resource.PersistenceExceptionjavax.jcr.RepositoryExceptionpublic void initialize(Workspace workspace, int totalCount) throws org.apache.sling.api.resource.PersistenceException
BulkWorkflowRunnerinitialize in interface BulkWorkflowRunnerworkspace - the WorkspacetotalCount - total number of items to processorg.apache.sling.api.resource.PersistenceExceptionpublic void start(Workspace workspace) throws org.apache.sling.api.resource.PersistenceException
BulkWorkflowRunnerstart in interface BulkWorkflowRunnerworkspace - the Workspaceorg.apache.sling.api.resource.PersistenceExceptionpublic void stopping(Workspace workspace) throws org.apache.sling.api.resource.PersistenceException
BulkWorkflowRunnerstopping in interface BulkWorkflowRunnerworkspace - the Workspaceorg.apache.sling.api.resource.PersistenceExceptionpublic void stop(Workspace workspace) throws org.apache.sling.api.resource.PersistenceException
BulkWorkflowRunnerstop in interface BulkWorkflowRunnerworkspace - the Workspaceorg.apache.sling.api.resource.PersistenceExceptionpublic void stop(Workspace workspace, SubStatus subStatus) throws org.apache.sling.api.resource.PersistenceException
BulkWorkflowRunnerstop in interface BulkWorkflowRunnerworkspace - the WorkspacesubStatus - SubStatus used to identify cause of stopping for corner casesorg.apache.sling.api.resource.PersistenceExceptionpublic void stopWithError(Workspace workspace) throws org.apache.sling.api.resource.PersistenceException
BulkWorkflowRunnerstopWithError in interface BulkWorkflowRunnerworkspace - the Workspaceorg.apache.sling.api.resource.PersistenceExceptionpublic void complete(Workspace workspace) throws org.apache.sling.api.resource.PersistenceException
BulkWorkflowRunnercomplete in interface BulkWorkflowRunnerworkspace - the Workspaceorg.apache.sling.api.resource.PersistenceExceptionpublic void complete(Workspace workspace, Payload payload) throws Exception
BulkWorkflowRunnercomplete in interface BulkWorkflowRunnerworkspace - the Workspacepayload - the completed PayloadExceptionpublic void run(Workspace workspace, Payload payload)
BulkWorkflowRunnerrun in interface BulkWorkflowRunnerworkspace - the Workspacepayload - the Payload to processpublic abstract void forceTerminate(Workspace workspace, Payload payload) throws Exception
BulkWorkflowRunnerforceTerminate in interface BulkWorkflowRunnerworkspace - the Workspacepayload - the completed PayloadExceptionCopyright © 2013–2020 Adobe. All rights reserved.