@Property(name="service.description", value="%cq.workflow.compat.extproxy.description") @Reference(name="WorkflowExternalProcess", cardinality=OPTIONAL_MULTIPLE, referenceInterface=WorkflowExternalProcess.class, policy=DYNAMIC) @Service public class CQWorkflowExtProcessProxy extends java.lang.Object implements WorkflowExternalProcessProxy
Constructor and Description |
---|
CQWorkflowExtProcessProxy() |
Modifier and Type | Method and Description |
---|---|
void |
bindWorkflowExternalProcess(WorkflowExternalProcess process) |
boolean |
canHandle(java.lang.String externalProcessName)
returns true if this proxy can execute requests on behalf of the specified processName
|
java.io.Serializable |
execute(java.lang.String externalProcessName,
WorkItem workItem,
WorkflowSession workflowSession,
MetaDataMap metaDataMap)
Executes the external process step.
|
void |
handleResult(java.lang.String externalProcessName,
java.io.Serializable serializable,
WorkItem workItem,
WorkflowSession workflowSession,
MetaDataMap metaDataMap)
Get and handle the result of the external process, given by the external process id.
|
boolean |
hasFinished(java.lang.String externalProcessName,
java.io.Serializable serializable,
WorkItem workItem,
WorkflowSession workflowSession,
MetaDataMap metaDataMap)
Tests the external process, given by the external process id, for completeness.
|
void |
unbindWorkflowExternalProcess(WorkflowExternalProcess process) |
public void bindWorkflowExternalProcess(WorkflowExternalProcess process)
public void unbindWorkflowExternalProcess(WorkflowExternalProcess process)
public java.io.Serializable execute(java.lang.String externalProcessName, WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaDataMap) throws WorkflowException
WorkflowExternalProcessProxy
null
to indicate that nothing was executed. In this case, the step directly advances to the next step.execute
in interface WorkflowExternalProcessProxy
externalProcessName
- The name of the WorkflowExternalProcess service to proxyworkItem
- The current work itemworkflowSession
- The current workflow sessionmetaDataMap
- 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)
public boolean hasFinished(java.lang.String externalProcessName, java.io.Serializable serializable, WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaDataMap)
WorkflowExternalProcessProxy
hasFinished
in interface WorkflowExternalProcessProxy
externalProcessName
- The name of the WorkflowExternalProcess service to proxyserializable
- The external process to test for completenessworkItem
- The current work itemworkflowSession
- The current workflow sessionmetaDataMap
- 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)
public void handleResult(java.lang.String externalProcessName, java.io.Serializable serializable, WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaDataMap) throws WorkflowException
WorkflowExternalProcessProxy
handleResult
in interface WorkflowExternalProcessProxy
externalProcessName
- The name of the WorkflowExternalProcess service to proxyserializable
- The external process to handle the results forworkItem
- The current work itemworkflowSession
- The current workflow sessionmetaDataMap
- 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)
public boolean canHandle(java.lang.String externalProcessName)
WorkflowExternalProcessProxy
canHandle
in interface WorkflowExternalProcessProxy
externalProcessName
- The name of the WorkflowExternalProcess service to proxyCopyright © 2010 - 2020 Adobe. All Rights Reserved