Escape the comma in your input values..
Change: ('REO','TRM'),EQUITY, 0.6, HOTEL
TO: ('REO'\,'TRM'), EQUITY, 0.6, HOTEL
The comma is the delimeter between your arguments $1, $2, etc... so just escape the comma
and it will be skipped as a delimeter.
Regards,
Armand
-----Original Message-----
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On
Behalf Of pratibhapandey
Sent: Thursday, June 14, 2012 7:45 AM
To: rules-users(a)lists.jboss.org
Subject: [rules-users] Giving multiple range values in condition of Decision table
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-conditi...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users