[rules-users] Not able to use <kbase includes="" /> in Kie Spring

Mark Proctor mproctor at codehaus.org
Fri May 9 13:38:11 EDT 2014


It would well be missed out. Could you write a unit test, so we can catch regressions and submit as a pull request please? When prove the problem with a test, open a jira and put the jira ID in the comment, as per the “getting involved” docs

Example unit tests for kie-spring:
https://github.com/vinodkiran/droolsjbpm-integration/tree/kmodule-spring/kie-spring/src/test/java/org/kie/spring/tests

Gettig involved, how to do pull requests etc:
https://docs.jboss.org/drools/release/6.1.0.Beta3/drools-docs/html/Welcome.html#gettingstarted

Mark


On 9 May 2014, at 01:06, Ashish Nayyar <ashishna at gmail.com> wrote:

> Hi,
> 
> I am trying to include a another kbase in KIE Spring project. This is the configuration
> 
> knowledge-services.xml
>  <kie:kmodule id="kie-spring"> 	
>     <kie:kbase name="kie-base" includes="rules1Package" packages="au.org.nps.dsaas.rules" >
>       <kie:ksession name="ksession1" type="stateless"  >
>       	<kie:consoleLogger />
>       	</kie:ksession>
>     </kie:kbase>
>     
>   </kie:kmodule>
> <bean id="kiePostProcessor" class="org.kie.spring.KModuleBeanFactoryPostProcessor"/>
> 
> kmodule.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <kmodule xmlns="http://jboss.org/kie/6.0.0/kmodule">
>     <kbase name="rules1Package" packages="au.org.nps.dsaas.rules1" >
>         <ksession name="ksession2" type="stateless" />
>     </kbase>
> </kmodule>
> 
> My KIE modules are discovered and I can see following in the logs
> 
> 09:59:36,642 DEBUG [org.drools.compiler.kie.builder.impl.ClasspathKieProject] (ServerService Thread Pool -- 91) Found and used pom.properties META-INF/maven/au.org.nps.dsaas/rules-repository/pom.properties
> 09:59:36,645 DEBUG [org.drools.compiler.kie.builder.impl.ClasspathKieProject] (ServerService Thread Pool -- 91) Discovered classpath module au.org.nps.dsaas:rules-repository:0.0.1-SNAPSHOT
> 
> But Spring context fails to load and I get the following errors:
> 
> 09:59:39,547 ERROR [org.drools.compiler.kie.builder.impl.AbstractKieModule] (ServerService Thread Pool -- 91) Unable to build KieBase, could not find include: rules1Package
> 
> As per the official documentation (http://docs.jboss.org/drools/release/6.0.1.Final/drools-docs/html/ch.kie.spring.html) , I can use the includes property of KBASE tag provided in Spring KIE. I am using kie spring 6.1.0 Beta
> 
> Any suggestions?
> 
> Thanks
> Ashish
> 
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140509/75e0bfb4/attachment.html 


More information about the rules-users mailing list