[rules-users] Referring other columns in Decision table data column

jalex jaalex at gmail.com
Fri Dec 7 01:41:17 EST 2012


Hi,

Can we have the decision table data columns to contain expressions that
refer to other columns, or is it just restricted to values? .For my
use-case, i need to have a rule like : 

Condition : weight > 100 lb

Action : cost = $10 (fixed)  + $5 for every lb above 100. 

So, the data for this Action column would need to refer to the weight
column's data and do the calculation : 10 + (weight - 100) * 5.

Is this possible to specify this in decision table? 

Thanks!





--
View this message in context: http://drools.46999.n3.nabble.com/Referring-other-columns-in-Decision-table-data-column-tp4021117.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list