[rules-users] Getting rule metadata and LHS information in consequence

Edson Tirelli tirelli at post.com
Mon Jun 15 08:01:30 EDT 2009


   Rule name, metadata and the matching facts (tuple) are all available
through the KnowledgeContext API (check the javadocs). The actual patterns
and constraints, though, you will probably need to get from the source.

   []s
   Edson

2009/6/15 dhari <sdhari at hotmail.com>

>
> I have an unusual requirement. The application we are developing contains
> more than 100 rules. All rules are just to validating the data pass in
> facts. Upon failure, we log the error message. The requirement is to log
> rule name and LHS condition (fact attributes, constant data, comparative
> operators etc) of the rule that failed rule.
>
> I am not sure is there any way to get this information dynamically from the
> working memory/rule base or other possible source. I wonder if some has
> implemented such scenario in the past and could help me.
>
> Regards,
>
> Shabbir
> --
> View this message in context:
> http://www.nabble.com/Getting-rule-metadata-and-LHS-information-in-consequence-tp24029100p24029100.html
> Sent from the drools - user mailing list archive at Nabble.com.
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
 Edson Tirelli
 JBoss Drools Core Development
 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/20090615/1256536b/attachment.html 


More information about the rules-users mailing list