|
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 FormField Summary | |
---|---|
protected State |
currentState
Deprecated See BEA Commerce product offering |
protected State |
initialState
Deprecated See BEA Commerce product offering |
protected TreeSet |
states
Deprecated See BEA Commerce product offering |
protected String |
TRANSITION_KEY_TOKEN
Deprecated See BEA Commerce product offering |
protected TreeMap |
transitions
Deprecated 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 Workflow
transition
- the name of the transition to be performed
IllegalWorkflowTransitionException
- if the transition is invalidpublic WorkflowContext getContext()
getContext
in interface Workflow
public String getCurrentStateName()
getCurrentStateName
in interface Workflow
public String getInitialStateName()
getInitialStateName
in interface Workflow
public String[] getStateNames()
getStateNames
in interface Workflow
public String[] getTransitionNames()
getTransitionNames
in interface Workflow
public String lookAheadTransition(String transition) throws IllegalWorkflowTransitionException
lookAheadTransition
in interface Workflow
transition
- the name of the transition to be performed
IllegalWorkflowTransitionException
- if the transition is invalidpublic String[] getOutgoingTransitions(String state) throws IllegalWorkflowTransitionException
getOutgoingTransitions
in interface Workflow
state
- the name of the state
IllegalWorkflowTransitionException
- if the transition is invalidpublic void reset()
reset
in interface Workflow
public void setContext(WorkflowContext workflowContext)
setContext
in interface Workflow
WorkflowContext
- 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 |