[rules-users] Retrieve rulename in LHS

Edson Tirelli tirelli at post.com
Mon Jun 2 08:55:53 EDT 2008


   Alexander,

   Seems a lot of cumbersome code to control rule execution, and something
that should probably not be done that way. Did you looked at the
lock-on-active rules attribute? Can't you use it together with either
rule-flow or agenda-groups to achieve your goal without manually controlling
rules x fact execution?

   []s
   Edson

2008/6/2 Alexander Claus <styjdt at claus4joy.de>:

> 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
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
Edson Tirelli
JBoss Drools Core Development
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/20080602/ca214ac9/attachment.html 


More information about the rules-users mailing list