The Scope, Compensate,
and Throw steps in the Step
Palette deserve special mention. These steps are related
and are used to create a structure for handling faults that occur
during Web-service execution.
- The Scope step makes it possible to have a
FaultHandler and a CompensationHandler.
- The Compensate step is designed to work
with a CompensationHandler or FaultHandler to roll back actions from
an entire scope. You can use the Compensate
step in one of two ways:
- If you name a scope explicitly in the step Property Editor,
then only the named scope's CompensationHandler is invoked.
- If you do not name a scope in the step Property Editor, then
every CompensationHandler for scopes enclosed immediately within
the scope of the Compensate step is
invoked, in reverse order of execution.
- The Throw step is used inside a nested
scope to pass the exception or fault to the outer scope.
Note: The values of working data are not affected by scopes. Creating a
scope does not create an area where working data is only visible
within that scope. Working data is global to an orchestration and is
visible across all scopes.
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.