Book Image

WS-BPEL 2.0 Beginner's Guide

Book Image

WS-BPEL 2.0 Beginner's Guide

Overview of this book

Table of Contents (19 chapters)
WS-BPEL 2.0 Beginner's Guide
About the Authors
About the Reviewers

Time for action – the fault and termination handlers

Open the BPEL process that was used in the Time for action – adding scopes section and follow the ensuing steps:

  1. Initially, the <invoke> activity looks like the following screenshot:

  2. Click on the following icon of the <scope> activity and create a fault handler with a <catch> construct:

  3. The <scope> activity looks as follows:

  4. The remaining task is to define the error handling logic. It can be any logic as we explained in Chapter 6, Fault Handling and Signaling.

What just happened?

In this section, we discuss the inner structure of the <scope> activity. We discuss defining local variables, partner links, handlers, and so on.

We can specify <partnerLinks>, <messageExchanges>, <variables>, <correlationSets>, <faultHandlers>, <compensationHandler>, <terminationHandler>, and <eventHandlers> locally for the scope, as shown in the following code. All are optional.