Can you provide a good example of rule definition language written in C#.
Java guys have JESS, is there anything good for C#?
views:
4512answers:
6This page shows some examples of open-source rules engines in C#: http://csharp-source.net/open-source/rule-engines
There is the Microsoft Business Rules Engine: http://msdn.microsoft.com/en-us/library/aa561216.aspx. Not sure if it can only be used inside Biztalk - it does says it is a .Net Class Library.
Since the OP mentioned JESS which is a Java implementation of the CLIPS expert system, does anyone know of a C# implementation of CLIPS? Jon Limjap's list mentions a library that is based on the Rete algorithm however I don't believe it is a direct implementation of CLIPS.
You can use the forward chaining inference engine that is part of Windows Workflow Foundation (.NET 3.5 and higher) The best part is that this has a free runtime licensing.
You can use the Rule Manager from Acumen Business and install the Windows Workflow Foundation adapter. Once installed, export the rules as WFRules (*.rules). A visual studio .NET solution will be generated that shows how the rule engine can be invoked standalone (no workflow is necessary)
See also http://bizknowledge.blogspot.com/search/label/Windows%20Workflow%20Foundation