tags:

views:

4512

answers:

6

Can you provide a good example of rule definition language written in C#.
Java guys have JESS, is there anything good for C#?

+5  A: 

This page shows some examples of open-source rules engines in C#: http://csharp-source.net/open-source/rule-engines

Jon Limjap
A: 

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.

samjudson
It can be used outside BizTalk, but you need a valid BizTalk License.
HashName
A: 

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.

jwarzech
A: 

Microsoft Business Rule Engine(BRE) is quite nice. But(and that's a big BUT) you'll need a BizTalk Server license to use it.

A: 

EulerSharp

macropas
+2  A: 

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

Sentient