Search Results brm_boolean_operator




Overview

The APPS.JTF_BRM_EXPRESSION_LINES_V view exposes the expression-line rows that make up the rule conditions used by Oracle E-Business Suite's Business Rule Management (BRM) engine. In EBS 12.1.1 and 12.2.2, the BRM framework evaluates rule expressions composed of a left operand, an operator, a right operand, and optional parentheses and boolean connectors. The base table JTF_BRM_EXPRESSION_LINES stores these fragments in denormalized code form, relying on lookups to translate stored codes into user-readable meanings. This view performs that translation, joining each expression line to the appropriate FND_LOOKUPS entries so that tools and reports display meaningful text rather than cryptic lookup codes.

It is a read-only reporting and integration object, typically consumed by concurrent programs, OA Framework pages, and custom BI Publisher or OBIEE extracts that need to present rule logic in a human-readable fashion. The view is defined under the APPS schema and is declarative only; it holds no data of its own.

Underlying Base Objects

The view is defined over the following documented objects:

  • JTF_BRM_EXPRESSION_LINES (SYNONYM) — the primary source of expression-line rows, aliased as jbe. It supplies the row identifier, parent rule reference, sort order, and all coded attribute values.
  • FND_LOOKUPS (VIEW) — joined four times as inline subqueries (fl1 through fl4) to resolve the parenthesis, operator, and boolean-operator codes into their meanings. Each subquery filters to a specific lookup type and enforces enabled_flag = 'Y' plus active date-range conditions against TRUNC(SYSDATE).
  • FND_GLOBAL (PACKAGE) — referenced for session context (for example, responsibility or user identity), consistent with standard EBS multi-org and security-aware view patterns.

The four lookup types used are JTF_BRM_LEFT_PARENTHESIS_TYPE, JTF_BRM_OPERATOR_TYPE, JTF_BRM_RIGHT_PARENTHESIS_TYPE, and the boolean-operator type (the fourth subquery, truncated in the source).

Key Columns

Common Use Cases and Queries

Typical scenarios include reconstructing a rule's full expression for documentation, auditing which parentheses or operators are in active use, and feeding rule logic into reporting layers.

  • Retrieve ordered, human-readable lines for one rule.
  • Identify all lines referencing a specific parenthesis type via the searched term.
  • Join to the rule header table for rule names in extracts.
SELECT rule_id, sort_sequence,
       brm_left_parenthesis, left_value,
       brm_operator, right_value,
       brm_right_parenthesis, brm_boolean_operator
FROM   apps.jtf_brm_expression_lines_v
WHERE  rule_id = :p_rule_id
ORDER  BY sort_sequence;
SELECT expression_line_id, rule_id, brm_left_parenthesis
FROM   apps.jtf_brm_expression_lines_v
WHERE  brm_left_parenthesis IS NOT NULL;

Because the lookups are filtered to enabled and current-dated rows, the view returns only meanings that are valid at query time, which is important when reporting on rules whose codes may have been deprecated.