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>piyush<br>