KnowledgeBuildr kBuilder = ...
for( KnowledgePackage kPackage: kBuilder.getKnowledgePackages() ){
for( Rule rule: kPackage.getRules() ){
String name = rule.getName();
... select based on rule name in template file ...
}
}
On 26/09/2012, himansu.nayak <himansumca(a)gmail.com> wrote:
Hi,
i am using drools rule template. all my rules data are in a separate excel
file.
the first row of the excel is taken as rule name in my template file. My
current requirement
needs me to get the name of all the rules from the excel file.
i am using drools.getRule().getName() but its of no use as this only work
if
the specific rule has to be executed.
is there any other api in drools which gives me all the rules name from the
excel??
else i have to write an Adapter to do the same from the excel.
Thanks...
Himansu
-----
Thanks...
Himansu
--
View this message in context:
http://drools.46999.n3.nabble.com/Getting-Names-of-all-the-rules-from-the...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users