4.0

Table Of Contents
Define the Complex Workflow Example Bindings
You bind a workflow's elements together in the Schema tab of the workflow editor. Bindings define the data
flow of the workflow. You also bind the scriptable task elements to their JavaScript functions.
Prerequisites
You must already have created the Take a Snapshot of All Virtual Machines in a Resource Pool workflow,
defined its input parameter, created its schema, and linked the schema elements together.
Procedure
1 Click the Schema tab in the workflow editor.
2 Define the bindings shown in “Complex Workflow Example Bindings,” on page 99.
3 Click Save at the bottom of the workflow editor Schema tab.
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. Table 2-18 shows the input
and output parameter bindings that the Initializing scriptable task element requires.
Table 2-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.
Chapter 2 Developing Workflows
VMware, Inc. 99