diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-09-02 21:38:10 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-09-02 21:38:10 (GMT) |
commit | 7938e286967597c7168b855b7e3fdfbd9b949e0e (patch) | |
tree | bc5d9bfb80a07ec80b36dc025b3fac9f3ca03ec4 /test | |
parent | a874a181add7b292e52140f8c753f663a4cb5a87 (diff) | |
download | uscxml-7938e286967597c7168b855b7e3fdfbd9b949e0e.zip uscxml-7938e286967597c7168b855b7e3fdfbd9b949e0e.tar.gz uscxml-7938e286967597c7168b855b7e3fdfbd9b949e0e.tar.bz2 |
New file element for executable content
Diffstat (limited to 'test')
-rw-r--r-- | test/samples/uscxml/test-file-element.scxml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/samples/uscxml/test-file-element.scxml b/test/samples/uscxml/test-file-element.scxml new file mode 100644 index 0000000..baeafae --- /dev/null +++ b/test/samples/uscxml/test-file-element.scxml @@ -0,0 +1,17 @@ +<scxml datamodel="ecmascript"> + <!-- This exemplifies the file element and TypedArrays in _event['data']['content'] --> + <script src="http://uscxml.tk.informatik.tu-darmstadt.de/scripts/dump.js" /> + <state id="read"> + <onentry> + <file url="foo.bin" operation="read" type="binary" callback="foo.bin" /> + </onentry> + <transition event="foo.bin" target="write"> + <log expr="dump(_event)" /> + </transition> + </state> + <state id="write"> + <onentry> + <file url="bar.bin" operation="write" type="binary" contentexpr="_event['data']['content']" /> + </onentry> + </state> +</scxml>
\ No newline at end of file |