5.1

Table Of Contents
3 Click the Not Set (NULL) link to select the source input parameter for this decision.
A dialog box that lists all the attributes and input parameters defined in this workflow appears.
4 Select an input parameter from the list by double-clicking it.
5 If you did not define the source parameter to which to bind, create it by clicking the Create
attribute/parameter in workflow link in the parameter selection dialog box.
6 Select a decision statement from the drop-down menu.
The statements that the menu proposes are contextual, and differ according to the type of input parameter
selected.
7 Add a value that you want the decision statement to match.
Depending on the input type and the statement you select, you might see a Not Set (NULL) link in the
value text box. Clicking this link gives you a predefined choice of values. Otherwise, for example for
Strings, this is a text box in which you provide a value.
You defined a statement for the decision element. When the decision element receives the input parameter, it
compares the value of the input parameter to the value in the statement and determines whether the statement
is true or false.
What to do next
You must set how the workflow handles exceptions.
Exception Handling
Exception handling catches any errors that occur when a schema element runs. Exception handling defines
how the schema element behaves when the error occurs.
All elements in a workflow, except for decisions and start and end elements, contain a specific output parameter
type that serves only for handling exceptions. If an element encounters an error during its run, it can send an
error signal to an exception handler. Exception handlers catch the error and react according to the errors they
receive. If the exception handlers you define cannot handle a certain error, you can bind an element's exception
output parameter to an Exception element, which ends the workflow run in the failed state.
Exceptions act as a try and catch sequence within a workflow element. If you do not need to handle a given
exception in an element, you do not have to bind that element's exception output parameter.
The output parameter type for exceptions is always an errorCode object.
Create Exception Bindings
Elements can set bindings that define how the workflow behaves if it encounters an error in that element.
Prerequisites
Verify that the Schema tab of the workflow editor contains elements.
Procedure
1 Place the pointer on the element for which you want to define exception binding.
A blue and a red arrow appear on the element's right.
2 Place the pointer on the red arrow until it enlarges, hold down the left mouse button, and drag the red
arrow to the target element.
A red dashed arrow links the two elements. The target element defines the behavior of the workflow if
the element that links to it encounters an error.
3 Click the element that links to the exception handling element.
Developing with VMware vCenter Orchestrator
36 VMware, Inc.