Rules Engine Library
4.3k 2026-05-06
microsoft/RulesEngine
A .NET library for externalizing business logic and rules, enabling dynamic policy management without altering core system code.
Core Features
Abstracts business logic, rules, and policies from core system code.
Supports dynamic expression evaluation using Lambda Expressions.
Flexible storage options for rules (e.g., Azure Blob, Cosmos DB, SQL, Entity Framework, file systems).
Provides detailed rule execution results via RuleResultTree.
Easy integration as a NuGet package into .NET projects.
Detailed Introduction
Rules Engine is a powerful .NET library designed to decouple complex business logic and policy definitions from an application's core codebase. By externalizing rules into configurable workflows, it allows for dynamic updates and modifications without requiring recompilation or redeployment of the main system. This enhances agility, reduces maintenance overhead, and ensures that business rules can evolve independently, making applications more adaptable to changing requirements. It supports various storage mechanisms for rules and provides a robust framework for evaluating dynamic expressions.