cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
816
Views
5
Helpful
2
Replies

Java Classes in UCCX 8.5.1

Good Day.

For what reasons Java classes can not be displayed in Cisco Unified CCX Editor? Iv'e uploaded fev Java Classes in UCCX "Document Manager\default\classpatch\", and they dont appear in CCX Editor as variable type.

Are there specific instructions to connect Java classes to CCX Editor?

1 Accepted Solution

Accepted Solutions

Anthony Holloway
Cisco Employee
Cisco Employee

You must restart the server (just the engine really) in order for your classes to be loaded.

Also, once you open the editor, there wont be anything showing you your classes.  Instead, you are to type them in to the appropriate fields to use them.

Example:  If you are creating a new instance object of your custom class called: StringChomper, then in the variable type field for creating new variables, you simply type "StringChomper".

In short, you wont see your classes, you have to manually enter them in to appropriate fields.

EDIT:  There is a funny thing with UCCX Editor that is not immediately obvious.  It's briefly mentioned in the Script Volume 1 - Getting Start with Scripts document in the following passage:

Note

The Java tab contains a selection list of the constructors, methods, attributes, and syntax buttons of the selected Java object within the open script. Therefore, the contents of this tab will vary.

The Java tab allows you to enter a class name of your own in order to have its set of constructors, methods or attributes listed in the selection boxes. This enables an easy lookup of what is available so you can paste it into the expression directly. The Java toolbar is populated with the constructors, methods or attributes of the class you enter. A selection box drop-down arrow is disabled if the class entered is invalid or does not have any constructors, methods or attributes.

This is what that looks like in the editor, however, I do not have a custom class to show you, but the same logic can be applied to non default classes in the toolbar of the expression editor.  E.g., java.util.HashMap

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.

View solution in original post

2 Replies 2

Anthony Holloway
Cisco Employee
Cisco Employee

You must restart the server (just the engine really) in order for your classes to be loaded.

Also, once you open the editor, there wont be anything showing you your classes.  Instead, you are to type them in to the appropriate fields to use them.

Example:  If you are creating a new instance object of your custom class called: StringChomper, then in the variable type field for creating new variables, you simply type "StringChomper".

In short, you wont see your classes, you have to manually enter them in to appropriate fields.

EDIT:  There is a funny thing with UCCX Editor that is not immediately obvious.  It's briefly mentioned in the Script Volume 1 - Getting Start with Scripts document in the following passage:

Note

The Java tab contains a selection list of the constructors, methods, attributes, and syntax buttons of the selected Java object within the open script. Therefore, the contents of this tab will vary.

The Java tab allows you to enter a class name of your own in order to have its set of constructors, methods or attributes listed in the selection boxes. This enables an easy lookup of what is available so you can paste it into the expression directly. The Java toolbar is populated with the constructors, methods or attributes of the class you enter. A selection box drop-down arrow is disabled if the class entered is invalid or does not have any constructors, methods or attributes.

This is what that looks like in the editor, however, I do not have a custom class to show you, but the same logic can be applied to non default classes in the toolbar of the expression editor.  E.g., java.util.HashMap

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.

Thank you, information was helpful. My java-class don't contain any constructors.