How to Create a Master Process

To create a master process:

  1. In the SOA Composite Editor, create a BPEL process service component. For this example, the process is named MasterProcess.
  2. Double-click the MasterProcess BPEL process.
  3. In the Components window, expand Oracle Extensions > Signal.
  4. Drag a Signal activity into the designer.
  5. Click the Signal activity to display its property fields in the Property Inspector or double-click the Signal activity.

    For information about editing activities in the Property Inspector, see How to Edit BPEL Activities in the Property Inspector.

    This activity signals the detail process to perform processing at runtime.

  6. Enter the details described in Table 16-2:

    Table 16-2 Signal Dialog Fields and Values

    Field Value

    Name

    Enter a name (for this example, contactDetailProcess).

    Label

    Enter a label name (for this example, beginDetailProcess). This label must match the receive signal activity label you set in the detail process in Step 6.

    To

    Select details as the type of process to receive this signal.

    Figure 16-4 shows the Signal dialog.

  7. Click OK.
  8. Drag a Receive Signal activity into the designer.
  9. Double-click the Receive Signal activity.

    This activity enables the master process to wait until it receives the signal executed by all of its detail processes.

  10. Enter the details shown in Table 16-3:

    Table 16-3 Receive Signal Dialog Fields and Values

    Field Value

    Name

    Enter a name (for this example, waitForDetailProcess).

    Label

    Enter a label name (for this example, completeDetailProcess). This label must match the signal activity label you set in the detail process in Step 10.

    To

    Select details as the type of process from which to receive the signal.

    Figure 16-5 shows the Receive Signal dialog.

    Figure 16-5 Receive Signal Dialog

    Description of Figure 16-5 follows
    Description of "Figure 16-5 Receive Signal Dialog"
  11. Click OK.

    The master process has now been designed to:

    • Signal the detail process to perform processing at runtime.

    • Wait until it receives the signal executed by the detail process.