Class 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 Detail

      • CQWorkflowProcessRunner

        public CQWorkflowProcessRunner()
    • 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 interface StepExecutor
        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 session
        metaDataMap - 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 interface StepExecutor
        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.