The Expression Editor panel of Cisco Unified CCX Script Editor is a tool that allows you to create and edit expressions that can be used in the script steps. The Expression Editor panel has two tabs: Script and Java. The Script tab allows you to create expressions using the Cisco Unified CCX Expression Language, which is a subset of the Java language. The Java tab allows you to create expressions using the full Java language12
There are three reasons to use the Java tab in the Expression Editor panel:
To invoke a specified method of a custom Java class. A custom Java class is a user-defined class that extends the functionality of the Cisco Unified CCX Expression Language. You can create a custom Java class by using the Java Development Kit (JDK) and import it into the Cisco Unified CCX Script Editor. You can then use the Java tab to invoke the methods of the custom Java class by using the dot notation. For example, if you have a custom Java class named MyMath that has a method named square, you can use the Java tab to invoke the square method on a variable x by using the expression MyMath.square(x)12
To reference a variable of a custom Java Object. A custom Java Object is an instance of a custom Java class that can be created and stored as a variable in the script. You can use the Java tab to reference the variable of a custom Java Object by using the dot notation. For example, if you have a custom Java Object named myObj that has a variable named name, you can use the Java tab to reference the name variable by using the expression myObj.name12
To allow for arguments to be passed to a specified method. An argument is a value that is passed to a method when it is invoked. You can use the Java tab to pass arguments to a specified method by using the parentheses notation. For example, if you have a method named add that takes two arguments x and y and returns their sum, you can use the Java tab to pass the arguments 3 and 5 to the add method by using the expression add(3, 5)12
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit