Hi Florian,<br><br>this appears to be a bug in 5.2.0 - I was able to reproduce it. First experiments suggest<br>that this is due to an indirect field access in combination with a comparison to true or false,<br>such as <br>
<br>   Wrapper( this.product.boolean4 == true )<br><br>If you simply use<br><br>   Wrapper( this.product.boolean4 )<br><br>it is OK - the latter being possible only in 5.2.0.<br><br>Simple field accesses and comparisons to true/false are OK, as in<br>
  Product( bool6 == true )<br><br>-W<br><br><br><div class="gmail_quote">2011/6/28 Florian Beckmann <span dir="ltr">&lt;<a href="mailto:florian.beckmann@camunda.com">florian.beckmann@camunda.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
because of <a href="https://issues.jboss.org/browse/JBRULES-2942" target="_blank">https://issues.jboss.org/browse/JBRULES-2942</a> i just migrated our<br>
(maven) project to 5.2.0.Final - we depend on salience in some of our rules.<br>
<br>
However, after the salience issue was gone I&#39;m facing a new problem in several<br>
test cases:<br>
Rules in previously (drools 5.1.1) working rule files don&#39;t get activated<br>
anymore when I insert facts - none at all.<br>
When moving the rule expected to fire (see &quot;rule 4&quot; in attached file)  to the<br>
first position in the drl file then suddenly several rules get activated and the<br>
expected rule fires.<br>
<br>
This shouldn&#39;t be the case, shouldn&#39;t it? Or do I miss something obvious here?<br>
<br>
Could a corrupt file somehow cause this?<br>
<br>
I attachached the rule file which causes the problem (I needed to obfuscate<br>
some names, sry). It is quite simple.<br>
<br>
I experienced a similar issue (again since 5.2.0.Final) with rules generated<br>
from templates, where I had to change the constraints order in the templates&#39;<br>
LHS for then generated rules to get activated at all.<br>
<br>
First I would like to know if my statement that the rule position in the drl<br>
file shouldn&#39;t influence the activation (I don&#39;t mean firing or order of<br>
activations) of a rule at all, is correct.<br>
I don&#39;t use agenda groups.<br>
<br>
And second if someone experienced similar issues.<br>
<br>
I will try to build a test case which hopefully can reproduce this as soon as<br>
possible.<br>
<font color="#888888"><br>
<br>
Florian<br>
</font><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>