RE: [rules-users] Measuring Drools Memory Usage

2008-07-29 Thread Anstis, Michael (M.)
Do you use a stateful session? Are your measurements before and after you've inserted facts into working memory? Would be helpful to the group to post your use-case source? Thanks, Mike From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf

Re: [rules-users] Measuring Drools Memory Usage

2008-07-29 Thread Ingomar Otter
We used two approaches to double check results. At first we used an approach similiar to what you haved described. Please note that (depneding on platfom) freeMemory is not byte- exact). Wo you won't see little changes. Also, if you were using stateless sessions the result you have seen may

[rules-users] Discover when a rule isn't more active

2008-07-29 Thread Claudio Rainoldi
Hi everyone, isn'it there a way to find when a rule isn't more active. For example if i have this rule: rule light 2 on dialect java when Light (name==0/0/2, actualvalue==1); then System.out.println(luce 2 on); end when someone turn on the light 2 i discover that the rule is fired using an

Re: [rules-users] Discover when a rule isn't more active

2008-07-29 Thread Ingomar Otter
Use logicals. Am 29.07.2008 um 11:20 schrieb Claudio Rainoldi: Hi everyone, isn'it there a way to find when a rule isn't more active. For example if i have this rule: rule light 2 on dialect java when Light (name==0/0/2, actualvalue==1); then System.out.println(luce 2 on); end when someone

[rules-users] count with nested condition

2008-07-29 Thread Yoni Mazar
Hi all, Our object deals with the clinical domain. We have a class LabEvent that represents a visit in the laboratory. Each event is associated (using the laboratoryResult association) with one or more LabResult objects (children), each represents the results of a particular test. in the rule

Re: [rules-users] Discover when a rule isn't more active

2008-07-29 Thread Ingomar Otter
There is a mechanism called truth maintenance ensuring for example A - B B - C that C becomes false when it's premise (B) becomes false as well. What it basically does it track the LHS side of the rule and undoes asserted facts when there are no more facts to support it (activate the rules

Re: [rules-users] generic properties

2008-07-29 Thread Edson Tirelli
Hi Thomas and all, Drools delegates most of the complex expression evaluation to MVEL and it seems that it currently does not support variables as indexes in the map/collection simplified syntax. So, it will not work for now. The good news is that we work very close with MVEL's author

Re: [rules-users] Measuring Drools Memory Usage

2008-07-29 Thread Mark Proctor
I've thought about some callback mechanism that is executed when a rule is no longer true, the problem I have is which variable changed to make the rule no longer true and how do I expose the bound variables to the user, especially if the rule is no longer true due to a retraction, and

Re: [rules-users] count with nested condition

2008-07-29 Thread Edson Tirelli
What about: Number( intValue 1 ) from accumulate( LabEvent( eval( dateWithinLastMonths(effectiveTime,1)), results : laboratoryResult ) and LabResult( value 1.8 ) from results, count( 1 ) ) Accumulate supports multiple patterns and has the count() function.

Re: [rules-users] Discover when a rule isn't more active

2008-07-29 Thread Claudio Rainoldi
thanks a lot 2008/7/29, Ingomar Otter [EMAIL PROTECTED]: There is a mechanism called truth maintenance ensuring for example A - B B - C that C becomes false when it's premise (B) becomes false as well. What it basically does it track the LHS side of the rule and undoes asserted facts

Re: [rules-users] Discover when a rule isn't more active

2008-07-29 Thread Edson Tirelli
The same interface you are using (AgendaEventListener) has 2 methods for activations created and canceled: void activationCreated(ActivationCreatedEvent event, WorkingMemory workingMemory); void activationCancelled(ActivationCancelledEvent event,

Re: [rules-users] Measuring Drools Memory Usage

2008-07-29 Thread Edson Tirelli
For Drools 4.0.x we eventually run profiling tools to make sure we got not leak. A couple were found and fixed in the past and we are not aware of any leak in 4.0.7. It is very important though to make sure that if you are using stateful sessions, you call dispose() on the session after

Re: [rules-users] Discover when a rule isn't more active

2008-07-29 Thread Mark Proctor
Sorry I replied to the wrong message, doh! So here it is again. I've thought about some callback mechanism that is executed when a rule is no longer true, the problem I have is which variable changed to make the rule no longer true and how do I expose the bound variables to the user,

Re: [rules-users] Filter incorrect abbreviations

2008-07-29 Thread Edson Tirelli
If you have each character in a different attribute, you can use in and not in to list the valid/invalid characters: a : Abbreviation( pos1 == 'A', pos2 in ('-','D','H'), pos3 == '-', pos4 in ('O', 'R', 'U', 'L') ) a : Abbreviation( pos1 == 'A', pos2 not in ('-','D','H'), pos3 !=

[rules-users] Problems building Package

2008-07-29 Thread thomas kukofka
Hello, I get the following Nullpointer exception when building the package: java.lang.NullPointerException at org.drools.rule.AbstractCompositeRestriction.getRequiredDeclarations(AbstractCompositeRestriction.java:29) at

[rules-users] Accessing Hashmap values and keys in LHS

2008-07-29 Thread thomas kukofka
Hello, I have a HashmapString, Double hm as Input and want to execute the rule for each key respectively value. when hm: HashMap() value: Number() from hm.values() key: String() from hm.keySet() then ... But unfortunately it doesn't work like this. Any ideas? Regards

Re: [rules-users] Problems building Package

2008-07-29 Thread Mark Proctor
thomas kukofka wrote: Hello, I get the following Nullpointer exception when building the package: Looks like a bug, please opn a JIRA with a test case. java.lang.NullPointerException at

Re: [rules-users] generic properties

2008-07-29 Thread Edson Tirelli
As an update, MVEL author fixed this and will do an MVEL release soon. When he does, we will test here and let you know, but you should be able to simply replace MVEL jar and it will work. []s Edson 2008/7/29 Edson Tirelli [EMAIL PROTECTED] Hi Thomas and all, Drools

Re: [rules-users] Discover when a rule isn't more active

2008-07-29 Thread Claudio Rainoldi
Yes i know this. I've tried to use activationCancelled method to discover when a rule isn't more true but it doesn't work. The code was public static class FiredRulesListener extends DefaultAgendaEventListener static class FiredRulesListener extends DefaultAgendaEventListener { ListRule

[rules-users] New Drools Logos

2008-07-29 Thread Mark Proctor
http://blog.athico.com/2008/07/new-drools-logos.html ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users