diff options
Diffstat (limited to 'test/samples/uscxml/test-umundo-rpc.scxml')
-rw-r--r-- | test/samples/uscxml/test-umundo-rpc.scxml | 60 |
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> |