Search Results get_current_approver




Overview

OE_APPROVALS_WF is the Oracle Order Management approval workflow package. It provides the PL/SQL plumbing that drives the approval process attached to sales orders, blanket sales agreements, and the associated Oracle Workflow process types. Where the seeded Oracle Workflow definition models the approval steps as activities, OE_APPROVALS_WF supplies the named PL/SQL functions that each activity invokes at runtime.

The package therefore bridges three subsystems: Oracle Order Management, which owns the transaction documents; Oracle Workflow, which owns the process, statuses, notifications, and routing; and Oracle Approvals Management (AME), which supplies the routed approver list when the AME-based approval mode is in use. It supports both the classic approver-list approval path and the newer AME-driven path, and it exposes the internal helper functions needed to evaluate next approvers, detect AME exceptions, and translate AME responses back into the workflow.

The header identifies the API as Public, version 1.0, defined in source file OEXWAPRS.pls. The package is owned by APPS and is classified in the ETRM documentation as OTHER. It is a self-contained utility package: it is referenced by zero other packages, meaning call sites are workflow activity assignments and internal consumers rather than inter-package dependencies.

Key Procedures and Functions

The documented surface is composed of the interface procedures and functions invoked by workflow activities, plus internal helpers and AME integration routines.

Tables Accessed

The package reads and writes the core Order Management approval tables through APPS synonyms:

Usage Notes

OE_APPROVALS_WF is not called directly by end users. Its procedures and functions are bound to Oracle Workflow activities in the Order Management approval process type, so the workflow engine invokes the appropriate routine as each activity executes. The itemtype, itemkey, actid, funcmode, and resultout signatures confirm this: they are the standard Workflow-standard activity callback parameters, with funcmode indicating whether the activity is running in RUN, CANCEL, or TIMEOUT mode.

Customizations and extensions typically interact with this package in two ways. First, by adding or modifying approver lists and members in the OE_APPROVER_* tables, which the package reads when resolving the next or current approver. Second, by extending or replacing workflow activities so that they point at custom packages while still calling these routines for identity resolution, response interpretation, and AME integration. Because the package is referenced by no other package, it can be deployed or patched in isolation, but any change to its public signatures or to the approval tables will affect the seeded approval workflow and must be regression tested against both the standard and AME-driven approval paths in Oracle EBS 12.1.1 and 12.2.2.