<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
please log a jira, so this bug is not forgotten.<br>
<br>
Mark<br>
José Arrarte wrote:
<blockquote cite="mid:480DFC85.3020000@gmail.com" type="cite">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
Hi Edson, thanks for your answer. <br>
<br>
I don't know who's responsible for the suggestion box in Eclipse. I'm
attaching 2 files: GlobalVariable.drl is the test DRL, and the PNG file
is the result of pressing Ctrl+space between "logger" and the period
sign. Even though using logger inside the funcion is marked as an
error, the global variable appears in the suggestion box.<br>
<br>
I'm using Eclipse Europa (Version: 3.3.0, Build id: I20070621-1340),
and Drools eclipse plugin v4.0.4.<br>
<br>
If you need any more info, feel free to contact me.<br>
<br>
Regards,<br>
José Arrarte<br>
<br>
-------- Original Message --------<br>
Subject: Re:[rules-users] Using global variables in functions<br>
From: Edson Tirelli <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E" href="mailto:tirelli@post.com"><tirelli@post.com></a><br>
To: Rules Users List <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E" href="mailto:rules-users@lists.jboss.org"><rules-users@lists.jboss.org></a><br>
Date: jueves, 17 de abril de 2008 17:37:01<br>
<blockquote
cite="mid:e6dd5ba30804171337le5cc315xddd19971d5380574@mail.gmail.com"
type="cite"><br>
Not at this moment.<br>
<br>
[]s<br>
Edson<br>
<br>
<div class="gmail_quote">2008/4/17 José Arrarte <<a
moz-do-not-send="true" href="mailto:jarrarte@gmail.com">jarrarte@gmail.com</a>>:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello
all,<br>
<br>
Is there a way I can use a global variable inside a function definition
without having to pass it as a parameter?<br>
<br>
I'd like to be able to use a log4j Logger instance (declared as a
global variable) inside functions.<br>
<br>
Best regards,<br>
José Arrarte<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/rules-users"
target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Edson Tirelli<br>
JBoss Drools Core Development<br>
Office: +55 11 3529-6000<br>
Mobile: +55 11 9287-5646<br>
JBoss, a division of Red Hat @ <a moz-do-not-send="true"
href="http://www.jboss.com">www.jboss.com</a>
<pre wrap=""><hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
<br>
<br>
<hr size="4" width="90%"><br>
<center><img src="cid:part1.04080801.08070806@codehaus.org"></center>
<pre wrap=""><pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre></pre>
</blockquote>
<br>
</body>
</html>