Hi,
Suppose I have the following SCXML file:
<?xml version="1.0"?>
<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0"
xmlns:ker="http://www.keridwen.org/SCXML"
initialstate="stateA">
<state id="stateA">
<transition event="transition1" target="stateB" />
</state>
<state id="stateB" />
</scxml>
In my Java code, I did start the SCXML Engine with this file and executed:
stateMachine.dispatchSignalEvent("transition1");
I am now in stateB.
How can I do programmatically to "undo" the transition, following the
inverse path of transition1 and returning to stateA?
I can listen to the engine and implement the method
public void onTransition(final TransitionTarget from, final
TransitionTarget to, final Transition transition)
.. but I don't know how to order the engine to perform the reverse operation
Kind regards
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]