Thank you Esteban,

   I referred API,I'm able to retrieve rule-names present in a package.But
could not able to retrieve Declarative Model names,and Facts present in that
declarative Model in that package.Here,is my code to retrieve rule names in
a package.

//.....Added Kbuilder to
Collection<KnowledgePackage> kpackages = kbuilder2.getKnowledgePackages();
                        for(KnowledgePackage kpackage : kpackages) {
                                
System.out.println(kpackage.getClass().getDeclaredClasses().toString());
                            for(org.drools.definition.rule.Rule rule : 
kpackage.getRules()) {
                            System.out.println(rule.getName());
                            }
                        }

Can I enhance this code to get Model names and Fact names(which are present
in that model).

Please help me..I'm struggling in this since last week

--
View this message in context: 
http://drools.46999.n3.nabble.com/Fact-Names-in-a-Model-tp3572234p3572275.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to