Your Product.hashCode uses dynamic information: price.
-W



On 5 April 2011 15:22, groovenarula <gnarula1@la-z-boy.com> wrote:
Just ran another test, I removed the check for 'price == null' in the 'Set
Options Price' rule - so the rules now reads :

rule "Set Options price"
       salience 50
       when
               $prod : Product ( )
               $option : Option ( product == $prod )
       then

               System.out.println( "Getting Options " + $prod );

end


Yet, the rule does not fire. It's almost as if the 'Option ( product ==
$prod ) is not being honored. I'm going to change my implementation of
'equals' on the product fact and see what happens next.

Just wanted to provide you'll with an update.

G

--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Rule-does-not-fire-after-Modify-Update-of-a-fact-Drools-5-1-1-tp2778508p2779855.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users