Results for “apply_rule_bulk”

10 results




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

Overview

FUN_RULE_PUB is the public PL/SQL package that exposes the Oracle E-Business Suite Oracle Financials "Rule Engine" to external consumers. It resides in the APPS schema, is declared with AUTHID CURRENT_USER, and carries an API classification of PUB, indicating that it is a supported, externally callable interface rather than an internal helper. The package implements a generic, metadata-driven evaluation framework: callers supply a set of named parameters and an application/object identifier, and the engine returns the result of matching those parameters against user-defined rules stored in the FUN_RULE_* tables. Although the package belongs to the Financials product family (product short name "fun"), its design is application-agnostic, and the header comments demonstrate its intended use through an example that passes an application short name (for example "SQLAP") together with a customized object name.

The package tracks evaluation state through a substantial set of package-level variables, including m_ruleDetailId, m_resultApplicationId, m_ruleName, m_resultValue, m_resultValueDataType, m_attributeCategory, m_multiRuleResultFlag, m_useDefaultValueFlag, m_noRulesSatisfied, fifteen generic attribute slots (m_attribute1 through m_attribute15), m_ruleObjectType, m_ruleObjectId, and flexfield-related fields. These globals allow a caller to drive an evaluation, then retrieve individual pieces of the result through dedicated getter functions.

Key Procedures and Functions

The package documents 35 procedures and functions. The principal entry points are:

No parameter signatures are asserted here; consumers should consult the package specification for exact argument lists.

Tables Accessed

The package reads and, where applicable, writes the following tables through APPS synonyms:

Usage Notes

FUN_RULE_PUB is typically invoked from Forms, concurrent programs, and custom PL/SQL code that needs to apply configurable business rules without hard-coding logic. The canonical usage pattern, as shown in the package header, is to call INIT_PARAMETER_LIST, add each parameter with ADD_PARAMETER, and then call APPLY_RULE, retrieving the outcome through the GET_* accessors. In Oracle EBS 12.1.1 and 12.2.2 the package is referenced by seven other packages, confirming its role as a shared service. Because it is a PUB API, direct calls are supported, but callers should assume AUTHID CURRENT_USER semantics and ensure the executing schema has appropriate privileges on the underlying FUN_RULE tables.