O'Reilly logo

WS-BPEL 2.0 for SOA Composite Applications with IBM WebSphere 7 by Gregor Srdic, Matjaz B. Juric, Ales Frece, Swami Chandrasekaran, Matej Hertis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using forEach and dynamic partner references

Let us now modify the previous example. Instead of statically coding into BPEL that we wish to call two different insurances, InsuranceA and InsuranceB, let us change the example and call an arbitrary number of Insurance services using a<forEach> loop.

To achieve this, we need to figure out how to use dynamic partner references. The<invoke> activity within the loop namely has to invoke a different service each time the loop is iterated. This means that we cannot set the partner link for the service statically in code, but have to do this dynamically.

Dynamic partner references

We will first create a variable that can hold partner link references. As we already know, the partner link references use the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required