<p>You will be able to set or get a property on an instance of the declared fact.</p>
<div class="gmail_quote">On Oct 5, 2012 6:03 PM, "Devan Van Reenen" <<a href="mailto:devan.vanreenen@gmail.com" target="_blank">devan.vanreenen@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p>Not sure if this will help. But perhaps you can have a declared fact that contains a property/ varIable that you worry about and that you cab use in your rules. Not sure if this is best practice though.</p>
<div class="gmail_quote">On Oct 5, 2012 1:48 PM, "joy" <<a href="mailto:Kripa_M01@infosys.com" target="_blank">Kripa_M01@infosys.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
<br>
i need local variables in drl file.<br>
it should hold integer/double value.<br>
Setting an integer value to a local variable in some rule and getting that<br>
integer value in some other rule<br>
<br>
when<br>
#some condition01<br>
then<br>
local variable=200<br>
end<br>
<br>
when<br>
#some condition02<br>
then<br>
local variable =300<br>
end<br>
<br>
when<br>
#some condition03<br>
then<br>
emp.salary=localvariable+2000<br>
end<br>
<br>
Anyone plz help me to resolve this.<br>
<br>
Thank you<br>
Joy<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Local-Variable-tp4020144.html" target="_blank">http://drools.46999.n3.nabble.com/Local-Variable-tp4020144.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div>
</blockquote></div>