Associating the Human Task and BPEL Process Service Components

Learn how to associate your human task with the BPEL.

Associate your human task with the BPEL process you created in Creating an Application and a Project with a BPEL Process.

To associate the human task and BPEL process service component:

  1. In the Applications window, double-click composite.xml.
  2. Double-click the VacationRequestProcess BPEL process service component in the SOA Composite Editor.

    The BPEL process displays in Oracle BPEL Designer.

  3. In the Components window, expand SOA Components.
  4. Drag a Human Task beneath the receiveInput receive activity. Double-click the activity.

    The Human Task dialog appears.

  5. From the Task Definition list, select the VacationRequestTask task you created (if it is not currently displaying).

    The dialog refreshes as shown in Figure 31-9 to display additional fields.

  6. In the BPEL Variable column, click the Browse icon (dots) shown in Figure 31-10.

    Figure 31-10 BPEL Variable Entry

    Description of Figure 31-10 follows
    Description of "Figure 31-10 BPEL Variable Entry"

    The Task Parameters dialog appears.

  7. From the Type list, select Variable.
  8. Expand Process > Variables > inputVariable > payload > ns1:VacationRequestProcessRequest. Figure 31-11 provides details.

    Figure 31-11 Variable Selection

    Description of Figure 31-11 follows
    Description of "Figure 31-11 Variable Selection"

    Click OK.

  9. Click OK to close the Human Task dialog.

    The human task activity appears as shown in Figure 31-12.

    Figure 31-12 Human Task and Partner Links in Oracle BPEL Designer

    Description of Figure 31-12 follows
    Description of "Figure 31-12 Human Task and Partner Links in Oracle BPEL Designer"
  10. Return to the SOA Composite Editor and note that the BPEL process and human task service components have been automatically connected. Figure 31-13 provides details. From the File menu, select Save All.

    Figure 31-13 SOA Composite Editor

    Description of Figure 31-13 follows
    Description of "Figure 31-13 SOA Composite Editor"