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-postpone-element.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-postpone-element.scxml')
-rw-r--r-- | test/uscxml/test-postpone-element.scxml | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/test/uscxml/test-postpone-element.scxml b/test/uscxml/test-postpone-element.scxml deleted file mode 100644 index 185f367..0000000 --- a/test/uscxml/test-postpone-element.scxml +++ /dev/null @@ -1,41 +0,0 @@ -<scxml datamodel="ecmascript" name="postpone"> - <script src="http://uscxml.tk.informatik.tu-darmstadt.de/scripts/dump.js" /> - <script> - var blocked = true; - </script> - <state id="idle"> - - <!-- request will be postponed until someone unblocks --> - <transition event="http" target="idle" cond="_event.data.pathComponent[1] == 'block'"> - <if cond="blocked"> - <log expr="'Postponing'" /> - <postpone until="blocked == false;" /> - <else> - <response status="200" requestexpr="_event.origin"> - <content expr="blocked" /> - </response> - </else> - </if> - </transition> - - <!-- unblock - this triggers all postponed events --> - <transition event="http" target="idle" cond="_event.data.pathComponent[1] == 'unblock'"> - <log expr="'Unblocking'" /> - <script>blocked = false;</script> - <response status="200" requestexpr="_event.origin"> - <content expr="blocked" /> - </response> - </transition> - - <!-- default --> - <transition event="http" target="idle" cond=" - _event.data.pathComponent[1] != 'unblock' && - _event.data.pathComponent[1] != 'block' - "> - <script>dump(_event);</script> - <response status="200" requestexpr="_event.origin" /> - </transition> - - </state> - <state id="final" final="true" /> -</scxml>
\ No newline at end of file |