summaryrefslogtreecommitdiffstats
path: root/test/samples/uscxml/test-instant-messaging.scxml
diff options
context:
space:
mode:
Diffstat (limited to 'test/samples/uscxml/test-instant-messaging.scxml')
-rw-r--r--test/samples/uscxml/test-instant-messaging.scxml20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/samples/uscxml/test-instant-messaging.scxml b/test/samples/uscxml/test-instant-messaging.scxml
new file mode 100644
index 0000000..569ec59
--- /dev/null
+++ b/test/samples/uscxml/test-instant-messaging.scxml
@@ -0,0 +1,20 @@
+<scxml datamodel="ecmascript">
+ <script src="http://uscxml.tk.informatik.tu-darmstadt.de/scripts/dump.js" />
+ <state id="idle">
+ <onentry>
+ <send event="dump" delay="100ms" />
+ </onentry>
+
+ <invoke type="instant-messaging" id="im">
+ <param name="username" expr="'uscxml@localhost'" />
+ <param name="password" expr="'password'" />
+ <param name="protocol" expr="'prpl-jabber'" />
+ </invoke>
+
+ <state id="dump">
+ <transition event="dump" target="dump">
+ <script>dump(_invokers['im']);</script>
+ </transition>
+ </state>
+ </state>
+</scxml> \ No newline at end of file