[rules-users] DRL Question

Edson Tirelli tirelli at post.com
Thu Aug 9 16:23:40 EDT 2007


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

   Hope it helps.

   Edson

2007/8/9, Jin, Ming <Ming.Jin at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070809/40b88a02/attachment.html 


More information about the rules-users mailing list