public class JsrFlow extends SimpleFlow
Flow
implementation will attempt to find the next state based on the provided
exit status. If none is found (the exit status isn't mapped), it will attempt to
resolve the next state basing it on the last step's batch status. Only if both
attempts fail, the flow will fail due to the inability to find the next state.Constructor and Description |
---|
JsrFlow(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMostRecentStepName() |
protected boolean |
isFlowContinued(State state,
FlowExecutionStatus status,
StepExecution stepExecution) |
protected State |
nextState(java.lang.String stateName,
FlowExecutionStatus status,
StepExecution stepExecution) |
afterPropertiesSet, getName, getStartState, getState, getStateMap, getStates, getTransitionMap, resume, setStateTransitionComparator, setStateTransitions, start
public JsrFlow(java.lang.String name)
name
- name of the flow@Nullable public java.lang.String getMostRecentStepName()
protected boolean isFlowContinued(State state, FlowExecutionStatus status, StepExecution stepExecution)
isFlowContinued
in class SimpleFlow
protected State nextState(java.lang.String stateName, FlowExecutionStatus status, StepExecution stepExecution) throws FlowExecutionException
nextState
in class SimpleFlow
stateName
- the name of the next state.status
- FlowExecutionStatus
instance.stepExecution
- StepExecution
instance.Step
(or null if this is the end)FlowExecutionException
- thrown if error occurs during nextState processing.