[rules-users] Local Variable

Esteban Aliverti esteban.aliverti at gmail.com
Fri Oct 5 08:20:10 EDT 2012


Did you read the documentation about 'globals'?

Best Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Blog @ http://ilesteban.wordpress.com


On Fri, Oct 5, 2012 at 1:46 PM, joy <Kripa_M01 at infosys.com> wrote:

> Hi
>
> i need local variables in drl file.
> it should hold integer/double value.
> Setting an integer value to a local variable in some rule and getting that
> integer value in some other rule
>
> when
>         #some condition01
> then
>         local variable=200
> end
>
> when
>        #some condition02
> then
>        local variable =300
> end
>
> when
>      #some condition03
> then
>      emp.salary=localvariable+2000
> end
>
> Anyone plz help me to resolve this.
>
> Thank you
> Joy
>
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Local-Variable-tp4020144.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/20121005/b30885da/attachment.html 


More information about the rules-users mailing list