4.0

Table Of Contents
6 Type start in the Search 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.
n
Drag a scripted element to the right of OK and name it Send Email.
n
Drag a scripted element to the right of Timeout 2 and name it Send Email Failed.
13 Drag an end element to the right of Send Email.
14 Click Save at the bottom of the workflow editor Schema tab.
Figure 2-3 shows the layout of the Start VM and Send Email workflow schema elements.
Figure 2-3. Start VM and Send Email Example Workflow Schema Elements
What to do next
You must now link the workflow elements together.
vCenter Orchestrator Developer's Guide
74 VMware, Inc.