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

Initializing a dynamic partner link


In previous exercises, we used static partner links that are defined at the design time, but in a <forEach> activity where the repetitive execution logic is implemented within a <scope> activity. In order to invoke different service endpoints, we need to dynamically change the endpoint data stored in the partner link. In this step, we create a new local variable that can hold partner link data. Then at each iteration, we modify the endpoint data stored in that local variable. Then, we assign the values in that local variable to the local partner link in order to modify the endpoint data of the local partner link within a different <assign> activity named Initialize_Partner_Reference.