Your Product.hashCode uses dynamic information: price.<br>-W<br><br><br><br><div class="gmail_quote">On 5 April 2011 15:22, groovenarula <span dir="ltr">&lt;<a href="mailto:gnarula1@la-z-boy.com">gnarula1@la-z-boy.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Just ran another test, I removed the check for &#39;price == null&#39; in the &#39;Set<br>
Options Price&#39; rule - so the rules now reads :<br>
<br>
rule &quot;Set Options price&quot;<br>
        salience 50<br>
        when<br>
                $prod : Product ( )<br>
                $option : Option ( product == $prod )<br>
        then<br>
<br>
                System.out.println( &quot;Getting Options &quot; + $prod );<br>
<br>
end<br>
<br>
<br>
Yet, the rule does not fire. It&#39;s almost as if the &#39;Option ( product ==<br>
$prod ) is not being honored. I&#39;m going to change my implementation of<br>
&#39;equals&#39; on the product fact and see what happens next.<br>
<br>
Just wanted to provide you&#39;ll with an update.<br>
<br>
G<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="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" target="_blank">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</a><br>

</font><div><div></div><div class="h5">Sent from the Drools - User mailing list archive at Nabble.com.<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>
</div></div></blockquote></div><br>