4.1

Table Of Contents
2 Create Instances of the PluginTrigger Class on page 173
You create a workflow trigger by instantiating the PluginTrigger class.
3 Set the Properties that a Workflow Trigger Monitors on page 173
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.
Set Up the Workflow Trigger
To create a workflow trigger, you create an implementation of the PluginTrigger class from the Orchestrator
plug-in API.
Prerequisites
n
You have an application to plug in to Orchestrator.
n
You have access to the Orchestrator plug-in API JAR file.
Procedure
1 Create and save a Java file for the workflow trigger implementation.
In the solar system example, the workflow trigger class is named SolarSystemTriggerGenerator.
2 Declare the package that contains the Java classes of the plug-in implementation.
The solar system example declares the following package:
package com.vmware.orchestrator.api.sample.solarsystem;
3 Import the Orchestrator plug-in API classes with a Java import statement.
The SolarSystemTriggerGenerator class requires the following classes:
import ch.dunes.vso.sdk.api.IPluginFactory;
import ch.dunes.vso.sdk.api.PluginTrigger;
4 Import the classes of the application to plug in with a Java import statement.
The SolarSystemTriggerGenerator class requires the following class:
import com.vmware.solarsystem.Star;
5 Import any other classes that the workflow trigger implementation requires.
The SolarSystemTriggerGenerator class requires the following class:
import java.util.Properties;
6 Declare a public class to contain the workflow trigger implementation.
The SolarSystemTriggerGenerator class declares the following class:
public class SolarSystemTriggerGenerator {
}
You set up the workflow trigger implementation.
What to do next
Implement the PluginTrigger class from the Orchestrator plug-in API to create workflow trigger instances.
vCenter Orchestrator Developer's Guide
172 VMware, Inc.