summaryrefslogtreecommitdiffstats
path: root/test/uscxml/test-jvoicexml.scxml
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2016-05-12 13:12:33 (GMT)
committerStefan Radomski <github@mintwerk.de>2016-05-12 13:12:33 (GMT)
commitb62e7979600feee23dc7cdb61042a8fc7673122b (patch)
treef7351372f37979dd2d048e0b68a16a4cd3b2aadb /test/uscxml/test-jvoicexml.scxml
parent1b11b310be61e51b3ac5ebb83f7c8a33aef3d6e8 (diff)
downloaduscxml-b62e7979600feee23dc7cdb61042a8fc7673122b.zip
uscxml-b62e7979600feee23dc7cdb61042a8fc7673122b.tar.gz
uscxml-b62e7979600feee23dc7cdb61042a8fc7673122b.tar.bz2
Major Refactoring v2.0
Diffstat (limited to 'test/uscxml/test-jvoicexml.scxml')
-rw-r--r--test/uscxml/test-jvoicexml.scxml116
1 files changed, 0 insertions, 116 deletions
diff --git a/test/uscxml/test-jvoicexml.scxml b/test/uscxml/test-jvoicexml.scxml
deleted file mode 100644
index 706541b..0000000
--- a/test/uscxml/test-jvoicexml.scxml
+++ /dev/null
@@ -1,116 +0,0 @@
-<?xml version="1.0"?>
-<scxml xmlns="http://www.w3.org/2005/07/scxml" xmlns:vxml="http://www.w3.org/2001/vxml" datamodel="ecmascript">
- <!-- get dump() function into datamodel -->
- <script src="file:///Users/sradomski/Desktop/dump.js"/>
- <script>
- vxmlTargetURL = "http://localhost:9090/mmi";
- </script>
-
- <state id="prompts">
- <transition event="error" target="done">
- <log expr="'An error occured:' + _event" />
- </transition>
-
- <state id="vxmlPrompt1">
- <!-- Test that rendering a prompt sends start and done events -->
- <invoke type="vxml" id="vxml">
- <param name="target" expr="vxmlTargetURL"/>
- <content>
- <vxml:prompt>Testing start and done events</vxml:prompt>
- </content>
- <finalize>
- <script>dump(_event);</script>
- </finalize>
- </invoke>
-
- <state id="waitForPrompt1Start">
- <transition event="vxml.output.start" target="waitForPrompt1Done"/>
- </state>
- <state id="waitForPrompt1Done">
- <transition event="vxml.output.done" target="vxmlPrompt2"/>
- </state>
- </state>
-
-
- <state id="vxmlPrompt2">
- <!-- Test prompts in form with goto -->
- <invoke type="vxml" id="vxml">
- <param name="target" expr="vxmlTargetURL"/>
- <content>
- <vxml:vxml version="2.1">
- <vxml:form id="say_hello">
- <vxml:block>
- Testing prompts in form
- <vxml:goto next="#say_goodbye"/>
- </vxml:block>
- </vxml:form>
- <vxml:form id="say_goodbye">
- <vxml:block>
- <vxml:prompt>with goto</vxml:prompt>
- </vxml:block>
- </vxml:form>
- </vxml:vxml>
- </content>
- <finalize>
- <script>dump(_event);</script>
- </finalize>
- </invoke>
-
- <state id="waitForPrompt2HelloStart">
- <transition event="vxml.output.start" target="waitForPrompt2HelloDone"/>
- </state>
- <state id="waitForPrompt2HelloDone">
- <transition event="vxml.output.done" target="waitForPrompt2ByeStart"/>
- </state>
- <state id="waitForPrompt2ByeStart">
- <transition event="vxml.output.start" target="waitForPrompt2ByeDone"/>
- </state>
- <state id="waitForPrompt2ByeDone">
- <transition event="vxml.output.done" target="waitForPrompt2HelloDone"/>
- </state>
- </state>
- </state>
-
-
-
- <state id="forms">
- <transition event="error" target="done">
- <log expr="'An error occured:' + _event" />
- </transition>
-
- <invoke type="vxml" id="vxml">
- <param name="target" expr="vxmlTargetURL"/>
- <content>
- <vxml:vxml version="2.1">
- <vxml:form id="launch_missiles">
- <vxml:field name="user_id" type="digits">
- <vxml:prompt>What is your username</vxml:prompt>
- </vxml:field>
- <vxml:field name="password">
- <vxml:prompt>What is the code word?</vxml:prompt>
- <vxml:grammar version="1.0" root="root">
- <vxml:rule id="root" scope="public">rutabaga</vxml:rule>
- </vxml:grammar>
- <vxml:help>It is the name of an obscure vegetable.</vxml:help>
- <vxml:catch event="nomatch noinput" count="3">
- <vxml:prompt>Security violation!</vxml:prompt>
- </vxml:catch>
- </vxml:field>
- </vxml:form>
- </vxml:vxml>
- </content>
- <finalize>
- <script>dump(_event);</script>
- </finalize>
- </invoke>
-
- <state id="waitForMissileEvents">
- <transition event="vxml.input.field.user_id" target="done">
- <log expr="'Welcome ' + _event.data.value + ' please provide credentials!'" />
- </transition>
- <transition event="vxml.input.field.password" />
- </state>
- </state>
-
- <final id="done" />
-</scxml>