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
WorkflowExternalProcess
null
to indicate that nothing was executed. In this case, the step directly advances to the next step.execute
in interface WorkflowExternalProcess
item
- The current work itemwfSession
- The current workflow sessionarguments
- The current steps node arguments (aka as node meta data)null
WorkflowException
- thrown in case
something goes wrong during executionpublic boolean hasFinished(java.io.Serializable externalProcessId, WorkItem item, WorkflowSession session, MetaDataMap arguments)
WorkflowExternalProcess
hasFinished
in interface WorkflowExternalProcess
externalProcessId
- 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
WorkflowExternalProcess
handleResult
in interface WorkflowExternalProcess
externalProcessId
- 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 execution"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"