Book Image

WS-BPEL 2.0 Beginner's Guide

By : Matjaz B Juric
Book Image

WS-BPEL 2.0 Beginner's Guide

By: Matjaz B Juric

Overview of this book

If you are a software architect, a designer, a software developer, an SOA and BPM architect, a project manager, or a business process analyst who is responsible for the design and development of business processes, composite applications, and BPM/SOA solutions, then this book is for you. You should have a clear grasp of general SOA concepts including business processes and web services, but no prior knowledge of the BPEL language is required.
Table of Contents (14 chapters)
13
Index

Introducing compensation in business processes

In this section, we introduce a new sample BPEL process that models a compensation scenario. The high-level process execution is depicted in the following figure:

Introducing compensation in business processes

The registerBookOrder scope models the registration of a new book order. It includes an <empty/> activity called dummyRegisterBookOrder that simulates the registration behavior. Also, the scope contains a compensation handler, which will be discussed later in this chapter. This compensation handler discards the book order as the compensation logic. For demonstration purposes, the compensation handler also includes a <wait/> activity with a 30-seconds delay to allow time to monitor the activity, otherwise things might happen too fast to observe.

The initiateCreditCardTransaction scope models the credit card transaction related to the new book order. It includes an <empty/> activity called dummyInitiateCreditCardTransaction that simulates the credit card transaction...