Results for “okc_k_articles_pvt”

50+ results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

The APPS.OKC_K_ARTICLES_PVT package body is a private implementation package within the Oracle E-Business Suite Contracts (OKC) module, classified under the ETRM framework as a PVT (private) API. It provides the internal processing logic that manages contract articles — the clause, term, and condition text records that constitute the body of a contract or terms template. Articles are stored against contract line, header, or template structures, and this package encapsulates the low-level DML, versioning, and validation operations required to keep those records consistent.

The package is not directly referenced by any other database object and is not intended for direct invocation by external code. Instead, it acts as the workhorse layer beneath the public OKC article APIs and the Oracle Forms user interfaces that maintain contract terms. Its role centers on the OKC_K_ARTICLES base tables and their history, version, and security companion tables.

Key Procedures and Functions

The package exposes eleven documented procedures and functions:

  • INSERT_ROW — Creates a new article record, populating the base table and its associated security row.
  • LOCK_ROW — Acquires a logical lock on an article record to prevent concurrent modification.
  • UPDATE_ROW — Applies changes to an existing article record and writes the corresponding history entry.
  • DELETE_ROW — Removes a single article record and its dependent security and history data.
  • DELETE_SET — Removes a group or set of articles in a single logical operation, typically when a clause set or article group is dissolved.
  • VALIDATE_ROW — Performs business-rule validation on article data prior to persistence.
  • GET_REC — Retrieves an article record for read or processing purposes.
  • CREATE_VERSION — Generates a new version of an article, preserving the prior version for audit and comparison.
  • RESTORE_VERSION — Reinstates a previously saved article version as the active record.
  • DELETE_VERSION — Removes a specific stored article version.

Together these routines cover the full article lifecycle: creation, maintenance, locking, validation, and version management.

Tables Accessed

The package reads and writes several core OKC tables through APPS synonyms:

  • OKC_K_ARTICLES_B — The primary base table holding article records; the target of insert, update, and delete operations.
  • OKC_K_ARTICLES_BH — The history table capturing prior states of article rows for audit trail purposes.
  • OKC_K_ARTICLES_B_S — The security (RLS) companion table enforcing row-level access to article records.
  • OKC_ARTICLES_ALL — The articles master table referenced during validation and retrieval.
  • OKC_ARTICLE_VERSIONS — Stores serialized article versions supporting the versioning procedures.
  • OKC_SECTIONS_B — Provides section hierarchy context for article placement.
  • DUAL — Used for single-row utility queries.

Usage Notes

OKC_K_ARTICLES_PVT is invoked indirectly through the public OKC article APIs and the Contracts authoring forms rather than called directly by custom code. Because it is a private package, Oracle does not guarantee its signature across releases, and it should not be referenced from customer extensions. Developers integrating with contract articles should use the documented public OKC APIs, which in turn delegate to this package for DML and versioning. The versioning routines support contract change management and amendment workflows, while DELETE_SET supports bulk cleanup of clause groupings. Given its central role in article maintenance, any direct modification of the underlying tables should be avoided in favor of these encapsulated operations to preserve history and security integrity.