summaryrefslogtreecommitdiffstats
path: root/test/uscxml/test-invoked.scxml
diff options
context:
space:
mode:
Diffstat (limited to 'test/uscxml/test-invoked.scxml')
-rw-r--r--test/uscxml/test-invoked.scxml29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/uscxml/test-invoked.scxml b/test/uscxml/test-invoked.scxml
new file mode 100644
index 0000000..f34ed5c
--- /dev/null
+++ b/test/uscxml/test-invoked.scxml
@@ -0,0 +1,29 @@
+<!-- This is invoked in test-communications.scxml from a scxml invoker -->
+<scxml datamodel="ecmascript">
+ <state id="start">
+ <onentry>
+ <script>
+ foo = {
+ "atom": "urghs",
+ "array": [0,1,2,3,4],
+ "compound": {
+ "key1": "value1",
+ "key2": "value2",
+ "key3": "value3",
+ }
+ };
+ bar = "This is some string";
+ </script>
+ <log expr="'Message from the invoked scxml interpreter'" type="http://www.w3.org/TR/scxml/#Anything" id="thisOne" />
+ <send target="#_parent" event="transitionToNext" namelist="foo bar">
+ <param name="bar" expr="bar" />
+ <content>
+This is some content!
+ </content>
+ </send>
+ </onentry>
+
+ <transition target="done" />
+ </state>
+ <state id="done" final="true" />
+</scxml> \ No newline at end of file