[rules-users] Running Drools 4 examples

2008-06-17 Thread Ron Kneusel
Greetings! I am attempting to run the HelloWorld example for Drools 4. I have Eclipse 3.3 setup on Windows with the Drools plugin. I have created a project with the Drools examples and added all the Drools .jar files to the project. Everything compiles. When I initially ran

[rules-users] Drools memory use issues

2008-06-24 Thread Ron Kneusel
Greetings! I'm using Drools 4 and have a simple test setup with 4 rules. If I run with a few facts (simple objects that hold a type and a floating point value only) everything works as advertised. If I bump the number of facts up to 100 it runs most of the time without changing the defaults

[rules-users] Advice sought on choosing Stateful or Stateless sessions

2008-06-24 Thread Ron Kneusel
Greetings! I read through the manual, but it is a little too terse regarding when one might choose Stateless versus Stateful sessions. My initial testing has been with Stateful sessions and these work nicely but memory use explodes as the number of facts added increases much beyond 100. So,

RE: [rules-users] Advice sought on choosing Stateful or Stateless sessions

2008-06-25 Thread Ron Kneusel
Mark Proctor wrote: 1. Do stateless sessions execute faster than stateful? I'm assuming that even if they don't, they use memory more efficiently? no. not unless you set sequential mode, but even then it's only faster if you have a very large number of facts.Mark, thanks for the reply.

[rules-users] Drools 4 poor performance scaling?

2008-06-26 Thread Ron Kneusel
I am testing Drools 4 for our application and while sequential mode is very fast I get very poor scaling when I increase the number of facts for stateful or stateless sessions. I want to make sure I'm not doing something foolish before deciding on whether or not to use Drools because from

RE: [rules-users] Drools 4 poor performance scaling?

2008-06-30 Thread Ron Kneusel
a realistic solution. Any thoughts? Thanks Eric -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ron Kneusel Sent: Thursday, June 26, 2008 12:47 PM To: rules-users@lists.jboss.org Subject: [rules-users] Drools 4 poor performance scaling

RE: [rules-users] Drools 4 poor performance scaling?

2008-06-30 Thread Ron Kneusel
as to why it doesn't work quickly. Again, any help appreciated! Ron -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ron Kneusel Sent: Thursday, June 26, 2008 12:47 PM To: rules-users@lists.jboss.org Subject

[rules-users] How to check for a variable number of conditions in a rule?

2008-07-22 Thread Ron Kneusel
Greetings! I want to create a rule that checks a fact which contains an array to see if n or more of the elements of that array have a specific value. The number of elements to check will vary from invocation to invocation of the rules engine and will likely be added as a global. I can do

RE: [rules-users] How to check for a variable number of conditions ina rule?

2008-07-23 Thread Ron Kneusel
Mike, I think the collect will work, I'll have to look at it more closely because the ordering of elements in the array is significant so I'm not sure I can just break the elements up into facts and let collect group them however it will. As a follow up, while my solution of using a global in

[rules-users] Compiling .drl files inside of a JUnit test

2008-07-31 Thread Ron Kneusel
I'm sure other people have run into this. I'm trying to build a unit test that checks the compilation of an external .drl file. My questions are: How do I get the compiler to locate all the .class files that I reference? When JUnit runs, where does it run from or how can its runtime

Re: [rules-users] Compiling .drl files inside of a JUnit test

2008-08-01 Thread Ron Kneusel
Edson wrote: Right now, Drools uses JUnit for all its unit and integration tests. Take a look at the integration tests and I think you will figure out: http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/ Thanks for the link but I

Re: [rules-users] Compiling .drl files inside of a JUnit test

2008-08-01 Thread Ron Kneusel
Mark Proctor wrote: You don't have your DRLs in the correct location, our DRLs mirror the path of the class that is loading them via getClass().getResourceAsStream(): http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/integrationtests/ It