views:

436

answers:

5

My upcoming project is relate to sales system, so one of the main requirement is "user can modify promotion by themselves". Promotions is vary, they give me some of them.

  1. Buy 1 get 1 free, Buy 2 get 3.
  2. One for 30%, two for 50%, three for 80%
  3. Buy product A will discount 30% for product B
  4. 20% off for more than 20$ per transaction

I know a little of rule engine, please suggest me a book to learn it too.

+1  A: 

A previous SO answer might be of help: Looking for simple rules-engine library in .NET

Have you looked at Windows Workflow Foundation

Mitch Wheat
A: 

You can use BOO DSL features or use Rhino.DSL (we are using it as a macro engine for our project)

as for your example check out this link

Sergey Mirvoda
A: 

You can use a simple attribute based Rule Engine created by me:

http://ruen.codeplex.com/

Bhaskar
A: 

You could use a commercial rule engine for .Net like InRule or the .Net version of IBM ILOG Rules or FICO Blaze Advisor. All of them make it easy to expose the rules to the business user in a way that makes it safe for them to edit them while providing technical hooks/APIs to make it easy to integrate the rules engine and execution.

James Taylor
A: 

Did you ever got this figured out? I have a similar project I am working on and I am curious to know how you solved your proble. Any information will be appriciated. Thanks

Manuel Haz
I've end up with WF and custom code, that's it.
In The Pink