Re: [rules-users] queries in Drools 5.0

2009-05-02 Thread Mark Proctor
Quinn, Dan wrote: We are writing an app which has a large number of facts. This app also needs to make lots of queries against working memory. Our memory footprint seems to be expanding at an undesirable rate due to the number of queries made against working memory. It is increasing at a rate

Re: [rules-users] Stateless session and rule flows

2009-05-02 Thread Mark Proctor
Drools 5.0 solves this much more elegantly, via the CommandExecutor, which even has built in xml marshalling for remote services. You can see all the command we impl in the unit test here: http://fisheye.jboss.org/browse/JBossRules/trunk/drools-pipeline/drools-transformer-xstream/src/test/java/

Re: [rules-users] Retraction of facts based on time - any ideas please?

2009-05-02 Thread Mauricio Salatino
what version of drools are you using? because in Drools 5.0 fusion is in charge of temporal evaluations. Greetings 2009/4/30 : > > I have a need to "expire" some facts based on time. In other words, if an > event occurs some time and if sufficient time has gone by, the fact should > become inonse

Re: [rules-users] Retraction of facts based on time - any ideas please?

2009-05-02 Thread Mark Proctor
rsund...@aretus.biz wrote: I have a need to "expire" some facts based on time. In other words, if an event occurs some time and if sufficient time has gone by, the fact should become inonsequential and be retracted. Here is my simple rule to do this: *rule*"Retract expired facts" *dialect*

Re: [rules-users] Retraction of facts based on time - any ideas please?

2009-05-02 Thread Greg Barton
If you can use Drools 5, then try out event expiration in stream mode using drools fusion: https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-fusion/html_single/index.html#d0e1086 If you can't do that, you'll need an extra control object that's inse

Re: [rules-users] Rules-users list delays/duplicates

2009-05-02 Thread Greg Barton
Yeah, I've gotten about 40 old messages today. Also I replied to a message today and haven't seen it sent back to me yet. Well, why am I even replying to this, then. :) If nobody sees this message until November, I hope you all went to ORF2009. :D --- On Fri, 5/1/09, Ingomar Otter wrote: >

Re: [rules-users] Rules question

2009-05-02 Thread Greg Barton
Running the latest 5.0.1 snapshot jars and it can handle enums fine. See attached code. It should print out the following output when run: Hello World Goodbye cruel world At some point I said GOODBYE OK_I_AM_SERIOUSLY_SAYING_GOODBYE_NOW is the current status AND at some point I said HELLO At s

[rules-users] RuleFlow and Internal Model

