[rules-users] Finding the definition of a rule

Davide Sottara dsotty at gmail.com
Tue Oct 9 19:01:50 EDT 2012


org.drools.rule.Rule has a getResource() method, set during the build
process, that is not publicly reflected by the
org.drools.definition.rule.Rule interface.

Iterating over
knowledgeAgent.getKnowledgeBase().getKnowledgePackage("xyz").getRules() with
a type check and a cast should do the trick.

Maybe Mark can tell if it would be appropriate to expose it or not.

Best
Davide




--
View this message in context: http://drools.46999.n3.nabble.com/Finding-the-definition-of-a-rule-tp4020183p4020186.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list