- All Known Implementing Classes:
public interface State
- Dave Syer
getNameString getName()The name of the state. Should be unique within a flow.
- the name of this state
handleHandle some business or processing logic and return a status that can be used to drive a flow to the next
State. The status can be any string, but special meaning is assigned to the static constants in
FlowExecution. The context can be used by implementations to do whatever they need to do. The same context will be passed to all
Stateinstances, so implementations should be careful that the context is thread-safe, or used in a thread-safe manner.
executor- the context passed in by the caller
- a status for the execution
Exception- if anything goes wrong
isEndStateboolean isEndState()Inquire as to whether a
Stateis an end state. Implementations should return false if processing can continue, even if that would require a restart.
- true if this
Stateis the end of processing