Interface StepExecutor

  • All Known Implementing Classes:
    CQWorkflowProcessRunner

    public interface StepExecutor
    Service Interface to support execution of 3rd party workflow step code. StepExecutor can be used to support 3rd part code to execute workflow steps, however the preferred method is to implement the WorkflowProcess interface.
    See Also:
    WorkflowProcess
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean canExecute​(java.lang.String workflowStepResource)
      Returns true if this service can process the specified resource, false otherwise.
      void execute​(java.lang.String workflowStepResource, WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaData)
      Execute the step associate with resource.
    • Method Detail

      • execute

        void execute​(java.lang.String workflowStepResource,
                     WorkItem workItem,
                     WorkflowSession workflowSession,
                     MetaDataMap metaData)
              throws WorkflowException
        Execute the step associate with resource.
        Parameters:
        workflowStepResource - the resource identifying the code to execute for this workflow step.
        workItem - the workitem associate with the current step.
        workflowSession - the current workflow session
        metaData - the workflow step's metadata
        Throws:
        WorkflowException - thrown in case something goes wrong during execution
      • canExecute

        boolean canExecute​(java.lang.String workflowStepResource)
        Returns true if this service can process the specified resource, false otherwise.
        Parameters:
        workflowStepResource - the resource identifying the code to execute for this workflow step.
        Returns:
        true if this service can process the specified resource, false otherwise.