[rules-users] Getting Names of all the rules from the excel
Wolfgang Laun
wolfgang.laun at gmail.com
Wed Sep 26 01:47:39 EDT 2012
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 at 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-excel-tp4019958.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
More information about the rules-users
mailing list