9.5 APPROVE_TASK Procedure
Caution:
This API is deprecated and will be removed in a future release.
Use APEX_HUMAN_TASK instead.
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
.
See Also:
COMPLETE_TASK ProcedureSyntax
APEX_APPROVAL.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 claim the task
implicitly.
|
State Handling
Pre-State: ASSIGNED|UNASSIGNED
(p_autoclaim=true
)
Post-State: COMPLETED
Example
BEGIN
apex_approval.approve_task(
p_task_id => 1234);
END;
Parent topic: APEX_APPROVAL (Deprecated)