5.5.1

Table Of Contents
Table 118. 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. The
following table shows the bindings that the getVMDisksModes action element requires.
Table 119. 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
Chapter 1 Developing Workflows
VMware, Inc. 113