<br>rule XXX<br>when<br>&nbsp;&nbsp;&nbsp; // LHS<br>then<br>&nbsp;&nbsp; String ruleName = drools.getRule().getName();<br>end<br><br>&nbsp;&nbsp; Hope it helps.<br><br>&nbsp;&nbsp; Edson<br><br><div><span class="gmail_quote">2007/8/9, Jin, Ming &lt;<a href="mailto:Ming.Jin@travelocity.com">
Ming.Jin@travelocity.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;">Is there a way in rule definition, especially at RHS to get the name of
<br>the rule?&nbsp;&nbsp;I need to return the name of the rule with data object for<br>logging purpose.<br><br>I understand that ActivationEvent could be used to achieve this goal.&nbsp;&nbsp;I<br>just need to know whether it could be done in DRL.
<br><br>Your help is greatly appreciated.<br>-Ming<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">
https://lists.jboss.org/mailman/listinfo/rules-users</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>