2009-05-02 Thread Bhamidi, Krishna
Hi, We are attempting to use a rule flow in Guvnor 5.0.0 CR1. When we use the internal data model, we get an error that essentially reads " java.lang.IllegalArgumentException: OR split could not find at least one valid outgoing connection for split" When we use an external data model (model in

[rules-users] drl to pkg

2009-05-02 Thread Perumaal Krishnaraj
Hello Everybody, I'm a newbie to Drools, so please excuse me, if question is very fundamental. I'm not using drools with eclipse or brms. I would like to convert the drl file which I had created using a text editor to the binary form ie. in pkg format (serialized), which can be used im my Java appl

Re: [rules-users] Stateless session and rule flows

2009-05-02 Thread Michal Bali
you can start a process from a rule consequence like this: drools.getKnowledgeRuntime().startProcess("com.sample.MyProcess"); https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-flow/html/ch03.html#d0e237 On Mon, Jun 16, 2008 at 1:50 PM, Yoni Mazar

Re: [rules-users] listbox in DSL

2009-05-02 Thread Earnest Dyke
Do you want to use Drools to determine which elements are added to the listbox? Earnie! From: sreenivas555 To: rules-users@lists.jboss.org Sent: Wednesday, April 22, 2009 8:58:09 AM Subject: [rules-users] listbox in DSL Hi All, I want to create a listbox (m

RE: [rules-users] Drools 4.0.7 - Rules not fired

2009-05-02 Thread Gras, Patrick
Hello, remove the final modifier for the getHomePage method, it's a problem related to shadowProxies, as they are CGLIB proxies they cannot proxy final methods... -Patrick -Message d'origine- De : rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org]de la p

Re: [rules-users] NullPointerException for Integer null

2009-05-02 Thread techy
You are right Edson. I also have another rule with less salience value that does < comparison. my attention was completely on first rule which does null check and thinking that was causing the issue :(. Good find and thanks again for the help. Edson Tirelli-3 wrote: > > Techy, > > I

[rules-users] What does the arrow ("->") mean in a rule file?

2009-05-02 Thread lightbulb432
What does the arrow ("->") mean in a rule file? I've searched on Google, looked through the Drools documentation, and haven't been able to find out what it does. It appears in the autocomplete of my IDE for Drools, and I've seen it in an example in the JBoss Seam documentation, but am unable to t

Re: [rules-users] Can Drools be Used for this application?

2009-05-02 Thread Nicolas Héron
Hello You can set any attribute as the time clock You have to add an annotation It is in the fusion doc Sorry for my late answer but I am on holidays :) Regards Nicolas 2009/4/27 cyphr > > Thanks Nicolas, > I looked into Drools-fusion over the weekend - interesting! > i noticed that the events a

[rules-users] test

2009-05-02 Thread Armaghan Mahmud
testing 12 ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Old messages

2009-05-02 Thread Earnest Dyke
Is anyone else receiving old list messages? I have received over 20 with some dated as far back as June 2008. Earnie!___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Rules question

2009-05-02 Thread Armaghan Mahmud
I'm new to the mailing list so I'll start off by saying hello to everyone. I've recently started using DROOLS and I seem to have hit a dead end. I'm trying to pass in an enum and a list into the working memory one at a time but I would like my rule to first see if it the enum matches a hard coded e

[rules-users] Rules-users list delays/duplicates

2009-05-02 Thread Ingomar Otter
It seems that the rules-users list is experiencing either massive delays or duplicate delivery. See message below which reached me today. Should you experience the same effect, I have indicated this to "rules-users-owner" so it is known Cheers, Ingomar Von: David Boaz Datum: 17. Augus

Re: [rules-users] problem escaping quote in eval

2009-05-02 Thread Edson Tirelli
try using double \ inside evals and consequences... not sure if it will work, but try it out... this should all be fixed in drools 5. 2008/8/27 samlotti > > Hello, > > I'm trying to construct a rule in drool V4 that contains and eval and a > literal string that may contain quotes. I've tried

Re: [rules-users] Drools 4.0.7 - Rules not fired

2009-05-02 Thread David Sinclair
Benoit, Could you try this with Drools 5 to see if you still have problems? I just tried with that and each rule fired as expected. 2008/8/20 Benoit VILLAUMIE > Hello, > > I am using Drools engine 4.0.7 and Eclipse 3.3 drools plugin. > > I have a very basic/dumb problem but I do not understand

Re: [rules-users] using matches in a collection

2009-05-02 Thread Edson Tirelli
rule "at least one element from the array starts with abc" when ABC( $array : array ) exists( String( this matches "abc.*" ) from $array ) then // do something end 2008/6/25 ygaurav > > Hi All > > i am new to drools and I am hoping that some body can help me out here. > > I data in

[rules-users] Using immutable Globals in the new Command API

2009-05-02 Thread Dan Seaver
In the M5 release, I could use a Boolean global as an Out type parameter and changes I made to the global would be maintained in the results. In CR1, I use the CommandFactory to add the global with out set to true, and I get back the initial value of the Boolean, not the updated value. Here's a

RE: [rules-users] Stateless session and rule flows

2009-05-02 Thread Seaver, Daniel (GE Healthcare)
Yoni, The way I do this is within the ruleset. I have an initialization rule that looks something like this: when then drools.getWorkingMemory().startProcess("ruleflow id"); end By not putting anything in the "when" clause, the rule gets activated and put on the agenda first. Dan =

[rules-users] KnowledgeBase threadsafe?

2009-05-02 Thread Dan Seaver
I'm using various KnowledgeBase objects in a J2EE environment, using JBoss 4.2 as the application server. Currently, I keep a list of KnowledgeBase objects in a stateless session bean. The thought being that to keep the application scalable, we don't want contention around rule sessions. However,

[rules-users] FW: RuleFlow and Internal Model

2009-05-02 Thread Bhamidi, Krishna
I was inserting the wrong object in to the session. From: Bhamidi, Krishna Sent: Thursday, April 30, 2009 3:21 PM To: 'Rules Users List' Subject: RuleFlow and Internal Model Hi, We are attempting to use a rule flow in Guvnor 5.0.0 CR1. When we use the internal d

Re: [rules-users] Drools-Fusion : Documentation or examples?

2009-05-02 Thread Edson Tirelli
The broker console example is work in progress in the sense that I intent to add more features to it along the way, but what is there now works and serves as an introduction. A whole lot of documentation was also added after CR. Check out trunk and build the docs and the example. It is a

[rules-users] refreshing rules in 4.0.7, Janino

2009-05-02 Thread Mike Merrill
Hi all, I'm seeing consistency issues when trying to refresh rules manually. I am seeing issues with sessions getting different results while I call this function in a loop. Is there a more proper way of migrating the sessions over to a rules base that has updated rules? /** * Funct

RE: [rules-users] Begginner question about rule language

2009-05-02 Thread Gras, Patrick
Hi, Yes it is optional, it's a convention... -Patrick -Message d'origine- De : rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org]de la part de Harsh Jetly Envoyé : mardi, 24. juin 2008 06:55 À : rules-users@lists.jboss.org Objet : Re: [rules-users] Begginne

[rules-users] Use of KnowledgeAgent in JEE Container

2009-05-02 Thread Dave Macpherson
I was wondering if it's safe to use the KnowledgeAgent inside of a JEE container. I'm assuming that the KnowledgeAgent implementation spawns a thread to poll for changed resources (to reinitialize a KnowledgeBase, for instance, when updated DRL files are detected). Normally, use of unmanaged thread

Re: [rules-users] Hibernate proxy objects equality tests failing in Drools 5

2009-05-02 Thread Guto
I was following that subject on markmail, and them I've enterred the user-group (so subject and body are coppied from them). I've got the exactly same problem. When I use the rules with objects the came from the database (thru JPA hibernate provider), thouse rules never match. When I do the same fr

[rules-users] Retraction of facts based on time - any ideas please?

2009-05-02 Thread rsundaar
  I have a need to "expire" some facts based on time. In other words, if an event occurs some time and if sufficient time has gone by, the fact should become inonsequential and be retracted. Here is my simple rule to do this:   rule"Retract expired facts" dialect"mvel" // salience -5 when e1 :

[rules-users] impossible to dispose tomcat devloader when i reload context (drools keep reference)...

2009-05-02 Thread Emmanuel GREFFET (France)
Hello I'm Emmanuel from France. (sorry for my English) We use drools 4.0.7 in a hospital application. We load drools and our programs (services) with tomcat Devloader (5.5.9) We use drools in statefullsession (retract and insert facts by rules in a ruleFlow). everything is perfect for us, except