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:
- Drag-and-drop a
<scope>
activity from the BPEL constructs palette in between the receiveInput and callbackClient activities. Name the<scope>
activityregisterBookOrder
. - Drag-and-drop an
<empty>
activity to this<scope>
activity, and name itdummyRegisterBookOrder
. This is used to model the tasks related to book order registration, such as creating an entry in the order management system. - 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: - Now the...