Hello<br>I'd like to report a (possible) bug,<br>I've tried to run this on the latest version of drools (4.0.3) but I get an error: <br>applyOrTransformation could not find transformation for parent 'OR' and child 'OR'
<br>java.lang.RuntimeException: applyOrTransformation could not find transformation for parent 'OR' and child 'OR'<br> at org.drools.rule.LogicTransformer.applyOrTransformation(LogicTransformer.java:148)
<br> at org.drools.rule.LogicTransformer.processTree(LogicTransformer.java:140)<br> at org.drools.rule.LogicTransformer.transform(LogicTransformer.java:76)<br> at org.drools.rule.Rule.getTransformedLhs(Rule.java:419)
<br> at org.drools.reteoo.builder.ReteooRuleBuilder.addRule(ReteooRuleBuilder.java:102)<br> at org.drools.reteoo.ReteooBuilder.addRule(ReteooBuilder.java:116)<br> at org.drools.reteoo.ReteooRuleBase.addRule(ReteooRuleBase.java
:268)<br> at org.drools.common.AbstractRuleBase.addPackage(AbstractRuleBase.java:337)<br> at hr.combis.rule.editor.tester.RuleTesterFDAImpl.createRuleBase(RuleTesterFDAImpl.java:210)<br> at hr.combis.rule.editor.tester.RuleTesterFDAImpl.init
(RuleTesterFDAImpl.java:159)<br> at hr.combis.rule.editor.testing.TestingExecutor.run(TestingExecutor.java:129)<br> at java.lang.Thread.run(Thread.java:595)<br>this is what the rule looks like:<br><br>wine : Wine(color == "red")
<br>or<br>(<br> cheese : Cheese(smelly == "yes")<br> <b>and</b><br> (<br> person : Person(height == 12, fovouriteCheese == cheese)<br> <b>or</b><br> person : Person(height == 13, fovouriteCheese == cheese)
<br> )<br>)<br><br>the rule looks perfectly sensical to me. If I change it to this (which, btw. looks non-sensical)<br>wine : Wine(color == "red")<br>
or<br>
(<br>
cheese : Cheese(smelly == "yes")<br>
<b>or</b><br>
(<br>
person : Person(height == 12, fovouriteCheese == cheese)<br>
<b>and</b><br>
person : Person(height == 13, fovouriteCheese == cheese)<br>
)<br>
)<br clear="all"><br><br>I'm not saying the second one shouldn't work(I fail to make the sense of it however), but it looks to me, the first one should.<br>Am I wrong, or is this really a bug?<br>-- <br>lp<br>------
<br>Stjepan