[rules-users] Help regrading branching of call to a rule depending upon date

Swapnil Sawant Swapnil.Sawant at lntinfotech.com
Thu Jul 29 06:54:04 EDT 2010


Hi,

I am evaluating Drool Gunvor for to implement Rules for some finance related functionality.
I need help from users to implement following scenario is Drools-Guvnor

I have created simple Rule to Calculate  House Rent Allowance i.e. HRA as
   HRA = 0.12 * Basic salary .(Basic will come as Input Parameter).
This rule is valid from e.g. 01-Jan-2005 to 31-July-2010 as HRA rule is changed from 1st Aug 2010

I will have to create new Rule for HRA Rule with new formula as
HRA = 0.15 * Basic salary .(Basic will come as Input Parameter).
This rule is valid from 01-Aug-2010 to 01-Aug-2999

>From 1st Aug HRA should be calculated using New Rule. But at the same time if any Arrears to be calculated(back dated calculation) depending on the date old HRA rule should be applicable.

Can I achieve this in Gunor Drool? I could achieve first half by specifying date-expires . But I am not able to achieve second half i.e. referring old rule depending on the date. I would appreciate help to solve this problem .


Thanks in advance.

Swapnil Sawant


________________________________
This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

______________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100729/71b7f94e/attachment.html 


More information about the rules-users mailing list