[rules-users] Rule does not fire after 'Modify/Update' of a fact - Drools 5.1.1 !

Wolfgang Laun wolfgang.laun at gmail.com
Tue Apr 5 09:37:32 EDT 2011


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



On 5 April 2011 15:22, groovenarula <gnarula1 at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110405/321be304/attachment.html 


More information about the rules-users mailing list