4.1

Table Of Contents
6 Set the object's properties in the <properties> element.
The solar system example defines name, circumference, and surfaceTemp properties for all Star objects.
The bean-property property allows Orchestrator to create get and set methods in the scripting API to
obtain and set these properties.
<properties>
<property display-name="Name" name="name"
bean-property="name"/>
<property display-name="Circumference" name="circumference"
bean-property="circumference"/>
<property display-name="Surface Temperature" name="surfaceTemp"
bean-property="surfaceTemp"/>
</properties>
7 Set the events that can occur on the object in the <events> element.
Events can be either gauges or triggers.
In the solar system example, the SolarSystemEventGenerator class defines a generateFlareEvent() method
to generate solar flares on Star objects. The <gauge> element monitors the values of the flare events that
occur on Star objects.
<events>
<gauge min-value="0" name="Flare" unit="number">
<description>Magnitude of the flare</description>
</gauge>
</events>
You defined a <finder> element to find objects of a certain type in the plugged-in application. The objects that
the finder finds appear as scripting types in the Orchestrator JavaScript API and instances of these types appear
in the Orchestrator inventory.
What to do next
Define enumerations to set values that apply to all objects of a certain type.
Solar System Finder Mappings
The vso.xml file for the solar system example maps objects from the solar system application to objects that
appear as scripting types in the Orchestrator JavaScript API. Instances of these objects appear in the
Orchestrator inventory.
Table 7-7 lists the mappings that the vso.xml file defines for each type of object that the solar system application
defines.
Table 7-7. Solar System Finder Mappings
Scripting
Type Source Class Inventory Children Properties Events
Galaxy
None
Stars
None None
Star
Star, defined by application
OrbitingPlanets
n
name
n
circumference
n
surfaceTemp
Flare
Planet
Planet, defined by
application
OrbitingMoons
n
name
n
circumference
n
gravity
None
Moon
Moon, defined by application None
n
name
n
volume
None
vCenter Orchestrator Developer's Guide
198 VMware, Inc.