Collect Digits
The following SCXML strategy collects a set of digits from a caller. The digits collected is returned in the _event.data.digits object and is stored in the user data.
<scxml version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:queue="www.genesyslab.com/modules/queue" xmlns:dialog="www.genesyslab.com/modules/dialog" initial="initial"> <state id="initial"> <transition event="interaction.added" target="dialog"> <script> _data.ixnid = _event.data.interactionid; </script> </transition> </state> <state id="dialog"> <onentry> <dialog:collect> <dialog:input max_digits="6" abort_digits="'1'" term_digits="'9'" total_timeout="20" ignore_digits="'hj'" backspace_digits = "'kl'" reset_digits="'123'" clear="false" start_timeout="10" digit_timeout="5"/> </dialog:collect> </onentry> <transition event="dialog.collect.done" target="exit"> <script> _genesys.ixn.setuData({ "CED" : _event.data.digits }, _data.ixnid ); </script> </transition> <transition event="error.dialog.collect" target="error"/> </state> <final id="exit"/> <final id="error"/> </scxml>
This page was last edited on September 22, 2017, at 13:06.
Comments or questions about this documentation? Contact us for support!