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
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – adding compensation handlers


Let's perform the following steps of instructions to construct the book order process. First of all, let's create a new asynchronous BPEL 2.0 process named Book_Order_Process. We illustrated the process to create an asynchronous BPEL in Chapter 5, Interaction Patterns in BPEL. Perform the following steps:

  1. Drag-and-drop a <scope> activity from the BPEL constructs palette in between the receiveInput and callbackClient activities. Name the <scope> activity registerBookOrder.

  2. Drag-and-drop an <empty> activity to this <scope> activity, and name it dummyRegisterBookOrder. This is used to model the tasks related to book order registration, such as creating an entry in the order management system.

  3. Now we will add a compensation handler to this <scope> activity. Click on the Add Compensation Handler icon on the scope, and it will create <compensationHandler> within the <scope> activity:

  4. Now the <scope> activity...