public interface Flow
Modifier and Type | Method and Description |
---|---|
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) |
java.lang.String getName()
State getState(java.lang.String stateName)
stateName
- FlowExecution start(FlowExecutor executor) throws FlowExecutionException
FlowExecutionException
FlowExecution resume(java.lang.String stateName, FlowExecutor executor) throws FlowExecutionException
stateName
- the name of the state to resume onexecutor
- the context to be passed into each state executedFlowExecution
containing the exit status of the flowFlowExecutionException
java.util.Collection<State> getStates()