We are using drools 5.0.1. Let me know if you need more information.<br><br>thanks,<br>piyush<br><br><div class="gmail_quote">2011/1/11 Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Drools version, please.<br><br>It works with 5.1.1., and I have seen similar CEs working in 5.0.x<br>
<br>-w<br><br><div class="gmail_quote">2011/1/11 Piyush Goel <span dir="ltr">&lt;<a href="mailto:piyush.goel@capillary.co.in" target="_blank">piyush.goel@capillary.co.in</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;"><div><div></div><div class="h5">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><font color="#888888">piyush<br>
</font><br></div></div>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
<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>