Re: [rules-users] drools 6 code inner code which serarch kmodule.xml
Hi Mark, That is very cool I am able to change the path of kmodule.xml now.!!! Thanks for that, I have one more doubt how newKieSession finds the ksession-rules from kmodule.xml. any internal code for that. Let me know KieSession ksession = kContainer.newKieSession(ksession-rules); Thanks, Ganesh N Neelekani -- View this message in context: http://drools.46999.n3.nabble.com/drools-6-code-inner-code-which-serarch-kmodule-xml-tp4030002p4030030.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] drools 6 code inner code which serarch kmodule.xml
Hi Team, please follow below code. KieServices ks = KieServices.Factory.get(); KieContainer kContainer = ks.getKieClasspathContainer(); KieSession ksession = kContainer.newKieSession(ksession-rules); whenever I executed it searched for ksession-rules of kmodule.xml which presnt in the path /resouces/META-INF/kmodule.xml. which of the above code finds that, can any one tell me logic behind it, I want to modify this code according to requirement. Thanks, -- View this message in context: http://drools.46999.n3.nabble.com/drools-6-code-inner-code-which-serarch-kmodule-xml-tp4030002.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] drools 6 code inner code which serarch kmodule.xml
ClasspathKieProject.discoverKieModules. https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/ClasspathKieProject.java Mark On 12 Jun 2014, at 08:24, ganeshneelekani ganeshneelek...@gmail.com wrote: Hi Team, please follow below code. KieServices ks = KieServices.Factory.get(); KieContainer kContainer = ks.getKieClasspathContainer(); KieSession ksession = kContainer.newKieSession(ksession-rules); whenever I executed it searched for ksession-rules of kmodule.xml which presnt in the path /resouces/META-INF/kmodule.xml. which of the above code finds that, can any one tell me logic behind it, I want to modify this code according to requirement. Thanks, -- View this message in context: http://drools.46999.n3.nabble.com/drools-6-code-inner-code-which-serarch-kmodule-xml-tp4030002.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users