diff options
Diffstat (limited to 'test/w3c/lua/test580.scxml')
-rw-r--r-- | test/w3c/lua/test580.scxml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/test/w3c/lua/test580.scxml b/test/w3c/lua/test580.scxml new file mode 100644 index 0000000..da066b3 --- /dev/null +++ b/test/w3c/lua/test580.scxml @@ -0,0 +1,37 @@ +<?xml version="1.0" standalone="no"?> +<!-- test that a history state never ends up part of the configuration --> +<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" initial="p1" datamodel="lua"> + <datamodel> + <data expr="0" id="testvar1"/> + </datamodel> + <parallel id="p1"> + <onentry> + <send delay="2s" event="timeout"/> + </onentry> + <state id="s0"> + <transition cond="In('sh1')" target="fail"/> + <transition event="timeout" target="fail"/> + </state> + <state id="s1"> + <initial> + <transition target="sh1"/> + </initial> + <history id="sh1"> + <transition target="s11"/> + </history> + <state id="s11"> + <transition cond="In('sh1')" target="fail"/> + <transition target="s12"/> + </state> + <state id="s12"/> + <transition cond="In('sh1')" target="fail"/> + <transition target="sh1" cond="testvar1 == 0"/> + <transition cond="testvar1 == 1" target="pass"/> + <onexit> + <assign location="testvar1" expr="testvar1+1"/> + </onexit> + </state> + </parallel> + <final id="pass"/> + <final id="fail"/> +</scxml> |