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-tp402...
Sent from the Drools: User forum mailing list archive at
Nabble.com.