good evening,
thank you for all, giving me good encouragement in drools...
I have created some rules in drools guvnor, which i want to access to my java application
for that, i have created MODEL_CLASS, TEST_CLASS in eclipse.
In the test class i have written the below code to access the guvnor rules.. please check this and suggest me if it has any mistakes
private static KnowledgeBase createKnowledgeBase() {
KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent( "MyAgent" );
KnowledgeAgentConfiguration kaconf = KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
kaconf.setProperty( "drools.agent.scanDirectories", "false" );
change-set.xml/source") );
return kbase;
}
my change-set.xml is like below
<?xml version="1.0" encoding="UTF-8"?>
<add>
type="PKG" />
</add>
</change-set>
i am providing here the snapshot of my drools guvnor rule package....
thanks