Skip to main content

Business Rules Data Model

Business Rules are the logic layer that enforces policies, calculates pricing, and determines eligibility.

Entity Relationship Diagram

Core Entities

Rule

Note: Rules are typically defined in Drools (.drl) files or decision tables.

  • Key Fields:
    • name: Identifier for the rule.
    • priority: Execution order.
    • condition: The "When" clause (e.g., "Customer is Gold Tier").
    • action: The "Then" clause (e.g., "Apply 10% Discount").

Relationships

Rule -> Context

  • Type: Runtime
  • Description: Rules operate on facts inserted into the working memory, such as Customer, Order, or Usage objects.