You can access it with the following:
drools.getRule().getName()




"Irving Reid" <irving@cfrq.net>
Sent by: rules-users-bounces@lists.jboss.org

09/13/2007 08:34 PM
Please respond to
Rules Users List <rules-users@lists.jboss.org>

To
<rules-users@lists.jboss.org>
cc
Subject
[rules-users] Is there a way to get the rule name in the RHS?





I'd like to record which rule executed to update an object. I know that I could add code to the RHS to explicitly set a hard-coded rule identifier into the action, but I was wondering if there was a way to take advantage of the rule name, since it's already there.

- irving -




_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users