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

Time for action – waiting for onFault and onEvent callbacks

To wait for the onFault and onEvent callbacks, we will do the following:

  1. Add two additional <onMessage> branches to the <pick> activity. We will achieve this by clicking on the Add OnMessage icon next to the <pick> activity icon. To add two branches, we should click on it twice. We should see the following:
    Time for action – waiting for onFault and onEvent callbacks
  2. We need to configure each <onMessage> branch. The first branch will react on the onFault message. We will specify the following parameters:
    Time for action – waiting for onFault and onEvent callbacks
  3. The second branch will react on the onEvent message. We will specify the following parameters:
    Time for action – waiting for onFault and onEvent callbacks
  4. Next, we will need to specify the activities that should happen in both branches. We have decided to throw a fault in both cases. We should see the following:
    Time for action – waiting for onFault and onEvent callbacks

What just happened?

We have added the <onMessage> branches of the <pick> activity for the OnFault and OnEvent callbacks from the WarehousingConfirmationBPEL service. The following BPEL code has been...