summaryrefslogtreecommitdiffstats
path: root/test/src/issues/test-issue68.scxml
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/issues/test-issue68.scxml')
-rw-r--r--test/src/issues/test-issue68.scxml29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/src/issues/test-issue68.scxml b/test/src/issues/test-issue68.scxml
new file mode 100644
index 0000000..cd99bc0
--- /dev/null
+++ b/test/src/issues/test-issue68.scxml
@@ -0,0 +1,29 @@
+<scxml datamodel="lua" initial="work" name="root" version="1.0" xmlns="http://www.w3.org/2005/07/scxml">
+ <datamodel>
+ <data expr="0" id="testvar1"/>
+ </datamodel>
+ <state id="work" initial="act1">
+ <transition event="OnTimer" target="fail"/>
+ <transition cond="testvar1&gt;3" target="pass"/>
+ <state id="act1">
+ <onentry>
+ <send delay="3000ms" event="OnTimer" id="ID_OnTimer"/>
+ <send delay="300ms" event="OnDone"/>
+ <assign expr="testvar1 + 1" location="testvar1"/>
+ <log expr="testvar1" />
+ </onentry>
+ <onexit>
+ <cancel sendid="ID_OnTimer"/>
+ </onexit>
+ <transition event="OnDone" target="act2"/>
+ </state>
+ <state id="act2">
+ <onentry>
+ <send delay="1000ms" event="Back"/>
+ </onentry>
+ <transition event="Back" target="act1"/>
+ </state>
+ </state>
+ <final id="fail"/>
+ <final id="pass"/>
+</scxml>