Service Engines Introduction to Human Workflow Architecture

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. Designing Human Tasks 27-5

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

The Create Human Task dialog appears.

3. Click the Add icon to create a human task.

4. In the Name field, enter a name.

The name you enter becomes the .task file name.

5. In the Title field, enter a task.

6. Click OK.

The Human Task Editor appears. For more information about creating a human task service component in the SOA Composite Editor, see Chapter 2, Developing SOA Composite Applications with Oracle SOA Suite.

27.3.2 What Happens When You Create a Human Task Service Component

When a human task is created, the following folders and files appear: ■ The human task settings specified in the Human Task Editor are saved to a metadata task configuration file in the metadata service MDS repository with a .task extension. This file appears in the Application Navigator under SOA_ Project_Name SOA Content. You can re-edit the settings in this file by double-clicking the following: – The .task file in the Application Navigator in either the SOA Composite Editor or Oracle BPEL Designer – The human task icon in the SOA Composite Editor or in your BPEL process in Oracle BPEL Designer. This reopens the .task file in the Human Task Editor. ■ A Human Tasks folder containing the human task you created appears in the Structure window of the SOA Composite Editor. Figure 27–4 shows these folders and files. Note: You can also create a human task that you later associate with a BPEL process by selecting New from the File main menu, then selecting SOA Tier Service Components Human Task. 27-6 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite Figure 27–4 Human Task Folders and Files For information about available samples, see Section 26.3.2, Designing a Human Task from Start to Finish.

27.3.3 How to Access the Sections of the Human Task Editor

To access the sections of the Human Task Editor: 1. Double-click the Human Task icon in the SOA Composite Editor or double-click the Human Task icon in Oracle BPEL Designer and click the Edit icon in the upper right corner. The Human Task Editor consists of the main sections shown on the left side in Figure 27–5 . These sections enable you to design the metadata of a human task. Figure 27–5 Human Task Editor Instructions for using these main sections of the Human Task Editor to create a workflow task are listed in Table 27–1 .