How to Access a Java Constructor, Method, or Attribute for Any Class

The Java tab allows you to enter any fully qualified Java class name of your choosing in order to have its set of constructors, methods or attributes listed in the selection boxes. Included in this list of class names are every class from the Sun JDK, all the Cisco classes, and any custom classes you might have uploaded through the Cisco Unified CCX Application Administration web pages.

This enables an easy lookup of what is available so you can paste it into an expression directly. The selection box drop-down arrow is disabled if the class entered is invalid or does not have any constructors, methods or attributes.

Note

This Expression Language Java functionality of allowing you to select the Java class name of your own choosing replaces and simplifies what you could do with the customizer of the depreciated Java steps.

To access the Java Constructors, Methods, and Attributes of Your Own Data Choice:

Procedure


Step 1

In the Cisco Unified CCX Expression Editor Java tab, place the cursor over the word “Object” in the Constructor, Method, or Attribute selection box, depending on which item you want.

A yellow pop-up window appears saying: Enter a new type.

Step 2

Double click the word Object.

The word Object is highlighted in blue and the arrow cursor changes to an input cursor (“|”) indicating this is a text field that you can change.

Step 3

Enter the Java class name that you want.

The drop down list changes to the entered type.

Step 4

Click the selection arrow to display the list of items available for that data class. In the following example, the user entered “int” to replace object in the constructor selection box.

Java Constructor, Method, or Attribute
Step 5

Select an item in the list to enter it into the Expression Editor Value text field.