[rules-users] Retrieve rulename in LHS

Alexander Claus styjdt at claus4joy.de
Mon Jun 2 05:27:11 EDT 2008


Hello,

I wonder if there is a way to get the rulename in the LHS of a rule directly
via DRL. I found a post here:
http://article.gmane.org/gmane.comp.java.drools.user/8373, which describes a
solution to get the rulename in the RHS of a rule. But that doesn't work in
the LHS.

I need this to mark some facts as processed by the current rule, so that the
facts do not trigger rule firing again together with other facts. Currently
I use an arbitrary string, which is only used by one rule. But for the sake
of convenience, it would be nice to use such an "automated" mechanism for
getting the rulename as this unique identifier string.

Thanks in advance.
Alexander Claus 




More information about the rules-users mailing list