Next to the URL field in the Messages dialog, click Browse to display the Type Select an appropriate XSD schema file. For this example, Book1_5.xsd is the Click OK.

8-20 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite

25. Click OK.

8.5.1.3 Step 3: Creating Three Receive Activities

You now create three receive activities; one for each partner link. The receive activities specify the partner link from which to receive information.

8.5.1.3.1 Creating an Initial Receive Activity

To create an initial receive activity: 1. Expand BPEL Constructs in the Component Palette. 2. Drag a Receive activity beneath the receiveInput receive activity in the designer. 3. Double-click the receive icon to display the Receive dialog. 4. Enter the details described in Table 8–5 to associate the first partner link FirstReceive with the first receive activity: The Operation Read field is automatically filled in. 5. To the right of the Variable field, click the first icon. This is the automatic variable creation icon.

6. In the Create Variable dialog, click OK.

A variable named receiveFirst_Read_InputVariable is automatically created in the Variable field.

7. Ensure that you selected the Create Instance checkbox, as mentioned in Step 4.

8. Click OK.

8.5.1.3.2 Creating a Second Receive Activity

To create a second receive activity: 1. From the Component Palette, drag a second Receive activity beneath the receiveFirst receive activity.

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

WSDL URL directory_pathThirdFileRead.wsdl Partner Link Type Read2_plt Partner Role Leave unspecified. My Role Read2_role Table 8–5 Receive Dialog Fields and Values Field Value Name receiveFirst Partner Link FirstReceive Create Instance Select this checkbox. Table 8–4 Cont. Partner Link Dialog Fields and Values Field Value 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.