Human Workflow Use Cases

26-16 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite Figure 26–8 BPEL Process in SOA Composite Editor For more information about service components and the SOA Composite Editor, see Chapter 2, Developing SOA Composite Applications with Oracle SOA Suite.

26.3.2.2.2 Create the Human Task Service Component

You are now ready to create the human task service component in which you design your human task. To create the human task service component: 1. From the Service Components section of the Component Palette, drag a Human Task into the SOA Composite Editor. The Create Human Task dialog appears. 2. Enter the details described in Table 26–2 .

3. Click OK.

The Human Task icon appears in the SOA Composite Editor above the BPEL process, as shown in Figure 26–9 . Table 26–2 Create Human Task Dialog Fields and Values Field Value Name Enter VacationRequestTask. Namespace Accept the default value. Create Composite Service with SOAP Bindings Do not select the checkbox. Instead, you create a human task that you later associate with the BPEL process you created in Section 26.3.2.2.1, Creating an Application and a Project with a BPEL Process. The BPEL process was created with an automatically-bound web service. Getting Started with Human Workflow 26-17 Figure 26–9 Human Task Icon in SOA Composite Editor

4. Double-click the Human Task icon.

The Human Task Editor appears. You are now ready to begin design of your human task.

26.3.2.2.3 Designing the Human Task

To design the human task: 1. In the Task Title field, enter Request for Vacation. 2. Accept the default values for outcomes APPROVE and REJECT. For this task, these outcomes represent the two choices the manager has for acting on the vacation request.

3. Click the Data tab on the left side of the editor.

4. Click the Add icon to specify the task payload.

5. Select Add string parameter.

The Add Task Parameter dialog is displayed. You now create parameters to represent the elements in your XSD file. This makes the payload data available to the workflow task.

6. Select Element.

7. To the right of the Element field, click the Search icon.

The Type Chooser dialog appears.

8. Expand and select Project Schema Files VacationRequest.xsd

VacationRequestProcessRequest , and click OK. Figure 26–10 provides details. 26-18 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite Figure 26–10 Type Chooser Dialog

9. Ensure that the Editable via worklist checkbox is selected. This provides you with

the option to modify this parameter during runtime from Oracle BPM Worklist.

10. Click OK on the Add Task Parameter dialog.

11. Click the Assignment tab on the left side of the editor.

12. Highlight the Edit participant box below Stage1, as shown in

Figure 26–11 . Figure 26–11 Assignment and Routing Policy

13. At the top of the Human Task Editor, click the Edit icon.

The Edit Participant Type dialog appears. You now add participants to this task. As described in Section 26.2.1.1.2, Participant Type, Oracle SOA Suite provides several out-of-the-box patterns known as participant types for addressing specific business needs.