Rules Module for Silverlight?

I am currently developing a web application using Silverlight 3.0. For business rules, I'm looking for a rule engine that is easy to use for me and my users, that works with SL3. Is something like this available out of the box or do I have to roll it myself?

I searched Google and looked at various code sites (Codeplex, Code Project, etc.) but didn't see anything that met my needs.

I also had a good long look at NxBRE, but the rules syntax is too complex for 'dummy' users.

0


a source to share


5 answers


For those who might be interested: We ended up going to CSLA.Net for Silverlight



0


a source


How about the rules engine that ships with Windows Workflow Foundation?



http://blogs.microsoft.co.il/blogs/bursteg/archive/2007/08/09/WF-Rules-Engine-without-Workflow.aspx

+1


a source


For people who stumbled upon this thread looking to use NxBRE as a rule engine with Silverlight (SL), here are my two cents.

  • I have tried referencing the NxBRE dll in my SL project with no luck. SL does not allow DLLs that are not built using the SL CLR for reference in the SL project.
  • Fortunately, NxBRE is an open source project, so I downloaded the source files to build it using the SL CLR.
  • SL does not support many .NET types, namely objects in the System.Xml.XPath, System.Xml.XPath, etc. namespaces. They are required to compile NxBRE.

So I was unable to use NxBRE with SL. These are my first impressions, if I find more by digging deeper I will let you guys know.

Hope it helps someone out there.

Thank you Sai Gudigundla

+1


a source


I searched around a bit more and decided that the Rules Engines didn't actually fit our requirements. We don't need rules, we want to do calculations on a property when the value of that property changes.

Thank you for your responses,

Cheers, Frances

0


a source


Back to the original engine question rule ...

If you want to run the rules engine inside Silverlight, you will need to find one that was built to use only a limited subset of .NET that Silverlight supports. For example, Silverlight supports generic collections (List), but not untyped collections (List).

At the moment, I don't know what .NET rule engine has been configured (redirected) to the Silverlight CLI.

In addition, while there are interesting applications for client-side rule engines (for example, in a browser or on a mobile device), you should always consider that the rule engine is more correctly positioned on the back. Consider how often the rule is called, how much data is moved, etc.

0


a source







All Articles