summaryrefslogtreecommitdiffstats
path: root/test/uscxml/test-umundo-rpc.scxml
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2016-05-12 13:12:33 (GMT)
committerStefan Radomski <github@mintwerk.de>2016-05-12 13:12:33 (GMT)
commitb62e7979600feee23dc7cdb61042a8fc7673122b (patch)
treef7351372f37979dd2d048e0b68a16a4cd3b2aadb /test/uscxml/test-umundo-rpc.scxml
parent1b11b310be61e51b3ac5ebb83f7c8a33aef3d6e8 (diff)
downloaduscxml-b62e7979600feee23dc7cdb61042a8fc7673122b.zip
uscxml-b62e7979600feee23dc7cdb61042a8fc7673122b.tar.gz
uscxml-b62e7979600feee23dc7cdb61042a8fc7673122b.tar.bz2
Major Refactoring v2.0
Diffstat (limited to 'test/uscxml/test-umundo-rpc.scxml')
-rw-r--r--test/uscxml/test-umundo-rpc.scxml60
1 files changed, 0 insertions, 60 deletions
diff --git a/test/uscxml/test-umundo-rpc.scxml b/test/uscxml/test-umundo-rpc.scxml
deleted file mode 100644
index f6e0f70..0000000
--- a/test/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>