5.5

Table Of Contents
Bind the Action Elements of the Simple Workflow Example
You can bind a workflow's elements together in the workflow editor. Bindings define how the action
elements process input parameters and generate output parameters.
Prerequisites
Complete the following tasks.
n
“Create the Simple Workflow Example,” on page 81.
n
“Create the Schema of the Simple Workflow Example,” on page 82.
n
“Define the Parameters of the Simple Workflow Example,” on page 85.
n
“Define the Simple Workflow Example Decision Bindings,” on page 86.
n
Open the workflow for editing in the workflow editor.
Procedure
1
On the Schema tab, click the Edit icon ( ) of the startVM action element.
2 Set the following general information on the Info tab.
Option Action
Interaction
Select No External interaction.
Business Status
Select the check box and add the text Sending start VM.
Description
Leave the text Start / Resume a VM. Return the start task.
3 Click the IN tab.
The IN tab displays the two possible input parameters available to the startVM action, vm and host.
Orchestrator automatically binds the vm parameter to vm[in-parameter] because the startVM action can
only take a VC:VirtualMachine as an input parameter. Orchestrator detects the vm parameter you
defined when you set the workflow input parameters and so binds it to the action automatically.
4 Set host to NULL.
This is an optional parameter, so you can set it to null. However, if you leave it set to Not set, the
workflow cannot validate.
5 Click the OUT tab.
The default output parameter that all actions generate, actionResult, appears.
6 For the actionResult parameter, click Not set.
7 Click Create parameter/attribute in workflow.
The Parameter information dialog box displays the values that you can set for this output parameter.
The output parameter type for the startVM action is a VC:Task object.
8 Name the parameter powerOnTask and provide a description.
For example, Contains the result of powering on a VM.
9 Click Create workflow ATTRIBUTE with the same name and click OK to exit the Parameter
information dialog box.
Chapter 1 Developing Workflows
VMware, Inc. 87