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.