4.0

Table Of Contents
9 Click the sun, a planet, or a moon to display its properties on the right.
10 Right-click the sun, a planet, or a moon to and select Execute operation to run a workflow on that object.
You can select a workflow to run from a contextual list of workflows that take that type of object as an
input parameter.
You can run workflows on the solar system objects in the inventory. You can add a planet to the sun's orbit or
generate or wait for a solar flare. You can modify the circumference of planets or split or destroy them.
What to do next
Monitor events in the solar system application by setting a policy.
Monitor Plug-In Events by Using Policies
You can use policies to monitor events in a plugged-in technology and perform defined operations when the
events occur.
The solar system plug-in includes a policy that monitors a star object for solar flares. When flares occur, the
policy records the magnitude of the flares in the logs.
Prerequisites
n
Install the solar system plug-in in the Orchestrator server.
n
Start the Orchestrator client.
Procedure
1 Click Policy Templates in the Orchestrator client.
2 Expand the Samples > SolarSystem nodes in the hierarchical list of policies.
3 Right-click the Star policy and select Apply Policy.
4 Add a policy description and select a Star object on which to apply the policy in the Apply Policy dialog
box and click Submit.
The Star policy opens in the Policies tab.
5 Click the Star policy and open the Scripting tab.
In the scripting tab you see that the policy is monitoring a threshold named Flare.
6 Right-click the Star policy and select Start policy.
7 Click the Inventory tab.
8 Right-click the Helios star and select Execute operation.
9 Run the Generate Flare Event workflow, setting the magnitude of the flare to 100.
The Generate Flare Event workflow includes a script that calls the
SolarSystemEventGenerator.generateFlareEvent() method. The gauge that the
SolarSystemEventGenerator class implements pushes an event object named Flare to the Orchestrator
policy engine.
10 Click the Policies tab.
11 Click the Star policy.
12 Click the Logs tab.
The policy has recorded the magnitude of the solar flare event in the logs.
vCenter Orchestrator Developer's Guide
214 VMware, Inc.