Class JsrEndState

  • All Implemented Interfaces:
    State

    public class JsrEndState
    extends EndState
    State implementation for ending a job per JSR-352 rules if it is in progress and continuing if just starting.
    Since:
    3.0
    Author:
    Michael Minella
    • Constructor Detail

      • JsrEndState

        public JsrEndState​(FlowExecutionStatus status,
                           java.lang.String code,
                           java.lang.String name)
        Parameters:
        status - The FlowExecutionStatus to end with
        name - The name of the state
        code - the exit status.
      • JsrEndState

        public JsrEndState​(FlowExecutionStatus status,
                           java.lang.String code,
                           java.lang.String name,
                           boolean abandon)
        Parameters:
        status - The FlowExecutionStatus to end with
        name - The name of the state
        abandon - flag to indicate that previous step execution can be marked as abandoned (if there is one)
        code - the exit status.
      • JsrEndState

        public JsrEndState​(FlowExecutionStatus status,
                           java.lang.String code,
                           java.lang.String name,
                           java.lang.String restart,
                           boolean abandon,
                           JobRepository jobRepository)