public abstract class AbstractState extends Object implements State
| Constructor and Description |
|---|
AbstractState(String name) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
The name of the state.
|
abstract FlowExecutionStatus |
handle(FlowExecutor executor)
Handle some business or processing logic and return a status that can be
used to drive a flow to the next
State. |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisEndStatepublic AbstractState(String name)
public String getName()
Statepublic abstract FlowExecutionStatus handle(FlowExecutor executor) throws Exception
StateState. 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
State instances, so implementations should be careful that the
context is thread safe, or used in a thread safe manner.Copyright © 2014. All rights reserved.