{"repo":"microsoft/RulesEngine","free":true,"listed":false,"github":"https://github.com/microsoft/RulesEngine","clone":"git clone https://github.com/microsoft/RulesEngine.git","description":"A fast and reliable .NET Rules Engine with extensive Dynamic expression support","language":"C#","stars":4337,"topics":["rules-engine","workflow","nuget","dotnet","rules","engine","expression-evaluator"],"license":"MIT","category":"workflow-automation","readme_excerpt":"Rules Engine [![Nuget download][download-image]][download-url] [download-image]: https://img.shields.io/nuget/dt/RulesEngine [download-url]: https://www.nuget.org/packages/RulesEngine/ Supported target frameworks Overview Rules Engine is a library/NuGet package for abstracting business logic/rules/policies out of a system. It provides a simple way of giving you the ability to put your rules in a store outside the core logic of the system, thus ensuring that any change in rules don't affect the core system. Installation To install this library, download the latest version of NuGet Package from nuget.org and refer it into your project. How to use it There are several ways to populate workflows for the Rules Engine as listed below. You need to store the rules based on the schema definition given and they can be stored in any store as deemed appropriate like Azure Blob Storage, Cosmos DB, Azure App Configuration, Entity Framework, SQL Servers, file systems etc. For RuleExpressionType LambdaExpression , the rule is written as a lambda expressions. An example rule: You can inject the rules into the Rules Engine by initiating an instance by using the following code - Here, workflow is a list of deserialized objects based on the schema explained above Once initialised, the Rules Engine needs to execute the rules for a given input. This can be done by calling the method ExecuteAllRulesAsync : Here, workflowName is the name of the workflow, which is Discount in the above mentioned exam","default_branch":null,"files":null,"tree":[],"storefront":"/r/microsoft","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/microsoft/RulesEngine/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}