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 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)
-
-
-
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 WorkflowException
Description copied from interface:StepExecutor
Execute the step associate with resource.- Specified by:
execute
in 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:StepExecutor
Returns true if this service can process the specified resource, false otherwise.- Specified by:
canExecute
in 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.
-
-