[rules-users] regarding drools guvnor and eclipse IDE
Sai Nadh
adisya.sai at gmail.com
Thu Oct 18 08:27:38 EDT 2012
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" );
kagent.applyChangeSet( ResourceFactory.newUrlResource("
http://localhost:8080/guvnor/rest/packages/ProductPositionAlert/assets/change-set.xml/source")
);
return kbase;
}
my guvnor package sanpshot details are
[image: Inline image 2]
thanks in advance
--
*Regards*
* sainadh*
* *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20121018/88cb0d62/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 135893 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20121018/88cb0d62/attachment-0001.png
More information about the rules-users
mailing list