07-30-2013 01:50 AM - edited 03-14-2019 12:08 PM
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?
Solved! Go to Solution.
07-30-2013 06:36 AM
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.
07-30-2013 06:36 AM
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.
07-31-2013 12:08 AM
Thank you, information was helpful. My java-class don't contain any constructors.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide