[jboss-user] [jBPM] - drools error [ERR 102] Line 40:43 mismatched input '&&' expecting ')' in rule "Free Fish Food Sample"

Mike schwery do-not-reply at jboss.com
Mon Feb 21 10:43:45 EST 2011


Mike schwery [http://community.jboss.org/people/mschwery] created the discussion

"drools error [ERR 102] Line 40:43 mismatched input '&&' expecting ')' in rule "Free Fish Food Sample""

To view the discussion, visit: http://community.jboss.org/message/588773#588773

--------------------------------------------------------------
I'm getting the drools error [ERR 102] Line 40:43 mismatched input '&&' expecting ')' in rule "Free Fish Food Sample"
in from the Pet Store sample in JBoss Developer Studio 4.0 CR1. Can anybody help me get rid of this error.

rule "Free Fish Food Sample"
    agenda-group "evaluate"
    dialect "mvel"
    when
        $order : Order()
        not ( $p : Product( name == "Fish Food") && Purchase( product == $p ) 
        not ( $p : Product( name == "Fish Food Sample") && Purchase( product == $p ) )        
        exists ( $p : Product( name == "Gold Fish") && Purchase( product == $p ) )    
        $fishFoodSample : Product( name == "Fish Food Sample" );
    then
        System.out.println( "Adding free Fish Food Sample to cart" );
        purchase = new Purchase($order, $fishFoodSample);
        insert( purchase );
        $order.addItem( purchase );    
end
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/588773#588773]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110221/a9b782bd/attachment.html 


More information about the jboss-user mailing list