Select an appropriate XSD schema file. For this example, Book1_6.xsd is the

Invoking an Asynchronous Web Service from a BPEL Process 8-21 3. Enter the details described in Table 8–6 to associate the second partner link SecondReceive with the second receive activity: The Operation Read1 field is automatically filled in. 4. To the right of the Variable field, click the first icon. 5. In the Create Variable dialog, click OK. A variable named receiveSecond_Read1_InputVariable is automatically created in the Variable field. 6. Click OK. 8.5.1.3.3 Creating a Third Receive Activity To create a third receive activity:

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

receiveSecond receive activity.

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

3. Enter the details described in Table 8–7 to associate the third partner link ThirdReceive with the third receive activity: The Operation Read2 field is automatically filled in. 4. To the right of the Variable field, click the first icon. 5. In the Create Variable dialog, click OK. A variable named receiveThird_Read2_InputVariable is automatically created in the Variable field. 6. Click OK. Each receive activity is now associated with a specific partner link.

8.5.1.4 Step 4: Creating Correlation Sets

You now create correlation sets. A set of correlation tokens is a set of properties shared by all messages in the correlated group.

8.5.1.4.1 Creating an Initial Correlation Set

Table 8–6 Receive Dialog Fields and Values Field Value Name receiveSecond Partner Link SecondFileRead Create Instance Do not select this checkbox. Table 8–7 Receive Dialog Fields and Values Field Value Name receiveThird Partner Link ThirdFileRead Create Instance Do not select this checkbox. 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.