[rules-users] Should update be called moving from one rule task to another in a ruleflow

Wishing Carebear wishing.carebear at gmail.com
Fri Jul 15 01:08:54 EDT 2011


Thanks Michael.

On Thursday, July 14, 2011, Michael Anstis <michael.anstis at gmail.com> wrote:
> I believe there was some talk of this recently (on perhaps the drools-dev mailing list).
>
> IIRC it concluded that this was the expected (system) behaviour of not necessarily the expected (user) behaviour.
>
>
> 2011/7/14 Wishing Carebear <wishing.carebear at gmail.com>
>
> Thanks Esteban,
>
> Noticed that if I have an employee with the list of addresses and update an attribute of the address item in the list, modify does not work and the update needs to be called explicitly on the Employee to take effect. Is this expected.
>
>
>
> 2011/7/14 Esteban Aliverti <esteban.aliverti at gmail.com>
>
> No matter the ruleflow-group,  all your rules are running in the same session. If you modify the attributes of a fact, you must notify it to the session (if you want to make inference with this new value). For doing so you can use update() or modify(), they will have the same result.
>
>
>
>
> Best regards,
> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
>
> Esteban Aliverti
> - Developer @ http://www.plugtree.com  <http://www.plugtree.com>
> - Blog @ http://ilesteban.wordpress.com
>
>
> 2011/7/13 Wishing Carebear <wishing.carebear at gmail.com>
>
>
>
>
> modify
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>




More information about the rules-users mailing list