6.6 CLAIM_TASK Procedure

This procedure claims responsibility for a task. A task can be claimed by potential owners of the Task. A Task must be in Unassigned state to claim it. Once the task is claimed by a user, the Task transitions to Assigned state and the actual owner of the task is set to the user who claimed the task.

Syntax

APEX_APPROVAL.CLAIM_TASK (
    p_task_id                IN NUMBER );

Parameters

Table 6-6 CLAIM_TASK Parameters

Parameter Description
p_task_id The Task ID.

State Handling

Pre-State: UNASSIGNED. Post-State: ASSIGNED.

Example

BEGIN
    apex_approval.claim_task(
        p_task_id => 1234);
END;