@Property(name="service.description", value="%cq.workflow.compat.executor.description") @Reference(name="WorkflowProcess",cardinality=OPTIONAL_MULTIPLE,referenceInterface=WorkflowProcess.class,policy=DYNAMIC) @Reference(name="Process",cardinality=OPTIONAL_MULTIPLE,referenceInterface=JavaProcess.class,policy=DYNAMIC) @Service public class CQWorkflowProcessRunner extends java.lang.Object implements StepExecutor
Constructor and Description |
---|
CQWorkflowProcessRunner() |
Modifier and Type | Method and Description |
---|---|
void |
bindProcess(JavaProcess process) |
void |
bindWorkflowProcess(WorkflowProcess process) |
boolean |
canExecute(java.lang.String resource)
Returns true if this service can process the specified resource, false otherwise.
|
void |
execute(java.lang.String resource,
WorkItem workItem,
WorkflowSession workflowSession,
MetaDataMap metaDataMap)
Execute the step associate with resource.
|
void |
unbindProcess(JavaProcess process) |
void |
unbindWorkflowProcess(WorkflowProcess process) |
public void bindWorkflowProcess(WorkflowProcess process)
public void unbindWorkflowProcess(WorkflowProcess process)
public void bindProcess(JavaProcess process)
public void unbindProcess(JavaProcess process)
public void execute(java.lang.String resource, WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaDataMap) throws WorkflowException
StepExecutor
execute
in interface StepExecutor
resource
- the resource identifying the code to execute for this workflow step.workItem
- the workitem associate with the current step.workflowSession
- the current workflow sessionmetaDataMap
- the workflow step's metadataWorkflowException
- thrown in case
something goes wrong during executionpublic boolean canExecute(java.lang.String resource)
StepExecutor
canExecute
in interface StepExecutor
resource
- the resource identifying the code to execute for this workflow step.Copyright © 2010 - 2020 Adobe. All Rights Reserved