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:
-
Open 7 - Request Job Change in Page Designer.
-
Open the Processing tab.
-
Right-click Processing and select Create Process.
-
Under Identification:
-
Name -
Submit Task -
Type -
Human Task - Create
-
-
Under Settings:
-
Definition -
Job Change -
Details Primary Key Item -
P7_EMPNO
-
-
Under Execution Options:
-
Sequence -
20 -
Point -
Processing -
Run Process -
Once Per Page Visit (Default)
-
-
Under Server-side Condition:
-
When Button Pressed -
SUBMIT_FOR_APPROVAL -
Type - Leave as
- Select -
-
-
Set the Page Process Parameters.
-
On the Processing tab, under Submit Task, expand Parameters.
-
Select New Job.
-
Under Value, select
Item. -
Set Item to
P7_PROPOSED_JOB.
-
-
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.