Hi, <br><br>We have a few rules like the ones given below. <br><br>rule &quot;4&quot;<br>     salience 0<br>     dialect &quot;mvel&quot;<br>     when <br>    av1 : AttributeValue( str == &quot;Boys&quot; )<br>    exists InventoryAttribute( attribute == &quot;DIVISION&quot; &amp;&amp; value == av1 )<br>
<br>    av2 : AttributeValue( str == &quot;Blazer&quot; )<br>    exists InventoryAttribute( attribute == &quot;SUBCATEGORY&quot; &amp;&amp; value == av2 )<br><br>    av3 : AttributeValue( str == &quot;Boys Upper&quot; )<br>
    not InventoryAttribute( attribute == &quot;CATEGORY&quot; &amp;&amp; value == av3 )<br><br>     then<br>         VoucherSeries fact0 = new VoucherSeries();<br>         fact0.setSeriesCode( &quot;BUPPER1&quot; );<br>         fact0.setPriority(100); <br>
         fact0.setRuleName(drools.getRule().getName());<br>         insert(fact0);<br>end<br><br>The CE &quot;not&quot; is never evaluating to true in the above rule. The &quot;not&quot; CE is working only for very simple conditions like &#39;not AttributeValue( str == &quot;Blazer&quot;)&#39; . <br>
<br>Any idea what are we doing wrong ?<br><br>Regards,<br>piyush<br>