Browse for and select the VacationRequest.xsd file you created in Click OK until you are returned to the Type Chooser dialog, as shown in

Getting Started with Human Workflow 26-19

14. Accept the default participant type of Single that displays in the Type list. You

select this type because a single assignee, the manager, acts on the vacation request task.

15. In the Participant Names table, click the Add icon, and select Add User.

This participant type acts alone on the task.

16. Click the Data Type column, and select By Expression from the list that is

displayed. Figure 26–12 provides details. This action enables the task to be assigned dynamically by the contents of the task. The employee filing the vacation request comes from the parameter passed to the task the creator element in the XSD file you imported in Section 26.3.2.2.1, Creating an Application and a Project with a BPEL Process . The task is automatically routed to the employee’s manager. Figure 26–12 Selection of By Expression from the Data Type Column

17. In the Value column, click the Browse icon the dots to invoke the Expression

Builder dialog.

18. In the dropdown list in the Functions section, select Identity Service Functions.

19. Select getManager. This function gets the manager of the user who created the

vacation request task.

20. Above the Functions section, click Insert into Expression.

21. Place the cursor between the parentheses of the function.

22. In the Schema section, expand task:task task:payload

ns1:VacationRequestProcessRequest ns1:creator. where ns1 is the namespace for this example; your namespace may be different. 23. Click Insert into Expression. The Expression Builder dialog displays the XPath expression in the Expression section. Figure 26–13 provides details. Figure 26–13 XPath Expression

24. Click OK to exit the Expression Builder dialog.

25. Click OK to exit the Add Participant Type dialog.

26. From the File menu, select Save All.

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

26.3.2.2.4 Associating the Human Task and BPEL Process Service Components

You are now ready to associate your human task with the BPEL process you created in Section 26.3.2.2.1, Creating an Application and a Project with a BPEL Process. To associate the human task and BPEL process service component: 1. In the Application Navigator, 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 Component Palette, expand SOA Components.

4. Drag a Human Task beneath the receiveInput receive activity.

5. Double-click the activity. The Human Task dialog appears.

6. From the Task Definition list, select the VacationRequestTask task you created if

it is not currently displaying. The dialog refreshes as shown in Figure 26–14 to display additional fields. Figure 26–14 Human Task Dialog

7. In the BPEL Variable column, click the Browse icon dots shown in

Figure 26–15 .