<br>&nbsp;&nbsp; Arjun,<br><br>&nbsp;&nbsp; Answering your first question, in the consequence of a rule, you have the automatically-defined &quot;drools&quot;&nbsp; variable. It implements the KnowledgeHelper interface. Take a look at this interface as it can provide you a lot of runtime information. To get the rule name:
<br><br>drools.getRule().getName();<br><br>&nbsp;&nbsp;&nbsp; Also, if you develops something that is generic and want to contribute back to the community, it would be great. Maybe others can also help you out.<br><br>&nbsp;&nbsp;&nbsp; About your second question: we don&#39;t have anything out of the box yet. Although, Mark has blogged about exposing rules as a web-service and we are looking into implementing something like that in the drools-brms.
<br><br>&nbsp;&nbsp;&nbsp; Again, contributions welcome.<br><br>&nbsp;&nbsp;&nbsp; Regards,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Edson<br><br><div><span class="gmail_quote">2007/5/27, Arjun Dhar &lt;<a href="mailto:dhar_ar@yahoo.com">dhar_ar@yahoo.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br> In JBoss Rules 4, the WorkingMemoryLogger is not applicable for the<br>StatelessSession.<br><br>For this and a whole other reasons, we are building a log framework more<br>extensive than the default one provided.<br>
<br>But, am hitting a small bottleneck. In the Log get the name of the Rule<br>executing.<br><br>One can copy the Rule names and put in an &#39;Action&#39; column that logs it, but<br>this is not sophisticated I feel.<br>
<br>Q1) Is there anyway within the Rule script for me to refer to the rule name<br>that caused that action so that i may log it?<br>Any other approach that integrates with a custom log framework is welcome!<br><br>In the examples I&#39;ve seen one explicitly puts a &quot;reason&quot;, this may be a good
<br>practice but is not always practical. Would request this feature if not already<br>there.<br><br>Q2) Can I run the engine as a Daemon serive(Out of the box solution)?<br>(I apologize for repeating this particular question; incase you have already
<br>answered it please let me know)<br><br>thanks,<br>Arjun<br><br><br><br><br>_______________________________________________<br>rules-dev mailing list<br><a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org
</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;Software Engineer - JBoss Rules Core Developer
<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>