5.5

Table Of Contents
Table 124. Bindings of the Log Exception 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[attribute]
n
Type: VC:VirtualMachine
n
Description:
The current virtual machine
having a snapshot taken
errorCode
IN Bind
n
Local parameter: errorCode
n
Source parameter:
errorCode[attribute]
n
Type: string
n
Description:
An exception caught while
taking a snapshot of a
virtual machine
The Log Exception scriptable task element performs the following scripted function.
//Writes the following event in the vCO database
Server.error("Coudln't snapshot the VM '"+vm.name+"', exception: "+errorCode);
Set Output Scriptable Task Element
The Set Output scriptable generates the workflow's output parameter, that contains the array of virtual
machines of which snapshots have been taken. The following table shows the bindings that the Set Output
scriptable task element requires.
Table 125. Bindings of the Set Output Task Element
Parameter Name Binding Type
Bind to Existing
or Create
Parameter? Binding Values
snapshotVmArray
IN Bind
n
Local parameter:
snapshotVmArray
n
Source parameter:
snapshotVmArray[attribute]
n
Type:
Array/VC:VirtualMachine
n
Description:
The Array of virtual
machines of which snapshots
have been taken
snapshotVmArrayOut
OUT Bind
n
Local parameter:
snapshotVmArrayOut
n
Source parameter:
snapshotVmArrayOut[out-
parameter]
n
Type:
Array/VC:VirtualMachine
n
Description:
The Array of virtual
machines of which snapshots
have been
Developing with VMware vCenter Orchestrator
118 VMware, Inc.