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@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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users