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 callback

To wait for the callback using the <pick> activity, we will do the following:

  1. Add the <pick> activity by dragging-and-dropping it to the BookWarehousingBPEL process. Place it immediately after the <invoke> activity within the WarehousingConfirmationInvocation scope. We should see the <pick> activity with a single OnMessage branch:
    Time for action – waiting for callback
  2. Double-clicking on the OnMessage icon opens the dialog box, where we need to specify the Partner Link, Port Type, and Operation:
    Time for action – waiting for callback
  3. Similarly, we will create the variable on the fly, using the green plus sign icon. We will create a local OnMessage_onResult variable:
    Time for action – waiting for callback
  4. To handle the response, we will place an <if> activity within the OnMessage scope. Within the <if> activity, we will check whether the books have been successfully warehoused. The corresponding XPath condition should look as follows:
    Time for action – waiting for callback
  5. For each branch, we will use an <assign>, where we will assign a successful or unsuccessful...