commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoît Thiébault <>
Subject [SCXML] Undoing a transition
Date Wed, 17 Oct 2012 13:25:03 GMT

Suppose I have the following SCXML file:

<?xml version="1.0"?>
<scxml xmlns="" version="1.0" 

     <state id="stateA">
         <transition event="transition1" target="stateB" />

     <state id="stateB" />

In my Java code, I did start the SCXML Engine with this file and executed:


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:
For additional commands, e-mail:

View raw message