Enter the details shown in

Coordinating Master and Detail Processes 15-11 Figure 15–7 Signal Dialog

11. Click OK.

The detail process has now been designed to: ■ Wait until it receives the signal executed by its master process. ■ Signal the master process at runtime that processing is complete.

15.2.3 How to Create an Invoke Activity

To create an invoke activity: 1. Return to the MasterProcess master process. 2. In the Component Palette, expand BPEL Constructs. 3. Drag an Invoke activity into your BPEL process service component. 4. Double-click the Invoke activity. 5. Select the DetailProcess BPEL process you created in Step 1 on page 15-9 as the partner link.

6. Complete all remaining fields in the Invoke dialog, and click OK.

7. In the designer, click Source.

8. Select the Invoke As Detail checkbox in the invoke activity. The BPEL file appears

as shown in Example 15–11 . Example 15–11 bpelx:invokeAsdetail Attribute invoke name=MyInvoke partnerLink=DetailProcess portType=dp:DetailProcess operation=initiate inputVariable=detail_input bpelx:invokeAsDetail name=true This attribute creates the partner process DetailProcess as a detail instance.

9. If this is an environment in which one master process is interacting with multiple

detail processes, perform the following tasks: 15-12 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite a. Specify the bpelx:detailLabel attribute for correlating with the receive signal activity, as shown in Example 15–12 . Example 15–12 bpelx:detailLabel Attribute invoke name=MyInvoke partnerLink=DetailProcess portType=dp:DetailProcess operation=initiate inputVariable=detail_input bpelx:detailLabel=detailProcessComplete0 bpelx:invokeAsdetail name=true b. Specify the same label value of detailProcessComplete0 in the receive signal activity of the master process, as shown in Example 15–13 . Example 15–13 detailProcessComplete0 Label Value bpelx:receiveSignal name=waitForNotifyFromDetailProcess0-1 label=detailProcessComplete0 from=details c. Repeat these steps as necessary for additional detail processes, ensuring that you specify a different label value.

10. From the File main menu, select Save All.

Master and detail coordination design is now complete.