Constructor and Description |
---|
JsrEndState(FlowExecutionStatus status,
java.lang.String name) |
JsrEndState(FlowExecutionStatus status,
java.lang.String code,
java.lang.String name) |
JsrEndState(FlowExecutionStatus status,
java.lang.String code,
java.lang.String name,
boolean abandon) |
JsrEndState(FlowExecutionStatus status,
java.lang.String code,
java.lang.String name,
java.lang.String restart,
boolean abandon,
JobRepository jobRepository) |
Modifier and Type | Method and Description |
---|---|
FlowExecutionStatus |
handle(FlowExecutor executor)
Return the
FlowExecutionStatus stored. |
protected void |
setExitStatus(FlowExecutor executor,
java.lang.String code)
Performs any logic to update the exit status for the current flow.
|
getCode, getStatus, isAbandon, isEndState, toString
getName
public JsrEndState(FlowExecutionStatus status, java.lang.String name)
status
- The FlowExecutionStatus
to end withname
- The name of the statepublic JsrEndState(FlowExecutionStatus status, java.lang.String code, java.lang.String name)
status
- The FlowExecutionStatus
to end withname
- The name of the statecode
- the exit status.public JsrEndState(FlowExecutionStatus status, java.lang.String code, java.lang.String name, boolean abandon)
status
- The FlowExecutionStatus
to end withname
- The name of the stateabandon
- flag to indicate that previous step execution can be
marked as abandoned (if there is one)code
- the exit status.public JsrEndState(FlowExecutionStatus status, java.lang.String code, java.lang.String name, java.lang.String restart, boolean abandon, JobRepository jobRepository)
public FlowExecutionStatus handle(FlowExecutor executor) throws java.lang.Exception
EndState
FlowExecutionStatus
stored.handle
in interface State
handle
in class EndState
executor
- the context passed in by the callerjava.lang.Exception
- if anything goes wrongState.handle(FlowExecutor)
protected void setExitStatus(FlowExecutor executor, java.lang.String code)
EndState
setExitStatus
in class EndState
executor
- FlowExecutor
for the current flowcode
- The exit status to save