|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--theory.smart.axiom.workflow.StateMachine
This is the reference implemenation of a Workflow object. It provides a simple implemenation based on a set of states and transitions.
Workflow
, Serialized FormConstructor Summary | |
StateMachine()
Use WorkflowHome.create("theory.smart.axiom.workflow.StateMachine") to instantiate the workflow. |
Method Summary | |
java.lang.String |
doTransition(java.lang.String transitionName)
Given the name of the transition, perform the transition and return the new state. |
WorkflowContext |
getContext()
Get the context of the Workflow. |
java.lang.String |
getCurrentStateName()
Get the name of the current state |
java.lang.String |
getInitialStateName()
Get the name of the initial state |
java.lang.String[] |
getStateNames()
Get all State names in an array of Strings. |
java.lang.String[] |
getTransitionNames()
Get all transition names in an array of Strings. |
java.lang.String |
lookAheadTransition(java.lang.String transition)
Given the name of the transition, look ahead the transition and return the predicted new state. |
void |
reset()
Reset the current workflow state to the initial state |
void |
setContext(WorkflowContext workflowContext)
Set the new context for the underlying workflow engine. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public StateMachine()
Method Detail |
public java.lang.String doTransition(java.lang.String transitionName) throws IllegalWorkflowTransitionException
transition
- the name of the transition to be performedpublic WorkflowContext getContext()
public java.lang.String getCurrentStateName()
public java.lang.String getInitialStateName()
public java.lang.String[] getStateNames()
public java.lang.String[] getTransitionNames()
public java.lang.String lookAheadTransition(java.lang.String transition) throws IllegalWorkflowTransitionException
transition
- the name of the transition to be performedpublic void reset()
public void setContext(WorkflowContext workflowContext)
WorkflowContext
- the new context for the underlying workflow engine.
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |