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(a)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-conseq...
Sent from the drools - user mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)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