> ## 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'](/docs/faq/concepts/what-is-drools) 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.

<Frame caption="A simple DRL rule: when an applicant's credit score is below 600, flag them as high risk and require review.">
  <img src="https://mintcdn.com/aletyx-3353d50c/ofr1TVSA8RUT0-Zd/images/drl-example.svg?fit=max&auto=format&n=ofr1TVSA8RUT0-Zd&q=85&s=09da65e315bc14e2247f8f1ea7d907d5" alt="DRL example showing a when/then rule that flags a high-risk loan applicant" width="720" height="320" data-path="images/drl-example.svg" />
</Frame>

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

<CardGroup cols={2}>
  <Card title="DMN, DRL, BPMN" icon="scale-balanced" href="/docs/faq/concepts/dmn-drl-bpmn">
    How DRL compares to DMN and BPMN, and when to use each.
  </Card>

  <Card title="DRL" icon="code" href="/docs/drools/drl/overview">
    How DRL fits into decision automation in the Aletyx architecture.
  </Card>

  <Card title="Syntax Basics" icon="code" href="/docs/drools/drl/syntax-basics">
    The fundamentals of DRL syntax and rule structure.
  </Card>

  <Card title="Conditions (LHS)" icon="list" href="/docs/drools/drl/conditions">
    How the when block matches facts in working memory.
  </Card>

  <Card title="Actions (RHS)" icon="gears" href="/docs/drools/drl/actions">
    How the then block defines what happens when a rule fires.
  </Card>

  <Card title="DRL Examples" icon="play" href="/docs/drools/tutorials/drl-example">
    Worked DRL rule examples you can learn from and adapt.
  </Card>
</CardGroup>
