Hello!

This may be a stupid question but:
I have read through the code for the simple scheduler and I´m  not sure i
understand what happens.
We have written a simple scxml for a small statechart containing two states
with timers and used the simple scheduler as described in your previous
e-mail. As I understand the timers would make the machine just jump between
the two states. This doesn´t happen. Why?
---------------------------
<scxml version="1.0" initialstate="167" xmlns:cs="
http://commons.apache.org/scxml"; xmlns="http://www.w3.org/2005/07/scxml";>
<state id = "167">
<transition target="StateA"/>
</state>
<state id ="StateA">
<onentry>
<log label="Renegade" expr="'Entering state: A'"/>
<send sendid="1" event="'ToB'" delay="'1000ms'">
<log label="Renegade" expr="'Timer starting...'"/>
</send>
</onentry>
<transition event="ToB" target="StateB"/>
</state>
<state id="StateB">
<onentry>
<log label="Renegade" expr="'Entering state: B'"/>
<send sendid="2" event="'ToA'" delay="'2000ms'">
<log label="Renegade" expr="'Timer starting...'"/>
</send>
</onentry>
<transition event="ToA" target="StateA"/>
</state>
</scxml>
---------------------

The output when this is run is simply:
2009-apr-14 13:08:57 org.apache.commons.scxml.model.Log execute
INFO: Renegade: Entering state: A
2009-apr-14 13:08:57 org.apache.commons.scxml.env.SimpleScheduler send
INFO: send ( sendId: 1, target: null, targetType: scxml, event: ToB, params:
null, hints: null, delay: 1000)

best regards
//Linda

Reply via email to