I invented some FSM with SCXML.
As a reserverd word "reset", I think we need the "undo" command.
"Undo" steps back to from-state.
Let me give one example.

<scxml initialstate="root">
<state id="root">
<initial>
<transition target="S0"/>
</initial>
<state id="S0"><transition target="S00" event="0"/></state>
<state id="S00"><transition target="S100000" event="~"/><transition
target="S000" event="0"/></state>
<state id="S000"><transition target="S100000" event="~"/><transition
target="S100000" event="0"/></state>
</state>
<state id="S100000" final="true"/>
</scxml>

In state S00, it moves back S0 when we typed "undo".
Now how can we make this "undo"?
Is SCXML engine equipped to stack data structure for supporting it?

Reply via email to