Hello,

I am a newbie with business rules systems.

I would like to implement a component that "compute" the price of products. 
There can be a great number of potential prices (maybe 10^4 or 10^5).

My first idea was to create template rules, "feeded" by a database. In other 
words, the information about prices would be contained in the rules.

Eventually, I decided to create Prices objects, that are also inserted in the 
Knowledge session (Prices become facts). The rule engine just "matches" the 
appropriate price object with each product (there are other rules then to 
compute the final price).

Price

{

_productId ;

_beginDate ;

_endDate ;

....

_price ;

}



Product

{

_id ;

_date ;

...

_

}


Are my explanations clear enough ?

Is this a good approach or is it stupid ? Why ? What are the good practices ?

Thank you in advance for your help.

Benoît


                                          
_________________________________________________________________
Découvrez comment SURFER DISCRETEMENT sur un site de rencontres !
http://clk.atdmt.com/FRM/go/206608211/direct/01/
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to