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 IntelligenceDecision Intelligence designs decisions by connecting data, alternatives, actions, and outcomes, with explicit accountability and a review of effects over time.
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.
Related terms
- Decision IntelligenceDecision Intelligence designs decisions by connecting data, alternatives, actions, and outcomes, with explicit accountability and a review of effects over time.
- Composite AIComposite AI combines different techniques, such as machine learning models, rules, and knowledge graphs, in a single system and gives each one a distinct job.
- Intelligent Process Automation (IPA)Intelligent Process Automation combines automation and AI to handle variable inputs, such as documents and emails, within processes that have defined controls.
- Decision treesA decision tree is a model that learns a sequence of rules from data to assign a category or predict a numerical value for a case it has not seen before.
- ModelOpsModelOps organizes ownership, controls, and changes for decision models throughout their lifecycle, from first deployment to their eventual retirement.
If it reminds you of a system nobody dares touch anymore, that is what I put back in order.
See Software Rescue