<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hello,<br><br>I am a newbie with business rules systems.<br><br>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).<br><br>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.<br><br>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).<br><br>Price<br>
{<br>
_productId ;<br>
_beginDate ;<br>
_endDate ;<br>
....<br>
_price ;<br>
}<br>
<br>
Product<br>
{<br>
_id ;<br>
_date ;<br>
...<br>
_<br>
}<br>
<br>Are my explanations clear enough ?<br><br>Is this a good approach or is it stupid ? Why ? What are the good practices ?<br><br>Thank you in advance for your help.<br><br>Benoît<br><br><br>                                            <br /><hr />Envie de naviguer sur Internet sans laisser de trace? <a href='http://clk.atdmt.com/FRM/go/207186970/direct/01/' target='_new'>La solution avec Internet Explorer 8</a></body>
</html>