I need a rules based system

Posted on 2006-05-27
Medium Priority
Last Modified: 2012-05-05

I am wrestling with how to create a system with a multitude of user options which can be turned on or off by the user and have various type of values associated with different rules, each value having potentially different meaning as it relates to a different option.  I imagine providing the user with a list of rules, each with an associated checkbox to turn the rule on or off.  Then when checked, various other controls become active and which allow the user to set specific parameters associated with a certain rule.

Then I need to find a way to incorporate the rule into the code which will turn on, off, or regulate, the rule.  I'd like to find a standard way to handle this kind of user interface on the back end.  In other words, I'm satisfied that I can easily make the user interface with a list of user based rules, and the associated paramters.  The hard part is to find a way to structure a rules object so that it interacts with the code doing the work, on the back end.

Has anybody got any ideas how I could design the rule object(s) and their interactin with the code which will be selectively turned on, and off?  I'd like there to be some kind of standard obviously, and I'm at a lot for ideas how to do this.

I expect to create a Rules table, which will be read in upon startup, but don't yet know what columns to create in the Rules table.  There would need to be as much information stored in the Rules table so that 100% of the Rules objects can be instantiated at start-up.

Thanks for any help,
Question by:ba272
1 Comment
LVL 37

Accepted Solution

gregoryyoung earned 2000 total points
ID: 16777122
Take a look at ther specification pattern http://sbtourist.blogspot.com/2006/01/case-for-specifications.html includes some examples .. A full description of the pattern (and examples) can be found in Domain Driven Design by Eric Evans and in Applying Domain Driven Design and Patterns by Jimmy Nilsson.


Greg Young

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month14 days, 18 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question