public interface WorkflowExternalProcessProxy
WorkflowExternalProcess
s) services.Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(java.lang.String processName)
returns true if this proxy can execute requests on behalf of the specified processName
|
java.io.Serializable |
execute(java.lang.String processName,
WorkItem item,
WorkflowSession session,
MetaDataMap arguments)
Executes the external process step.
|
void |
handleResult(java.lang.String processName,
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.lang.String processName,
java.io.Serializable externalProcessId,
WorkItem item,
WorkflowSession session,
MetaDataMap arguments)
Tests the external process, given by the external process id, for completeness.
|
java.io.Serializable execute(java.lang.String processName, WorkItem item, WorkflowSession session, MetaDataMap arguments) throws WorkflowException
null
to indicate that nothing was executed. In this case, the step directly advances to the next step.processName
- The name of the WorkflowExternalProcess service to proxyitem
- The current work itemsession
- The current workflow sessionarguments
- The current steps node arguments (aka as node meta data)null
WorkflowException
- thrown in case
something goes wrong during executionWorkflowExternalProcess.execute(WorkItem, com.adobe.granite.workflow.WorkflowSession, com.adobe.granite.workflow.metadata.MetaDataMap)
boolean hasFinished(java.lang.String processName, java.io.Serializable externalProcessId, WorkItem item, WorkflowSession session, MetaDataMap arguments)
processName
- The name of the WorkflowExternalProcess service to proxyexternalProcessId
- 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 finishedWorkflowExternalProcess.hasFinished(java.io.Serializable, WorkItem, com.adobe.granite.workflow.WorkflowSession, com.adobe.granite.workflow.metadata.MetaDataMap)
void handleResult(java.lang.String processName, java.io.Serializable externalProcessId, WorkItem workItem, WorkflowSession session, MetaDataMap arguments) throws WorkflowException
processName
- The name of the WorkflowExternalProcess service to proxyexternalProcessId
- 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 executionWorkflowExternalProcess.handleResult(java.io.Serializable, WorkItem, com.adobe.granite.workflow.WorkflowSession, com.adobe.granite.workflow.metadata.MetaDataMap)
boolean canHandle(java.lang.String processName)
processName
- The name of the WorkflowExternalProcess service to proxyCopyright © 2010 - 2020 Adobe. All Rights Reserved