summaryrefslogtreecommitdiffstats
path: root/test/samples
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-02-08 12:26:42 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-02-08 12:26:42 (GMT)
commit71a3ca4fd78d7a9cca844e81f29f48b9c36bd4c7 (patch)
tree57a294052ce41ed131f458d4fb083fce3b743ef4 /test/samples
parent275bf3fd017ca27c021d4c10cc9d3d82fff13922 (diff)
downloaduscxml-71a3ca4fd78d7a9cca844e81f29f48b9c36bd4c7.zip
uscxml-71a3ca4fd78d7a9cca844e81f29f48b9c36bd4c7.tar.gz
uscxml-71a3ca4fd78d7a9cca844e81f29f48b9c36bd4c7.tar.bz2
Fixed history
Diffstat (limited to 'test/samples')
-rw-r--r--test/samples/uscxml/test-communication.scxml10
-rw-r--r--test/samples/uscxml/test-umundo-pingpong.scxml21
2 files changed, 30 insertions, 1 deletions
diff --git a/test/samples/uscxml/test-communication.scxml b/test/samples/uscxml/test-communication.scxml
index 8b1b380..4811a3f 100644
--- a/test/samples/uscxml/test-communication.scxml
+++ b/test/samples/uscxml/test-communication.scxml
@@ -43,7 +43,15 @@ This is some content you got there dude!
<log expr="'Calling finalize on returned event'" />
</finalize>
</invoke>
- <transition event="transitionToNext" target="final" />
+ <transition event="transitionToNext" target="step3" />
+ </state>
+ <state id="step3">
+ <onentry>
+ <log expr="'Entered step3'" />
+ <log expr="'Sending an invalid request'" />
+ <send target="http://www.sgsdfgsdfgasdf.com" type="basichttp" event="transitionToNext" />
+ </onentry>
+ <transition event="error.communication" target="final" />
</state>
<final id="final">
<onentry>
diff --git a/test/samples/uscxml/test-umundo-pingpong.scxml b/test/samples/uscxml/test-umundo-pingpong.scxml
new file mode 100644
index 0000000..93be19d
--- /dev/null
+++ b/test/samples/uscxml/test-umundo-pingpong.scxml
@@ -0,0 +1,21 @@
+<scxml datamodel="ecmascript">
+ <script src="http://uscxml.tk.informatik.tu-darmstadt.de/scripts/dump.js" />
+ <state id="start">
+ <invoke type="heartbeat" id="heartbeat.1s">
+ <param name="interval" expr="'1s'" />
+ </invoke>
+ <!-- invoke type="umundo" id="scxml.umundo">
+ <param name="channel" expr="'pingpong'" />
+ <finalize>
+ <script>
+ dump(_event);
+ </script>
+ </finalize>
+ </invoke -->
+ <onentry>
+ <log expr="'Entering start'" />
+ <!-- send target="#_scxml.umundo" delay="0s" event="send" / -->
+ </onentry>
+ <transition target="start" event="heartbeat" />
+ </state>
+</scxml> \ No newline at end of file