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.

www.jboss.org/drools

The Business Logic integration Platform provides a unified and integrated platform for Rules, Workflow and Event Processing. It's been designed from the ground up so that each aspect is a first-class citizen, with no compromises.

3669 questions
1
vote
2 answers

Drools Guvnor data enumeration API

In Guvnor documentation, I know how to define data enumeration and use it in Guvnor. Is it possible to fetch data enumeration from my own Java code?
1
vote
1 answer

How to create a score from several drools decision tables?

I'm new to drools and trying to use guvnor to build a simple Framingham score calculator. An example is: lets say you are a 30yo male, you start with -9 points. If your total cholesterol is 180, add 4 points, if your a smoker add 8 points, if your…
Brian
  • 476
  • 1
  • 5
  • 14
1
vote
2 answers

Drools checking for duplicate fields in a list

I have an object A that contains a list of objects B that have various fields including a date field. I need to write a rule that checks that dates are unique across the List but I'm a bit stuck in how to do this...I have something like: rule…
William Myers
  • 41
  • 1
  • 6
1
vote
1 answer

Check syntax errors in rule file of Drools

I am new to Drools Guvnor and have set up a basic rool framework using the same. I just want to know if current Drool file is correct or not. As of now, I have no way except running it end to end. Is there any to check compilation issues…
instanceOfObject
  • 2,826
  • 2
  • 44
  • 83
1
vote
1 answer

Drools not working as advertised in expert documentation

I have two very simple rules rule "Volume Validation" salience 10 when avs : AvailabilityStatusAndDiscountDisplay( quantity > 1000 || quantity < 0) then avs.setAvailable(false); …
alex sundukovskiy
  • 343
  • 1
  • 6
  • 17
1
vote
3 answers

Is it expensive to create a new Drools KnowledgeBase every time a rule needs to be evaluated?

I have a situation where for each product I have a different rule. Thus, I will have 1 drl per each product. Consequently, as far I understand I have a choice: add all those knowledge packages into a single KnowledgeBase. and then let Drools…
alex sundukovskiy
  • 343
  • 1
  • 6
  • 17
1
vote
2 answers

Drools Fusion time based sliding window AND attribute filtre

I try to use a sliding time window in Drools 5.4.0.Final and given the following official documentation snippets: StockTick() over window:time( 2m ) and StockTick( company == "RHT" ) over window:length( 10 ) I was thinking that the mixed form was…
jineff
  • 442
  • 4
  • 14
1
vote
0 answers

Detecting different types of Events using Drools Fusion?

I’m a bit new to Drools; Although, I have been reading the docs on Drools Fusion (Complex Event Processing), which states in Section 2.3: "The streams can be provided to the application in various forms, from JMS queues to flat text files, from…
Larry
  • 9,699
  • 12
  • 55
  • 81
1
vote
1 answer

Is there any Drools plugin for Eclipse?

Have JBoss (or any other Entity) released a Drools plugin for Eclipse ?
Bax
  • 3,876
  • 3
  • 35
  • 59
1
vote
1 answer

Drools Guvnor and Oracle integration

I would like to configure Oracle db to Drools Guvnor. Please let me know how to do this. Any links also will be helpful. Thanks in anticipation Bala Krishna.N
1
vote
1 answer

Drools Fusion sliding window sample not working

Am a newbie to Drools and trying out the sliding window concept. My problem is to detect if atleast a sucessful transaction occured in 2 sales events. I am always getting the output as "A sale has happened over 2 events" even if such an event…
sreejith
  • 31
  • 6
1
vote
1 answer

drools expert / solver - 5.0.1 matches

I am fairly new to drools and I'm running into some issues I can't really understand. I'm trying to solve an allocation problem and one of my LHS goes like this $leftAlloc: SlotAllocation($leftRes: resource ) $rightAlloc: SlotAllocation(this !=…
mericano1
  • 2,844
  • 1
  • 15
  • 24
1
vote
1 answer

Issue with Drools Pipeline

I have a queue on tibco.I am trying receive objects from the queue using drools pipeline as below. KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); String jmsRules…
user1668653
  • 199
  • 2
  • 2
  • 9
1
vote
1 answer

Drools - Changing the Java compiler level

I want to change the java compiler level to 1.6 but it doesn't seem to work for me. I am trying to use generics in the consequence part. Following is my code that I used to change the compiler level. Drools Version: 5.2.1 GA *JDK Version :…
Balaji
  • 949
  • 4
  • 20
1
vote
1 answer

Drools planner: changing SimpleScore to HardAndSoftScore

I am toying with drools planner as eventually I need to shape a rostering solution. I started from Drools Planner user guide, I succeeded in running the examples in Eclipse. Trying to understand the differences between the simple and the HardAndSoft…
Alberto De Caro
  • 4,849
  • 9
  • 42
  • 72
1 2 3
99
100