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 - the name of the state to retrieveFlowExecution start(FlowExecutor executor) throws FlowExecutionException
executor - the FlowExecutor instance to use for the flow execution.FlowExecution containing the exit status of the flow.FlowExecutionException - thrown if error occurs during flow execution.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.FlowExecution containing the exit status of the flow.FlowExecutionException - thrown if error occurs during flow execution.java.util.Collection<State> getStates()