Re: [rules-users] Does guvnor 5.1 uses hibernate ?

2010-12-09 Thread Geoffrey De Smet
Guvnor doesn't uses a CMS, not a relational database. Currently guvnor 5.1 supports jackrabbit as CMS, but 5.2 will also support modeshape. The hibernate jar probably comes from drools-compiler which supports HQL's in rules, and therefor might need to be marked optional so it's not included in

Re: [rules-users] Does guvnor 5.1 uses hibernate ?

2010-12-09 Thread Harshit Bapna
Thanks Geoffery for confirming this... On Thu, Dec 9, 2010 at 2:31 PM, Geoffrey De Smet wrote: > Guvnor doesn't uses a CMS, not a relational database. > Currently guvnor 5.1 supports jackrabbit as CMS, but 5.2 will also > support modeshape. > > The hibernate jar probably comes from drools-compile

[rules-users] timer and duration

2010-12-09 Thread OlliSee
Hello there. I seem to have trouble with the "timer" operator which is documented to have superseded the "duration" operator for use in the rule body. I might have something to do with the "not" operator I use in my rule. Scenario: A is a fact, B is an event When I write something like this ru

Re: [rules-users] timer and duration

2010-12-09 Thread OlliSee
I ran a few more tests and it seems that "duration" is also not capable of achieving the expected results. If you have a lot of different A objects in the example, and a few more complex conditions in the LHS, the rule will only fire for a few A objects, omitting the rest, when the duration timer

Re: [rules-users] timer and duration

2010-12-09 Thread Mark Proctor
On 09/12/2010 12:30, OlliSee wrote: > Hello there. > > I seem to have trouble with the "timer" operator which is documented to have > superseded the "duration" operator for use in the rule body. I might have > something to do with the "not" operator I use in my rule. > > Scenario: A is a fact, B is

Re: [rules-users] timer and duration

2010-12-09 Thread OlliSee
Thanks, unfortunately not working, either. Maybe it will help, if I describe the scenario more detailed. I have three A facts inserted at the beginning. Then the rule fires the first time after 5 seconds for every A fact and inserts the B events. Then I retract ONE of the B events, but the rule

[rules-users] Understanding indexing

2010-12-09 Thread Chris Selwyn
I would like to understand more about how my rules are being executed. Is there a way that I can find out what indexes are being are being created. I can see the drools.indexLeftBetaMemory (and friends) properties but I would like to be able to observe the effects that they are having. Chris Sel

[rules-users] getting all binary packages from Guvnor

2010-12-09 Thread Kumar, Ravendra
Hi Guys, I am just playing with Guvnor and my Knowledge Builder, I am able to pull a single binary package by hard-coding it into changeset.xml using Configuration Agent like below But my requirement is not to hard code all other packages into change-set.xml, but I

Re: [rules-users] Understanding indexing

2010-12-09 Thread Mark Proctor
On 09/12/2010 14:15, Chris Selwyn wrote: > I would like to understand more about how my rules are being executed. > > Is there a way that I can find out what indexes are being are being created. > I can see the drools.indexLeftBetaMemory (and friends) properties but I > would like to be able to obs

Re: [rules-users] timer and duration

2010-12-09 Thread Wolfgang Laun
I can confirm that the timer rule continues to fire - if the condition contains a not CE - even after the not CE should return false Repeating timer firing stops for "positive" CEs turning to false. -W On 9 December 2010 15:06, OlliSee wrote: > > Thanks, > unfortunately not working, either. >

Re: [rules-users] Understanding indexing

2010-12-09 Thread Chris Selwyn
Thanks Mark, I'll try to have a look at both of those. (I'm one of those types that likes to see something happen... It helps me understand what is going on). Chris On 09/12/2010 14:42, Mark Proctor wrote: > On 09/12/2010 14:15, Chris Selwyn wrote: >> I would like to understand more about how m

[rules-users] Calling a function from another function in 5.0

2010-12-09 Thread Chris Selwyn
I don't seem to be able to find how to call one function from another function in Drools 5.0. It works just fine in 5.1 but I am having to use 5.0 because my customer requires me to use a supported version. Is this a known problem or is there really no way to do it? Chris Selwyn ___

[rules-users] Error at inserting a fact

