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.

https://www.drools.org/

Drools is a Business Rules Management System (BRMS) solution. It provides a core Business Rules Engine (BRE), a web authoring and rules management application (Drools Workbench), full runtime support for Decision Model and Notation (DMN) models at Conformance level 3 and an Eclipse IDE plugin for core development.

4035 questions
13
votes
1 answer

what is the difference between no-loop and lock-on-active in drools

Here is an example of a rule that uses "no-loop": rule "Even Number Rule" dialect "java" no-loop when n : Number( number !=0 && (number%2)==0 , value : number) then modify(n){setNumber(8)}; end
Anil Kumar
  • 1,431
  • 3
  • 13
  • 14
12
votes
1 answer

Google collect import in Drools

When I try to import MultiMap in Drools rule it caused an error below [11,25]: [ERR 102] Line 11:25 mismatched input 'COLLECT' expecting 'identifier' in import Does anyone know how can I import any com.google.common.collect in Drools rule? P.S.…
Alexander Zhugastrov
  • 12,678
  • 2
  • 20
  • 22
12
votes
5 answers

Drools testing with junit

What is the best practice to test drools rules with junit? Until now we used junit with dbunit to test rules. We had sample data that was put to hsqldb. We had couple of rule packages and by the end of the project it is very hard to make a good test…
Hubidubi
  • 850
  • 4
  • 18
  • 34
11
votes
1 answer

Check for specific element in a list in Drools

I just have started using Drools (version 5.1.0) so please bear with me in case this question was already answered. I have a java.util.List object which contains objects of complex type A, with A as: class A { String name; String Value;} The…
serena
  • 115
  • 1
  • 1
  • 6
11
votes
3 answers

Dynamically Update Rules at Runtime. Drools + Spring-Boot

So currently I'm practicing on using Drools (7.13.0.Final) with Spring-boot(1.5.12.RELEASE). I have made a sample application in Spring-boot with the following classes Model: TaxiFare.java @Data public class TaxiFare { private double surge; …
ReiSchneider
  • 185
  • 1
  • 12
11
votes
6 answers

Is there any API in drools to create the drl files dynamically by just passing values?

I know how to create DRL files inside KIE workbench by using all the methods. But what my problem is without using the KIE workbench, can we create the .drl file by using our required values.If any possibility is there please suggest me. Same way…
bhadram
  • 714
  • 2
  • 8
  • 22
11
votes
1 answer

What is Drools Kie?

I need help in KIE API. Need to know that what it is and is there any tutorial available to use Drools KIE. Is kie part of drools-6.x ? And if it is part of drools-6.x then what will be the effect on applications using Drool-5.5 running JBPM5.4, and…
learner
  • 906
  • 2
  • 10
  • 39
10
votes
3 answers

Decision trees and rule engines (Drools)

In the application that I'm working on right now, I need to periodically check eligibility of tens of thousands of objects for some kind of a service. The decision diagram itself is in the following form, just way larger: In each of the end nodes…
John Manak
  • 13,328
  • 29
  • 78
  • 119
10
votes
3 answers

What are the myths about rules engine?

I'm writing a presentation about rule engine technology, specifically JBoss Drools. What are some of the 'myths' about rule engines. One I can think of is that it allows business users to control the rule engine, I believe it is possible, but it…
Steven Herod
  • 764
  • 8
  • 20
10
votes
1 answer

Compile drools guided decision table into rules

I am wondering how I could use a guided decision table from the Drools Workbench inside a Java application using the drools runtime. The idea is that a user would work defining rules, processes and some decision tables in the workbench, which will…
Kevin Chabot
  • 471
  • 5
  • 11
10
votes
4 answers

Is Drools the most efficient way to map business rules / logic?

In our project we have to implement business logic regarding mapping of certain objects to some actions. We will have a series of conditions for specific types of objects to be verified before a certain action finally gets resolved. In other words…
Marcin Grzejszczak
  • 10,624
  • 1
  • 16
  • 32
10
votes
3 answers

Is drools the same as jrules?

Is there a difference between Drools and Jrules? Is Jboss rules the same thing as Jrules? What type of environments typically use Drools?
Dustin
  • 101
  • 1
  • 1
  • 3
10
votes
1 answer

Drools - rule hierarchy and conditional execution

I was wondering if there is a way to define hierarchy (not just order of execution) between rules and control the rule execution - i.e. if the parent rule fired then the ones below should not be evaluated etc... Information in this thread is an…
shikarishambu
  • 2,219
  • 6
  • 35
  • 57
9
votes
1 answer

How do I add facts to working memory at runtime in the Drools DRL and retrieve them in the execution results of a stateless session?

Background: I'm working on an application that transforms an input object into one of two output objects based upon a set of drools rules. The output object is not known until runtime and it is created in the first rule to execute. Here is the rule…
gregwhitaker
  • 13,124
  • 7
  • 69
  • 78
9
votes
3 answers

Cannot find KieModule: org.default:artifact:1.0.0-SNAPSHOT

I'm using the following drools configuration file in a Spring Boot application to load/execute rules from a DataBase which runs fine locally but when I try deploying the application to a Server i got an error saying no KieModule Bean found. I added…
Orby
  • 428
  • 1
  • 9
  • 24