Class CQWorkflowProcessRunner
java.lang.Object
com.day.cq.workflow.compatibility.CQWorkflowProcessRunner
- All Implemented Interfaces:
StepExecutor
@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 Object
implements StepExecutor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbindProcess(JavaProcess process) voidbindWorkflowProcess(WorkflowProcess process) booleancanExecute(String resource) Returns true if this service can process the specified resource, false otherwise.voidexecute(String resource, WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaDataMap) Execute the step associate with resource.voidunbindProcess(JavaProcess process) voidunbindWorkflowProcess(WorkflowProcess process)
-
Constructor Details
-
CQWorkflowProcessRunner
public CQWorkflowProcessRunner()
-
-
Method Details
-
bindWorkflowProcess
-
unbindWorkflowProcess
-
bindProcess
-
unbindProcess
-
execute
public void execute(String resource, WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaDataMap) throws WorkflowException Description copied from interface:StepExecutorExecute the step associate with resource.- Specified by:
executein interfaceStepExecutor- Parameters:
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 metadata- Throws:
WorkflowException- thrown in case something goes wrong during execution
-
canExecute
Description copied from interface:StepExecutorReturns true if this service can process the specified resource, false otherwise.- Specified by:
canExecutein interfaceStepExecutor- Parameters:
resource- the resource identifying the code to execute for this workflow step.- Returns:
- true if this service can process the specified resource, false otherwise.
-