Questions tagged [drools]
Drools is a business-rule management system (BRMS) with a forward-chaining-inference-based rules engine, more correctly known as a production rule system, using an enhanced implementation of the Rete algorithm.
4,048
questions
0
votes
0
answers
31
views
java.lang.NullPointerException: Cannot invoke "org.drools.compiler.compiler.Dialect.getId()"
We have a drool based rule engine deployed on tomcat 9.0.63, java 17. I am using drools 9.44.0.Final version. when I deploy the code on AKS, I am getting intermittent issue mentioned in the screenshot....
-1
votes
0
answers
35
views
Can't run Drools project on Eclipse
I have an academic task focused on rule generation models that necessitates working within the Eclipse environment. I've followed the provided instructions as directed.
Install eclipse ( I use 2023-...
0
votes
1
answer
37
views
+450
Drools Rule Units with custom *.drl source
I've been looking into how to setup Drools Rule Units with a custom file path to my *.drl. My application allows multiple "sessions" to be started and stopped independently of one another, ...
0
votes
0
answers
40
views
Drools 8.44.0.Final: Compare values of two input objects ('facts') in excel decision table? Syntax problem?
We are using drools as rule framework based on an excel decision table. Lets assume we have two input objects inserted via kieSession:
kieSession.insert(car);
kieSession.insert(bike);
How can i ...
-2
votes
0
answers
18
views
Drools Governance Process
I would like to explore the possibilities of
Rules Governance Process: Actions and checkpoints (i.e., a workflow) indicating who should be doing what, and when, with respect to deploying policy and ...
-1
votes
0
answers
35
views
Error running Drools on Spark using spark-submit
I am getting the below error when I am trying to run a jar file using spark-submit. I used the following link to download spark with scala 2.13 https://www.apache.org/dyn/closer.lua/spark/spark-3.5.0/...
0
votes
2
answers
32
views
Drools decision table - function call for condition param, so that the condition will be evaluated by comparing the values coming from the function
In my drools decision table, I want to keep a getter or function call in the condition cell, so that the condition will be evaluated over the value coming from that getter or function.
i.e for the $...
0
votes
0
answers
57
views
How to share DataStore between two different rule unit in a BPMN process with Drools 8?
Context : I am migrating my Java/DRL project from Drools 7 to Drools 8.
To do this I am using the new Rule Unit style combined with kogito/quarkus recommended by Drools. I am trying to figure out how ...
0
votes
0
answers
38
views
How does DRL key "insert" in rule conditions works with RuleUnit in Drools?
I am currently in the migration process from drools 7 to drools 8.
We have classic rules that do stuff like :
flow : init task --- main task
rule init
flow init task
if
evaluation()
then
insert ...
0
votes
0
answers
19
views
KIE server's update container Scanner API blocks real time requests
We use RedHat JBPM's KIE server as our rules engine. Our application gets around 1000 TPS in pick hours. We also have built multiple KIE container which holds rules for different domains. Since KIe-...
0
votes
1
answer
40
views
org.drools.core.util.MVELSafeHelper is not available in 7.74.1.Final drools version [duplicate]
I'm updating drools version from 7.20.0.Final to 7.74.1.Final. After update the dependency to 7.74.1.Final, I got an error saying couldn't find org.drools.core.util.MVELSafeHelper.
I have following ...
-1
votes
0
answers
47
views
Is the "JBPM 5.4.0. Final" compatible with "MySQL 8.x "?
Currently, we are using "MySQL 5.7" along with "JBPM 5.4.0.Final" and "Drools 5.5.0", which are functioning well in our production environment. Planning to upgrade from &...
0
votes
0
answers
28
views
Why Doesn't Drools KieScanner Update Rules From Child KieModules
I'm working on a system where we're using a top-level KieModule which includes a set of other "child" KieModules. Only the child modules actually contain rules. The application retrieves the ...
1
vote
1
answer
43
views
Remaining inputs ignored after first input matched with Rule is completed
I am using Drools Rule Engine for my usecase where i have to determine owner of a product based on multiple attributes. I have created a set of rules.
I have around 1000 input products and about 50 ...
0
votes
1
answer
62
views
Drools "join" like SQL in collect
So I something like SQL join possible in drools. I have ItemFact collection (1,2,3,...), each item may be used in different baskets. I have CanUseItemInBasket facts, that represents if item can be ...
-1
votes
1
answer
31
views
JBoss Drools Dependency does not load in maven
I have a very old project which I am trying to rebuild and the pom.xml has the following repository mentioned:
<repository>
<id>jboss-drools</id>
<...
0
votes
0
answers
11
views
How to upload .dmn file to jBPM business central project using KIE Rest API
I am able to upload TrafficViolation.dmn file to business central project using upload button provided in the workspace, but I want to do it programmatically using REST API provided by the kie server.
...
0
votes
1
answer
60
views
Unexpected drools behaviour
I'm experiencing unexpected behavior with Drools rules. I have a global variable, myList, which is a collection. I'm modifying this list based on conditions in the when clause of my rules. However, ...
-2
votes
1
answer
74
views
Intellij not correctly supporting Drools drl files
I'm having quite a hard time trying to let Intellij IDEA Ultimate recognize drl files syntax. I have the Drools plugin installed and highlighting works well, but it seems that the editor can't figure ...
1
vote
1
answer
157
views
Drools Rule Engine Null Pointer Exception
I'm trying the following tutorial https://www.mastertheboss.com/bpm/drools/jboss-drools-tutorial/?expand_article=1 to help familiarise myself with drools and am encountering the following error.
...
0
votes
0
answers
42
views
java.lang.RuntimeException: Unexpected global [APPUSER]
We are using rule engine in our application using below the drools related dependencies
<properties>
<runtime.version>7.60.0.Final</runtime.version>
</properties>
<...
0
votes
0
answers
37
views
Execution default-build of goal org.kie:kie-maven-plugin:8.44.0.Final:build failed
I'm trying to build my drool project ( 8.44.0.Final and jdk-11.0.18.10-hotspot) its getting failed .When i try to in eclipse its working fine . But When build its throwing error. I have enabled the ...
0
votes
1
answer
39
views
How to grab the results and POJO class attributes in case Drools rule sets fails in JAVA
I am using Drools Rules for firing business case validations. For this I am creating POJO classes and setting the attributes values of the POJO classes and then firing the rules.
I can grab the ...
0
votes
0
answers
46
views
java.lang.LinkageError: loader drools/./.JavaDialectRuntimeData$PackageClassLoader): attempted duplicate class definition for name:
So I am getting the error below when using Drools to evaluate a set of rules [example below] using Stateful kieSessions. This error isn't consistent with it's appearance but it appeared enough times ...
0
votes
1
answer
57
views
Comparing strings in Drools using `==` vs `equals()`
When using == operator on input string it does not match opposed to when using .equals().
As the docs state == uses equals() internally.
Person( firstName == "John" )
// This is similar to ...
0
votes
1
answer
32
views
How to serialize kiebase in drools-engine 8.43.0.Final
Since the SessionsAwareKnowledgeBase implements KieBase which can't be serializable.
Usecase: Need to serialize the kiebase and store into the cache (redis). At runtime i have to deserialize the ...
0
votes
0
answers
82
views
How to dynamically add new drool rules to a kie Container without recompiling all rules
I wanted to know if i can dynamically update rules in a kie container .
Scenario:
I have a global KieFileSystem and every time a new rule is added i am writing to this file System. After that i am ...
0
votes
0
answers
19
views
Issue while Executing BusinessRule in Kie Business-Central
Hello I am facing a weird situation in Business-central -> drlrule.drl file, in which I have writed a rule to check that Order all OrderItem contains the same facility Id or not.
But I am getting ...
-1
votes
1
answer
24
views
how to add constraints to limit and define valid input for the string data type in your DMN
enter image description here
I wrote it like this, hoping it can't be null or "", but it doesn't work properly.
If I write !=NULL then it is right. If I write !=NULL and !="", it ...
-2
votes
1
answer
45
views
Location of DMN FEEL Grammar
I am looking for formal DMN FEEL grammar (g4 file) to generate ANTLR4 based parser out of it. I am not able to find the grammar file.
Can you please provide where it can be found?
0
votes
0
answers
22
views
Can Drools be leveraged to run only certain rules based on the input? The input contains the Rule names and related data
Am new to Drools, looking to leverage Drools rules engine to run specific rules provided in the input. Input contains Rule names and the data.
Looking to see which rules engine can be best leveraged ...
0
votes
1
answer
44
views
What is the proper format to use when defining a date-effective attribute in a DRL using DATE & TIME
Drools documentation states the following:
string containing a date and time definition. The rule can be activated only if the current date and time is after a date-effective attribute.
Example: ...
0
votes
0
answers
67
views
DrlDumper not found on upgrading drools-compiler version
I am changing my drools-compiler version from 7.40.0 to 7.60.0 but I am getting error that DrlDumper class not found.
I am unable to use dump method which is used to generate the drl files as ...
1
vote
0
answers
28
views
How to use parallelism in apache flink
I use zfrools and flink 1.17.1 to filter event, input/output are read/write file
I keyBy(customerid) and in rule count events which same userid. If count >= 5 write events to file
Result I set ...
0
votes
0
answers
27
views
Exclude dashboard-builder-bom dependency from Knowledgebase in drools via maven
I have tried to exclude the package, but it is still trying to download dashboard-builder-bom. What am I doing wrong?
<dependency>
<groupId>org.drools</groupId>
...
0
votes
0
answers
18
views
jbpm process terminating web instances
I am using drools version 5.3.0, while processing the transactions the Tomcat container stopped working. Below is the loading error message.
Please help what could be the reason for the error?
org....
0
votes
0
answers
22
views
eclipse drools plugin giving error "source not found" while debugging drl file
when i try to debug drl file using eclipse drools plugin, it is not coming to debug point placed in drl rule file. It is giving error "source not found". But while executing, it works fine.
...
0
votes
0
answers
78
views
Test a list type data in Decision Table
I am trying to use a create a rule using a list type data in Drools.
I want to provide a list of numbers as an input data, and test it whether it contains a certain number in a decision table.
As in ...
0
votes
0
answers
107
views
Multi-Tenancy Drools Spring Web-Application with Stateful KieSession On Startup vs Runtime
I am trying to implement a multi-tenancy drools web-application on Spring. I am finding that the JPA persisted KieSession that I create for each tenant is triggering the rule. But for a CEP example (...
0
votes
1
answer
56
views
Get Intermediate DMN decisions in execution result
I have to create a DMN model with mmore than 50 DMN decisions (structured like a tree) in Business central .I have splitted it in different Decision services to not have a large DMN model (difficult ...
0
votes
0
answers
36
views
Preventing Rule Retriggering in Drools or Alternative Technologies
I'm currently using Drools in a software application to validate a significant number of data objects. The creation process involves multiple steps, and at each step, Drools rulesets are employed to ...
0
votes
0
answers
76
views
When should kieSession be disposed?
I have a batch processing code that uses drools to run some validation checks. Originally, I made one kieSession for the whole app and used it in the code that reads the data. Below is a pseudo code:
...
2
votes
1
answer
125
views
"is not relevant to this pattern" warning since 8.40.0
This warning was added in https://github.com/kiegroup/drools/pull/5270 but we currently fail to understand what exactly is wrong.
Simplified rule:
rule "Sample-Denied"
no-loop
when
$req: ...
1
vote
2
answers
64
views
How to avoid NullPointerException in Drools if in the 'when' clause are managed values that might be null?
I've the following Drools rule code:
rule "S001_EVENT_Date 2023-02-02 03:01:01.901 +02"
when
// EventRequest(info.timeStamp.equals("2023-02-02 03:01:01.901 +02"));
...
0
votes
1
answer
50
views
Java VerifyError when using Drools 6
I am seeing an exception after copying our app from Solaris to Linux.
Caused by: java.lang.VerifyError: (class: ASMAccessorImpl_17883800501688417666490, method: getKnownEgressType signature: ()Ljava/...
0
votes
0
answers
101
views
Kogito+Quarkus Native executable build for big rule sets takes too much time
I'm having some timing issues while migrating a Drools project to Quarkus+Kogito (with legacy API and TMS) in order to create a native executable in order to improve startup and execution times. I'm ...
0
votes
0
answers
90
views
Why Drools business-central throw marshalling exception during startup
I've got an error: "Failed to bootstrap errai marshalling system!" during Wildfly 24.0.1.Final deployment of Drools business-central.war file version 7.73.0-Final downloaded from official ...
0
votes
0
answers
22
views
Is there an in-built support to add epsilon as an input parameter for double comparsions with mvel dialect?
I am using mvel dialect for defining rules for drools rule engine. It may comprise of arithmetic expressions like in the when part as shown below
rule "Test rule"
dialect "mvel"...
0
votes
1
answer
42
views
Drools rule to check whether Hashmap key present
I am using below rule to check if hashmap key is equals to "templateUUID". Below rule running with no error but the value is not getting changed in required json.
rule "Update HashMap ...
0
votes
1
answer
207
views
Best approach for updating rules in a deployed Kogito application
I have recently migrated from a Drools application to a Kogito application, and I'm facing challenges in updating/creating rules on a deployed application. In the Drools application, I used to create ...