diff options
author | Stefan Radomski <github@mintwerk.de> | 2016-05-12 13:12:33 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2016-05-12 13:12:33 (GMT) |
commit | b62e7979600feee23dc7cdb61042a8fc7673122b (patch) | |
tree | f7351372f37979dd2d048e0b68a16a4cd3b2aadb /test/issues/test-issue69.scxml | |
parent | 1b11b310be61e51b3ac5ebb83f7c8a33aef3d6e8 (diff) | |
download | uscxml-b62e7979600feee23dc7cdb61042a8fc7673122b.zip uscxml-b62e7979600feee23dc7cdb61042a8fc7673122b.tar.gz uscxml-b62e7979600feee23dc7cdb61042a8fc7673122b.tar.bz2 |
Major Refactoring v2.0
Diffstat (limited to 'test/issues/test-issue69.scxml')
-rw-r--r-- | test/issues/test-issue69.scxml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/test/issues/test-issue69.scxml b/test/issues/test-issue69.scxml new file mode 100644 index 0000000..f5b20ab --- /dev/null +++ b/test/issues/test-issue69.scxml @@ -0,0 +1,57 @@ +<scxml datamodel="lua" initial="Level_1" name="Simulator" version="1.0" xmlns="http://www.w3.org/2005/07/scxml"> + <state id="Level_1" initial="Level_2_a"> + <transition event="error.*" target="fail"/> + <transition event="Quit" target="pass"/> + <state id="Level_2_a" initial="FlashProcess"> + <transition event="Stop" target="Level_2_b"/> + <state id="FlashProcess"> + <invoke autoforward="true" type="scxml"> + <content> + <scxml datamodel="lua" initial="Flash" name="Flasher" version="1.0" xmlns="http://www.w3.org/2005/07/scxml"> + <state id="Flash"> + <onexit> + <log expr="'Why onexit does not work?'"/> + </onexit> + <transition event="error" target="fail"/> + <initial> + <transition target="Off"/> + </initial> + <state id="Off"> + <onentry> + <send delay="100ms" event="DoOn"/> + <log expr="'Flash off'"/> + </onentry> + <transition event="DoOn" target="On"/> + </state> + <state id="On"> + <onentry> + <send delay="100ms" event="DoOff"/> + <log expr="'Flash on'"/> + </onentry> + <transition event="DoOff" target="Off"/> + </state> + </state> + <final id="fail"/> + </scxml> + </content> + </invoke> + <onentry> + <send delay="300ms" event="Pause"/> + </onentry> + <transition event="Pause" target="OnPause"/> + </state> + <state id="OnPause"> + <onentry> + <send delay="300ms" event="Stop"/> + </onentry> + </state> + </state> + <state id="Level_2_b"> + <onentry> + <send delay="300ms" event="Quit"/> + </onentry> + </state> + </state> + <final id="pass"/> + <final id="fail"/> +</scxml>
\ No newline at end of file |