ADD_TASK_POTENTIAL_OWNER Procedure
Caution:
This API is deprecated and will be removed in a future release.
Use APEX_HUMAN_TASK instead.
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
| 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. <div class="infoboxnote" id="GUID-CCD5B305-BB5E-4C22-A414-5AB1A210DA49__GUID-0E9C8217-D3C2-4F48-A77E-FEED496B7C4F"> <p class="notep1">Note:</p>As of this release, the only supported identity type is USER. Additional options will be added in a future release. </div> |
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;