31.5 APPROVE_TASK Procedure
This procedure approves a Task. Only the potential owner or actual owner of the task can invoke this procedure. This procedure moves the state of the Task to Completed and sets the outcome of the Task to Approved.
This is a convenience procedure and equivalent to calling complete_task with outcome apex_approval.c_task_outcome_approved.
Syntax
APEX_HUMAN_TASK.APPROVE_TASK (
p_task_id IN NUMBER,
p_autoclaim IN BOOLEAN DEFAULT FALSE );Parameters
| Parameter | Description |
|---|---|
p_task_id |
The Task ID. |
p_autoclaim |
If Task is in state UNASSIGNED then claims the task implicitly.
|
State Handling
Pre-State: ASSIGNED|UNASSIGNED (p_autoclaim=true)
Post-State: COMPLETED
Example
BEGIN
apex_human_task.approve_task(
p_task_id => 1234);
END;Parent topic: APEX_HUMAN_TASK