4.0

Table Of Contents
Prerequisites
n
Install the solar system plug-in in the Orchestrator server.
n
Start the Orchestrator client.
Procedure
1 Select Tools > Api explorer in the Orchestrator menus.
2 Expand the SolarSystem node in the hierarchical list of scripting objects.
You see the scripting types for the different types of celestial bodies, scripting classes for the Star,
Planet, Moon, SolarSystemEventGenerator, and SolarSystemTriggersManager objects, and enumerations to
define categories of stars and planets.
3 Expand a scripting class in the hierarchical list to see the scripting methods and attributes that it defines.
The scripting methods and attributes are those that the vso.xml file maps for each object.
You can use the scripting objects from the plug-in to create workflows, actions, policies, and so on.
What to do next
Run a workflow on a solar system object in the Inventory tab.
Run Workflows on Plug-In Objects in the Inventory
You can use the scripting objects that a plug-in adds to the Orchestrator JavaScript API to write workflows
and actions to interact with the plugged-in technology.
The solar system plug-in includes a package of workflows that you can use to perform operations on the objects
that the plug-in adds to the Orchestrator inventory.
Prerequisites
n
Install the solar system plug-in in the Orchestrator server.
n
Start the Orchestrator client.
Procedure
1 Click Workflows in the Orchestrator client.
2 Expand the Samples > SolarSystem nodes in the hierarchical list of workflows to see the list of workflows
that the solar system plug-in adds to the library.
3 Click the Add Planet workflow.
4 Click the Schema tab and click the scripted element in the schema.
5 Click the Scripting tab for the scripted element.
You see that Add Planet workflow calls the Star.addPlanet() method from the solar system application.
6 Click Inventory.
7 Expand the SolarSystem node in the hierarchical list of plug-ins and select the Helios star object.
You see objects that represent the planets of Earth's solar system. The planets are the instances of the
Planet object that the SolarSystemRepository class from the solar system application creates.
8 Expand a planet node to see its moons.
The vso.xml file defines the hierarchy of planets to stars and moons to planets by setting the
OrbitingPlanets and OrbitingMoons relations.
Chapter 7 Developing Plug-Ins
VMware, Inc. 213