drools

JBOSS DROOLS using XmlDumper with .dslr

I am able to parse a .DRL file into the XmlDumper and get the correct output. How I can I pass a .DSLR file through the XmlDumper to achieve the same results? The .DSLR file contains the language file(.DSL) ...

How to use "from" conditonal element in decision table spreadsheet for drools5

We have an inserted fact in the working memory containing a list of objects that we need to apply the rules on in the condition column. I am not able to find the correct syntax for expressing this requirement in the spreadsheet using the "from" conditonal element. As an example, Person p in inserted in the working memory and p.getAddres...

Extract DRL from DSLR

How can I access the DRL generated within a DSLR file in Drools? ...

How do I load an Excel-based Decision Table with Drools using JSR94?

There's a bunch of examples on the web of how to load a Drools DRL rule set. However, I can't seem to find any instructions or examples of how to load a Decision Table in Excel format using the JSR94 API. Does anyone know how to do this? If so, could you provide a simple code example? Here's a sample piece of code I'm working with belo...

Rules engine for spatial and temporal reasoning?

I have an application that receives a number of datums that characterize 3 dimensional spatial and temporal processes. It then filters these datums and creates actions which are then sent to processes that perform the actions. Rinse and repeat. At present, I have a collection of custom filters that perform a lot of complicated spatial...

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 already running system. I am not sure how this would be possible. But using some kind of dyn...

Drools Rules: How can I use a method on "when" section?

Hi, I need to execute a method on "when" section of a DSLR file and I´m not sure if it´s possible. Example: rule "WNPRules_10" when $reminder:Reminder(source == "HMI") $user:User(isInAgeRange("30-100")==true) Reminder(clickPercentual >= 10) User(haveAtLeastOptIns("1,2,3,4") == true) then $reminder.setPriority(1);...

General Drools Question

For the last few months my company has been using a product from a company called Informatica (previously AgentLogic) called RulePoint. This product has proven itself very easy to use with a well-developed and easy-to-use SDK for customization. The way we use the product for CEP is fairly trivial, we have 2 sources which we monitor for o...

how to learn Drools or another rule engine fast

Hi All, We're embarking on a module which will generate some recommendations based on some criteria. The criteria will be in the form of set of Business Rules and hence I was considering using a Business Rule Engine like Drools(open source and java :-) ) we need to learn Drools fast (2-3 weeks) and be able to implement rules using JBos...

Integrating Drools with JBossESB

In recent weeks I've been researching Drools amongst other CEP/Rule Engines and I believe I would like to use Drools. I also have an JBossESB which is responsible for routing of messages between different services. Unless I am totally missing the boat, I can't for the life of me see how I would get data into Drools via JBossESB. Insid...

Very basic running of drools 5, basic setup and quickstart

Is there a more comprehensive quick start for drools 5. I was attempting to run the simple Hello World .drl rule but I wanted to do it through an ant script, possibly with just javac/java: I get the following error: Note: I don't am running completely without Eclipse or any other IDE: Is there a more comprehensive quick start for d...

Drools 5.0 - Locally... Global

Hello, I'd like to declare a global variable that is scoped to only my rules file. For example: variable $reUseMe is only declared once. rule 1 $reUseMe : POJO(val = 1) //other conditions rule 2 $reUseMe > val ...

Reloading Drools authorization rules in Seam

I'd like to be able to dynamically change my Drools authorization rules in Seam at runtime without having to redeploy my application. I've tried the method documented here: http://www.seamframework.org/Community/IsPossobleToModifyJBossRuleSecuritydrlFileWithoutFullRedeploy, which recommends using a rules agent to manage the rules file....

I'm having a problem redeploying an applications using Drools and Tomcat 6

I have a spring application that uses JBoss Drools 5. It works fine except for when I attempt to redeploy (i.e. hot deploy) the application after I make a change during development. It appears that tomcat keeps a lock on 2 drools jar files, drools-compiler-5.0.1.jar and drools-core-5.0.1.jar. Since they can't be deleted the new war file ...

Using Drools to provide error processing and consequence management

Hi, I am working on a module whose purpose is to process Java exceptions and decide upon a strategy for dealing with them. The exceptions could be things I know about (explicit business exceptions eg TransformationException) or more general environmental stuff (JMS errors, IO errors etc) The facts inserted into the knowledge base are al...

Drools rules import with wildcard

Hello everyone, I am working with Drools rules. Some developers have created rules which I have to put on Guvnor (rules repository) and build packages. In these rules they have import statements with wildcards, for example: import org.drools.runtime.rule.*; When I upload this on Guvnor and try to build, it tells me: Unable to introspe...

ETL , Esper or Drools?

Hello, The question environment relates to JavaEE, Spring I am developing a system which can start and stop arbitrary TCP (or other) listeners for incoming messages. There could be a need to authenticate these messages. These messages need to be parsed and stored in some other entities. These entities model which fields they store. ...

Calling another Seam permission resolver from Drools

I'm just discovering Drools with Seam, and I would like to call my PersistentPermissionResolver directly from the Drools code. Do you know if there is a way to achieve that and is that a good idea? I would also like to call the hasPermission method from my xxx.page.xml as follows: <restrict>#{s:hasPermission('menu_32', 'view')}</restri...

Drools 5 exposing it to web application and webservices(SOAP) using jaxb

We have reqmt. where we need to expose drools 5 with ESB and similteniously with the web application.Although i have figured out ways to run drools with eclipse,however finding it difficult to configure Drools 5 with same web-app at the moment and shift it esb in future. Guvnor and Drool-Server are not just sufficient to help me out neit...

Drools flow architecture, Drools flow events with AND join nodes

I have been evaluating a number of frameworks including jBPM and Drools flow for my application requirements. Lots of the opinions seem to be inclined towards Drools flow as its more flexible, knowledge oriented, easier to integrate with business rules, etc.. The application is some sort of an Email Campaign manager , where different cu...