summaryrefslogtreecommitdiffstats
path: root/test/samples/uscxml/test-umundo-rpc.scxml
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-04-22 14:02:03 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-04-22 14:02:03 (GMT)
commit1fb6bcf30f954e426f2d3002d14887574fb941dd (patch)
tree08cff7f2b879c50efe79e3c04d255075522af862 /test/samples/uscxml/test-umundo-rpc.scxml
parent71c334bf4e35559496feac3f3cf00b72ceb88812 (diff)
downloaduscxml-1fb6bcf30f954e426f2d3002d14887574fb941dd.zip
uscxml-1fb6bcf30f954e426f2d3002d14887574fb941dd.tar.gz
uscxml-1fb6bcf30f954e426f2d3002d14887574fb941dd.tar.bz2
Major refactoring
- Moved tests - Changes to promela datamodel - Implemented Trie
Diffstat (limited to 'test/samples/uscxml/test-umundo-rpc.scxml')
-rw-r--r--test/samples/uscxml/test-umundo-rpc.scxml60
1 files changed, 0 insertions, 60 deletions
diff --git a/test/samples/uscxml/test-umundo-rpc.scxml b/test/samples/uscxml/test-umundo-rpc.scxml
deleted file mode 100644
index f6e0f70..0000000
--- a/test/samples/uscxml/test-umundo-rpc.scxml
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0"?>
-<scxml datamodel="ecmascript">
- <script>
- function dump(thingy) {
- if (typeof(thingy) == 'object') {
- for (var key in thingy) {
- print(key + ": ")
- dump(thingy[key]);
- }
- } else {
- print(thingy + "\n");
- }
- };
- </script>
- <state id="start">
- <!-- Invoke umundo with a service query -->
- <invoke type="umundo" id="umundo.eventSvc">
- <param name="types" expr="'proto'"/>
- <param name="service" expr="'EchoService'"/>
- <finalize>
- <log expr="'Calling finalize on returned event'"/>
- </finalize>
- </invoke>
- <state id="idle">
- <transition target="service.added" event="umundo.eventSvc.added"/>
- <transition target="service.removed" event="umundo.eventSvc.removed"/>
- <transition target="service.reply" event="umundo.eventSvc.reply.echo"/>
- </state>
- <state id="service.reply">
- <onentry>
- <log expr="'RPC Reply:'"/>
- <script>dump(_event);</script>
- </onentry>
- <transition target="idle"/>
- </state>
-
- <state id="service.added">
- <onentry>
- <log expr="'Log Service found:'"/>
- <script>dump(_event);</script>
- <send target="#_umundo.eventSvc" event="echo">
- <param name="type" expr="'EchoRequest'"/>
- <content>
- ({
- "name": "This is foo!"
- })
- </content>
- </send>
- </onentry>
- <transition target="idle"/>
- </state>
- <state id="service.removed">
- <onentry>
- <log expr="'Log Service lost:'"/>
- <script>dump(_event);</script>
- </onentry>
- <transition target="idle"/>
- </state>
- </state>
-</scxml>