|
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.ebusiness.order.StateMachine
@Deprecated public class StateMachine
A class for implementing finite state machines. The
state machine is created by parsing an XML document,
classes\orderstatus.xml.
The state machine helps get valid transitions based
on a current transition, so that an Order Status
can be moved to a valid new state.
| Constructor Summary | |
|---|---|
StateMachine(String domDocFile)
Deprecated See BEA Commerce product offering |
|
| Method Summary | |
|---|---|
String |
getFirstState()
Deprecated See BEA Commerce product offering |
String |
getNextStateName(String currStateName,
String event)
Deprecated See BEA Commerce product offering |
String[] |
getValidEvents(String stateName)
Deprecated See BEA Commerce product offering |
String |
handleEvent(Object targetObject,
String currStateName,
String event)
Deprecated See BEA Commerce product offering |
static void |
main(String[] argv)
Deprecated See BEA Commerce product offering |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StateMachine(String domDocFile)
throws Exception
domDocFile - The name of the XML file that has the state machine's
specification, residing in the classpath
Exception| Method Detail |
|---|
public String handleEvent(Object targetObject,
String currStateName,
String event)
throws StateTransitionException
targetObject: - the target of the handlingcurrStateName: - based on the current state, decides on which action to takeevent, - based on the event being handled, decides on which action to take
StateTransitionException
public String getNextStateName(String currStateName,
String event)
throws StateTransitionException
currStateName - The name of the current stateevent - The event to be sent to the current state
StateTransitionExceptionpublic String[] getValidEvents(String stateName)
stateName, - the name of a state in the machine
public String getFirstState()
throws StateTransitionException
StateTransitionExceptionpublic static void main(String[] argv)
|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||