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
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.
We will first create a variable that can hold partner link references. As we already know, the partner link references use the ...