PreviousNextIndex
Working with Variables > Employing Variables in Applications > Programmatically Accessing Call Session Variables > Getting Call Session Variable Values
 
Getting Call Session Variable Values

To get call session variables programmatically, the methodology is a little different depending on the type of variable: a simple or complex variable.

See the following sections:

Refer to the Dialog Designer Programmers Guide in the online help for the full set of API for accessing variables and their values.

Getting Simple Variables

The following code will get the value of the simple variable "weather" as a Java String object.

Note:

This code assumes that a simple variable "weather" has been defined in the project Variable Editor. See About IProjectVariables.

A short-hand way of writing the same code is:

Getting Complex Variables

The following code will get the value of the complex variable field "date:year" as an integer.

A short-hand way of writing the same code is:


PreviousNextIndex

©2009, Avaya Inc. All rights reserved.