4.0

Table Of Contents
Define Enumerations
You can define enumerations in the vso.xml file to set global values that apply to all objects of a certain category.
The categories that you set in the vso.xml file appear as enumerations in the Orchestrator JavaScript API.
Prerequisites
You must have set up the plug-in and defined <finder> elements in the vso.xml file.
Procedure
1 Define an enumeration for a certain object type in the <enumerations> element.
The solar system example defines enumerations to set a PlanetCategory enumeration on Planet objects.
<enumerations>
<enumeration type="PlanetCategory">
<description>Define the category of a Planet</description>
[...]
</enumeration>
2 Define entries for the enumerations that apply values to objects in the given object category.
The solar system example defines values that represent different types of planet.
<entries>
<entry id="gaz"
name="Huge Gaz">Huge planet with only gaz atmosphere.
No Physical core.</entry>
<entry id="earth"
name="Earth">You could live on this planet.</entry>
<entry id="desert"
name="Desert">Planet without water.</entry>
<entry id="ice"
name="Ice">Planet with water but completely frozen.</entry>
<entry id="other"
name="Other">Does not fit into any category.</entry>
</entries>
The vso.xml file of the solar system example also defines a StarCategory enumeration that allows you to
define a Star object as a blue dwarf, a nova, or a yellow sun.
You defined enumerations that can apply to all objects in a certain category.
What to do next
Map the classes and methods of the plugged-in technology and the plug-in implementation to JavaScript
classes and methods in the Orchestrator JavaScript API.
Map Classes and Methods to Classes and Methods in the JavaScript API
Orchestrator monitors objects in the plugged-in application and performs operations on them by running
workflows, policies, and actions. You map in the vso.xml file the classes and methods from the plugged-in
technology and from the plug-in implementation to JavaScript classes and methods in the Orchestrator
JavaScript API.
You identify in <scripting-objects><object> elements the classes and methods to map to classes and methods
in the JavaScript API.
vCenter Orchestrator Developer's Guide
206 VMware, Inc.