[rules-users] Accessing globals after FireAllRules

Wolfgang Laun wolfgang.laun at gmail.com
Thu May 26 13:33:36 EDT 2011


If you want to do this via a global, then you might try
  * before you fireAllRules(): setGlobal with an empty List<?>,
  * in the consequence do a global.add( whatever )
  * after fireAllRules(): inspect the list; if you still have the reference,
you don't even need a getGlobal.

-W


On 26 May 2011 18:32, sdinoo <sdinoo at gmail.com> wrote:

> Hello Wolfgang,
>
> All I want to do is after the rules are fired, I want to access the objects
> that caused the same to fire
> I am assuming that globals is the right way to access those objects
>
> Please do help
>
> Many thanks
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Accessing-globals-after-FireAllRules-tp2989144p2989346.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/20110526/cc6c4f2f/attachment.html 


More information about the rules-users mailing list