4.2.1

Table Of Contents
Define the Complex Workflow Example Input Parameters
You define workflow input parameters in the workflow editor. The input parameters provide data for the
workflow to process.
Prerequisites
You must have created the Take a Snapshot of All Virtual Machines in a Resource Pool workflow, and opened
it for editing in the workflow editor.
Procedure
1 Click the Inputs tab in the workflow editor.
2 Define the following input parameter.
n
Name: resourcePool
n
Type: VC:ResourcePool
n
Description: The resource pool containing the virtual machines of which to take snapshots.
3 Click the Outputs tab in the workflow editor.
4 Define the following output parameter.
n
Name: snapshotVmArrayOut
n
Type: Array/VC:VirtualMachine
n
Description: The Array of virtual machines of which snapshots have been taken.
You have defined the workflow input parameter.
What to do next
You can create a workflow schema.
Create a Custom Action For the Complex Workflow Example
The Check VM scriptable element calls on an actions that does not exist in the Orchestrator API. You must
create the getVMDiskModes action.
For more detail about creating actions, see Chapter 3, “Developing Actions,” on page 119.
Prerequisites
You must have created the Take a Snapshot of All Virtual Machines in a Resource Pool workflow.
Procedure
1 Close the workflow editor by clicking Save and Close.
2 Click the Actions view in the Orchestrator client.
3 Right-click the root of the actions hierarchical list and select New Module.
4 Name the new module com.vmware.example.
5 Right-click the com.vmware.example module and select Add Action.
6 Create an action called getVMDiskModes.
7 Right-click getVMDiskModes and select Edit.
8 Increment the version number in the General tab in the actions editor by clicking the version digits.
Developing with VMware vCenter Orchestrator
88 VMware, Inc.