Example: Creating a Human Task from a Form Submission

You can configure both approval and action tasks, collectively known as human tasks , as page processes that can run upon submission of a form.

This example uses the Sample Workflows, Approvals, and Tasks application, which you can install from the Gallery. This example demonstrates how to set up the process that initiates a job change approval task when a user submits the Request Job Change form.

To create approval tasks when the Request Job Change form is submitted:

  1. Open 7 - Request Job Change in Page Designer.

  2. Open the Processing tab.

  3. Right-click Processing and select Create Process.

  4. Under Identification:

    1. Name - Submit Task

    2. Type - Human Task - Create

  5. Under Settings:

    1. Definition - Job Change

    2. Details Primary Key Item - P7_EMPNO

  6. Under Execution Options:

    1. Sequence - 20

    2. Point - Processing

    3. Run Process - Once Per Page Visit (Default)

  7. Under Server-side Condition:

    1. When Button Pressed - SUBMIT_FOR_APPROVAL

    2. Type - Leave as - Select -

  8. Set the Page Process Parameters.

    1. On the Processing tab, under Submit Task, expand Parameters.

    2. Select New Job.

    3. Under Value, select Item.

    4. Set Item to P7_PROPOSED_JOB.

  9. Click Save.

APEX creates an approval task when a user submits the Request Job Change form. Note: You can use the same steps to create an action task from a form submission.