Interface WorkflowContext<T extends Serializable>

All Known Implementing Classes:
WorkflowStepComponent.SimpleWorkflowContext

public interface WorkflowContext<T extends Serializable>
Context of the given workflow, which allows e.g.
  • Method Summary

    Modifier and Type
    Method
    Description
    <R extends Serializable>
    void
    This method shouldn't be directly called, use the trigger factory method of the workflow builder.
    void
    Complete and commit the current step but cancel any other steps.
     
    void
    This method shouldn't be directly called, use the sleep factory method of the workflow builder.
    int
     
    In case of a own resume this gives the reference to the next task id.
    void
    setSuspendNext(boolean value)
    Set the next step to suspended, means it requires a resume call
  • Method Details

    • data

      T data()
    • cancelWorkflow

      void cancelWorkflow()
      Complete and commit the current step but cancel any other steps.
    • executionCount

      int executionCount()
    • delayNextStepBy

      void delayNextStepBy(Duration duration)
      This method shouldn't be directly called, use the sleep factory method of the workflow builder.
    • setSuspendNext

      void setSuspendNext(boolean value)
      Set the next step to suspended, means it requires a resume call
    • nextTaskId

      String nextTaskId()
      In case of a own resume this gives the reference to the next task id.
    • addCommand

      <R extends Serializable> void addCommand(TriggerWorkflowCommand<R> command)
      This method shouldn't be directly called, use the trigger factory method of the workflow builder.