diff options
author | Stefan Radomski <github@mintwerk.de> | 2016-10-25 11:59:18 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2016-10-25 11:59:18 (GMT) |
commit | 954a1eb75f2abc81da1e09701d700674f0baddfb (patch) | |
tree | 873eb6412e958ecd53214ddbd6a3e17465da5100 /test/uscxml/promela/test-event-source.scxml | |
parent | 1a1513c6497e8818eb2a92a8fbf77d4c60bc911e (diff) | |
download | uscxml-954a1eb75f2abc81da1e09701d700674f0baddfb.zip uscxml-954a1eb75f2abc81da1e09701d700674f0baddfb.tar.gz uscxml-954a1eb75f2abc81da1e09701d700674f0baddfb.tar.bz2 |
Worked on PROMELA transformation
Diffstat (limited to 'test/uscxml/promela/test-event-source.scxml')
-rw-r--r-- | test/uscxml/promela/test-event-source.scxml | 39 |
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 |