Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dynamic Business Rules

I am creating an interface where users can build their own business rules out of domain specific objects at runtime, have those rules persisted in the database and then used by the application. Some of these are complex predicates and others require combinations of domain objects in what seems fairly complicated relations. So far I have looked into GoF, dynamics with eval, and CodeDom. Does anyone have suggestion on what should be used?

like image 690
RBZ Avatar asked Aug 05 '11 13:08

RBZ


2 Answers

Actually, you can just develop your application with WF rules engine API without using WF. http://blogs.microsoft.co.il/blogs/bursteg/archive/2007/08/09/WF-Rules-Engine-without-Workflow.aspx This will save you from a lot of work.

like image 56
Tae-Sung Shin Avatar answered Sep 22 '22 23:09

Tae-Sung Shin


Kaizen, depending on the scope and kind of your dynamic rules you could eventually use a workflow engine, like MS WF to define the rules as workflow activities for example... in this way you isolate the logic and do not need a full rebuild of the application when you need to change anything in the workflow.

This might not be the best solution but could be an alternative...

like image 25
Davide Piras Avatar answered Sep 21 '22 23:09

Davide Piras