4.1

Table Of Contents
n
Type: String
n
Description: The email address of the person to inform of the result of this workflow
9 Click Save at the bottom of the Inputs tab.
You defined the workflow's input parameters.
What to do next
You must create the workflow's schema.
Create the Simple Workflow Example Schema
You create a workflow schema in the Schema tab of the workflow editor. The workflow schema contains the
elements that the workflow runs.
Prerequisites
You must created the Start VM and Send Email workflow and defined its parameters.
Procedure
1 Click the Schema tab in the workflow editor.
2 Click the Generic menu on the left of the Schema tab.
3 Drag a decision element to under the start element in the schema.
4 Double-click the decision element and change its name to VM powered on?
5 Click Action & Workflow and drag an action element to under the decision element.
The action selection dialog box appears.
6 Type start in the Filter text box.
7 Select the startVM action and click Select.
8 Drag the following action elements into the schema, one beneath the other under the startVM action
element.
vim3WaitTaskEnd
Suspends the workflow run and polls an ongoing vCenter Server task at
regular intervals, until that task is finished. In the present example, the
startVM action starts a virtual machine and the vim3WaitTaskEnd action
makes the workflow wait while the virtual machine starts up. After the
virtual machine starts, the vim3WaitTaskEnd lets the workflow resume.
vim3WaitToolsStarted
Suspends the workflow run and waits until VMware Tools start on the
target virtual machine.
9 Click the Generic menu and drag a scriptable task element under the vim3WaitToolsStarted action
element.
10 Double-click the scriptable task element and rename it OK.
11 Drag another scriptable task element to the left of the startVM action element.
Name this scripted element Already started.
12 Drag more scripted elements into the schema, as follows.
n
Drag a scripted element to the right of startVM and name it startVM failed.
n
Drag a scripted element to the right of vim3WaitTaskEnd and name it Timeout 1.
n
Drag a scripted element to the right of vim3WaitToolsStarted and name it Timeout 2.
Chapter 2 Developing Workflows
VMware, Inc. 71