[rules-users] Local Variable

Wolfgang Laun wolfgang.laun at gmail.com
Tue Oct 9 03:27:49 EDT 2012


On 09/10/2012, joy <Kripa_M01 at infosys.com> wrote:
> Hi
>
> If am declaring a map as global variable. global java.util.Map map
> In the "then" part of rule 1  am putting a key n value into map
> Is it possible to get the value using the key from the "then" part of rule
> 2?

Not necessarily so: only if rule 1 fires before rule 2, which may or
may not happen.

>
> Do i want to update,insert like any thing on global variable?
> or
> How is it possible for rule engine to identify the changes in global
> variable tht shud be reflected on other rule!

This is answered in the documentation, section 4.5.2., global.

-W
>
>
> Regards
> joy
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Local-Variable-tp4020144p4020173.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
>


More information about the rules-users mailing list