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
1
vote
2 answers

Optaplanner :Error when displaying constraints scores

I use OtpaPlanner to optimize a vehicles routing extension. I have got hard and soft scores but when i try to display constraints Match details i got this message: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at…
Latifa
  • 11
  • 1
1
vote
1 answer

java.lang.ClassNotFoundException: org.eclipse.aether.resolution.ArtifactResolutionException

I am trying to execute kie-workbench rules from java application,succeeded with drools-6.1.0.Final version,when i upgraded to drools-6.2.0 i getting the following exception:(Maven version-3.2.3) Exception in thread "main"…
siddu
  • 11
  • 1
  • 4
1
vote
1 answer

Updating the global integer variable

I am modifying the global integer variable with some value in the Rule 1. I need to get this modified value in some other rule say Rule 2. global Integer deviceCapacity; rule "Rule 1" dialect "java" no-loop true when $snrData :…
abhijeet mane
  • 121
  • 1
  • 7
1
vote
1 answer

Include new .drl file from a DRL rule

I want to load a new drl file based on the "when then " condition of some rule. In the following example i want to include a new "checkMasterData.drl" file when getFilteredMasterData().size()>3 from the another drl file rule "Check for mouse…
abhijeet mane
  • 121
  • 1
  • 7
1
vote
1 answer

Strange error during Unit Test

I have this strange error when I am unit testing my classes. Whenever a method calls KnowledgeBuilderFactory.newKnowledgeBuilder(null, kbuilderConf);, an InvocationTargetException is launched. Below is the StackTrace of the error :…
realUser404
  • 2,111
  • 3
  • 20
  • 38
1
vote
1 answer

Comparing Timestamp in Drools

I have a class as below: import java.sql.Timestamp; class Order{ private Timestamp orderDate; private boolean valid = true; // Getter and Setter methods } I'm passing this object to Drools from another class: class Caller{ Order order =…
drunkenfist
  • 2,958
  • 12
  • 39
  • 73
1
vote
2 answers

Jbpm6 . Asynchronous workitem and retry

Let me come directly to use case. I am having a number of work-items in my process say A,B,C. It starts in A--->B--->C order. In my case, B is a call to a 3rd party web service. C should process only if B is success. if the call to the web-service…
Dinoop paloli
  • 633
  • 2
  • 8
  • 25
1
vote
1 answer

Drools 6.1.0 - Using KIE Workbench How to create and deploy rules, decision tables, and workflows with human interaction?

I have got KIE workbench up and running using this blog and at this point I am trying to find information as in the last line of this blog How to create and deploy rules, decision tables, and workflows with human interaction?
Javaboy
  • 2,044
  • 2
  • 20
  • 24
1
vote
1 answer

Drools Fusion sliding time window for following condition

With Drools fusion, I want to do some alarm for the cpu_idle of a computer. the condition is: I would receive a record from the machine I monitored per 10s; if the cpu_idle<10 , drools should open a time window maybe 10mim, and begin to count of…
mrcui
  • 11
  • 1
1
vote
1 answer

Using DSL and DSLR in OptaPlanner

I am newbie working on the NQueens example in OptaPlanner. In the nQueensSolverConfig.xml file there is a scoreDrl tag where I can put my DRL file. Now I am interested in using DSL and DSLR files instead of the DRL file so the rules will look more…
Nuri
  • 67
  • 1
  • 5
1
vote
1 answer

Spring Integration (not Basic Spring) support for Drools

Do we have examples or out of box support to use Spring Integration(not Basic Spring) as opposed to Camel with Drools like in link here? What I would looking for is a way to build/set-up Decision Tables and be able to use Spring Integration…
Javaboy
  • 2,044
  • 2
  • 20
  • 24
1
vote
2 answers

Unable to instantiate service for Class 'org.drools.builder.KnowledgeBuilderFactoryService'

I updated from Drools 5.5.0 to Drools 6.1.0. And when I execute my code, I have this problem. java.lang.IllegalArgumentException: Unable to instantiate service for Class 'org.drools.builder.KnowledgeBuilderFactoryService' at…
jjmartinez
  • 779
  • 5
  • 20
  • 37
1
vote
1 answer

Drools - check if exists/contains string in a List

I need to create a rule to check if a part of string exists inside a List[String]. Is there a way that i could do it? I'm trying using contains but it's not working. rule "New Assistance" when $room:Room($tags : tags) …
user866364
1
vote
1 answer

Creating new Scala object in Drools right hand side

Since I'm working with Scala immutable objects within Drools, in order to update a fact I would need to create a new object to replace it. I've written a Scala method for the rule to call which returns just such an object. My query is, what's the…
GroomedGorilla
  • 920
  • 2
  • 10
  • 30
1
vote
1 answer

Drools/Scala - Create var/val inside DRL

I'm trying to use Drools with Scala and i would like to know if it is possible to call a chain of events and create var/val when the function has a return. Here is what i'm trying but i'm stuck: import com.models.* import com.service.* rule "First…
user866364