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 java.lang.Object implements StepExecutor
-
-
Constructor Summary
Constructors Constructor Description CQWorkflowProcessRunner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbindProcess(JavaProcess process)voidbindWorkflowProcess(WorkflowProcess process)booleancanExecute(java.lang.String resource)Returns true if this service can process the specified resource, false otherwise.voidexecute(java.lang.String resource, WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaDataMap)Execute the step associate with resource.voidunbindProcess(JavaProcess process)voidunbindWorkflowProcess(WorkflowProcess process)
-
-
-
Method Detail
-
bindWorkflowProcess
public void bindWorkflowProcess(WorkflowProcess process)
-
unbindWorkflowProcess
public void unbindWorkflowProcess(WorkflowProcess process)
-
bindProcess
public void bindProcess(JavaProcess process)
-
unbindProcess
public void unbindProcess(JavaProcess process)
-
execute
public void execute(java.lang.String resource, WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaDataMap) throws WorkflowExceptionDescription 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
public boolean canExecute(java.lang.String resource)
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.
-
-