Yes &quot;he&quot; did ;-)<br><br><div class="gmail_quote">2010/9/3 nch <span dir="ltr">&lt;<a href="mailto:underscore_dot@yahoo.com">underscore_dot@yahoo.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">I guess he refers to &quot;4.5.2. global&quot; in drools expert:<div><a href="http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html#d0e3157" target="_blank">http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html#d0e3157</a><br>
<br></div><div>Cheers</div><div><br>--- El <b>vie, 3/9/10, Solingen, Stephanie <i>&lt;<a href="mailto:stephanie.solingen@atosorigin.com" target="_blank">stephanie.solingen@atosorigin.com</a>&gt;</i></b> escribió:<br><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px">
<br>De: Solingen, Stephanie &lt;<a href="mailto:stephanie.solingen@atosorigin.com" target="_blank">stephanie.solingen@atosorigin.com</a>&gt;<br>Asunto: Re: [rules-users] How to create logfile when using ruleAgent<br>Para: <a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a><br>
CC: <a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>Fecha: viernes, 3 de septiembre, 2010 10:44<div><div></div><div class="h5"><br><br><div>

 
 
 
<div><span lang="EN">
<p><span><font size="2" face="Arial">What user guide do you 
mean?</font></span></p>
<p><span><font size="2" face="Arial">I&#39;ve already read this 
one: <a rel="nofollow" href="http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-guvnor/html_single/index.html" target="_blank">http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-guvnor/html_single/index.html</a></font></span></p>

<p><span><font size="2" face="Arial">But it does not say 
anything about globals nor how to make a rule with Log() (instead of 
System.out.println()) , so the information is added to a logfile. The only 
information I&#39;ve found was in de user guide of drools flow (section 5.3) <a rel="nofollow" href="http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-flow/html_single/index.html" target="_blank">http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-flow/html_single/index.html</a></font></span></p>

<p><span><font size="2" face="Arial">But I&#39;m not using 
ruleflow</font></span></p>
<p><span><font size="2" face="Arial">And in de Drools 
Expert guide: <a rel="nofollow" href="http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html" target="_blank">http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html</a> in 
section 3.3.5 there is information how to make an audit log, which one can view 
via Eclipse.</font></span></p>
<p><span><font size="2" face="Arial">But I want to make a 
simple log file (like a server.log) but for the rules I&#39;ve made in Guvnor. Which 
is in the system and testers can check if something strange happens or pure for 
their own information. so they can watch the process without any technical 
knowledge.</font></span></p>
<p><span><font size="2" face="Arial"></font></span> </p>
<p><span><font size="2" face="Arial">I hope you can help me 
further as where to find some information or example how to use a global object 
that handles logging...</font></span></p>
<p><span><font size="2" face="Arial">Or where to find the 
guide your talking about...</font></span></p>
<p><font size="2" face="Arial"></font> </p>
<p><font size="2" face="Arial">Using a &quot;global&quot; object that handles logging would 
probably be the simplest.</font></p>
<p><font size="2" face="Arial">Look at the User Guide for use of globals.</font></p>
<p><font size="2" face="Arial">2010/9/2 Solingen, Stephanie 
&lt;<a href="mailto:stephanie.solingen@atosorigin.com" target="_blank">stephanie.solingen@atosorigin.com</a>&gt;</font></p>
<p><font size="2" face="Arial">&gt; Hi,</font></p>
<p><font size="2" face="Arial">&gt;</font></p>
<p><font size="2" face="Arial">&gt; Can anyone give me a code example how to create 
a logfile when using a rule</font></p>
<p><font size="2" face="Arial">&gt; agent (rulebase) and statefulsession?</font></p>
<p><font size="2" face="Arial">&gt; The goals is to replace all 
system.out.println(); statements in de rules</font></p>
<p><font size="2" face="Arial">&gt; with Log();</font></p>
<p><font size="2" face="Arial">&gt; (the rules are made with the Guvnor GUI, and I 
am using Guvnor 5.1 with a</font></p>
<p><font size="2" face="Arial">&gt; oc4j server)</font></p>
<p><font size="2" face="Arial">&gt; The text that is in de Log() should then appear 
in an existing logfile.</font></p>
<p><font size="2" face="Arial">&gt;</font></p>
<p><font size="2" face="Arial">&gt; Thanx in advance.</font></p></span></div>
<div> </div>
<div><font size="2" face="Arial"></font> </div> 
</div><br></div></div>-----Adjunto en línea a continuación-----<br><br><div>_______________________________________________<br>rules-users mailing list<br><a href="http://mc/compose?to=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></div></blockquote></div></td></tr></tbody></table><br>



      <br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">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>
<br></blockquote></div><br>