During run time if any of the activities of the orchestration
throws an exception, and a global exception handler has been enabled,
the global CatchAll branch is run.
The figure below shows an example orchestration:
In this
example, if either the Database Get Inserted or
the Database Insert Rows activities fail and
throw an exception, the If..Then activity in
the CatchAll branch is run.
Procedure
- Right-click the start icon
of the orchestration and from the menu,
and select the Add CatchAll Branch option.
The CatchAll branch is added to the orchestration and the following
variables are automatically created:
- Configure the CatchAll branch by
dragging activities from the Activities tab
to the CatchAll branch, as shown in the preceding
figure.
Note: The scope of the faultName, faultData,
and faultInfo variables is limited to the CatchAll branch.
This scope limitation means that the value of the these variables
is only guaranteed to be valid within the CatchAll branch.
For example, if you add a If...Then activity
that tests the value of the faultName variable,
the If...Then activity must be placed inside
the CatchAll branch as shown in the preceding
figure.