diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-05-14 14:29:19 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-05-14 14:29:19 (GMT) |
commit | a154682fc1b25581742d38dd5fe9aa06ede167b7 (patch) | |
tree | 7574933b0cc8767a963ca1198425ba9e071374c6 /test/samples/uscxml/test-jvoicexml.scxml | |
parent | a49c068652d82ab40386bb702d0bd01e46015e7c (diff) | |
download | uscxml-a154682fc1b25581742d38dd5fe9aa06ede167b7.zip uscxml-a154682fc1b25581742d38dd5fe9aa06ede167b7.tar.gz uscxml-a154682fc1b25581742d38dd5fe9aa06ede167b7.tar.bz2 |
Fixed bugs and worked on MMI bridge
Diffstat (limited to 'test/samples/uscxml/test-jvoicexml.scxml')
-rw-r--r-- | test/samples/uscxml/test-jvoicexml.scxml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/test/samples/uscxml/test-jvoicexml.scxml b/test/samples/uscxml/test-jvoicexml.scxml new file mode 100644 index 0000000..691a951 --- /dev/null +++ b/test/samples/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 |