Results for “condition_expr_code”

26 results




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

Overview

OKC_XPRT_RULE_HDRS_ALL is a Contracts Core (OKC) table that stores the header-level definition of rules used by Oracle EBS Contracts expert (XPRT) processing. It holds rule header information for rules tied to specific contract templates as well as rules assigned globally across all templates within an operating unit. Each row represents one rule, identified by the surrogate primary key RULE_ID via the constraint OKC_XPRT_RULE_HDRS_ALL_PK.

Functionally, this table acts as the master registry for the expert rule engine: it defines a rule through its intent, type, conditions, and status, and then feeds downstream rule components such as conditions, outcomes, and template associations. It is heavily used during contract authoring and template application, where the system evaluates rules to drive clause selection, deviation handling, and terms behavior.

Under the heuristic Data Vault classification supplied in the metadata, this object is treated as a standalone structure. In modeling terms, this suggests it functions most naturally as a hub-like reference entity for rule identity, with downstream child tables (conditions, outcomes, template rules) acting as links or satellites that surround it. The classification is a modeling suggestion rather than a physical design statement.

Key Information Stored

The table exposes 22 columns. The most significant are summarized below.

The two documented unique indexes — U1 on RULE_ID and U2 on (ORG_ID, RULE_NAME) — distinguish the surrogate key from the natural business key.

Common Use Cases and Queries

Typical usage centers on reporting and troubleshooting the expert rule engine. A frequent pattern is listing all active rules for an operating unit:

  • SELECT rule_id, rule_name, rule_type, status_code FROM okc_xprt_rule_hdrs_all WHERE org_id = :p_org_id AND status_code = 'ACTIVE';
  • Joining to OKC_XPRT_TEMPLATE_RULES to enumerate rules attached to a given contract template.
  • Joining to OKC_XPRT_RULE_CONDITIONS and OKC_XPRT_RULE_OUTCOMES to reconstruct full rule logic for audit or debugging.
  • Identifying organizational-wide rules using ORG_WIDE_FLAG = 'Y'.
  • Detecting duplicate or conflicting rule names by grouping on (ORG_ID, RULE_NAME).

Because the table is keyed by RULE_ID, most joins flow outward to the child rule component tables. Reports commonly filter by ORG_ID, STATUS_CODE, and PUBLISHED_FLAG to scope results to a specific operating unit and release state.

Related Objects

The documented foreign keys establish the following key relationships:

  • HR_ALL_ORGANIZATION_UNITS — Joined via OKC_XPRT_RULE_HDRS_ALL.ORG_ID to resolve the owning operating unit.
  • OKC_TERMS_DEVIATIONS_T — Referenced via RULE_ID; associates rules with terms deviations.
  • OKC_XPRT_RULE_CONDITIONS — Referenced via RULE_ID; holds the condition components of each rule.
  • OKC_XPRT_RULE_OUTCOMES — Referenced via RULE_ID; holds the outcome components that fire when conditions are met.
  • OKC_XPRT_TEMPLATE_RULES — Referenced via RULE_ID; links rules to specific contract templates.

Together these child tables form the complete expert rule engine model, with OKC_XPRT_RULE_HDRS_ALL serving as the central header entity that conditions, outcomes, deviations, and template associations all reference through RULE_ID.