[rules-users] Processing a collection within a fact object

Wolfgang Laun wolfgang.laun at gmail.com
Wed Jul 27 01:54:02 EDT 2011


On 26 July 2011 22:47, kirkm <kirkmster at gmail.com> wrote:

>
> I have an application that is inserting a fact object into a session.  The
> object has a collection in it that is being iterated and each of the
> individual children objects is being inserted into the session with a
> reference back to their "parent" object. The child facts cause other rules
> to fire and the children objects are updated in some situations. Is there
> any way to determine if all the rules have fired due to the children
>

"All the rules" for each child? "All the rules" for the children summarily?

But the answer is: "Yes, if you keep track of rule firings."
a) by making "notches" in the parent
b) by inserting separated objects
c) ...



> insertions? The desired result is to have a parent object with possible
> updates to the children for further processing.
>
> Can and should an accumulator be used instead of the inserting the child
> objects?
>

Probably not, since you wrote "desired result...for further processing".
-W


>
> Kirk
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Processing-a-collection-within-a-fact-object-tp3201532p3201532.html
> Sent from the Drools: User forum 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/20110727/6b49ac58/attachment.html 


More information about the rules-users mailing list