4.1

Table Of Contents
<attribute script-name="name" java-name="name" return-type="string">
The name of the star</attribute>
<attribute script-name="circumference" java-name="circumference" return-type="number">
Circumference of the star</attribute>
<attribute script-name="temperature" java-name="surfaceTemp" return-type="number">
The temperature on the star's surface</attribute>
</attributes>
[...]
</object>
You mapped classes and their methods and attributes from the classes in the plugged-in technology and plug-
in implementation to a JavaScript class and methods in the Orchestrator JavaScript API.
What to do next
Create or rebuild the DAR file for the plug-in.
Solar System JavaScript API Mappings
The vso.xml file for the solar system example maps objects, classes, methods, and attributes from the solar
system application to scripting types, classes, methods, and attributes in the Orchestrator JavaScript API.
Table 7-8 lists the classes, methods, and attributes from the solar system application and plug-in implemention
that the vso.xml file maps to the Orchestrator JavaScript API.
Table 7-8. Solar System JavaScript API Mappings
Scripting Class Source Class Attributes Methods
SolarSystemEventGenerator
SolarSystemEventGenerator ,
defined by plug-in
None
generateFlareEvent( st
ar, magnitude)
SolarSystemTriggerGenerat
or
SolarSystemTriggerGenerator ,
defined by plug-in
None
createStarFlareTrigger
( star, minMagnitude)
Star
Star, defined by application
n
id
n
name
n
circumferen
ce
n
temperature
n
addPlanet(planet)
n
removePlanet(planet
)
Planet
Planet, defined by application
n
id
n
name
n
circumferen
ce
n
gravity
n
starId
n
addMoon(moon)
n
removeMoon(moon)
Moon
Moon, defined by application
n
id
n
name
n
volume
n
planetId
None
Chapter 7 Developing Plug-Ins
VMware, Inc. 201