4.0

Table Of Contents
What to do next
Set the properties that the workflow trigger monitors in the objects in the plugged-in technology.
Set the Properties that a Workflow Trigger Monitors
Workflow triggers monitor changes in the properties of an object in the plugged-in technology. When workflow
triggers detect a change in the properties of an object, they notify any workflows in the Orchestrator server
that are waiting for this event.
You set the properties that a workflow trigger monitors by passing a java.util.Properties list to a
PluginTrigger instance.
Prerequisites
n
Set up the workflow trigger class.
n
Create PluginTrigger instances.
Procedure
1 Declare variables for the object and object properties that the workflow trigger monitors.
The SolarSystemTriggerGenerator class declares variables for the Star object that it monitors and for the
magnitude of any solar flare events that occur on that star.
public static final String STAR_ID = "star_id";
public static final String MAGNITUDE = "magnitude";
2 Create an instance of the PluginTrigger class in which to set the properties to monitor.
The SolarSystemTriggerGenerator class calls the SolarSystemTriggerGenerator.newTrigger() method to
create a trigger instance.
public PluginTrigger createStarFlareTrigger(Star star, double magnitude) {
PluginTrigger trigger = newTrigger();
return trigger;
}
3 Create an instance of a java.util.Properties list to contain the properties to monitor.
The SolarSystemTriggerGenerator class create a properties list named props.
public PluginTrigger createStarFlareTrigger(Star star, double magnitude){
PluginTrigger trigger = newTrigger();
Properties props = new Properties();
return trigger;
}
vCenter Orchestrator Developer's Guide
178 VMware, Inc.