1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<scxml datamodel="ecmascript" version="1.0" > <state id="s0"> <onentry> <send event="foo" delay="1s" /> <log expr="'tick'" /> </onentry> <transition event="foo" target="s1" /> </state> <state id="s1"> <onentry> <send event="foo" delay="1s" /> <log expr="'tock'" /> </onentry> <transition event="foo" target="s0" /> </state> </scxml>