4.1

Table Of Contents
Pool Has No VMs Scriptable Task Element
The Pool Has No VMs scriptable task element logs the fact that the resource pool contains no eligible virtual
machines in the Orchestrator database. Table 2-20 shows the bindings that the Pool Has No VMs scriptable
task element requires.
Table 2-20. Bindings of the Pool Has No VMs Scriptable Task Element
Parameter Name Binding Type
Bind to Existing
or Create
Parameter? Binding Values
resourcePool
IN Bind
n
Local parameter: resourcePool
n
Source parameter:
resourcePool[in-parameter]
n
Type: VC:ResourcePool
n
Description:
The resource pool containing
the virtual machines of
which to take snapshots.
The Pool Has No VMs scriptable task element performs the following scripted function.
//Writes the following event in the vCO database
Server.warn("The specified ResourcePool "+resourcePool.name+" does not contain any VMs.");
Remaining VMs? Custom Decision Element
The Remaining VMs? custom decision element determines whether any virtual machines of which to take
snapshots remain in the resource pool. Table 2-21 shows the bindings that the Remaining VMs? custom decision
element requires.
Table 2-21. Bindings of the Remaining VMs? Custom Decision Element
Parameter Name Binding Type
Bind to Existing
or Create
Parameter? Binding Values
numberOfVMs
IN Bind
n
Source parameter:
numberOfVMs[attribute]
n
Decision statement: Greater than
n
Value: 0.0
n
Description:
The number of virtual
machines found in the
resourcePool
vmCounter
IN Bind
n
Local parameter: vmCounter
n
Source parameter:
vmCounter[attribute]
n
Type: number
n
Description:
The counter of the virtual
machines inside the array
The Remaining VMs? custom decision element performs the following scripted function.
//Checks if the workflow has reached the end of the array of VMs
if (vmCounter < numberOfVms) {
return true;
} else {
return false;
}
vCenter Orchestrator Developer's Guide
98 VMware, Inc.