Do your rules actually change over time or just the paramaters in your rules 
change?
If the later then you could structure your rules so they don't have values hard 
coded but instead depend upon an Object (InterestRate) to provide them and you 
code just loads the appropriate InterestRate object when the query starts.

Thomas

From: [email protected] 
[mailto:[email protected]] On Behalf Of Wolfgang Laun
Sent: 21 February 2011 09:08
To: Rules Users List
Subject: Re: [rules-users] How to get correct version of rules based on 
effective date

There may be one rule to determine the interest rates depending on date and 
whatever, and then there should be rules to do the calculation for some type of 
deposit (savings, loand,...) with the previously established rate.

Do not replicate calculation rules for various date intervals.

-W

On 21 February 2011 05:36, Faisal Shafique 
<[email protected]<mailto:[email protected]>> wrote:
Hi,

We are evaluating Drools to replace a big legacy eligibility system in 
government sector. One of the critical requirement is to have the system pull 
correct rule based on a date e.g interest rate was 5% till 12/31/2010 but 
changed to 6% from 1/1/2011. If we are running rules in 2010 or before, 
calculation should use 5% else it should use 6%. Rules will run with a user 
clicking a button and results will be shown to user so probably a 
StatelessSession will be used. Something like AgendaFilters to filter rules 
based on a date probably will not be very scalable since over time we'll have 
lot of different temporal version of rules and all of them will have to be in 
KnowledgeBase for AgendaFilter to work which will be memory intensive and 
un-needed.IMHO, we should build KnowledgeBase with correct version of rules in 
the first place. Any ideas or pointers?

Thanks



_______________________________________________
rules-users mailing list
[email protected]<mailto:[email protected]>
https://lists.jboss.org/mailman/listinfo/rules-users


________________________________

**************************************************************************************
This message is confidential and intended only for the addressee. If you have 
received this message in error, please immediately notify the 
[email protected] and delete it from your system as well as any copies. The 
content of e-mails as well as traffic data may be monitored by NDS for 
employment and security purposes. To protect the environment please do not 
print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, 
United Kingdom. A company registered in England and Wales. Registered no. 
3080780. VAT no. GB 603 8808 40-00
**************************************************************************************
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to