rule XXX
when
    // LHS
then
   String ruleName = drools.getRule().getName();
end

   Hope it helps.

   Edson

2007/8/9, Jin, Ming < Ming.Jin@travelocity.com>:
Is there a way in rule definition, especially at RHS to get the name of
the rule?  I need to return the name of the rule with data object for
logging purpose.

I understand that ActivationEvent could be used to achieve this goal.  I
just need to know whether it could be done in DRL.

Your help is greatly appreciated.
-Ming

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



--
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com