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

Adding rules dynamically into drools engine

I have a standalone java application which will interact with my web application running on node. I am trying to add new rules dynamically through web UI. So far I am unable to figure it out, how to create and add rules. Any suggestions for the…
user2981996
  • 41
  • 2
  • 5
1
vote
1 answer

Drools return list of rules

I'm new to drools and I succeded in creating a working application that uses the created rules. I have a simple class Message with two variables type and language. public class Message { private String type; private String language; public…
user2893821
  • 73
  • 1
  • 8
1
vote
1 answer

drools 5.0.1 vs 6.0.1 API changes?

We are upgrading our application from drools 5.0.1 to drools 6.0.1 Final. I noticed there are some API changes. Many classes that used to be in org.drools appear to be now in org.drools.core. Also, the class DebugRuleFlowEventListener appears to no…
Ya.
  • 1,671
  • 4
  • 27
  • 53
1
vote
1 answer

drools - get index of item in collection

I have a restaurant app and have a rule where a 20% discount needs to be offered for every 2nd ice-cream. So, If bill has 2 icecreams, 20% discount on the 2nd icecream If bill has 3 icecreams, still 20% discount on the 2nd icecream If bill has 4…
arahant
  • 2,203
  • 7
  • 38
  • 62
1
vote
0 answers

Multiple kmodule.xml files in Drools Maven project

I have a dummy drools project I have been trying to get off the ground to use as the basis for any drools project we have. This project has two kmodule.xml files (one under src/main/resource/META-INF and the other under src/test/resources/META-INF).…
1
vote
1 answer

How to retrieve documents from S-RAMP?

can someone help me with S-RAMP? How can I retrieve a .drl document from there with a java application ? Is there some API ? I did search for it but with no success by now. Hope someone here can help me. Thank you
1
vote
1 answer

Drools - Accumulate nested in other accumulate

I want to accumulate the results of a collection of accumulate results. The problem is as follows : I have a collection of objects (SwapAllocation) that can be classified in different groups (StockGroup). A group is considered "large" if the…
Bruno
  • 15
  • 4
1
vote
1 answer

disable strict mode in drools

I'm getting error like Error: unable to resolve method using strict-mode: ... I've added system property drools.dialect.mvel.strict=false I can see system property was applied to my app in jvisualvm But I'm getting the same error with 'using…
Mike
  • 20,010
  • 25
  • 97
  • 140
1
vote
2 answers

Execute bpmn file from Drools Rule

I would like to execute bpmn file which is in another project. Could anyone tell me how to do this? I have something like this in my rule, but it's doesn't work: function performScenario() { KieHelper kHelper = new KieHelper(); KieBase kBase…
1
vote
0 answers

Drools 6.0 configure default dialect

I want to configure default dialect in drools to mvel. I am currently using drools 6.0 .. I tried using KnowledgeBuilderConfiguration (now deprecated), but it gives null pointer exception on setting drools.dialect.default to MVEL.
shivMagus
  • 315
  • 4
  • 9
1
vote
2 answers

Conversion of bytes into a type without changing the application (ie storing the conversion method in DB) with Spring 3.0

Is there a way to store a conversion strategy (for converting some bytes) into a database and then execute it on the run time. If one were to store a complete java file, you would need to compile it, store the class and some how inject into the…
geoaxis
  • 1,480
  • 6
  • 25
  • 46
1
vote
0 answers

Can we get response in DRL file from a called method?

I have a scenario where I need to call a static method in DRL file. example : //2 rule "availableTentativeDateIfUsersAvailableGT1" salience 2 when event : Event(eventName == "Event1") then …
Harish Garg
  • 139
  • 8
1
vote
0 answers

StatelessKnowledgeSession Focus Agenda

I have a problem with a rules execution in drools, when I execute the rules with a StatefulKnowledgeSession there aren't problems: final KnowledgeBase kbase = knowledgeAgent.getKnowledgeBase(); final StatefulKnowledgeSession session =…
Ganchix
  • 315
  • 4
  • 13
1
vote
1 answer

Service task node vs Domain Specific task node

What is the difference between a service task node and a domain specific node (custom work item) in jBPM?
user3586442
  • 85
  • 1
  • 6
1
vote
1 answer

How similar are jBPM 5 and 6?

I'm starting some jBPM development over the summer, but apparently the version 6 book isn't out yet. Is the version 5 book close enough to get me started? I haven't found the online tutorials to be all that informative.
rsegal
  • 401
  • 3
  • 11
1 2 3
99
100