summaryrefslogtreecommitdiffstats
path: root/test/uscxml/promela/test-event-source.scxml
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-04-24 14:50:34 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-04-24 14:50:34 (GMT)
commit363250f8a9e33dc3f198f114fdfccd100b55ca12 (patch)
tree539c0b085c1071a02ffb1529bfa76585ed109617 /test/uscxml/promela/test-event-source.scxml
parent6b53548ae32336db822d6e6af0e14413c82c74dd (diff)
downloaduscxml-363250f8a9e33dc3f198f114fdfccd100b55ca12.zip
uscxml-363250f8a9e33dc3f198f114fdfccd100b55ca12.tar.gz
uscxml-363250f8a9e33dc3f198f114fdfccd100b55ca12.tar.bz2
More tests for promela datamodel
Diffstat (limited to 'test/uscxml/promela/test-event-source.scxml')
-rw-r--r--test/uscxml/promela/test-event-source.scxml39
1 files changed, 39 insertions, 0 deletions
diff --git a/test/uscxml/promela/test-event-source.scxml b/test/uscxml/promela/test-event-source.scxml
new file mode 100644
index 0000000..3816bd0
--- /dev/null
+++ b/test/uscxml/promela/test-event-source.scxml
@@ -0,0 +1,39 @@
+<scxml datamodel="promela">
+ <state id="s0">
+ <invoke type="scxml">
+ <!-- Sends a single event and exits -->
+ <!--
+ #promela-event-source-custom:
+ if
+ :: 1 -> eQ!#to.s1#; goto #DONE#; // end this invoker
+ fi;
+ -->
+ <content>
+ <scxml>
+ <state id="s0">
+ <onentry>
+ <send target="#_parent" event="to.s1" />
+ </onentry>
+ </state>
+ </scxml>
+ </content>
+ </invoke>
+ <transition event="to.s1" target="s1" />
+ </state>
+ <state id="s1">
+ <onentry>
+ <!-- Send event to our external queue -->
+ <send event="to.s2" />
+ </onentry>
+ <transition event="to.s2" target="s2" />
+ </state>
+ <state id="s2">
+ <onentry>
+ <!-- Send event to our internal queue -->
+ <raise event="to.s3" />
+ </onentry>
+ <transition event="to.s3" target="s3" />
+ </state>
+
+ <state id="s3" final="true" />
+</scxml> \ No newline at end of file