接口 Flow
- 所有已知实现类:
JsrFlow
,SimpleFlow
public interface Flow
- 从以下版本开始:
- 2.0
- 作者:
- Dave Syer
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 java.lang.String
getName()
State
getState(java.lang.String stateName)
Retrieve the State with the given name.java.util.Collection<State>
getStates()
Convenient accessor for clients needing to explore the states of this flow.FlowExecution
resume(java.lang.String stateName, FlowExecutor executor)
FlowExecution
start(FlowExecutor executor)
方法详细资料
getName
java.lang.String getName()
- 返回:
- the name of the flow
getState
State getState(java.lang.String stateName)
Retrieve the State with the given name. If there is no State with the given name, then return null.- 参数:
stateName
- the name of the state to retrieve- 返回:
- the State
start
FlowExecution start(FlowExecutor executor) throws FlowExecutionException
- 参数:
executor
- theFlowExecutor
instance to use for the flow execution.- 返回:
- a
FlowExecution
containing the exit status of the flow. - 抛出:
FlowExecutionException
- thrown if error occurs during flow execution.
resume
FlowExecution resume(java.lang.String stateName, FlowExecutor executor) throws FlowExecutionException
- 参数:
stateName
- the name of the state to resume on.executor
- the context to be passed into each state executed.- 返回:
- a
FlowExecution
containing the exit status of the flow. - 抛出:
FlowExecutionException
- thrown if error occurs during flow execution.