| 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, toStringgetNamepublic 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 statepublic 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)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
EndStateFlowExecutionStatus stored.handle in interface Statehandle in class EndStateexecutor - the context passed in by the callerjava.lang.Exception - if anything goes wrongState.handle(FlowExecutor)protected void setExitStatus(FlowExecutor executor, java.lang.String code)
EndStatesetExitStatus in class EndStateexecutor - FlowExecutor for the current flowcode - The exit status to save