public class FlowState extends java.lang.Object implements IFlowState
| Constructor and Description |
|---|
FlowState(java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
enter(IFlow flow)
The state is becaming the new current one.
|
boolean |
equals(java.lang.Object o) |
void |
exit(IFlow flow)
The state is not the current one anymore.
Exit is called after after the state changing operation completion. |
java.lang.String |
getId()
It must be univoque in an
IFlow. |
int |
hashCode() |
void |
start(IFlow flow)
The state is the first state of the flow and is becaming the current one.
|
java.lang.String |
toString() |
public final java.lang.String getId()
IFlowStateIFlow.getId in interface IFlowStateIFlowpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic void start(IFlow flow)
IFlowStatestart in interface IFlowStatepublic void enter(IFlow flow) throws AbortException
IFlowStateenter in interface IFlowStateAbortException - - to abort the state changing.public void exit(IFlow flow)
IFlowStateexit in interface IFlowState