[rules-users] Using Decision Tables as Lookup Tables
Davout
davout1805 at gmail.com
Tue Apr 10 09:51:55 EDT 2012
Hello,
I'm trying to figure out how I can use a Decision Table as a lookup table. I
did come across
http://drools.46999.n3.nabble.com/Rules-with-Lookup-Tables-td56996.html
however, it asking about using a database.
Typical Senario:
Where [value from lookup table] is the value retrieved from the Decision
Table. The reason I'm looking at a Decision Table rather than using a
database is because the number of conditions needs to be changeable by end
users.
rule "Calculate Value"
when
$c : Company()
$r : Region()
$val : Double()
from accumulate (Region($score : score) , sum($score * [value
from lookup table]))
then
// Do Something
end
Thanks.
--
View this message in context: http://drools.46999.n3.nabble.com/Using-Decision-Tables-as-Lookup-Tables-tp3899689p3899689.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list