when block describes the conditions to match against
the facts in working memory, and a then block describes the actions to take
when those conditions hold.
Because it is written as code rather than diagrams, DRL is more expressive and
powerful than DMN for complex inference — chaining rules, reasoning over large
fact sets, and fine-grained control — at the cost of being Drools-specific rather
than a portable standard.
A simple DRL rule: when an applicant's credit score is below 600, flag them as high risk and require review.
Where to go next
DMN, DRL, BPMN
How DRL compares to DMN and BPMN, and when to use each.
DRL
How DRL fits into decision automation in the Aletyx architecture.
Syntax Basics
The fundamentals of DRL syntax and rule structure.
Conditions (LHS)
How the when block matches facts in working memory.
Actions (RHS)
How the then block defines what happens when a rule fires.
DRL Examples
Worked DRL rule examples you can learn from and adapt.