6.26 SET_TASK_PRIORITY Procedure

This procedure sets the priority of a task.

This procedure updates the priority of a task. The task can not be COMPLETED or ERRORED. Only a user who is either a Business Administrator for the task or is the initiator of the task can invoke this procedure.

Syntax

APEX_APPROVAL.SET_TASK_PRIORITY (
    p_task_id                IN NUMBER,
    p_priority               IN INTEGER );

Parameters

Table 6-24 SET_TASK_PRIORITY Parameters

Parameter Description
p_task_id The Task ID.
p_priority The task priority (between 1 and 5, 1 being the highest).

Example

BEGIN
    apex_approval.set_task_priority(
        p_task_id  => 1234,
        p_priority => apex_approval.c_task_priority_highest
    );
END;