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: [email protected] 
[mailto:[email protected]] On Behalf Of pratibhapandey
Sent: Thursday, June 14, 2012 7:45 AM
To: [email protected]
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-condition-of-Decision-table-tp4017965.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to