Eligibility logic: Business Rules Engine, Flow or Apex?
Your confidence:Not rated
Model answer
| Option | Good for | Weak for |
|---|---|---|
| Business Rules Engine (decision matrices, expression sets) | Policy tables and calculations, effective-dated versions, Decision Explainer, ownership by analysts | Workflow and side effects |
| Flow | Acting on results: creating records, notifications, tasks | Large rule tables, explanation |
| Apex | Edge cases, heavy computation | Analyst ownership, transparency, release speed |
Recommendation: decisions in the BRE, called from OmniStudio or Flow; actions in Flow or Integration Procedures; Apex only where needed, wrapped as an invocable action. Every rule version gets a policy-owned test pack.
โ Key points to hit
โ Red-flag answers
- Hard-coding income limits in Apex
- Putting workflow in expression sets
โช Follow-ups
How do you test rules before a policy change?
Run the new version against a regression pack of known cases and expected outputs, plus real anonymised applications, before its start date.
Who should own decision matrices?
Policy analysts with a change approval process; developers own the integration and deployment pipeline.