Results for “oke_k_deliverables”
6 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
OKE_K_ACCESS_RULES_PKG2 is a PL/SQL package body owned by the APPS schema in Oracle E-Business Suite, operating within the Oracle Knowledge Exchange (OKE) and Enterprise Contract Management (ETRM) module. Its central business purpose is to compile, copy, and otherwise manage the access rules that govern which contract roles may view or edit secured deliverables and related objects. In the Oracle Contracts environment, a "deliverable" is a tracked contractual obligation, and the visibility of each deliverable is governed by the role-based access rules defined for the project role type. This package performs the runtime compilation of those logical rules into the flattened, query-optimized table OKE_COMPILED_ACCESS_RULES, which downstream forms and queries read to determine the effective access level for a given user and contract role.
The package addresses a performance requirement: rather than evaluating attribute-based, role-based, and menu-based access rules dynamically at every user interaction, the rules are pre-compiled once into a single table. This compiled representation is then available for fast secure-object lookups across the OKE deliverables functionality.
Key Procedures and Functions
- COMPILE_RULES — The core engine of the package. It compiles the complete set of access rules for a single contract role identified by a role identifier. The routine first deletes any previously compiled rows for that role, retrieves the role's default access level from PA_PROJECT_ROLE_TYPES, and then reconstructs the compiled rules through several ordered stages. The first stage processes attribute-based rules, joining OKE_K_ACCESS_RULES against OKE_OBJECT_ATTRIBUTES_B and applying DECODE logic that raises a NONE access level to VIEW when the securable flag permits it. It returns a Boolean indicating success or failure and is wrapped in a SAVEPOINT so that a partial compilation can be rolled back.
- COPY_RULES — Copies an existing set of access rules from a source role to a target role, allowing administrators to reuse a configured rule set rather than rebuilding it manually. This supports bulk setup of comparable roles.
- COMPILE — A higher-level driver that orchestrates rule compilation, typically across one or more roles or in support of the deliverable-level access evaluation. It provides the entry point used by callers that need compiled rules refreshed.
Tables Accessed
- OKE_COMPILED_ACCESS_RULES — The primary write target; holds the flattened, compiled access rules produced by COMPILE_RULES.
- OKE_K_ACCESS_RULES and OKE_K_ACCESS_RULES_S — The source rule definitions, including secured object names, attribute codes, and access levels.
- OKE_OBJECT_ATTRIBUTES_B — Supplies attribute and attribute-group metadata, form-item flags, and the securable flag that influences the effective access level.
- OKE_ROLE_FUNCTIONS — Maps roles to the functions they may execute, supporting function-level access compilation.
- PA_ROLE_CONTROLS and PA_PROJECT_ROLE_TYPES — Provide role control definitions and the default access level for the role.
- FND_FORM_FUNCTIONS and FND_MENU_ENTRIES — Resolve function and menu-based access entries into the compiled result.
Usage Notes
COMPILE_RULES requires FND_GLOBAL to be initialized (FND_GLOBAL.INITIALIZE) before invocation, since it records the current user id and concurrent login id on the compiled rows. The package is typically invoked when a contract role's access rules are created or modified, or when administrative forms must refresh the compiled access model. It is referenced by no other documented packages, indicating it is called directly by Oracle Contracts forms or administrative processes rather than forming part of a wider dependency chain. Custom code should not write to OKE_COMPILED_ACCESS_RULES directly; instead, changes to source rules should be followed by a call to this package so the compiled table remains consistent with the underlying rule definitions.