[rules-users] Giving multiple range values in condition of Decision table

pratibhapandey pratibha02pandey at gmail.com
Thu Jun 14 10:44:48 EDT 2012


Hello Team,

I have written a condition like this, see the highlighted one..
http://drools.46999.n3.nabble.com/file/n4017965/error.png 


I am getting the prob when rule engine parses the range value. When I
generate a DRL out of this sheet what I get is: 

rule "Rule 2"
	salience 65520
	when
		lvgBslaData: LeverageBSLAData(((productTypeCode in ('REO' ||       
(investmentGroupType == "'TRM')") &&       (dealLtvNbiExtDebt <= EQUITY)) &&
primaryCollateralType == "0.6")
	then
		lvgBslaData.setCorpLeverageName( "Hotel Equity ");
end


except of getting the below rule:

rule "Rule 2"
	salience 65520
	when
		lvgBslaData: LeverageBSLAData(((productTypeCode in ('REO','TRM') ||
(investmentGroupType == "EQUITY") &&(dealLtvNbiExtDebt <= 0.6)) &&
primaryCollateralType == "Hotel")
	then
		lvgBslaData.setCorpLeverageName( "Hotel Equity ");
end

I cannot change the condition except the ordering.. Please tell me how can I
achieve this?

--
View this message in context: http://drools.46999.n3.nabble.com/Giving-multiple-range-values-in-condition-of-Decision-table-tp4017965.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list