How can i access the rules (which i have created in Drools Guvnor) to my java application?
plz give me some example....
i have tried with below code, is there any mistakes?? if yes pls mention....
private static KnowledgeBase createKnowledgeBase() {
KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent( "MyAgent" );
KnowledgeAgentConfiguration kaconf = KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
kaconf.setProperty( "drools.agent.scanDirectories", "false" );
return kbase;
}
my guvnor package sanpshot details are
thanks in advance
--
Regards
sainadh