5.5

Table Of Contents
Table 19. Bindings of the Start VM Failed 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 Create
n
Local Parameter: errorCode
n
Source parameter:
errorCode[attribute]
n
Type: string
n
Description:
Catch any exceptions while
powering on a VM.
body
OUT Create
n
Local Parameter: body
n
Source parameter:
body[attribute]
n
Type: string
n
Description: The email body
The Start VM Failed scriptable task element performs the following scripted function.
body = "Unable to execute powerOnVM_Task() on VM '"+vm.name+"', exception found: "+errorCode;
//Writes the following event in the vCO database
Server.error("Unable to execute powerOnVM_Task() on VM '"+vm.name, "Exception found:
"+errorCode);
Timeout 1 Scriptable Task Element
The Timeout 1 scriptable task element handles any exceptions that the vim3WaitTaskEnd action throws 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 1 scriptable task
element requires.
Developing with VMware vCenter Orchestrator
92 VMware, Inc.