27.7 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_HUMAN_TASK.CLAIM_TASK (
    p_task_id                IN NUMBER );

Parameters

Parameter Description
p_task_id The Task ID.

State Handling

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

Example

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