drools

How to share individual rules between .drl files in JBoss Rules?

We are using JBoss Rules (a.k.a. Drools) and have several .drl files that each contain several rules. Is there a way to avoid duplication between files, so that we can define common rules that are available to more than one .drl file? Unfortunately, there does not seem to be any kind of include or module facility. ...

Using Drools in a heavy batch process

We used Drools as part of a solution to act as a sort of filter in a very intense processing application, maybe running up to 100 rules on 500,000 + working memory objects. turns out that it is extremely slow. anybody else have any experience using Drools in a batch type processing application? ...

Drools project idea needed

I was asked to make some drools traning for my teammates. Just to show them how it can be used and how usefull it may be. To do this training I first have to learn Drools, and I figured that the best way to learn it will be small project centered around drools. Any interesting ideas? My idea for this project was to do some webMethods...

Drools.NET vs Windows Workflow Foundation (WF)

I am currently in the process of searching for a rules engine that works in .NET. Our logic is pretty simple, +, -, *, /, and, or, basic order of operations stuff. However we are going to need to store this information in the database and then generate the rules file when a new version is pulled from the database. So the common UI edi...

Problem writing LHS of Drools / JBoss Rules where I'm matching one fact and then using that fact to determine whether another fact exists

I'm using Drools (for the first time) to express some rules and it has been working really well so far. However I've been given a new condition that I'm not able to express in the rules language very clearly. Essentially I need to perform an action on the players account if they have an outstanding balance on there account between a cer...

What is Drools architecture and step by step design process?

What is Drools Architecture and step by step to integrate with jBPM? ...

Drools collect pattern problem

I have a rule LHS like that when $location : Location() $cabinets : ArrayList() from collect ( Cabinet() from $location.elements() ) then an when I print the content of @cabinets in RHS I see that it contains all elements (also those that are not of class Cabinet ). I want to collect ontly cabinets from $location>elements()...

Efficient Drools evalution for element in array or collection

Using Drools 3.0.6 (old, I know), what is an efficient evaluation for finding a fact in a known, fixed and quite large array or collection (the inverse of contains, i.e. "is contained in"). Using an OR series of normal "equals" results in StackOverflowError as the array/collection can contain a few thousand entries, as the Drools binary ...

Drools related problem...

Hi I want to bring a little change in my site. So i have written a set of rules but I dont know how to fire them in the place that i want them to work i.e. the original code of my site.Can anyone plz help me on it? ...

Experience with Drools Flow and/or OSWorkflow?

I'm looking for a straightforward Java workflow engine that: can handle both automated and manual (GUI-based) steps within a workflow supports long-running, asynchronous tasks provides support for restarting workflows in the event of a server crash stores a full audit history of previously executed workflows provides easy access to thi...

Can Drools Flow scale to executing hundreds of thousands of process instances per day?

I'm currently evaluating Drools Flow as a workflow engine for executing up to hundreds of thousands of process instances per day. Has anyone published any scalability benchmarks for this technology? In the absence of published results does anyone have any relevant experience they can share? ...

what could modify the SerialVersionUID while serializing and storing in a Jarfile ?

Hello, I am facing some issues while serializing objects (I am using JBoss Drools, and want to store an ArrayList of KnowledgePackage). When I serialize the list, store the result in a file, and deserialize it, no problem occurs, so it works fine. But when I serialize the list, store the result in a byte stream, then save it in a JarF...

Drools Flow Persistence with MySQL (jpa, hibernate)

Needed steps for implementing Drools Flow Persistence with MySQL. I was following the Drools Flows Documentation on chapter 5.1.3.: Configuring Persistence.(https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-flow/html_single/index.html#d0e1157 ) Erroo-1: Caused by: bitronix.tm.utils.Propert...

Could the Drools update method potentially be causing my problems.

I am currently writing an application using Drools 5.0. This application seems to be running a little slow, but I have a theory why. This application receives many updates for facts already in stored in the knowledge session. The Drools update function under the hood really does a retraction then an insertion. This application has over 2...

eval() in LHS of Rules in Drools

My input is Position report of a vehicle: 0,0,107,32,0,0,0,10,53320,-1,-1,-1,-1,-1,-1 0,0,107,32,0,0,0,10,53320,-1,-1,-1,-1,-1,-1 0,0,107,32,0,0,0,10,53320,-1,-1,-1,-1,-1,-1 0,0,107,32,0,0,0,10,53320,-1,-1,-1,-1,-1,-1 0,0,109,20,0,0,0,19,53320,-1,-1,-1,-1,-1,-1 0,0,109,20,0,0,0,19,53320,-1,-1,-1,-1,-1,-1 0,0,106,28,0,0,0,26,137745,-1,-1...

How do you unit test Jboss Rules (Drools) rules?

I have written a few Drools rules for my Seam application and am wondering how I go about unit testing these. Does anybody have any sample code that can show me how to go about doing this? ...

Pattern processing large knowledge sets from database using Drools?

Let's say you have a million entities persisted into the database. You want to fire your Drools rules on each persisted entity in order to check on what to do next with them. What would be the preferable way to do that? Would you prefetch data according to the rules (which would mean that you tie your DAO to your rules), or would you ju...

Drools: How to insert a fact after checking if it is not already present in working memory

Hi All, I am using drools to validate an object. The object also has a getChildrenList() method which returns the child objects related to this object (master-detail relation). I do some validations on the object and then I want to validate the child objects as well, so I insert all of the child objects as well into the working memory...

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 != $leftAlloc, resource == $leftRes) for some reason the second statement does not match anyt...

Evaluation of Drools Flow with Drools Expert on a web based J2ee project

I am evaluating drools flow as wrokflow engine with drools expert rule. Key evaluation points: Generating Customize Rules and Workflow through own custom Web UI Admin user can see all of the items in workflow in UI (View job queue: current queue, executed jobs, exceptions) Rule Actions can be web services, Java classes or it can be ...