@ProviderType
public interface BulkWorkflowRunner
| 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 |
forceTerminate(Workspace workspace,
Payload payload)
Marks a payload being force terminated.
|
org.apache.sling.commons.scheduler.ScheduleOptions |
getOptions(Config config)
If a non-null value is returned, the result of run(..) will be scheduled to run w these options.
|
Runnable |
getRunnable(Config config) |
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.
|
Runnable getRunnable(Config config)
config - the Configorg.apache.sling.commons.scheduler.ScheduleOptions getOptions(Config config)
config - the Configvoid initialize(QueryHelper queryHelper, Config config) throws org.apache.sling.api.resource.PersistenceException, javax.jcr.RepositoryException
queryHelper - the QueryHelperconfig - the Configorg.apache.sling.api.resource.PersistenceExceptionjavax.jcr.RepositoryExceptionvoid initialize(Workspace workspace, int totalCount) throws org.apache.sling.api.resource.PersistenceException
workspace - the WorkspacetotalCount - total number of items to processorg.apache.sling.api.resource.PersistenceExceptionvoid start(Workspace workspace) throws org.apache.sling.api.resource.PersistenceException
workspace - the Workspaceorg.apache.sling.api.resource.PersistenceExceptionvoid stopping(Workspace workspace) throws org.apache.sling.api.resource.PersistenceException
workspace - the Workspaceorg.apache.sling.api.resource.PersistenceExceptionvoid stop(Workspace workspace) throws org.apache.sling.api.resource.PersistenceException
workspace - the Workspaceorg.apache.sling.api.resource.PersistenceExceptionvoid stop(Workspace workspace, SubStatus subStatus) throws org.apache.sling.api.resource.PersistenceException
workspace - the WorkspacesubStatus - SubStatus used to identify cause of stopping for corner casesorg.apache.sling.api.resource.PersistenceExceptionvoid stopWithError(Workspace workspace) throws org.apache.sling.api.resource.PersistenceException
workspace - the Workspaceorg.apache.sling.api.resource.PersistenceExceptionvoid complete(Workspace workspace) throws org.apache.sling.api.resource.PersistenceException
workspace - the Workspaceorg.apache.sling.api.resource.PersistenceExceptionvoid complete(Workspace workspace, Payload payload) throws Exception
workspace - the Workspacepayload - the completed PayloadExceptionvoid run(Workspace workspace, Payload payload)
workspace - the Workspacepayload - the Payload to processCopyright © 2013–2020 Adobe. All rights reserved.