4.2.1

Table Of Contents
All the elements' input and output parameters are bound to the appropriate parameter types and values.
What to do next
You must set the attribute properties.
Complex Workflow Example Bindings
Bindings define how the simple workflow example's action elements process input and output parameters.
The Take Snapshots of All Virtual Machines in a Resource Pool workflow requires the following input and
output parameter bindings. You also define the JavaScript functions for the scriptable task elements.
In cases in which you bind to existing parameters, the binding inherits the type and description values from
the original parameter.
Initializing Scriptable Task
The Initializing scriptable task element initializes the attributes of the workflow. The following table shows
the input and output parameter bindings that the Initializing scriptable task element requires.
Table 1-18. Bindings of the Initializing 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
allVMs
OUT Create
n
Local parameter: allVMs
n
Source parameter:
allVMs[attribute]
n
Type:
Array/VC:VirtualMachine
n
Description:
The virtual machines in the
resource pool.
numberOfVMs
OUT Create
n
Local parameter: numberOfVMs
n
Source parameter:
numberOfVMs[attribute]
n
Type: number
n
Description:
The number of virtual
machines found in the
resourcePool
vmCounter
OUT Create
n
Local parameter: vmCounter
n
Source parameter:
vmCounter[attribute]
n
Type: number
n
Description:
The counter of the virtual
machines inside the array
Chapter 1 Developing Workflows
VMware, Inc. 93