Interface FlowExecutor

  • All Known Implementing Classes:
    JobFlowExecutor, JsrFlowExecutor

    public interface FlowExecutor
    Context and execution strategy for FlowJob to allow it to delegate its execution step by step.
    Since:
    2.0
    Author:
    Dave Syer, Mahmoud Ben Hassine
    • Method Detail

      • close

        void close​(FlowExecution result)
        Chance to clean up resources at the end of a flow (whether it completed successfully or not).
        Parameters:
        result - the final FlowExecution
      • abandonStepExecution

        void abandonStepExecution()
        Handle any status changes that might be needed at the start of a state.
      • isRestart

        boolean isRestart()
        Returns:
        true if the flow is at the beginning of a restart
      • addExitStatus

        void addExitStatus​(java.lang.String code)
        Parameters:
        code - the label for the exit status when a flow or sub-flow ends