31.24 REJECT_TASK Procedure
This procedure rejects the task. Only a potential owner or the actual owner of the task can invoke this procedure.
Moves the state of the Task to Completed
and sets the outcome of the Task to Rejected
. This is a convenience procedure and equivalent to calling complete_task
with outcome apex_human_task.c_task_outcome_rejected
.
Syntax
APEX_HUMAN_TASK.REJECT_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_human_task.reject_task(
p_task_id => 1234
);
END;
Parent topic: APEX_HUMAN_TASK