From the Component Palette, drag a third Receive activity beneath the

Invoking an Asynchronous Web Service from a BPEL Process 8-23

3. Click the Add icon to display the correlation set dropdown list.

4. Select CorrelationSet1.

5. Click the Initiate column to display a dropdown list, and select yes. When set to

yes , the set is initiated with the values of the properties occurring in the message being exchanged.

6. Click OK.

8.5.1.5.2 Associating the Second Correlation Set with a Receive Activity

To associate the second correlation set with a receive activity: 1. Double-click the receiveSecond receive activity to display the Receive dialog. 2. Click the Correlations tab. 3. Click the Add icon to display the correlation set dropdown list. 4. Select CorrelationSet2, then click OK. 5. Click the Initiate column to display a dropdown list, and select yes. 6. Click Add again and select CorrelationSet1. 7. Click OK. 8. Click the Initiate column to display a dropdown list, and select no for CorrelationSet1 .

9. Click OK.

This groups the first and second receive activities into a correlated group.

8.5.1.5.3 Associating the Third Correlation Set with a Receive Activity

To associate the third correlation set with a receive activity: 1. Double-click the receiveThird receive activity to display the Receive dialog. 2. Click the Correlations tab. 3. Click the Add icon. 4. Select CorrelationSet2. 5. Set the Initiate column to no for CorrelationSet2. 6. Click OK. This groups the second and third receive activities into a second correlated group.

8.5.1.6 Step 6: Creating Property Aliases

Property aliases enable you to map a global property to a field in a specific message part. This action enables the property name to become an alias for the message part and location. The alias can be used in XPath expressions.

8.5.1.6.1 Creating Property Aliases for NameCorr You create the following two property

aliases for the NameCorr correlation set: ■ Map NameCorr to the LoanAppl message type part of the receiveFirst receive activity. This receive activity is associated with the FirstReceive partner link defined by the FirstReceive.wsdl file.