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"><<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>></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"><<a href="mailto:piyush.goel@capillary.co.in" target="_blank">piyush.goel@capillary.co.in</a>></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 "4"<br> salience 0<br>
dialect "mvel"<br> when <br> av1 : AttributeValue( str == "Boys" )<br> exists InventoryAttribute( attribute == "DIVISION" && value == av1 )<br>
<br> av2 : AttributeValue( str == "Blazer" )<br> exists InventoryAttribute( attribute == "SUBCATEGORY" && value == av2 )<br><br> av3 : AttributeValue( str == "Boys Upper" )<br>
not InventoryAttribute( attribute == "CATEGORY" && value == av3 )<br><br> then<br> VoucherSeries fact0 = new VoucherSeries();<br> fact0.setSeriesCode( "BUPPER1" );<br> fact0.setPriority(100); <br>
fact0.setRuleName(drools.getRule().getName());<br> insert(fact0);<br>end<br><br>The CE "not" is never evaluating to true in the above rule. The "not" CE is working only for very simple conditions like 'not AttributeValue( str == "Blazer")' . <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>