> ## Documentation Index
> Fetch the complete documentation index at: https://aletyx.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# What is DRL?

> DRL (Drools Rule Language) is the native, text-based language of Drools for authoring business rules with a simple when/then structure for complex inference.

**DRL (Drools Rule Language)** is [Drools'](https://aletyx.ai/docs/faq/concepts/what-is-drools.md) native,
text-based language for authoring business rules. Each rule follows a simple
**when / then** shape: a `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.

![DRL example showing a when/then rule that flags a high-risk loan applicant](https://mintcdn.com/aletyx-3353d50c/ofr1TVSA8RUT0-Zd/images/drl-example.svg?fit=max\&auto=format\&n=ofr1TVSA8RUT0-Zd\&q=85\&s=09da65e315bc14e2247f8f1ea7d907d5)

A simple DRL rule: when an applicant's credit score is below 600, flag them as high risk and require review.

The engine evaluates DRL rules with a high-performance pattern-matching algorithm
(Rete), so you declare *what* should happen and the engine decides *when* each
rule fires.

## Where to go next

> [card] [DMN, DRL, BPMN](https://aletyx.ai/docs/faq/concepts/dmn-drl-bpmn.md)
>
> How DRL compares to DMN and BPMN, and when to use each.

> [card] [DRL](https://aletyx.ai/docs/drools/drl/overview.md)
>
> How DRL fits into decision automation in the Aletyx architecture.

> [card] [Syntax Basics](https://aletyx.ai/docs/drools/drl/syntax-basics.md)
>
> The fundamentals of DRL syntax and rule structure.

> [card] [Conditions (LHS)](https://aletyx.ai/docs/drools/drl/conditions.md)
>
> How the when block matches facts in working memory.

> [card] [Actions (RHS)](https://aletyx.ai/docs/drools/drl/actions.md)
>
> How the then block defines what happens when a rule fires.

> [card] [DRL Examples](https://aletyx.ai/docs/drools/tutorials/drl-example.md)
>
> Worked DRL rule examples you can learn from and adapt.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.