commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sungchan <schanp...@gmail.com>
Subject SCXML undo?
Date Tue, 12 Jun 2007 10:35:09 GMT
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?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message