4.0

Table Of Contents
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;
}
getVMDisksModes Action Element
The getVMDisksModes action element obtains the modes of the disks running in a virtual machine. Table 2-22
shows the bindings that the getVMDisksModes action element requires.
Table 2-22. Bindings of the getVMDisksModes Action Element
Parameter Name Binding Type
Bind to Existing
or Create
Parameter? Binding Values
vm
IN Bind
n
Local parameter: vm
n
Source parameter: vm[attribute]
n
Type: VC:VirtualMachine
n
Description:
The current virtual machine
having a snapshot taken
actionResult
OUT Create
n
Local parameter: actionResult
n
Source parameter:
vmDisksModes[attribute]
n
Type: Array/String
n
Description:
The current Disks Modes of
the virtual machine
errorCode
Exception Create Local parameter: errorCode
vCenter Orchestrator Developer's Guide
102 VMware, Inc.