summaryrefslogtreecommitdiffstats
path: root/test/uscxml/test-jvoicexml.scxml
diff options
context:
space:
mode:
Diffstat (limited to 'test/uscxml/test-jvoicexml.scxml')
-rw-r--r--test/uscxml/test-jvoicexml.scxml57
1 files changed, 57 insertions, 0 deletions
diff --git a/test/uscxml/test-jvoicexml.scxml b/test/uscxml/test-jvoicexml.scxml
new file mode 100644
index 0000000..691a951
--- /dev/null
+++ b/test/uscxml/test-jvoicexml.scxml
@@ -0,0 +1,57 @@
+<scxml xmlns="http://www.w3.org/2005/07/scxml"
+ xmlns:vxml="http://www.w3.org/2001/vxml"
+ datamodel="ecmascript">
+ <script src="http://uscxml.tk.informatik.tu-darmstadt.de/scripts/dump.js" />
+ <state id="start">
+ <invoke type="heartbeat">
+ <param name="interval" expr="'4s'" />
+ </invoke>
+
+ <invoke type="vxml" id="vxml">
+ <finalize>
+ <script>
+ dump(_event);
+ </script>
+ </finalize>
+ </invoke>
+
+ <onentry>
+ <log expr="'Starting!!'" />
+ </onentry>
+
+ <state id="idle">
+ <onentry>
+ <log expr="'Idling!'" />
+ </onentry>
+
+ <transition event="heartbeat.4s" target="vxmlHello">
+ <log expr="'Foo!'" />
+ </transition>
+ </state>
+
+ <state id="vxmlHello">
+ <onentry>
+ <send target="#_vxml">
+ <content>
+ <vxml:vxml version="2.1" xml:lang="en"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schematicLocation="http://www.w3.org/2001/vxml http://www.w3.org/TR/voicexml20/vxml.xsd">
+ <vxml:form id="say_hello">
+ <vxml:block>
+ Hello World!
+ <vxml:goto next="#say_goodbye" />
+ </vxml:block>
+ </vxml:form>
+ <vxml:form id="say_goodbye">
+ <vxml:block>
+ <vxml:prompt>Goodbye!</vxml:prompt>
+ </vxml:block>
+ </vxml:form>
+ </vxml:vxml>
+ </content>
+ </send>
+ </onentry>
+ <transition target="idle" />
+ </state>
+ </state>
+</scxml> \ No newline at end of file