Skip to content

What is a rules engine?

A component that keeps business rules outside application code and applies them to decisions, changeable without a release.

A rules engine is the component that keeps business rules outside the application code and applies them when a decision has to be made: if a customer has more than three unpaid invoices the case goes to manual review, if a spare part belongs to family X the maximum discount is twelve percent. Whoever writes the rule describes the condition and the outcome, not the sequence of steps leading from one to the other: the engine decides which rules hold for the case in front of it. The rules live in a separate catalog, often a table of rows and columns, and they can be changed without recompiling and redeploying the software that uses them. It is the usual architecture in banking, insurance and manufacturing, where the logic changes by board decision, by contract or by price list, and the people who know it are rarely the ones who write code.

See also: Decision Intelligence · Engineering decisions, not just displaying them on a dashboard: connecting data, models and actions with a measured feedback loop.

When it pays off and when it does not

The promise is that the business changes the rules without going through IT, and it rarely survives contact with reality. What often appears instead is a second codebase, in a language nobody knows how to fix, with no versions, no tests and no declared owner. The cost grows less with the number of rules than with their interaction, and interaction is a design choice: twenty tables that do not call each other stay manageable, twenty rules that rewrite the facts the others fire on do not, and nobody can say any more why a case was rejected. The choice that really matters today is a different one: hand-written rules or a trained model. Rules win when the logic is already written elsewhere, in a regulation, a contract or a price list, when it has to be checkable line by line, and when it changes by decision rather than by evidence in the data. The model wins when the rule cannot be written down. They are two tools with different conditions of use that, in mature systems, live side by side, as Composite AI shows.

An enterprise example

An insurance organization settles small motor claims. Policy conditions, deductibles and limits are already written into the contract: putting them in a rules engine lets them be updated when the conditions change, keeping the version that was in force in each policy year, because a claim is settled under the rules in force on the day it happened, and every case comes out with the list of rules that were applied, which is what you need when a refusal has to be justified. The same organization does not use rules to estimate whether a claim is fraudulent: nobody can write that signal down, so a statistical model works there, with its own separate lifecycle to look after (ModelOps).

Why it matters for decision makers

Moving logic out of code is a choice about ownership, not about technology: you are deciding who may change the conditions under which the company says yes or no. It needs the same safeguards as software, versions, checks before release and an owner with a name, or today's saving becomes an unreadable debt. There is a shared grammar for writing these decisions down: DMN, the OMG standard that standardizes how dependencies between decisions are represented, an expression language that includes decision tables, and an interchange format. Drools, Camunda, BizTalk and the Logic Apps rules engine implement the same idea in different ways, and the question to ask before picking one is whether that logic is already written somewhere. If it is, the engine puts it where people can see it; if it is not, it turns it into a maze, and it is worth looking instead at a decision intelligence approach or at broader process automation.

  • Decision Intelligence · Engineering decisions, not just displaying them on a dashboard: connecting data, models and actions with a measured feedback loop.
  • Composite AI · Combining multiple AI techniques (LLM, rules, optimization, knowledge graphs, classic ML) in one system: nearly every serious production system already does this.
  • Intelligent Process Automation (IPA) · Automation that combines RPA and AI to handle unstructured documents and processes, not just mechanical steps on existing interfaces.
  • Decision trees · A model that decides through cascading questions (if X then Y): readable by anyone, and the basis of random forest and gradient boosting.
  • ModelOps · ModelOps is the operational governance of every decision model a company runs, from machine learning to rule engines, optimization and LLMs, with an inventory.

See it in the universe

If it reminds you of a system nobody dares touch anymore, that is what I put back in order.

SEE SOFTWARE RESCUE

Or write to me.