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 – 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:

  2. We need to configure each <onMessage> branch. The first branch will react on the onFault message. We will specify the following parameters:

  3. The second branch will react on the onEvent message. We will specify the following parameters:

  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:

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 generated...