7.2 ADD_TASK_POTENTIAL_OWNER Procedure

This procedure adds a new potential owner to a task. Only a Business Administrator for the task can invoke this procedure. The procedure throws an error if the task is in Completed or Errored state.

Syntax

APEX_APPROVAL.ADD_TASK_POTENTIAL_OWNER (
    p_task_id                IN NUMBER,
    p_potential_owner        IN VARCHAR2,
    p_identity_type          IN t_task_identity_type default c_task_identity_type_user );

Parameters

Table 7-2 ADD_TASK_POTENTIAL_OWNER Parameters

Parameter Description
p_task_id The Task ID.
p_potential_owner The potential owner.
p_identity_type The identity type of the potential owner. Default is USER.

Note:

As of this release, the only supported identity type is USER. Additional options will be added in a future release.

Example

The following example adds user STIGER as potential owner for Task ID 1234.

BEGIN
     apex_approval.add_task_potential_owner(
         p_task_id         => 1234,
         p_potential_owner => 'STIGER'
     );
END;