6.21 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_approval.c_task_outcome_rejected.

Syntax

APEX_APPROVAL.REJECT_TASK (
    p_task_id                IN NUMBER,
    p_autoclaim              IN BOOLEAN DEFAULT FALSE );

Parameters

Table 6-19 REJECT_TASK 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.reject_task(
        p_task_id => 1234
    );
END;