2010-12-09 Thread Anais Martinez
Hi. I want to test several rules and I'm using pseudo-clock and stream mode. When I insert the first fact, Drools generates an error of "timestamp must be greater 0". But if I use real clock, the message doesn't appears. The fact is a java class, but I haven't defined the timestamp. What is the

Re: [rules-users] Calling a function from another function in 5.0

2010-12-09 Thread Tihomir Surdilovic
Hi Chris, can you tell me the supported 5.0.x version you are using and also show a simple test? I am not able to reproduce with supported bits 5.0.1, 5.0.2, and the very soon to be released brms 5.1 ( http://planet.jboss.org/post/jboss_enterprise_brms_5_1_saves_the_holiday_shopping_season ).

Re: [rules-users] Calling a function from another function in 5.0

2010-12-09 Thread Chris Selwyn
I am using Drools 5.0.2. What I didn't mention was that I am constructing my package in Guvnor.. so maybe it's a problem with Guvnor rather than the core. Chris On 09/12/2010 16:05, Tihomir Surdilovic wrote: > Hi Chris, can you tell me the supported 5.0.x version you are using and > also show a

Re: [rules-users] Calling a function from another function in 5.0

2010-12-09 Thread Tihomir Surdilovic
I think I see the issue you are talking about. In 5.0.2 when declaring multiple functions (where one calls another) the package is not building (compilation errors). In BRMS 5.1 this is no longer the issue. A workaround for you in 5.0.2 looks to be to define all functions in a single function f

Re: [rules-users] Calling a function from another function in 5.0

2010-12-09 Thread Chris Selwyn
Thanks... I have just done some further investigations into the conditions because sometimes it works and sometimes it doesn't. I suspect that it is something to do with the order that the functions happen to get placed into the package. If I have a function that calls another function that hap

Re: [rules-users] Error at inserting a fact

2010-12-09 Thread Wolfgang Laun
On 9 December 2010 16:52, Anais Martinez wrote: > > Hi. I want to test several rules and I'm using pseudo-clock and stream mode. > When I insert the first fact, Drools generates an error of "timestamp must > be greater 0". But if I use real clock, the message doesn't appears. > When using a pseud

[rules-users] Memory Consumption with 5000 Rules

2010-12-09 Thread thomas . polzin
Dear all, My setup includes about 5000 rules with the following pattern: rule "1" when ( $c_0 : CFRO( fi.co == "1", su.co == "P", c.co == "C") or $c_0 : CFRO( fi.co == "2", su.co == "P", c.co == "C") or $c_0 : CFRO( fi.co == "3", su.co == "P", c.co == "C") or $c_0 : CFRO( fi.co == "4, su.co == "

Re: [rules-users] Memory Consumption with 5000 Rules

2010-12-09 Thread Mark Proctor
Each 'or' will generate a rule, so that's more like 50K rules. Mark On 09/12/2010 22:08, thomas.pol...@gmail.com wrote: Dear all, My setup includes about 5000 rules with the following pattern: rule "1" when ( $c_0 : CFRO( fi.co == "1", su.co == "P", c.co == "C") or $c_0 : CFRO( fi.co == "2", s

Re: [rules-users] timer and duration

2010-12-09 Thread Mark Proctor
On 09/12/2010 14:50, Wolfgang Laun wrote: I can confirm that the timer rule continues to fire - if the condition contains a not CE - even after the not CE should return false Repeating timer firing stops for "positive" CEs turning to false. sounds like a bug :( Wolfgang, could you commit your

Re: [rules-users] Memory Consumption with 5000 Rules

2010-12-09 Thread Jared Davis
I would try two different layouts and see what happens to memory usage. I think the rules that use "in" will be faster than the standard matches implementation. rule "1.in" when $c_0 : CFRO( fi.co in ("1","2","3","4","5"), su.co == "P", c.co == "C") then Bcf fact = new Bcf (); fact.setC( "123"

Re: [rules-users] getting all binary packages from Guvnor

2010-12-09 Thread Toni Rikkola
Hi, There is nothing like this at the moment. You can create a Jira asking for this feature. Best way to do this would be to add a change-set located in Guvnor to your agents change-set. The change-set in Guvnor would have all the links to the packages. Toni Rikkola On Dec 9, 2010, at 4:24