[
https://issues.jboss.org/browse/DROOLS-2311?page=com.atlassian.jira.plugi...
]
Chandresh Mishra commented on DROOLS-2311:
------------------------------------------
[~mfusco] No, I am not using the spring-boot-devtools.
I am attaching the reproducer.
Code attached is a Gradle project with 3 subprojects:
A. application - spring boot project
B. application-rule - DRL files and kmodule.xml
C. application-service-data- calling rules engine.
D. Drools-Issue- root project
Steps to reproduce:
1. run "gradle clean build" inside "Drools-Issue" folder.
2. run "java -jar application-0.0.1-SNAPSHOT.jar" inside
"Drools-Issue\application\build\libs"
3. Hit "http://localhost:8081//Rules/fireRules"
Ideally, it should return "2" as a result but it will return
"java.lang.RuntimeException: Unexpected global"
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
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.5.0#75005)