4.0

Table Of Contents
The Star policy implements the solar system scripting API to monitor star objects for solar flare events and
records their magnitude. The policy keeps on running until you stop it. If you run the Generate Flare Event
again, the policy continues to record the magnitudes of the flares in the logs.
What to do next
Monitor events on objects in the plugged-in technology by running workflows.
Monitor Plug-In Events by Using Workflows
Workflows can include a Wait Event element that suspends the workflow and waits for an event to occur in a
plugged-in technology. Plug-ins can implement triggers and watchers to notify waiting workflows of the
events that occur.
The solar system example includes a workflow that implements a Wait Event element to wait for solar flares.
When a flare occurs, the waiting workflow resumes its run, records the magnitude of the flare in the logs, then
ends.
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 Right-click the Wait On Flare Event workflow, select Execute workflow, and click Submit.
The Wait On Flare Event workflow calls the SolarSystemTriggerGenerator.createStarFlareTrigger()
method to create an event trigger.
4 Click the workflow token for this run of the Wait On Flare Event workflow.
In the workflow schema, you can see that the workflow has suspended its run at the Waiting Event
element. In the Logs tab you can see that the workflow is waiting for a flare of at least magnitude 10.
5 Click Inventory.
6 Expand the SolarSystem node in the hierarchical list of plug-ins.
7 Right-click Helios and select Execute operation > Generate Flare Event.
Set the magnitude of the flare to a value greater than 10 when you run the workflow.
8 Click Workflows.
9 Click the workflow token for Wait On Flare Event workflow.
The workflow is no longer waiting and has ended its run. In the Logs tab for this token you can see that
the workflow has recorded a flare of at least magnitude 10.
The Wait On Flare Event workflow implements the solar system scripting API to create a plug-in trigger that
waits for solar flares of a given magnitude. When a flare event occurs, the workflow ends, but you can create
a loop in the workflow to record the event and wait for the next event.
What to do next
Access the solar system objects and workflows by using the solar system Web view.
Chapter 7 Developing Plug-Ins
VMware, Inc. 215