07-23-2017 10:23 AM
hello developers and experts
I did create IVR callflow and tested it perfectly.
also I did create custome JAVA project to query from MS SQL server And working fine.
so, please tell me how to make voice element - digits check the entered number by caller via java class.
thanks in advance.
Solved! Go to Solution.
07-24-2017 11:32 AM
Hi SEC Guy,
Actually this could be achieved in different ways.
Using Decision Element with java class:
1- Collect the digits of the number you want to validate (using digits input element)
2- Creating a custom decision element class and get the digits collected from the element data
public class CustomDecision extends DecisionElementBase {
@Override
public String doDecision(String arg0,DecisionElementData receivedData) throws Exception {
String collectedDigits = (String) receivedData.getElementData(elementName, "value") //elementName is the name of the digits input element
/*
do what ever you need on the collectedDigits
*/
return "exitstate_based_on_the_logic_needed"
}
}
3- Add a Decision Element to the callflow and change the configuration to class and add the full qualified class name
4- Add exit states based on your return results from your class
5- Add the jar file contains your class into the class path "the /java/application/lib/ of your deploy package"
Best regards,
07-24-2017 11:32 AM
Hi SEC Guy,
Actually this could be achieved in different ways.
Using Decision Element with java class:
1- Collect the digits of the number you want to validate (using digits input element)
2- Creating a custom decision element class and get the digits collected from the element data
public class CustomDecision extends DecisionElementBase {
@Override
public String doDecision(String arg0,DecisionElementData receivedData) throws Exception {
String collectedDigits = (String) receivedData.getElementData(elementName, "value") //elementName is the name of the digits input element
/*
do what ever you need on the collectedDigits
*/
return "exitstate_based_on_the_logic_needed"
}
}
3- Add a Decision Element to the callflow and change the configuration to class and add the full qualified class name
4- Add exit states based on your return results from your class
5- Add the jar file contains your class into the class path "the /java/application/lib/ of your deploy package"
Best regards,
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: