diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-01-23 20:18:34 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-01-23 20:18:34 (GMT) |
commit | e1f59bb39d4722d0693e22b362ba834256f4d79c (patch) | |
tree | ad6ffe7b1ff54b3ba523a2f6886b8426d60e094d /test/samples/uscxml/test-imap.scxml | |
parent | 956db4a059f5151b883f8d6febea3d2a7fd56104 (diff) | |
download | uscxml-e1f59bb39d4722d0693e22b362ba834256f4d79c.zip uscxml-e1f59bb39d4722d0693e22b362ba834256f4d79c.tar.gz uscxml-e1f59bb39d4722d0693e22b362ba834256f4d79c.tar.bz2 |
IMAP Invoker functional
Diffstat (limited to 'test/samples/uscxml/test-imap.scxml')
-rw-r--r-- | test/samples/uscxml/test-imap.scxml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/test/samples/uscxml/test-imap.scxml b/test/samples/uscxml/test-imap.scxml new file mode 100644 index 0000000..13e4ec2 --- /dev/null +++ b/test/samples/uscxml/test-imap.scxml @@ -0,0 +1,42 @@ +<scxml datamodel="ecmascript"> + <script src="http://uscxml.tk.informatik.tu-darmstadt.de/scripts/dump.js" /> + <script> +//<![CDATA[ + someBinaryData1 = new ArrayBuffer(256); + var view = new Uint8Array(someBinaryData1); + for (var i = 0; i < view.length; i++) { + view[i] = i; + } +//]]> + </script> + + <state id="main"> + + <invoke type="imap" id="imap"> + <param name="ssl" expr="'true'" /> + <param name="username" expr="'sradomski'" /> + <param name="password" expr="''" /> + <param name="server" expr="'imap://localhost'" /> + <finalize><script>dump(_event)</script></finalize> + </invoke> + + <onentry> + <send event="continue" delay="200ms" /> + </onentry> + + <transition event="continue"> + <send target="#_imap" event="select"> + <param name="verbose" expr="'off'" /> + <param name="mailbox" expr="'Bar.Test1'" /> + </send> + + <!-- <send target="#_imap" event="list"> + <param name="verbose" expr="'off'" /> + <param name="reference" expr="'*'" /> + <param name="mailbox" expr="''" /> + </send> --> + + </transition> + + </state> +</scxml>
\ No newline at end of file |