[rules-users] Using global variables in functions

Mark Proctor mproctor at codehaus.org
Tue Apr 22 12:19:32 EDT 2008


please log a jira, so this bug is not forgotten.

Mark
José Arrarte wrote:
> Hi Edson, thanks for your answer.
>
> 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.
>
> I'm using Eclipse Europa (Version: 3.3.0, Build id: I20070621-1340), 
> and Drools eclipse plugin v4.0.4.
>
> If you need any more info, feel free to contact me.
>
> Regards,
> José Arrarte
>
> -------- Original Message --------
> Subject: Re:[rules-users] Using global variables in functions
> From: Edson Tirelli <tirelli at post.com>
> To: Rules Users List <rules-users at lists.jboss.org>
> Date: jueves, 17 de abril de 2008 17:37:01
>>
>>    Not at this moment.
>>
>>    []s
>>    Edson
>>
>> 2008/4/17 José Arrarte <jarrarte at gmail.com <mailto:jarrarte at gmail.com>>:
>>
>>     Hello all,
>>
>>     Is there a way I can use a global variable inside a function
>>     definition without having to pass it as a parameter?
>>
>>     I'd like to be able to use a log4j Logger instance (declared as a
>>     global variable) inside functions.
>>
>>     Best regards,
>>     José Arrarte
>>
>>     _______________________________________________
>>     rules-users mailing list
>>     rules-users at lists.jboss.org <mailto:rules-users at lists.jboss.org>
>>     https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>>
>>
>> -- 
>> Edson Tirelli
>> JBoss Drools Core Development
>> Office: +55 11 3529-6000
>> Mobile: +55 11 9287-5646
>> JBoss, a division of Red Hat @ www.jboss.com <http://www.jboss.com>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>   
>
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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/20080422/2d438341/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 32322 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20080422/2d438341/attachment.png 


More information about the rules-users mailing list