The <singleton> element creates a JavaScript scripting object as a singleton instance.

A singleton object behaves in the same way as a static Java class. Singleton objects define generic objects for the plug-in to use, rather than defining specific instances of objects that Orchestrator accesses in the plugged-in technology. For example, you can use a singleton object to establish the connection to the plugged-in technology.

The <singleton> element is optional. The <singleton> element has the following attributes.

Type Value Description
script-name JavaScript object Name of the corresponding JavaScript object. Mandatory attribute.
datasource Java object The source Java object for this JavaScript object. Mandatory attribute.
Table 1. Element Hierarchy
Parent Element Child Element
<object> None