[rules-users] Drools API
Wolfgang Laun
wolfgang.laun at gmail.com
Mon Oct 18 09:01:48 EDT 2010
import org.drools.KnowledgeBase;
import org.drools.definition.KnowledgePackage;
import org.drools.definition.rule.Rule;
KnowledgeBase kBase = ...;
for( KnowledgePackage kPackage: kBase.getKnowledgePackages() ){
String packageName = kPackage.getName();
for( Rule rule: kPackage.getRules() ){
String ruleName = rule.getName();
//...
}
}
-W
On 18 October 2010 12:30, shyam_prakash <prakash.shyam at gmail.com> wrote:
>
> Hello,
>
> I am looking for a way to expose the published rule sets programmatically
> and I am trying to determine if there is a service API that can be used to
> retrieve the list/or iterate through published packages.
>
> Please let me know if there is any such API / Javadoc for the same.
>
> Thanks,
> Shyam
> --
> View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-API-tp1724208p1724208.html
> Sent from the Drools - User 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