Rule engine
A system that applies predefined rules to data to evaluate conditions, guide decision logic through a series of choices, and determine the correct action or response.
Example
For illustration, a lender might set a rule that sends an application for manual review when the applicant’s existing monthly debt payments exceed $1,500. The lender supplies the application data and defines the policy; the rule engine applies that rule.
How a rule engine evaluates rules
Rules can be grouped in a rule set or arranged in a decision table, with conditions and results in rows. The engine checks the application data against the conditions. Its match policy determines what happens next: all matching rules may run in order, or the first or highest-priority match may apply. A decision table can use a hit policy such as first match or collect.
For illustration, a loan application lists monthly income of $4,000 and monthly debt payments of $1,000. One rule calculates $4,000 minus $1,000, leaving $3,000, and sends the application for review if the result is below $2,500. Another requests an income document if the requested loan amount exceeds $20,000. If both rules match, the engine’s match policy determines which actions run.
Rules engines vs decision engines and when each fits
A rule engine evaluates rules. A decision engine coordinates a wider decision flow. It can call data sources and apply a scorecard or model. Calculations and decision tables can follow, with branches determining what runs next. The engine returns the decision with its reasons.
Rules alone can handle simple eligibility or validation checks. Lending and fraud decisions often need data calls and scores alongside rules, which is where a decision engine is used. A business rules management system adds rule authoring and testing. It also manages versions and deployment, including releases.
Questions we get asked
Can business rules be changed separately from application code?
Yes. A rules engine keeps rules stored, edited and versioned separately from application code. The application sends data to the engine and receives the result.
What is forward chaining in a rule engine?
Forward chaining means an action can change the facts being evaluated, which may cause other rules to fire. Many business rules engines instead evaluate rules in a fixed order.
What does a hit policy mean in a decision table?
A hit policy specifies how a decision table handles matching rows. Examples include first match and collect.
On Decisimo's business rules engine, rule sets apply every matching if-then rule in order.
Read rule engine architecture for a guide to rule storage and deployment, execution, testing, and historical versioning.