[rules-users] Drool Guvnor-Accessing Rules which are expired to do back dated calculations

Pavel Tavoda pavel.tavoda at gmail.com
Mon Aug 2 17:49:02 EDT 2010


Hello, forget date-expires. Just make your WHEN condition to match
date you specify somewhere in your object as date for which to
calculate. Then you will have two rules and each will match different
date.

Pavel


2010/8/2 Minal Sarmokadam <Minal.Sarmokadam at lntinfotech.com>:
> 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.I would need this to calculate
> Arrears i.e. doing backdated calculations
>
>
>
> 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.
>
>
>
> Regards
>
> Minal S
>
>
>
> ________________________________
> 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.
>
> ______________________________________________________________________
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>




More information about the rules-users mailing list