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 – adding scopes


  1. Let's create two scopes and add those two <invoke> activities into those two scopes separately, so we can define local variables, partner links, and so on, which are only visible within a particular <scope> activity. So drag-and-drop the <scope> activities inside the sequences where the <invoke> activities are, as shown in the following screenshot:

  2. Now we can drag the existing <invoke> activities into the newly added <scope> activities:

  3. Now, the remaining task is to transfer the variables from the global phase to local phase. If you look at the variable hierarchy within the process definition, it looks like the following screenshot:

  4. There is not a straightforward transfer mechanism. So, to transfer what we can do is to clone the definition on the global variable within the <scope> activity and delete the global variable. So, the final variable hierarchy within the process definition will be as shown:

  5. Likewise we can further...