| 
 | Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.beasys.commerce.foundation.StateMachine
@Deprecated public class 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 Form| Field Summary | |
|---|---|
| protected  State | currentStateDeprecated See BEA Commerce product offering | 
| protected  State | initialStateDeprecated See BEA Commerce product offering | 
| protected  TreeSet | statesDeprecated See BEA Commerce product offering | 
| protected  String | TRANSITION_KEY_TOKENDeprecated See BEA Commerce product offering | 
| protected  TreeMap | transitionsDeprecated See BEA Commerce product offering | 
| Constructor Summary | |
|---|---|
| StateMachine()Deprecated See BEA Commerce product offering | |
| Method Summary | |
|---|---|
| protected  void | addTransition(Transition t)Deprecated See BEA Commerce product offering | 
|  String | doTransition(String transitionName)Deprecated See BEA Commerce product offering | 
|  WorkflowContext | getContext()Deprecated See BEA Commerce product offering | 
|  String | getCurrentStateName()Deprecated See BEA Commerce product offering | 
|  String | getInitialStateName()Deprecated See BEA Commerce product offering | 
|  String[] | getOutgoingTransitions(String state)Deprecated See BEA Commerce product offering | 
|  String[] | getStateNames()Deprecated See BEA Commerce product offering | 
|  String[] | getTransitionNames()Deprecated See BEA Commerce product offering | 
|  String | lookAheadTransition(String transition)Deprecated See BEA Commerce product offering | 
|  void | reset()Deprecated See BEA Commerce product offering | 
|  void | setContext(WorkflowContext workflowContext)Deprecated See BEA Commerce product offering | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected String TRANSITION_KEY_TOKEN
protected State currentState
protected State initialState
protected TreeMap transitions
protected TreeSet states
| Constructor Detail | 
|---|
public StateMachine()
| Method Detail | 
|---|
public String doTransition(String transitionName)
                    throws IllegalWorkflowTransitionException
doTransition in interface Workflowtransition - the name of the transition to be performed
IllegalWorkflowTransitionException - if the transition is invalidpublic WorkflowContext getContext()
getContext in interface Workflowpublic String getCurrentStateName()
getCurrentStateName in interface Workflowpublic String getInitialStateName()
getInitialStateName in interface Workflowpublic String[] getStateNames()
getStateNames in interface Workflowpublic String[] getTransitionNames()
getTransitionNames in interface Workflow
public String lookAheadTransition(String transition)
                           throws IllegalWorkflowTransitionException
lookAheadTransition in interface Workflowtransition - the name of the transition to be performed
IllegalWorkflowTransitionException - if the transition is invalid
public String[] getOutgoingTransitions(String state)
                                throws IllegalWorkflowTransitionException
getOutgoingTransitions in interface Workflowstate - the name of the state
IllegalWorkflowTransitionException - if the transition is invalidpublic void reset()
reset in interface Workflowpublic void setContext(WorkflowContext workflowContext)
setContext in interface WorkflowWorkflowContext - the new context for the underlying workflow engine.protected void addTransition(Transition t)
| 
 | Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||