<br>   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.<br>
<br>   []s<br>   Edson<br><br><div class="gmail_quote">2009/6/15 dhari <span dir="ltr">&lt;<a href="mailto:sdhari@hotmail.com">sdhari@hotmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I have an unusual requirement. The application we are developing contains<br>
more than 100 rules. All rules are just to validating the data pass in<br>
facts. Upon failure, we log the error message. The requirement is to log<br>
rule name and LHS condition (fact attributes, constant data, comparative<br>
operators etc) of the rule that failed rule.<br>
<br>
I am not sure is there any way to get this information dynamically from the<br>
working memory/rule base or other possible source. I wonder if some has<br>
implemented such scenario in the past and could help me.<br>
<br>
Regards,<br>
<br>
Shabbir<br>
<font color="#888888">--<br>
View this message in context: <a href="http://www.nabble.com/Getting-rule-metadata-and-LHS-information-in-consequence-tp24029100p24029100.html" target="_blank">http://www.nabble.com/Getting-rule-metadata-and-LHS-information-in-consequence-tp24029100p24029100.html</a><br>

Sent from the drools - user mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>