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