Search Results submit_task
Overview
APPS.PA_TASK_APPROVAL_PKG is a PL/SQL package body that supports the Oracle Projects task approval workflow within Oracle E-Business Suite 12.1.1 and 12.2.2. Its principal business purpose is to determine whether a project task qualifies for approval flow logic and to submit tasks into the Oracle Workflow engine for approval. This package is central to Oracle Projects task-level approvals, where individual project elements (tasks) may require manager sign-off before becoming effective for budgeting, costing, or resource assignment.
The package header identifies a debug logging helper, log_message, that is guarded by the profile option PA_DEBUG_MODE. When this profile is set to 'Y', diagnostic output is routed through PA_DEBUG.WRITE, allowing administrators to trace workflow decisions such as child-versus-parent task determination. This instrumentation reflects the package's role in a workflow context where diagnosing approval routing is operationally important.
A key structural concern of the package is hierarchical task relationships. The cursor in Is_Child_Task joins PA_PROJ_ELEMENT_VERSIONS against PA_OBJECT_RELATIONSHIPS to detect whether a given task has a parent through the 'S' (subtask) relationship. This determination drives approval routing, since top-level and child tasks may follow different approval paths.
Key Procedures and Functions
- SUBMIT_TASK — The primary entry point invoked to submit a task into the approval workflow. It is the procedure most commonly referenced when users search for the task approval workflow start, associated with the Workflow activity commonly named
start_task_aprv_wf. - IS_CHILD_TASK — Returns a Boolean indicating whether the specified project element is a child task (that is, has a parent task) or a top/root task. This result governs approval behavior and workflow branching.
- IS_PARENT_TASK_APPROVED — Returns a Boolean describing whether the parent task of a given task has itself been approved. This supports sequenced approvals in which a child task cannot proceed until its parent is approved.
- CHECK_USEDTASK_STATUS — Evaluates the approval status of a task that is in use, providing a validation checkpoint before approval actions proceed.
- MARK_CO_STATUS — Updates control-item or related status flags associated with the task approval process, typically to reflect approval completion.
These five documented procedures and functions operate together to evaluate hierarchy, parent approval state, and task status, then drive the workflow submission and status updates.
Tables Accessed
- PA_PROJ_ELEMENTS / PA_PROJ_ELEMENT_VERSIONS — Core task and task-version definitions; used to resolve the project element and its version, and to detect parent relationships.
- PA_OBJECT_RELATIONSHIPS — Stores relationships between tasks, including the parent-child 'S' relationship used by
Is_Child_Task. - PA_TASKS — Task operational data referenced in conjunction with element versions.
- PA_BUDGET_VERSIONS — Budget version context relevant to whether approval is permitted or required.
- PA_RESOURCE_ASSIGNMENTS — Assignment data consulted for task-in-use status evaluation.
- PA_CONTROL_ITEMS — Control-level records updated by status-marking procedures.
Usage Notes
PA_TASK_APPROVAL_PKG is invoked from Oracle Projects task approval flows, most visibly through the Workflow activity start_task_aprv_wf, which serves as the starting function called by the task approval workflow. It is also referenced by two other packages, indicating dependence in the broader task and project approval code base. Customizations that alter task approval routing should avoid direct modification of this package and instead extend through supported workflow or API mechanisms, since changes to parent-task and child-task logic affect approval integrity across projects. Debug tracing can be enabled by setting the PA_DEBUG_MODE profile option during troubleshooting.