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 – copying variable parts


Let's now copy the BookstoreBResponse variable to the BookStoreWithLowestQuantity variable. Because the BookstoreBResponse variable is of a different message type than the BookStoreWithLowestQuantity variable, we cannot copy variables directly.

However, both message variables use the same XML element, namely BookDataResponse as payload. Therefore, we can copy the payloads of both variables:

  1. Open the BookWarehousingBPEL.bpel window.

  2. Scroll to the <if> activity and locate the elseifBookstoreBLowerOrEqual branch.

  3. Drag-and-drop the Assign activity from the right-hand side BPEL Constructs / Basic Activities toolbar and place it after the existing AssignBookstoreB assign.

  4. Double-click on the assign activity and the Edit Assign window will appear. Here you need to open the BookstoreBResponse variable (by clicking on the plus sign in front of it). You also need to open the BookStoreWithLowestQuantity variable. Then, you need to connect payload from the left...