类 JsrFlow
- java.lang.Object
- org.springframework.batch.core.job.flow.support.SimpleFlow
- org.springframework.batch.core.jsr.job.flow.support.JsrFlow
- 所有已实现的接口:
Flow
,org.springframework.beans.factory.InitializingBean
public class JsrFlow extends SimpleFlow
Implements JSR-352 specific logic around the execution of a flow. Specifically, thisFlow
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.- 从以下版本开始:
- 3.0
- 作者:
- Michael Minella, Mahmoud Ben Hassine
构造器概要
构造器 构造器 说明 JsrFlow(java.lang.String name)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.lang.String
getMostRecentStepName()
protected boolean
isFlowContinued(State state, FlowExecutionStatus status, StepExecution stepExecution)
protected State
nextState(java.lang.String stateName, FlowExecutionStatus status, StepExecution stepExecution)
从类继承的方法 org.springframework.batch.core.job.flow.support.SimpleFlow
afterPropertiesSet, getName, getStartState, getState, getStateMap, getStates, getTransitionMap, resume, setStateTransitionComparator, setStateTransitions, start
构造器详细资料
JsrFlow
public JsrFlow(java.lang.String name)
- 参数:
name
- name of the flow
方法详细资料
getMostRecentStepName
@Nullable public java.lang.String getMostRecentStepName()
isFlowContinued
protected boolean isFlowContinued(State state, FlowExecutionStatus status, StepExecution stepExecution)
- 覆盖:
isFlowContinued
在类中SimpleFlow
nextState
protected State nextState(java.lang.String stateName, FlowExecutionStatus status, StepExecution stepExecution) throws FlowExecutionException
- 覆盖:
nextState
在类中SimpleFlow
- 参数:
stateName
- the name of the next state.status
-FlowExecutionStatus
instance.stepExecution
-StepExecution
instance.- 返回:
- the next
Step
(or null if this is the end) - 抛出:
FlowExecutionException
- thrown if error occurs during nextState processing.