[rules-users] Drools Decision Table

Wolfgang Laun wolfgang.laun at gmail.com
Mon Apr 18 04:12:42 EDT 2011


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 <riyaz.saiyed at emirates.com>

>  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
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110418/de4cc45b/attachment.html 


More information about the rules-users mailing list