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

Michael Anstis michael.anstis at gmail.com
Thu Jul 14 11:56:53 EDT 2011


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
>> - 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110714/1ec0b6a9/attachment.html 


More information about the rules-users mailing list