Double-click the receive icon to display the Receive dialog.

8-22 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite To create an initial correlation set: 1. In the Structure window of Oracle JDeveloper, right-click Correlation Sets and select Expand All Child Nodes.

2. In the second Correlation Sets folder, right-click and select Create Correlation Set.

3. In the Name field of the Create Correlation Set dialog, enter CorrelationSet1.

4. In the Properties section, click the Add icon to display the Property Chooser

dialog.

5. Select Properties, then click the Add icon first icon at the top to display the

Create Property dialog.

6. In the Name field, enter NameCorr.

7. To the right of the Type field, click the Browse icon.

8. In the Type Chooser dialog, select string and click OK.

9. Click OK to close the Create Property dialog, the Property Chooser dialog, and the

Create Correlation Set dialog.

8.5.1.4.2 Creating a Second Correlation Set

To create a second correlation set: 1. Return to the Correlation Sets section in the Structure window of Oracle JDeveloper.

2. Right-click the Correlation Sets folder and select Create Correlation Set.

3. In the Name field of the Create Correlation Set dialog, enter CorrelationSet2.

4. In the Properties section, click the Add icon to display the Property Chooser

dialog.

5. Select Properties, then click the Add icon to display the Create Property dialog.

6. In the Name field, enter IDCorr.

7. To the right of the Type field, click the Browse icon.

8. In the Type Chooser dialog, select double and click OK.

9. Click OK to close the Create Property dialog, the Property Chooser dialog, and the

Create Correlation Set dialog.

8.5.1.5 Step 5: Associating Correlation Sets with Receive Activities

You now associate the correlation sets with the receive activities. You perform the following correlation set tasks: ■ For the first correlated group, the first and second receive activities are correlated with the CorrelationSet1 correlation set. ■ For the second correlated group, the second and third receive activities are correlated with the CorrelationSet2 correlation set.

8.5.1.5.1 Associating the First Correlation Set with a Receive Activity

To associate the first correlation set with a receive activity: 1. Double-click the receiveFirst receive activity to display the Receive dialog. 2. Click the Correlations tab. 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.