All Questions
225 questions
1
vote
2
answers
260
views
Drools to decide fields to display in UI
I have a scenario where the fields in UI should be displayed based on User roles. For Example- If user is from role "A" then UI will display 5 fields but if the user is from role "B&...
-1
votes
1
answer
71
views
nullPointer envoked on .contains method when querying for String jobTitle
I'm writing a return statement for specific role provisioning -
If everything is in scope, it should return as true and assign the role.
Part of the logic requires the user of
identity.getAttribute(&...
0
votes
1
answer
259
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
1
answer
37
views
How to implement periodic data receiving and executing self-defined tasks?
I'm developing an android app which is connected to a BLE device (to receive temperature values) and the OpenWeatherMap API for receiving weather data.
Now i want to request every 30 minutes the ...
1
vote
1
answer
150
views
Sonar rule for interfaces only RSPEC-1213
I want to modify / make the rule target only public interfaces (not public classes etc). Is this possible ? Im using this rule in Java code but its too strict for my project and I would love to know ...
1
vote
0
answers
286
views
Unable to serialize kiebase in drools-engine 8.29.0.Final
Since the SessionsAwareKnowledgeBase implements KieBase which can't be serializable.
Struggling from the past one week.
Usecase: Need to serialize the kiebase and store into the database.
At runtime i ...
-1
votes
1
answer
4k
views
How to write custom rule to prevent some method call in SonarQube?
Suppose i have one class A and it has three method met1,met2 and met3 i want to build a custom rule where if someone calls met3 it should throw some custom message showing as non compliant solution in ...
0
votes
0
answers
66
views
Drools Business Rules : Unable to determine what is this NULL in exception detail and What these number with colon
I am using Drools BPMN rule engine for business rules validation and getting below errors intermittently in my application.
Exception while executing rules. [determine_flow_name:1 - Determine Flow ...
0
votes
1
answer
355
views
how to execute 2 drool rules in Java with different logic having dependency between them, used ruleflow-group but 2nd rule not getting executed
I am trying to execute different drool rules in java having different business logic but rule 2 needs to be executed after rule 1 gets executed. For this, I have used ruleflow-group. I am able to ...
-1
votes
1
answer
71
views
How to switch from different instructions/rules in an elegant way
hoping for your help!
I'm doing a java project that reproduces the logo language and im capped as I can't find an elegant and not too complicated way to switch between different rules / instructions, ...
1
vote
1
answer
318
views
Drools KieContainer does not fire rules with custom classloader
I am trying to add a non-existing method to a Java bean, compile it and use the newly added method in Drools rules. Via a custom class loader.
I am using CompilerUtils to bind newly modified class to ...
0
votes
1
answer
50
views
Assign either of value that exists or not null RuleInput($date = (this["startDate"] || this["startingDate"]))
Inside RuleInput there may be either "startDate" or "startingDate" , I need to assign value to $date variable either of the value that exists.
Something Like,
RuleInput($date = (...
-2
votes
2
answers
741
views
Can we trigger multiple dmn from java code [closed]
I have a project in business central with 8 dmn models. Is there any way to trigger all the 8 models from java code in a single api call, like we triggering many drl files in single api call?
1
vote
4
answers
3k
views
Problem with import in latest version of Drools
I'm new to Drools and I'm trying to start using different tutorials. Lately I've started those two: https://koziolekweb.pl/2008/10/30/jboss-rules-drools-silnik-regul-biznesowych/ and https://www....
0
votes
1
answer
389
views
I want to compare two lists using drools, but the rules are not firing
After inserting two arraylists of type InboundRegionalProduct and ExistingRegionalProduct in to the drools session the rules are not getting fired. Don't know whats the issue is.
This is the drl file.
...