Business Rules Engine: eligibility, fees and explainable decisions
Decision matrices, decision tables and expression sets; versioning rules by effective date; calling rules from OmniStudio, Flow and Apex; and explaining decisions to caseworkers and constituents.
Simple explanation
Policy changes constantly: income limits update yearly, fees change with the budget. The Business Rules Engine (BRE) keeps those rules as configuration, not code.
| Component | Use it for |
|---|---|
| Decision matrix | Lookup tables: "household of 4 β monthly income limit X" |
| Decision table | Rules evaluated against records or inputs, with conditions and outcomes |
| Expression set | A sequence of steps: lookups, conditions, calculations, sub-expressions, producing a result |
How it fits
- Called from OmniScripts and Integration Procedures, Flow and Apex (and through APIs).
- Versions with effective dates let you apply the rule that was in force when the person applied.
- Decision Explainer records why a result was reached, so caseworkers can explain it and constituents can understand it.
Typical uses
- Benefit eligibility and benefit amounts.
- Licence and permit fees (by size, type, valuation).
- Inspection risk scores and frequency.
- Grant scoring support.
Benefit Management ships sample matrices and expression sets (for example energy assistance and food assistance samples); treat them as templates, not production policy.
Real-world analogy
The BRE is the official rule book on a lectern, with a dated edition for each year. Clerks don't memorise rules; they look up the edition that applied on the day the application arrived, and can show you the page.
Worked example
An energy assistance expression set takes household size, monthly income and whether children are present. It looks up the income limit in a decision matrix, checks the condition for children, calculates the benefit amount, and returns eligibility, amount and an explanation. When limits change on 1 October, a new matrix version with that start date goes live without a deployment.
Diagram
Key points
- Decision matrices for lookups, expression sets for multi-step logic.
- Rules are versioned with effective dates.
- Callable from OmniStudio, Flow, Apex and APIs.
- Decision Explainer makes outcomes explainable.
- Sample rules ship as templates: replace with real policy and test.
Limits and gotchas
- Large decision matrices have row and size limits and must be uploaded and activated; plan how policy staff maintain them β verify current limits.
- Test rules with policy-owned test cases (known inputs and expected outputs) on every version.
- Rules that need data from many systems should get it through an Integration Procedure first; keep expression sets focused on decisions.
- Don't let the BRE become a dumping ground for workflow logic; it decides, Flow or Integration Procedures act.
π€ How to say this in an interview
Interviewers listen for effective dating, explainability and ownership: "Policy analysts own the matrices, changes are versioned with start dates, each version has a regression test pack, and the decision explanation is stored with the application."
Common follow-ups
A constituent appeals a denial from eight months ago. How do you show which rule applied?
The application stores the expression set version and decision explanation used at decision time; because versions are effective-dated, you can rerun or display the exact version in force on that date.
Why not put eligibility logic in Apex?
Rules change with policy and must be maintained by analysts, versioned and explained; Apex needs developer releases and hides logic in code. Use Apex only for edge cases the BRE can't express.