drools

Using drools expert with dynamic decision tables

Here's what I had like to do. I had like to put "rules" in a database table. This is sort of like the drools xls decision table format except that all the rules will be rows in a table. This way I can modify the rules easily . I need to put this in a table and not an xls because my rules could be frequently changing. Is this possible w...

Problem with DSL and Business Rules creation in Drools

Hi, I am using Eclipse with the Drools plugin to create rules. I want to create business rules and main aim is to try and provide the user a set of options which he can use to create rules. For eg:If an Apple can have only 3 colors: I want to provide an option like a drop down so that the user can know before hand which are the options h...

Error with Drools .brl to .drl rule conversion - Adding dynamic rules

Hi, I want to add rules dynamically in drools. What is the main plus point of using KNowledge builder?? Or is it better to just list the Files in the rules directory and add it to my program?? But in this case when I convert from a .brl to .drl file at runtime - my new created .drl is not detected. How can I update the new rule and add ...

Loading .brl rules into rulebase

Hi, I am using a dsl to create business rules (.brl rules). How can I load the .brl rules into my knowledge base? How can I convert from a .brl file to a .dslr file??? I am unable to find any help on this. Or is there a different way to load brl files?? Please help. Thank you FMa ...

How to manage roles and generate web-forms using Drools Flow?

Hi all I am creating a workflow(integrated into a Java web application) for a leave application approval. The workflow is as follows: Leave request is raised for an employee. Case 1: If employee's role is not team lead. The request is sent to employee's team lead. If team lead rejects, workflow ends. If team lead approves, request is ...

How to build Drools rules in Java dynamically?

How to build Drools rules in Java dynamically instead of providing static drl file? I have a set of matching rules defined in xml that I need to parse and be able to reload it in runtime. Is there any way to build Drools rules dynamically? Couldn't find it in the docs. ...

Drools for Complex Display Value Lookup

The purpose of this quetion is to evaluate the reasonability of using Drools for complex display value lookup processing within a web application. I have been tasked to retrieve coverage information (from an insurance policy) stored in a vendor database and display the information within a custom web app. There are 100s of coverages an...

JAAS / JAAC, DROOLS, or custom

I have been using my own internal custom authorization model which evaluates whether a user has permission to view, edit, delete, or create an item. For instance, one place I use this is to determine if a user has permission to view a resource. I have some restrictions such as whether the item is published, whether the user belongs to ...

Dynamic Loading of Rules from BRMS

hi guys, I am trying to upload my rules from jboss-brms to my eclipse in order to run it against the working memory. The following is my code and change-set.xml file and I am getting the following error stack. I have started the jboss-server and it is connected correctly. But I am not able to figure out the error I am getting and is my ...

Problems using Drools and Tomcat

When i modified a rule in .drl, modified don't take effect. Is it possible to modified (i.e. hot deploy) a rule (.drl) in drools without restarting the server (tomcat)? How can i resolve this? ...

Drools retraction is causing rule not to fire

Hi, I'm coming across some weird behavior in Drools 4.0.7, but maybe it's just cause I don't understand I how Drools works. Assume, there's a class "A" that has a property called "property". As facts, I have the following list of A's: A1, property = 123 A2, property = 345 A3, property = 123 I have two rules as follows: rule "Rule 1 ...

Exception when undeploying JBoss Drools app

Hi, I am writing a JEE app with Java 6 and Glassfish. I use Drools rules engine in it and it works fine until I undeploy the application. When I do that I get this Exception over and over again. Restarting the app server is the only way to stop it. Of course that is unacceptable in productive environment... Any Ideas? Is the META-INF/se...

How can I continue a Drools Flow process when I receive a JMS Message?

I have a very simple flow, a JMS Message starts a process which receives a List of objects. A foreach iterates through this list and sends a JMS Message to component to process the object in the list. This component needs to send a completion notification back to the flow process so it can carry on. Does anyone have any idea of how this ...

Problem with Drools Eclipse Workbench

Hi, When I attempt to go through the "New Drools Project" wizard in Eclipse (for Drools 5.0, Eclipse Helios), I reach a point where I receive the message, " No Drools Runtimes have been defined, configure workspace settings first" I have the Drools binaries, but the problem I am having is that I do not know how to configure the workspa...

Problem building a Java Rules app in Eclipse

I'm trying to build a simple Drools project in Eclipse, but when I try to test it, a runtime exception is thrown with the message, "The Eclipse JDT Core jar is not in the classpath." Any ideas where I might find this jar? Thanks! ...

Unable to run "Hello World" Drools example in Eclipse

I just installed the Drools plug-in in Eclipse (version 3.5.2), and I am trying to run the "Hello World" example that comes with the plug-in. When I run the code, I generate a runtime error with the following stack trace: org.drools.RuntimeDroolsException: Unable to load dialect 'org.drools.rule.builder.dialect.java.JavaDialectConfigu...

Need drools workflow examples and tutorial material

Hi, In my current project, i need to use drools so, any one can help about some sample workflows with examples and the tutorials also. Thanks in advance! Regards' Hari ...

How to stop threads when undeploying a JEE application?

I undeploy my JEE app that uses an asynchronous logger that logs in its own thread from the Drools rules engine. I use it to log decisions the rules engine makes but I cannot let it have impact on the throughput, therefore it must run in its own thread. I get pages of Exceptions when I undeploy it indicating that it was not closed prope...

Learning JBoss drools: what should be my model.

Hi all, I'm learning JBoss Drools and I'm playing with the genetics data from the hapmap project: ( http://hapmap.ncbi.nlm.nih.gov/genotypes/latest/forward/non-redundant/ ) . Each file in this directory is a table with the individuals at the top, the positions on the genome on the left , and the observed mutations for each individual/po...

I just upgraded to drools 5 and the xml rules will not load.

When upgrading to drools 5, valid drools 4 xml rules do not work. Drools just throws an unhelpful null pointer exception. What can the problem be? ...