[jboss-jira] [JBoss JIRA] (DROOLS-2311) Drools Engine not able to load rules in spring-Boot project

Akash Chandwani (Jira) issues at jboss.org
Tue Jan 29 14:38:03 EST 2019


    [ https://issues.jboss.org/browse/DROOLS-2311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13688874#comment-13688874 ] 

Akash Chandwani commented on DROOLS-2311:
-----------------------------------------

I am able to run rules with spring boot using the following dependencies in build.gradle

	implementation group: 'org.kie', name: 'kie-api', version: '7.16.0.Final'
	implementation group: 'org.drools', name: 'drools-core', version: '7.16.0.Final'
	implementation group: 'org.drools', name: 'drools-compiler', version: '7.16.0.Final'
	implementation group: 'org.kie', name: 'kie-spring', version: '7.16.0.Final'

I guess you'll need to kie-spring to your list of dependencies.

> Drools Engine not able to load rules in spring-Boot project
> -----------------------------------------------------------
>
>                 Key: DROOLS-2311
>                 URL: https://issues.jboss.org/browse/DROOLS-2311
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 7.5.0.Final
>            Reporter: Chandresh Mishra
>            Assignee: Mario Fusco
>            Priority: Major
>         Attachments: Drools-Issue.rar
>
>
>  am using the Drools 7.5.0-final in the spring Boot project.
> I am working on a multi-module Gradle project. Rules and kmodule.xml is present in the sub-module project. This module is packaged as a Jar inside a fat spring boot Jar file.
> I am building the container from the classpath.
> KieContainer kContainer = kieService.newKieClasspathContainer();
> on server start-up (java -jar) it loads the Kmodule.xml and prints all the kbase and sessionName.
> But when I fire rules it returns zero rules fired.
> It works fine when I run as spring boot app from Eclipse. Please help.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list