diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-08-13 15:02:25 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-08-13 15:02:25 (GMT) |
commit | 66b0852b0618cc4bfff08d47aa0af56353226190 (patch) | |
tree | f1194ccb83779aef83e6d4afbfe8aee0aaedd224 /test/uscxml/test-jvoicexml.scxml | |
parent | fe941ab36b44f083886c07a72d371b2cfba55fe3 (diff) | |
download | uscxml-66b0852b0618cc4bfff08d47aa0af56353226190.zip uscxml-66b0852b0618cc4bfff08d47aa0af56353226190.tar.gz uscxml-66b0852b0618cc4bfff08d47aa0af56353226190.tar.bz2 |
Started renewed VoiceXMLInvoker
Diffstat (limited to 'test/uscxml/test-jvoicexml.scxml')
-rw-r--r-- | test/uscxml/test-jvoicexml.scxml | 70 |
1 files changed, 32 insertions, 38 deletions
diff --git a/test/uscxml/test-jvoicexml.scxml b/test/uscxml/test-jvoicexml.scxml index 691a951..311f1c8 100644 --- a/test/uscxml/test-jvoicexml.scxml +++ b/test/uscxml/test-jvoicexml.scxml @@ -2,56 +2,50 @@ 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'" /> + <param name="interval" expr="'5s'" /> </invoke> - - <invoke type="vxml" id="vxml"> - <finalize> - <script> - dump(_event); - </script> - </finalize> - </invoke> - - <onentry> - <log expr="'Starting!!'" /> - </onentry> + + <state id="vxmlHello"> + <invoke type="vxml" id="vxml"> + <param name="target" expr="'http://localhost:9090/mmi'" /> + <finalize> + <script>dump(_event);</script> + </finalize> + + <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> + </invoke> + + <transition event="heartbeat" target="idle" /> + </state> <state id="idle"> <onentry> <log expr="'Idling!'" /> </onentry> - <transition event="heartbeat.4s" target="vxmlHello"> + <transition event="heartbeat" 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 |