drools

Problems building Drools 4 project in Eclipse

I'm having trouble compiling a drools 4 project. I'm getting errors in the rules file saying Only a type can be imported. <<MyClassName>> resolves to a package The incremental compiler isn't working because of this. How do I fix the errors or get eclipse to ignore them? ...

Drools JEE Application

Anyone build a JEE application using Drools?. I'm not found any example of application tha use drools, EJB, Jboss and JTA. I'm try to use drools-flow on my JEE project, and its break my project. His libraries (drools-process-task) has persitence.xml thats conflict with my persistence.xml. Help me please ...

Drools SubProcess out mapping failed - what am I doing wrong?

I created two "Hello World" processes to give the subProcess nodes a whirl. I'm having trouble getting output from the subProcess back to the main process. I'm hoping someone can enlighten me on what I'm doing wrong as I can't find any documentation or examples that shed light on why mine doesn't work. In my main process, I have the fol...

Is Drools SubFlow/SubProcess used much at all? Drools documentation lacking...

I'm trying to prototype a workflow using a rule flow and rules. I started testing subProcess because it's obviously useful to be able to call or reuse a subroutine. After much fiddling, I can't get out-mapping to work as expected (as well as I can manage from the lack of detailed documentations). So I started searching for more examples...

Drools Debug listeners pointless as events don't have toString()?

I'm new to Drools and they have these very nice debug listeners, DebugAgendaEventListener and DebugWorkingMEmoryEventListener, that spit events out to System.err. That's all well and good, but the underlying events don't implement toString() so you end up with a debug line that looks like: org.drools.event.rule.impl.ActivationCreatedEve...

Drools with Netbeans 6.1

I've downloaded and started to use Drools on a pilot project via it's "default" platform Eclipse. However, I would like to use it in Netbeans just the way plug-in works in Eclipse. Any ideas/shot-cuts to do that? ...

In Drools Rules, how to use two different ArrayList objects,obj1 is used in rule 1 and obj2 used in rule2?

I am doing ksession.insert(list) and after that I have to fire rule 1 in the drl file, then ksession.insert(list) and fire rule 2 in the drl. Could someone tell me how to achieve this. I read about agenda filters and facthandles but do not really know how to get this to work Below is some code: ArrayList list = new ArrayList(); list....

What is the this[''] accessor that shows up in Drools

Just looking for a way to pass parameters into a getter in Drools... I have noticed in Eclipse Ganymede that intellisense is helpful in determining the getters that can be used to select an entity in a Drools WHERE clause. Just type a letter and hit ctrl+Space to see the list. I have another project in Drools.NET that relies on C# Pro...

Setting globals in Drools

How do I set a global in Drools 4 from within a rule? I want to set a boolean if a rule fires so that it can read it from another rule with a lower salience. ...

how to enable security for drools guvnor in websphere 6 ?

I had deployed guvnor in websphere 6 and every thing woks except that I don't know how to enable the security for guvnor. ...

Drools 5.0, How can i get the my application objects in the drl file

Hi, I am new to Drools 5.0 , now i am struck in one issue actually in my project all Domain objects in different project, My rule project does not has any Java Classes. So i make project reference to that my domain Object Project. But still i am not able to access the objects in drl If any one know from where i need to change the object ...

Spring-Drools integration?

There used to be spring-modules project that provides this integration; however, that project is deprecated now. Does anyone now if there is any continued support for this integration? Thanks. ...

Using Maven to download drools sources

I'm new to maven and drools, so this could be obvious... I'm trying to work off of the drools snapshot repository using maven/eclipse. I'd like to be able to link the sources/javadoc when updating using maven but I keep getting messages similar to: Can't download java-source for artifact org.drools:drools-process-task:5.1.0.20091223.19...

drools persistence with mysql, can't get process instance.

I'm stumped. I'm trying to implement persistence with Drools-flow, and I'd like to grab the value of a property on a workitem / processinstance, but everytime I try to get the workitem or process instance I end up with the stack trace below. I'm walking through the source and from what I can tell, this happens anytime I try and grab a ...

Drools, spring and mule

Has anyone combined these technologies? Could you share lessons learnt? ...

Pros and cons of Java rules engines

What are the pros and cons to adopting the Java rules engines JESS and Drools? Are there any other players? I understand that Drools is Open Source and JESS is not, but how do they compare in other areas like ease of use, performance, level of integration with your code? ...

Download Drools RuleFlow files from Guvnor

Hello all, I can upload RuleFlow (.rf) files to Guvnor (both 5.1 M1 and 5.0) and execute them with rules on the server. If I want to use Guvnor as a repository, is there any way I can download the RuleFlow files into my project on the fly? On the package level, Guvnor provides some "Information and Important URLs" which only talk about...

Should I use Drools in this situation?

I'll use a university's library system to explain my use case. Students register in the library system and provide their profile: gender, age, department, previously completed courses, currently registered courses, books already borrowed, etc. Each book in the library system will define some borrowing rules based on students' profile, fo...

Using JBoss DROOLS XMLDumper with .dslr file

I have a .dslr file consiting of a rule(dslr) and a dsl file. I need to get the XML output of the DRL from this dslr. I've tried different ways with the XMLDumper but cannot get it to work. Any ideas? ...

How to retrieve fact objects from decision tables in Drools 4.x

Hello, Our team is using Drools ruleflows for evaluations. Now we are planning to migrate to decision tables instead. In the Drools ruleflow version, we used to have DRL files that have query component to extract objects created within the context of DRL files from working memory. I'm stuck on doing the same in Decision Table? We are...