Agreed. I consider "tariff id" an outcome of the rule execution and thus a "value" as well. Once you have established your tariff, or tariff id, you do not need to recalculate this.
Sorry for that, I will try to be less ambiguous next time. Wolfgang Laun-2 wrote: > > Never duplicate any derived information while the data object holding the > duplicate is still in the system. > > Given an invoice, you may associate its positions with a "tariff id", > which > lets you recalculate an (old) order repeatedly, guaranteeing stable > pricing. > > Only when this data is removed from the system you actually calculate and > use the currency values. > > -W > > > > 2011/4/17 Riyaz Saiyed <[email protected]> > >> Hi, >> >> >> >> I'm doing a POC on drools decision table. We need to develope pricing >> engine for few of our products. I created xls with list of products and >> their price as per drools format. When I load xls and run the rules, the >> price were picked up correctly against mathing product, customer and >> quantity criteria. >> >> >> >> Now I want to save the executed rule so the if there is any modification >> in >> quantity (increase/decrease), I can calculate the price again based on >> earlier executed rule and not from xls. >> >> >> >> I think to achieve the, I need to store the "rule" against every order >> for >> each product. >> >> >> >> Can any one suggest me, how I can get the string representation of the >> executed rule so that I can create .drl file from that string and run the >> same rule again for any order modification. >> >> >> >> I've looked at SpreadsheetCompiler and was able to get the string of all >> the rules as a result of compile method. >> >> >> >> Note - I can not read xls again for order modification because, if in >> between the price in xls has changed, the engine should still pick the >> old >> price. >> >> >> >> Thanks, >> >> *Riyaz*** >> >> >> >> _______________________________________________ >> rules-users mailing list >> [email protected] >> https://lists.jboss.org/mailman/listinfo/rules-users >> >> > > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users > -- View this message in context: http://drools.46999.n3.nabble.com/Drools-Decision-Table-tp2830218p2833522.html Sent from the Drools: User forum mailing list archive at Nabble.com. _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
