@Service public class AssetOffloadingProcess extends java.lang.Object implements WorkflowExternalProcess
The workflow (model) to offload must be set on the step metadata using the workflowModel argument.
| Modifier and Type | Class and Description |
|---|---|
static class |
AssetOffloadingProcess.Arguments
The available arguments to this process implementation.
|
| Constructor and Description |
|---|
AssetOffloadingProcess() |
| Modifier and Type | Method and Description |
|---|---|
java.io.Serializable |
execute(WorkItem item,
WorkflowSession wfSession,
MetaDataMap arguments)
Executes the external process step.
|
void |
handleResult(java.io.Serializable externalProcessId,
WorkItem workItem,
WorkflowSession session,
MetaDataMap arguments)
Get and handle the result of the external process, given by the external process id.
|
boolean |
hasFinished(java.io.Serializable externalProcessId,
WorkItem item,
WorkflowSession session,
MetaDataMap arguments)
Tests the external process, given by the external process id, for completeness.
|
public java.io.Serializable execute(WorkItem item, WorkflowSession wfSession, MetaDataMap arguments) throws WorkflowException
WorkflowExternalProcessnull
to indicate that nothing was executed. In this case, the step directly advances to the next step.execute in interface WorkflowExternalProcessitem - The current work itemwfSession - The current workflow sessionarguments - The current steps node arguments (aka as node meta data)nullWorkflowException - thrown in case
something goes wrong during executionpublic boolean hasFinished(java.io.Serializable externalProcessId,
WorkItem item,
WorkflowSession session,
MetaDataMap arguments)
WorkflowExternalProcesshasFinished in interface WorkflowExternalProcessexternalProcessId - The external process to test for completenessitem - The current work itemsession - The current workflow sessionarguments - The current steps node arguments (aka as node meta data)true if the specified external process has finishedpublic void handleResult(java.io.Serializable externalProcessId,
WorkItem workItem,
WorkflowSession session,
MetaDataMap arguments)
throws WorkflowException
WorkflowExternalProcesshandleResult in interface WorkflowExternalProcessexternalProcessId - The external process to handle the results forworkItem - The current work itemsession - The current workflow sessionarguments - The current steps node arguments (aka as node meta data)WorkflowException - thrown in case
something goes wrong during executionCopyright © 2010 - 2023 Adobe. All Rights Reserved