5.1

Table Of Contents
Table 1-11. Bindings of the Timeout 2 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
power on.
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 2 scriptable task element requires the following scripted function.
body = "Error while waiting for VMware tools to be up on VM '"+vm.name+"', exception found:
"+errorCode;
//Writes the following event in the vCO database
Server.error("Error while waiting for VMware tools to be up on VM '"+vm.name, "Exception found:
"+errorCode);
OK Scriptable Task Element
The OK scriptable task element receives notice that the virtual machine has started successfully, sets the content
of an email notification about the successful start of the virtual machine, and writes the event in the Orchestrator
log.
The following table shows the input and output parameter bindings that the OK scriptable task element
requires.
Table 1-12. Bindings of the OK 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
power on.
body
OUT Bind
n
Local Parameter: body
n
Source parameter:
body[attribute]
n
Type: string
n
Description: The email body
Developing with VMware vCenter Orchestrator
88 VMware, Inc.