ivr IVR Tutorial Table of Content << Previous  >> Next

9.4 Use Java Action Result to Determine Which Transition to Take

The result of a Java action is saved in the return variable of the action. For the action defined in the previous section, the result is saved in a variable named passed.

passed = check_password.result

The check_password is the Java action name. The dot notation is used to refer to the action return variables. Since the check method does not return java.util.Properties, the system automatically creates a name value pair for the return variable. The default name is result and the value is the String value of the returned object. For this example, if the check method returns true, the value is set to be String 'true'. (Internally, the system uses the toString method of the object).

This result can then be used to determine which transition to take. The following is the definition for element Protected Info.

 

ivr IVR Studio Table of Content << Previous >> Next