<br>&nbsp;&nbsp; Alexander,<br><br>&nbsp;&nbsp; Seems a lot of cumbersome code to control rule execution, and something that should probably not be done that way. Did you looked at the lock-on-active rules attribute? Can&#39;t you use it together with either rule-flow or agenda-groups to achieve your goal without manually controlling rules x fact execution?<br>
<br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br><br><div class="gmail_quote">2008/6/2 Alexander Claus &lt;<a href="mailto:styjdt@claus4joy.de">styjdt@claus4joy.de</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
I wonder if there is a way to get the rulename in the LHS of a rule directly<br>
via DRL. I found a post here:<br>
<a href="http://article.gmane.org/gmane.comp.java.drools.user/8373" target="_blank">http://article.gmane.org/gmane.comp.java.drools.user/8373</a>, which describes a<br>
solution to get the rulename in the RHS of a rule. But that doesn&#39;t work in<br>
the LHS.<br>
<br>
I need this to mark some facts as processed by the current rule, so that the<br>
facts do not trigger rule firing again together with other facts. Currently<br>
I use an arbitrary string, which is only used by one rule. But for the sake<br>
of convenience, it would be nice to use such an &quot;automated&quot; mechanism for<br>
getting the rulename as this unique identifier string.<br>
<br>
Thanks in advance.<br><font color="#888888">
Alexander Claus <br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto: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>
</font></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 href="http://www.jboss.com">www.jboss.com</a>