5.1

Table Of Contents
Table 1-10. Bindings of the Timeout 1 Scriptable Task Element
Parameter Name Binding Type
Bind to Existing or
Create Parameter? Binding Values
vm
IN Bind
n
Local Parameter: vm
n
Source parameter: vm[in-
parameter]
n
Type: VC:VirtualMachine
n
Description:
The virtual machine to
start.
errorCode
IN Bind
n
Local Parameter: errorCode
n
Source parameter:
errorCode[attribute]
n
Type: string
n
Description:
Catch any exceptions while
powering on a VM.
body
OUT Bind
n
Local Parameter: body
n
Source parameter:
body[attribute]
n
Type: string
n
Description: The email body
The Timeout 1 scriptable task element requires the following scripted function.
body = "Error while waiting for poweredOnVM_Task() to complete on VM '"+vm.name+"', exception
found: "+errorCode;
//Writes the following event in the vCO database
Server.error("Error while waiting for poweredOnVM_Task() to complete on VM '"+vm.name, "Exception
found: "+errorCode);
Timeout 2 Scriptable Task Element
The Timeout 2 scriptable task element handles any exceptions that the vim3WaitToolsStarted action returns
by setting the content of an email notification about the failure of the task, and writing the event in the
Orchestrator log.
The following table shows the input and output parameter bindings that the Timeout 2 scriptable task element
requires.
Chapter 1 Developing Workflows
VMware, Inc. 87