4,099 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
69
views
Drools cannot load DRL files from multiple folders inside Spring Boot executable JAR (LaunchedURLClassLoader issue)
I am using Drools 10.1.0 (drools-xml-support) with Spring Boot, and I have a kmodule.xml with two KBases, each pointing to a different folder.
In IntelliJ/IDE everything works perfectly.
But when I ...
1
vote
0
answers
41
views
Drools rule fails for genuine use case at high scale
I have written the rule below to evaluate a very easy use case.
rule "WIN_DRL"
when
$featureMap: Map()
$reward: Reward()
$rewardSummery : RewardSummery(
...
7
votes
2
answers
552
views
Spring Boot 4.0 Application Native Image must support at least Java 25
Because Spring Boot 4.0 was released, I tried to create a new repository and use it to generate a native image. After it was successfully generated, this error occurred when I tried to start it.
My ...
1
vote
1
answer
49
views
Drools rule firing depends on the order of constraints
I have the following .drl file, and for the same input data, Rule 1 fires, but rule 2 does not. Even though they have the same constraints, just in a different order.
package com.example.ruleunit
...
Advice
0
votes
0
replies
48
views
Is there any working difference when setFocus() method for agenda group is defined in the java code or in then field(RHS section) of the DRL rule file
I have my DRL rule file which contains more than one agenda group and they needs to be executed in certain order.
Will their be any difference if the setFocus() is called upon those agenda group in ...
0
votes
1
answer
43
views
Better to add multiple facts using single inserts(...) or using a List? [closed]
We have the following situation when setting up a Drools rule execution:
List<Person> persons = List.of(person1, person2, ...); // in essence, it's just a List of something
KieSession kieSession ...
0
votes
0
answers
41
views
Skipping Drools rules with higher salience
I have a following Facts domain ProposedFare and Fare.
The idea here is ProposedFare could be a competitor fare and from that create/clone/update Fare.
A rule can further update Fare which was already ...
0
votes
0
answers
48
views
ClassNotFoundException and NoClassDefFoundError in Drools units
My environment:
Drools 10.1.0
Quarkus 3.23.4
Kotlin 2.1.21
UseCase: we have some rules which need to be stage-aware, eg prod, non-prod, testing.
I am struggling with a RuleUnitData class which looks ...
1
vote
0
answers
19
views
Drools Verifier - unique rule names per package
Could someone suggest is there any chance to validate that rule names are unique per package using Drools Verifier?
I’m trying to validate rules with structure like:
Package rules:
rule "Rule 1"
...
0
votes
0
answers
76
views
Drools - KieServices.Factory.get() returns null when used in Azure containers or Linux?
I'm facing NullPointerException with Drools 8 or Drools 10.1.0. [Drools 10.1.0]
Everything works fine in Intellij. If deploy it to Linux (RHEL 7.0) getting NPE.
Caused by: java.lang....
0
votes
0
answers
67
views
Rules execution Order with Sequential in Drools 6.4.0 & 7.0.0
I'm upgrading a project from Drools 6.4.0 to 7.0.0. The project uses a Stateless session.
I load a list of .xls decision table files (with the sequential flag set to true) into the KnowledgeBuilder — ...
2
votes
1
answer
92
views
StatelessKieSession doesn't appear thread safe
I'm trying to optimize a section of the app by switching the single processing of a collection into running parallel under a lambda function.
I am building my KieContainer once as follows:
/**
* From ...
0
votes
0
answers
79
views
Drools Performance Capability
I was asked to help determine if Drools is capable of high volume processing. So I in return asked what do we mean by high volume. They gave me the following:
20,000 files
5 different rulesets ...
0
votes
1
answer
226
views
You're trying to compile a Drools asset without mvel
I have a unit test for my drools project that is running inside my Intellij IDEA environment, but fails in ant build. The error is:
Exception org.drools.base.common.MissingDependencyException: You're ...
0
votes
1
answer
56
views
upgrading drools project gets unable to resolve ObjectType on CSV decision table
I am upgrading an existing project from an ancient drools version to 9.44. I have successfully used the following code to compile and test a spreadsheet and now I need it to work against one of my CSV ...