You can try:

then
   System.out.println( drools.getRule().getName() );
end

  []s
  Edson


Dirk Bergstrom wrote:

Can I get access to the name of the rule from the java code on the RHS?  I
want to say "This object triggered the rule called '<name of rule>'", without
having to copy-n-paste the rule name into the RHS.



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

 IT executives: Red Hat still #1 for value
http://www.redhat.com/promo/vendor/

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to