summaryrefslogtreecommitdiffstats
path: root/test/issues
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2017-05-10 20:48:14 (GMT)
committerStefan Radomski <github@mintwerk.de>2017-05-10 20:48:14 (GMT)
commita33a96fd7aee6d53f663102c56236e91d77f53a7 (patch)
tree3a27a07f8f4eeddd233b2bb8ed9a5c43c36077c6 /test/issues
parent5083ea697c263a507341c98c5dadbb23953bd4fb (diff)
downloaduscxml-a33a96fd7aee6d53f663102c56236e91d77f53a7.zip
uscxml-a33a96fd7aee6d53f663102c56236e91d77f53a7.tar.gz
uscxml-a33a96fd7aee6d53f663102c56236e91d77f53a7.tar.bz2
Fixed issue 114
Diffstat (limited to 'test/issues')
-rw-r--r--test/issues/test-issue121.child29
-rw-r--r--test/issues/test-issue121.scxml21
2 files changed, 50 insertions, 0 deletions
diff --git a/test/issues/test-issue121.child b/test/issues/test-issue121.child
new file mode 100644
index 0000000..4d4aeb2
--- /dev/null
+++ b/test/issues/test-issue121.child
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<scxml xmlns="http://www.w3.org/2005/07/scxml" name="child" version="1.0" datamodel="promela">
+ <datamodel>
+ <data id="p_id" type="int" expr="0"/>
+ <data id="child_id" type="int" expr="0"/>
+ </datamodel>
+ <state id="sc" initial="sc_01">
+ <onentry>
+ <assign location="child_id" expr="p_id"/>
+ <log label="Hello, I am invoker number" expr="child_id" />
+ </onentry>
+ <state id="sc_01">
+ <onentry>
+ <log label="state sc_01 of invoker number" expr="child_id"/>
+ <send event="sc01_over" delayexpr="500"/>
+ </onentry>
+ <transition event="sc01_over" target="sc_02"/>
+ </state>
+ <state id="sc_02">
+ <onentry>
+ <log label="state sc_02 of invoker number" expr="child_id"/>
+ <send event="Random_Event" delayexpr="300" target="#_parent">
+ <param name="var1" type="int" expr="child_id" />
+ </send>
+ </onentry>
+ <transition event="Random_Event2" target="sc"/>
+ </state>
+ </state>
+</scxml> \ No newline at end of file
diff --git a/test/issues/test-issue121.scxml b/test/issues/test-issue121.scxml
new file mode 100644
index 0000000..d5bf353
--- /dev/null
+++ b/test/issues/test-issue121.scxml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<scxml xmlns="http://www.w3.org/2005/07/scxml" initial="s0" version="1.0" datamodel="promela">
+ <datamodel>
+ <data id="var1" type="int" />
+ </datamodel>
+ <state id="s0" initial="s01">
+ <invoke src="test-issue121.child" type="http://www.w3.org/TR/scxml/" id="pOne">
+ <param name="p_id" type="int" expr="1" />
+ </invoke>
+ <invoke src="test-issue121.child" type="http://www.w3.org/TR/scxml/" id="pTwo">
+ <param name="p_id" type="int" expr="2" />
+ </invoke>
+ <state id="s01">
+ <transition event="Random_Event">
+ <assign location="var1" expr="_event.data.var1"/>
+ <log label="var1 value" expr="var1"/>
+ </transition>
+ </state>
+ </state>
+</scxml>
+ \ No newline at end of file