[rules-users] Decision table convertation issue

mikhal denis.mikhalyov at gmail.com
Fri Mar 22 06:28:04 EDT 2013


Hi,

I'm trying to play with decision tables as with a possible rule description
way and have faced
strange behavior as for me. When I upload a XLS spreadsheet got from Drools
examples
ExamplePolicyPricing.xls it uploads and converts to the inner web format
correctly.

But there is a difference between rule sources (use View Sources from
drop-down menu) 
before and after convertation: 

Before:

/11.	|	// rule values at C11, header at C5
12.	|	rule "Pricing bracket_11"
13.	|	    when
14.	|	        Driver(age >= 18, age <= 24, locationRiskProfile == "MED")
15.	|	        policy: Policy(type == "FIRE_THEFT")
16.	|	    then
17.	|	        policy.setBasePrice(200);
18.	|	        System.out.println("Priors not relevant");
19.	|	end/

After:

/12.	|	//from row number: 2
13.	|	//Created from row 11
14.	|	rule "Row 2 Pricing bracket (converted on 21-Mar-2013 16:10:31)"
15.	|	    dialect "mvel"
16.	|	    when
17.	|	        policy: Policy(type == "FIRE_THEFT")
18.	|	    then
19.	|	        policy.setBasePrice(200);
20.	|	        System.out.println("Priors not relevant");
21.	|	end/

A result of the convertation is loosing conditions 
/Driver(age >= 18, age <= 24, locationRiskProfile == "MED")./

Looks like a bug. Still maybe it is known issue? Could anyone explain
please.


Thanks.

Denis





--
View this message in context: http://drools.46999.n3.nabble.com/Decision-table-convertation-issue-tp4022989.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list