cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
990
Views
5
Helpful
1
Replies

Integerating java project with callflow IVR project

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.

1 Accepted Solution

Accepted Solutions

ahabdelg
Level 1
Level 1

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,

View solution in original post

1 Reply 1

ahabdelg
Level 1
Level 1

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,

Getting Started

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: