diff options
author | Stefan Radomski <github@mintwerk.de> | 2016-05-12 13:12:33 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2016-05-12 13:12:33 (GMT) |
commit | b62e7979600feee23dc7cdb61042a8fc7673122b (patch) | |
tree | f7351372f37979dd2d048e0b68a16a4cd3b2aadb /test/uscxml/test-http-servlet.scxml | |
parent | 1b11b310be61e51b3ac5ebb83f7c8a33aef3d6e8 (diff) | |
download | uscxml-b62e7979600feee23dc7cdb61042a8fc7673122b.zip uscxml-b62e7979600feee23dc7cdb61042a8fc7673122b.tar.gz uscxml-b62e7979600feee23dc7cdb61042a8fc7673122b.tar.bz2 |
Major Refactoring v2.0
Diffstat (limited to 'test/uscxml/test-http-servlet.scxml')
-rw-r--r-- | test/uscxml/test-http-servlet.scxml | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/test/uscxml/test-http-servlet.scxml b/test/uscxml/test-http-servlet.scxml deleted file mode 100644 index 8836b76..0000000 --- a/test/uscxml/test-http-servlet.scxml +++ /dev/null @@ -1,41 +0,0 @@ -<scxml datamodel="ecmascript"> - <script src="http://uscxml.tk.informatik.tu-darmstadt.de/scripts/dump.js" /> - <state id="start"> - <!-- - I went for explicit invokers instead of a response element in executable content - as it provides better control on the path where to serve data. - --> - <invoke type="httpserver" id="servlet.data"> - <!-- server path where to listen --> - <param name="path" expr="'data'" /> - <!-- the name of events originating from requests at this url --> - <param name="callback" expr="'http.data'" /> - </invoke> - <invoke type="httpserver" id="servlet.exit"> - <param name="path" expr="'exit'" /> - <param name="callback" expr="'http.exit'" /> - </invoke> - <state id="loop"> - <transition event="http.data" target="loop"> - <script> - dump(_event); - </script> - <!-- Sending a http reply is to send the invoker id a "reply.<requestId>" event --> - <send target="#_servlet.data" eventexpr="'reply.' + _event.data.reqId"> - <!-- This will end up as a header field --> - <param name="Foo" expr="_ioprocessors" /> - <!-- JSON string in the content --> - <content expr="_ioprocessors" /> - </send> - </transition> - <transition event="http.exit" target="final"> - <script> - dump(_event); - </script> - <!-- This will never get delivered as we terminate before --> - <send target="#_servlet.exit" eventexpr="'reply.' + _event.data.reqId" /> - </transition> - </state> - </state> - <final id="final" /> -</scxml>
\ No newline at end of file |