[rules-users] best practices for lookup tables like interest table?

strug strug at web.de
Mon Oct 19 13:39:11 EDT 2009


hi,

i'm quiet new to writing rules and asking myself - ah you - what is the best
way to implement a lookup table? 

i want to have the following table reachable from within my rules:

               | 30 days   | 60 days  | 90 days 
> 5000 €   |  2.7 %    | 2.8 %     | 2.9 %
> 10000 € | 2.85 %   | 2.9 %     | 2.95 %
> 20000 € | 2.9 %     | 2.95 %   | 3.0 %
..

is it best to write a function which works internally on a two dimensional
array?

i want to have the numbers/tables be part of the drl files, in order to be
able to dynamically reload them, so a java helper class is not aimed.

thanks for any feedback and experience, leif
-- 
View this message in context: http://www.nabble.com/best-practices-for-lookup-tables-like-interest-table--tp25962448p25962448.html
Sent from the drools - user mailing list archive at Nabble.com.





More information about the rules-users mailing list