Jump to: navigation, search

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" 
  <state id="initial">
	<transition event="interaction.added" target="dialog">
			_data.ixnid = _event.data.interactionid;
  <state id="dialog">
			<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"/>
	<transition event="dialog.collect.done" target="exit">
			_genesys.ixn.setuData({ "CED" : _event.data.digits }, _data.ixnid );
	<transition event="error.dialog.collect" target="error"/>
  <final id="exit"/>
  <final id="error"/>

Comment on this article:

blog comments powered by Disqus
This page was last modified on 22 September 2017, at 06:06.