4.1

Table Of Contents
PluginWatcher Class
The PluginWatcher class watches a trigger module for a defined event in the plugged-in technology on behalf
of a long-running workflow Wait Event element.
The PluginWatcher class defines a constructor that you can use to create plug-in watcher instances. The
PluginWatcher class defines methods to obtain or set the name of the workflow trigger to watch and a timeout
period.
public class PluginWatcher
extends java.lang.Object
implements java.io.Serializable
The PluginWatcher class defines the following methods:
Method Returns Description
getId() java.lang.String
Obtains the ID of the trigger
getModuleName() java.lang.String
Obtains the trigger module name
getTimeoutDate()
Long Obtains the trigger timeout date
getTrigger()
Void Obtains a trigger
setId(java.lang.String id)
Void Sets the ID of the trigger
setTimeoutDate()
Void Sets the trigger timeout date
Constructor
PluginWatcher(PluginTrigger trigger)
QueryResult Class
The QueryResult class contains the results of a find query made on the objects Orchestrator accesses through
the plug-in.
public class QueryResult
extends java.lang.Object
implements java.io.Serializable
The totalCount value can be greater than the number of elements the QueryResult returns, if the total number
of results found exceeds the number of results the query returns. The number of results the query returns is
defined in the query syntax in the vso.xml file.
The QueryResult class defines the following methods:
Method Returns Description
addElement(java.lang.Object
element)
Void Adds an element to the QueryResult
addElements(java.util.List
elements)
Void Adds a list of elements to the
QueryResult
getElements() java.util.List
Obtains elements from the plugged in
application
getTotalCount()
Long Obtains a count of all the elements
available in the plugged in technology
isPartialResult()
Boolean Determines whether the result obtained
is complete
Chapter 7 Developing Plug-Ins
VMware, Inc. 217