Under the Task Configuration tab, click the Event Driven tab. In the Tasks to be configured pane, select a task. Then click the Edit pencil icon.

Using Approval Management 26-73 Figure 26–88 Task Listing Region

26.5.5.1 How to Embed the Task Listing Region in an Application

The task listing region is exposed as a portlet and can be embedded in other applications. The consumer application is developed using JDeveloper. The task list portlet then is embedded in a page in the consumer application. At run time, the login credentials passed to the consumer application are propagated to the WSRP producer and the portlet content is displayed on the page. The standalone task list portlet is deployed on the WLS PORTLET server, which would contact the remote WLS SOA server for workflow services. A separate portlet ear is provided for deployment on the portlet server. Any consumer can use the task list portlet after registering to the portlet producer WLS Portlet server. To embed the task listing region in an application: The task list ADF library adflibTaskListTaskFlow.jar file must be in the class path. This jar is available in JDeveloper in the BPM Worklist Components library.

1. In JDeveoloper, create a new application and provide a name; for example,

TaskListTaskFlowSample.

2. Add adflibTaskListTaskFlow.jar task flow in the projects class path.

3. Add the following libraries from Libraries and Classpath to the class path:

■ BPM Worklist Components ■ BPM Workflow ■ WSRP Container 26-74 Modeling and Implementation Guide for Oracle Business Process Management 4. If you run your application on a non-SOA server, perform the steps listed in Section 26.5.5.1.1, How to Deploy a Human Task Detail Page on a Remote Non-SOA Server. Otherwise, continue to step 5. 5. Create a .jspx page. You can name it something like testSample.jspx.

6. Choose adflibTaskListFlow.jar from the Component Palette, and drag

Tasklist-flow-definition onto the.jspx page as a region. The Edit Task Flow Binding dialog displays. Figure 26–89 Edit Task Flow Binding Dialog Example 26–7 shows what is created in testSamplePagedef.xml. Example 26–7 testSamplePagedef.xml Code taskFlow id=taskListtaskflowdefinition1 taskFlowId=WEB-INFtaskList-task-flow-definition.xml taskList-task-flow-definition xmlns=http:xmlns.oracle.comadfcontrollerbinding parameters parameter id=federatedMode value=true xmlns=http:xmlns.oracle.comadfmuimodel parameter id=showServerColumn value=true xmlns=http:xmlns.oracle.comadfmuimodel parameters taskFlow

7. Add the following shared libraries to weblogic-application.xml:

library-ref library-nameoracle.soa.workflowlibrary-name library-ref

8. From the Edit WAR Deployment Profile Properties dialog, select the following:

■ adflibTaskListTaskFlow.jar ■ adflibWorklistComponents.jar Note: Add the libraries appropriately if you have oracle.soa.workflow.wc installed on your server.