diff options
author | Stefan Radomski <github@mintwerk.de> | 2013-11-07 00:00:47 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2013-11-07 00:00:47 (GMT) |
commit | b2d7e26223288d0e555e8b72ef987be93d2d89ba (patch) | |
tree | fdd78fe7f47bfbbeaac32514d89fcafc1da45200 /apps/samples/miles/miles.scxml | |
parent | 62eed0a72b0a133bcec94131e7fd74415b87ba90 (diff) | |
parent | c3238c9a5c627491d26ad527f99a08ccfd218c29 (diff) | |
download | uscxml-b2d7e26223288d0e555e8b72ef987be93d2d89ba.zip uscxml-b2d7e26223288d0e555e8b72ef987be93d2d89ba.tar.gz uscxml-b2d7e26223288d0e555e8b72ef987be93d2d89ba.tar.bz2 |
Merge pull request #6 from mathiasjohanson/master
text messaging
Diffstat (limited to 'apps/samples/miles/miles.scxml')
-rw-r--r-- | apps/samples/miles/miles.scxml | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/apps/samples/miles/miles.scxml b/apps/samples/miles/miles.scxml index 650add8..2cad7ba 100644 --- a/apps/samples/miles/miles.scxml +++ b/apps/samples/miles/miles.scxml @@ -3,7 +3,7 @@ <state id="main"> <invoke type="miles" id="miles"> <finalize> - <log label="out" expr="_event.name" /> + <!-- <log label="out" expr="_event.name" /> --> <script>//dump(_event);</script> <if cond="_event.data.origin"> <!-- <log label="Reply-length" expr="_event.data.base64.length" /> --> @@ -12,6 +12,7 @@ <header name="Cache-Control" value="no-cache" /> <!-- force IE to actually reload --> <header name="Access-Control-Allow-Origin" value="*" /> <header name="Content-Type" value="text/plain" /> + <header name="Access-Control-Allow-Origin" value="*" /> <content expr="_event.data.image.base64()" /> </respond> <else /> @@ -19,6 +20,7 @@ <header name="Cache-Control" value="no-cache" /> <!-- force IE to actually reload --> <header name="Access-Control-Allow-Origin" value="*" /> <!-- respond element will add content-type header --> + <header name="Access-Control-Allow-Origin" value="*" /> <content expr="_event.data" /> </respond> </if> @@ -40,7 +42,7 @@ </transition> <transition event="http.get" target="idle"> - <log label="in" expr="_event.data.path" /> + <!-- <log label="in" expr="_event.data.path" /> --> <script>//dump(_event);</script> <if cond="false"> @@ -53,6 +55,15 @@ <param name="session" expr="_event.data.query.session" /> </send> + <!-- STOP ############### --> + <elseif cond="_event.data.pathComponent[1] === 'stop'" /> + <send target="#_miles" event="stop"> + <param name="origin" expr="_event.origin" /> + <param name="reflector" expr="_event.data.query.reflector" /> + <param name="userId" expr="_event.data.query.userid" /> + <param name="session" expr="_event.data.query.session" /> + </send> + <!-- PARTICIPANTS ############### --> <elseif cond="_event.data.pathComponent[1] === 'participants'" /> <send target="#_miles" event="participants"> @@ -135,8 +146,8 @@ </transition> <transition event="http.post" target="idle"> - <log label="in" expr="_event.data.path" /> - <script>dump(_event);</script> + <!-- <log label="in" expr="_event.data.path" /> --> + <script>//dump(_event);</script> <if cond="false"> <!-- POST TEXT ############### --> @@ -155,4 +166,4 @@ </state> </state> -</scxml>
\ No newline at end of file +</scxml> |