Creating ADF Task Forms

You have created Human Tasks for users/participants to interact with your process and perform activities/actions on those tasks by logging in to the Oracle BPM workspace.

Each task that you create has two parts. One is the metadata and other one is the Task Form, which is used to display the contents of the task in the user's Worklist when he/she logs in to Oracle BPM Worklist applications. When a user logs in to Worklist applications and drills down into a task, the task display form renders the details of the task.

For Human Tasks, you create a task display form, which is a Java Server Page XML (.jspx) file that you create in the Oracle JDeveloper designer where you created the SOA composite containing the task. There are many ways to create a task display form for Human Tasks—Auto Generate, Wizard Driven and Task flow based on Human tasks. Whatever mechanism you adopt, you must have a previously created Human Task (.task file) as part of an SOA composite, before you can create task flow.

In this section, you will create a Task Form for the Enter Quote Details Human Task. Earlier, you created it using Auto Generate and Wizard driven mechanisms; here, you will create it using task flow.

Note

Delete the earlier UI project for the Enter Quote Details Human Task. Open JDeveloper, right-click on the EnterQuoteUI project and select Delete Project. Choose Remove project from applications and click OK.

How it works...

In this section, you will learn to create Task Forms.

I. Create task display forms based on Human Tasks

  1. Open JDeveloper in the default role.
  2. Open the application containing the SalesToContractDemo project.
  3. Create a new project by clicking New Project.
    How it works...
  4. Go to All technologies | General | Projects and select Generic Project.
  5. Click OK.
  6. Enter EnterQuoteDetailsUI as the name of the project and click Finish.
  7. You will find that a project is created in the application navigator in the same application in which the SalesToContractDemo project is located.
  8. When you have completed the preceding steps, click Save.
  9. Right-click on the new, empty project, EnterQuoteDetailsUI, and select New.
  10. In the New Gallery dialog, go to All Technologies | Web tier | JSF and select ADF Task Flow Based on Human Task, within Items.
  11. Click OK.
    How it works...
  12. In the SOA Resource Browser dialog, find the EnterQuoteDetails.task file. This is the task metadata where you have defined the Enter Quote Human Task.
  13. Click OK.
    How it works...
  14. Place a check next to Create as Bounded Task Flow, in the Create Task Flow dialog.
  15. The Task Flow dialog provides a modular approach for defining control flow in an application.
    How it works...
  16. Let the other entries remain default and click OK.

    Note

    Bounded task flow is a specialized form of task flow that has a single entry point and zero or more exit points. It contains its own set of private control flow rules, activities, and managed beans. An ADF bounded task flow allows reuse, parameters, transaction management, and reentry.

  17. You can find the taskdetails1_jspx icon in the designer.
    How it works...
  18. When you have finished following the preceding steps, click Save.

How it works...

You have created this task flow based on a Human Task. You can find drop handlers, parameters, and operations in the Data Controls section. They wire the task flow application with the workflow services. Navigate to Data Controls in JDeveloper and verify that Human Tasks are aware of data controls that wire the task flow application with the workflow services.

How it works...
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.19.75