Search Results okc_xprt_template_rules
Overview
The OKC_XPRT_TEMPLATE_RULES table is a core data object within the Oracle E-Business Suite Contracts Core (OKC) module, specifically in versions 12.1.1 and 12.2.2. As an intersection or junction table, its primary role is to manage the many-to-many relationship between contract templates and business rules. This structure allows a single template to be associated with multiple rules and a single rule to be applied across multiple templates. The table is essential for the expert rules engine functionality, enabling the automated application of predefined business logic and validations during the contract authoring and management lifecycle. By centralizing these associations, it provides a flexible framework for enforcing consistent contract governance and compliance across the enterprise.
Key Information Stored
The table's central purpose is to store the unique association between a template and a rule. While the provided metadata specifies only the primary key column, the table's nature as an intersection entity implies it must contain at least two foreign key columns. Based on standard Oracle EBS design patterns for such tables, the critical columns are:
- TEMPLATE_RULE_ID: The primary key (PK) column, uniquely identifying each template-rule association record. This is a system-generated sequence number.
- TEMPLATE_ID: A foreign key (FK) column, expected to reference a unique contract template identifier from a parent template table (e.g., OKC_XPRT_TEMPLATES_B).
- RULE_ID: A foreign key (FK) column, expected to reference a unique business rule identifier from a parent rules table (e.g., OKC_XPRT_RULES_B).
Additional columns likely exist to track standard Oracle EBS audit information, such as CREATION_DATE, CREATED_BY, LAST_UPDATE_DATE, and LAST_UPDATED_BY.
Common Use Cases and Queries
This table is primarily accessed to determine which business rules are active for a given contract template or to audit rule assignments. Common operational and reporting scenarios include listing all rules attached to a specific template before contract creation, or identifying all templates that utilize a particular rule for impact analysis prior to a rule modification. A typical query to retrieve all rules for a template would involve joining to the parent rule table:
- SELECT r.rule_code, r.rule_name FROM okc_xprt_template_rules tr, okc_xprt_rules_b r WHERE tr.rule_id = r.rule_id AND tr.template_id = :p_template_id;
Data from this table is also critical for the Contracts Expert UI, where the associated rules are presented and can be executed during contract authoring, and for backend APIs that validate and process contract terms based on the template's rule set.
Related Objects
The OKC_XPRT_TEMPLATE_RULES table sits at the intersection of two key entities in the Contracts Core module. Its relationships are defined by its foreign keys:
- Parent Table (Template): OKC_XPRT_TEMPLATES_B (or a similar template master table). The TEMPLATE_ID column in OKC_XPRT_TEMPLATE_RULES is a foreign key referencing the primary key of this table.
- Parent Table (Rule): OKC_XPRT_RULES_B (or a similar rules master table). The RULE_ID column in OKC_XPRT_TEMPLATE_RULES is a foreign key referencing the primary key of this table.
- Primary Key Constraint: OKC_XPRT_TEMPLATE_RULES_PK, defined on the TEMPLATE_RULE_ID column.
This table is referenced by the Contracts Core application's business logic and is integral to the functioning of the expert rules engine, though it is typically accessed through higher-level application programming interfaces (APIs) rather than directly.
-
Table: OKC_XPRT_TEMPLATE_RULES
12.1.1
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_XPRT_TEMPLATE_RULES, object_name:OKC_XPRT_TEMPLATE_RULES, status:VALID, product: OKC - Contracts Core , description: Intersection entity between templates and rules. , implementation_dba_data: OKC.OKC_XPRT_TEMPLATE_RULES ,
-
Table: OKC_XPRT_TEMPLATE_RULES
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_XPRT_TEMPLATE_RULES, object_name:OKC_XPRT_TEMPLATE_RULES, status:VALID, product: OKC - Contracts Core , description: Intersection entity between rules and templates , implementation_dba_data: OKC.OKC_XPRT_TEMPLATE_RULES ,
-
APPS.OKC_XPRT_UTIL_PVT dependencies on OKC_XPRT_TEMPLATE_RULES
12.2.2
-
APPS.OKC_XPRT_IMPORT_TEMPLATE_PVT dependencies on OKC_XPRT_TEMPLATE_RULES
12.1.1
-
APPS.OKC_XPRT_IMPORT_RULES_PVT dependencies on OKC_XPRT_TEMPLATE_RULES
12.1.1
-
APPS.OKC_XPRT_IMPORT_TEMPLATE_PVT dependencies on OKC_XPRT_TEMPLATE_RULES
12.2.2
-
APPS.OKC_XPRT_IMPORT_PVT dependencies on OKC_XPRT_TEMPLATE_RULES
12.2.2
-
APPS.OKC_XPRT_UTIL_PVT dependencies on OKC_XPRT_TEMPLATE_RULES
12.1.1
-
APPS.OKC_XPRT_RULE_PVT dependencies on OKC_XPRT_TEMPLATE_RULES
12.2.2
-
APPS.OKC_XPRT_RULE_PVT dependencies on OKC_XPRT_TEMPLATE_RULES
12.2.2
-
APPS.OKC_XPRT_TMPL_RULE_ASSNS_PVT dependencies on OKC_XPRT_TEMPLATE_RULES
12.2.2
-
APPS.OKC_XPRT_RULES_ENGINE_PVT dependencies on OKC_XPRT_TEMPLATE_RULES
12.2.2
-
APPS.OKC_XPRT_IMPORT_RULES_PVT dependencies on OKC_XPRT_TEMPLATE_RULES
12.2.2
-
APPS.OKC_CLM_PKG dependencies on OKC_XPRT_TEMPLATE_RULES
12.2.2
-
APPS.OKC_XPRT_XRULE_VALUES_PVT dependencies on OKC_XPRT_TEMPLATE_RULES
12.1.1
-
APPS.OKC_XPRT_TMPL_RULE_ASSNS_PVT dependencies on OKC_XPRT_TEMPLATE_RULES
12.1.1
-
APPS.OKC_XPRT_QA_PVT dependencies on OKC_XPRT_TEMPLATE_RULES
12.1.1
-
APPS.OKC_XPRT_XRULE_VALUES_PVT dependencies on OKC_XPRT_TEMPLATE_RULES
12.2.2
-
APPS.OKC_XPRT_QA_PVT dependencies on OKC_XPRT_TEMPLATE_RULES
12.2.2
-
APPS.OKC_TERMS_TMPL_APPROVAL_PVT dependencies on OKC_XPRT_TEMPLATE_RULES
12.2.2
-
APPS.OKC_XPRT_TMPL_RULE_ASSNS_PVT SQL Statements
12.1.1
-
APPS.OKC_XPRT_TMPL_RULE_ASSNS_PVT SQL Statements
12.2.2
-
VIEW: OKC.OKC_XPRT_TEMPLATE_RULES#
12.2.2
owner:OKC, object_type:VIEW, object_name:OKC_XPRT_TEMPLATE_RULES#, status:VALID,
-
APPS.OKC_XPRT_QA_PVT dependencies on OKC_TERMS_TEMPLATES_ALL
12.1.1
-
APPS.OKC_XPRT_IMPORT_PVT dependencies on OKC_TERMS_TEMPLATES_ALL
12.2.2
-
APPS.OKC_XPRT_UTIL_PVT dependencies on OKC_XPRT_RULE_HDRS_ALL
12.1.1
-
APPS.OKC_XPRT_XRULE_VALUES_PVT dependencies on OKC_TEMPLATE_USAGES
12.2.2
-
VIEW: OKC.OKC_XPRT_TEMPLATE_RULES#
12.2.2
-
APPS.OKC_XPRT_XRULE_VALUES_PVT dependencies on OKC_TEMPLATE_USAGES
12.1.1
-
APPS.OKC_XPRT_XRULE_VALUES_PVT dependencies on OKC_XPRT_RULE_HDRS_ALL
12.2.2
-
APPS.OKC_XPRT_QA_PVT dependencies on OKC_TERMS_TEMPLATES_ALL
12.2.2
-
APPS.OKC_XPRT_UTIL_PVT dependencies on OKC_XPRT_RULE_HDRS_ALL
12.2.2
-
APPS.OKC_XPRT_XRULE_VALUES_PVT dependencies on OKC_XPRT_RULE_HDRS_ALL
12.1.1
-
APPS.OKC_XPRT_XRULE_VALUES_PVT dependencies on OKC_XPRT_RULE_CONDITIONS
12.1.1
-
APPS.OKC_XPRT_RULES_ENGINE_PVT dependencies on OKC_XPRT_RULE_COND_ACTIVE_V
12.2.2
-
APPS.OKC_XPRT_XRULE_VALUES_PVT dependencies on OKC_XPRT_RULE_CONDITIONS
12.2.2
-
SYNONYM: APPS.OKC_XPRT_TEMPLATE_RULES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_XPRT_TEMPLATE_RULES, status:VALID,
-
APPS.OKC_XPRT_UTIL_PVT dependencies on FND_GLOBAL
12.2.2
-
APPS.OKC_XPRT_UTIL_PVT dependencies on OKC_XPRT_RULE_OUTCOMES
12.1.1
-
APPS.OKC_XPRT_RULES_ENGINE_PVT dependencies on OKC_XPRT_RULE_HDRS_ALL_V
12.2.2
-
SYNONYM: APPS.OKC_XPRT_TEMPLATE_RULES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_XPRT_TEMPLATE_RULES, status:VALID,
-
APPS.OKC_XPRT_UTIL_PVT dependencies on OKC_XPRT_RULE_OUTCOMES
12.2.2
-
APPS.OKC_XPRT_RULES_ENGINE_PVT dependencies on OKC_XPRT_QUESTION_ORDERS
12.2.2
-
APPS.OKC_XPRT_XRULE_VALUES_PVT SQL Statements
12.2.2
-
APPS.OKC_XPRT_TMPL_RULE_ASSNS_PVT dependencies on FND_GLOBAL
12.2.2
-
APPS.OKC_XPRT_TMPL_RULE_ASSNS_PVT dependencies on FND_GLOBAL
12.1.1
-
APPS.OKC_XPRT_UTIL_PVT dependencies on OKC_XPRT_RULE_CONDITIONS
12.2.2
-
APPS.OKC_XPRT_QA_PVT dependencies on OKC_XPRT_RULE_HDRS_ALL
12.1.1
-
APPS.OKC_XPRT_UTIL_PVT dependencies on OKC_XPRT_RULE_CONDITIONS
12.1.1
-
APPS.OKC_XPRT_QA_PVT dependencies on OKC_XPRT_RULE_HDRS_ALL
12.2.2