Drools version, please.

It works with 5.1.1., and I have seen similar CEs working in 5.0.x

-w

2011/1/11 Piyush Goel <piyush.goel@capillary.co.in>
Hi,

We have a few rules like the ones given below.

rule "4"
     salience 0
     dialect "mvel"
     when
    av1 : AttributeValue( str == "Boys" )
    exists InventoryAttribute( attribute == "DIVISION" && value == av1 )

    av2 : AttributeValue( str == "Blazer" )
    exists InventoryAttribute( attribute == "SUBCATEGORY" && value == av2 )

    av3 : AttributeValue( str == "Boys Upper" )
    not InventoryAttribute( attribute == "CATEGORY" && value == av3 )

     then
         VoucherSeries fact0 = new VoucherSeries();
         fact0.setSeriesCode( "BUPPER1" );
         fact0.setPriority(100);
         fact0.setRuleName(drools.getRule().getName());
         insert(fact0);
end

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")' .

Any idea what are we doing wrong ?

Regards,
piyush

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users