Use of Human Task

Designing Human Tasks 27-3 Figure 27–1 Dragging a Human Task into a BPEL Process You also specify the task definition, task initiator, task priority, and task parameter mappings that carry the input data to a BPEL variable. You can also define advanced features, such as the scope and global task variables names instead of accepting the default names, task owner, identification key, BPEL callback customizations, and whether to extend the human task to include other workflow tasks. When association is complete, a task service partner link is created. The task service exposes the operations required to act on the task. You can also create the human task as a standalone component only in the SOA Composite Editor and not associate it with a BPEL process. Standalone human task service components are useful for environments in which there is no need for any automated activity in an application. In the standalone case, the client can create the task themselves. For more information, see Section 27.4, Associating the Human Task Service Component with a BPEL Process.

27.2.3 Generate the Task Form

You can generate a task form using the Oracle Application Development Framework ADF. This form is used for displaying the task details on which you act at runtime in Oracle BPM Worklist. For information on generating the task form, see Chapter 28, Designing Task Forms for Human Tasks.

27.3 Creating the Human Task Definition with the Human Task Editor

The Human Task Editor enables you to define the metadata for the task. The editor enables you to specify human task settings, such as task outcome, payload structure, assignment and routing policy, expiration and escalation policy, notification settings, and so on.

27.3.1 How to Create a Human Task Service Component

You create a human task service component in the SOA Composite Editor or in Oracle BPEL Designer. After creation, you design the component in the Human Task Editor. 27-4 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite The method by which you create the human task service component determines whether the component can be associated later with a BPEL process service component or is a standalone component in the SOA Composite Editor. To create a human task service component in the SOA Composite Editor: 1. Go to the SOA project in which to create a human task service component in the SOA Composite Editor.

2. From the Component Palette list, select SOA.

The list refreshes to display service components and service adapters.

3. From the list, drag a Human Task into the designer.

The Create Human Task dialog appears.

4. In the Name field, enter a name.

The name you enter becomes the .task file name.

5. Note the Create Composite Service with SOAP Bindings checkbox. The selection

of this checkbox determines how the human task service component is created. a. To create a human task service component that you later associate with a BPEL process service component, do not select the Create Composite Service with SOAP Bindings checkbox. The human task service component is created as a component that you explicitly associate with a BPEL process service component. Figure 27–2 provides details. Figure 27–2 Human Task Component b. To create the human task service component as a standalone component in the SOA Composite Editor, select the Create Composite Service with SOAP Bindings checkbox. This creates a human task service component that is automatically wired to a Simple Object Access Protocol SOAP web service. Figure 27–3 provides details. Figure 27–3 Standalone Human Task Component This web service provides external customers with an entry point into the human task service component of the SOA composite application.

6. Click OK.

To create a human task in Oracle BPEL Designer: 1. In the Component Palette, expand SOA Components.