[rules-users] Drools low concurrency/high synchronization? !NOSIG!

2008-01-22 Thread Ingomar Otter
which are private to the threads * No data is shared between threads (with the exception of the RuleBase, as outline above) * I am on JDK 1.5 I would be grateful for any pointers for 'correct' use of Drools in an MT environment. Cheers, Ingomar -- Ingomar Otter Chief Technology Officer mailto

[rules-users] 4.0.7 Maven Repo?

2008-05-08 Thread Ingomar Otter
As 4.0.7 seems to be GA, will repository.jboss.com/maven2 also be updated? --I -- Ingomar Otter Chief Technology Officer mailto:[EMAIL PROTECTED] Mobile: +49 172 2367867 Valtech GmbH Bahnstraße 16 40212 Düsseldorf Germany Phone: +49 (0)211 179237-0 Fax: +49 211 179237-19 http://www.valtech.de

[rules-users] maven repo

2008-05-09 Thread Ingomar Otter
groupIdorg.drools/groupId artifactIddrools/artifactId version4.0.7/version /dependency --I -- Ingomar Otter Chief Technology Officer mailto:[EMAIL PROTECTED] Mobile: +49 172 2367867 Valtech GmbH Bahnstraße 16 40212

Re: [rules-users] Compilation error: Syntax error, insert ; to complete BlockStatements

2008-07-09 Thread Ingomar Otter
Kris, that may be silly but have you tried to add the ; after 'addCharge($event, $amount)'? If you use the Java dialect for the RHS this IS mostly Java (it's just copied over into the generated code). If in doubt, use -Ddrools.dump.dir=whatever to check out the generated code. --I Am

Re: [rules-users] Is or allowed in a rule? Can I link the rules?

2008-07-24 Thread Ingomar Otter
1. Seems to me that the conditions in a rule are always connected with AND relation: True. AND is the default. Is or allowed? I mean , can I express: if (C1 or C2 or C3) and C4, then D1 in 1 rule? You can have an explicit OR, see section 6.5.2.3 of the 4.0.7 documentation. Can I form a

Re: [rules-users] Handle activationCancelled Event

2008-07-25 Thread Ingomar Otter
Why don't you use facts for control? when mylamp==on then assert/update sth? That looks easier to me. --I Am 25.07.2008 um 13:04 schrieb Claudio Rainoldi: Hi everyone, i'm developing a java application using drools 4 for domotic control; i ve implemented a listener on my working memory with

Re: [rules-users] enums

2008-07-28 Thread Ingomar Otter
I don't understand the structure, could you post more source please? --I Am 28.07.2008 um 13:43 schrieb thomas kukofka: =Field/method 'InputObject' not found for class 'com.rules.InputObject'Rule ___ rules-users mailing list

Re: [rules-users] query or global

2008-07-28 Thread Ingomar Otter
what are disadvantages and advantages of the following possibillities to to get access to working memory facts from outside: Is there a reason why you want to use something other than queries? I would suggest to use queries _unless_ you have a definitive requirement that requires something

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

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

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

2008-07-29 Thread Ingomar Otter
sorry i'm a new drools user.. Can you try to be a little more clear? thanks.. 2008/7/29, Ingomar Otter [EMAIL PROTECTED]: 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

Re: [rules-users] Not Non-Existential Quantifier

2008-07-31 Thread Ingomar Otter
Hans, If you change not NegativeResult() to not (exits NegativeResult()) this should result in the expected behaviour. Cheers, Ingomar Am 31.07.2008 um 17:19 schrieb [EMAIL PROTECTED]: How is not supposed to work with insertLogical? Assume I have two different rules whose conditions

Re: [rules-users] Not Non-Existential Quantifier

2008-07-31 Thread Ingomar Otter
-- Original message -- From: Ingomar Otter [EMAIL PROTECTED] Hans, If you change not NegativeResult() to not (exits NegativeResult()) this should result in the expected behaviour. Cheers, Ingomar Am 31.07.2008 um 17:19 schrieb [EMAIL PROTECTED]: How is not supposed

Re: [rules-users] Caching RuleBase in Drools

2008-08-11 Thread Ingomar Otter
Typically, a rulebase would be generated and cached on first use; to save on the continually re-generation of the Rule Base; which is expensive. Read: Cache the rulebase (the rulebase object) with a Cache mechanism of your choice. AFAIK there is no dedicated caching mechanism in Drools

Re: [rules-users] Salience not being considered in DSL

2008-08-11 Thread Ingomar Otter
Hello Harsh, The problem I am facing is that the salience specified in the drl is not being used. Please elaborate, this is a too general question. So the salience is present in the generated drl? Salience (by default) defines the execution order of those rules which are activated

Re: [rules-users] Update vs insert

2008-09-11 Thread Ingomar Otter
Ehm, I would think that unless person implements a PropertyChangeListener, you need to tell the engine about the change of the slot. Update would be the proper way AFAIK. In this case, I don't see why one would want to insert an object into WM - as it is already in WM. I think the exact

Re: [rules-users] Problem with setting a Global

2008-09-11 Thread Ingomar Otter
You have to declare the global in the rule package. global foo.bar.Logger logger; --Ingomar Am 11.09.2008 um 18:24 schrieb Earnest Dyke: Greetings all, I have the following Java code and rule. When executed I get an Unexpected Global exception (see below). What am I doing wrong?

[rules-users] Disabling pattern matching alltogether for set of rules?

2008-09-16 Thread Ingomar Otter
Folks, we have a scenario where we are applying rules with complex in their LHS at the end of our rule processing. Today we just use a low salience to achieve this. Obviously, these rules are included in the pattern matching and in the agenda updates for all preceding changes to the

Re: [rules-users] Disabling pattern matching alltogether for set of rules?

2008-09-16 Thread Ingomar Otter
Sorry, ...with complex _joins__ in their LHS ... Am 16.09.2008 um 14:17 schrieb Ingomar Otter: Folks, we have a scenario where we are applying rules with complex in their LHS at the end of our rule processing. Today we just use a low salience to achieve this. Obviously, these rules

Re: [rules-users] memory issue when listening to market data

2008-09-29 Thread Ingomar Otter
Given the information remote diagnosis is not feasible. I would suggest to have a look at the heap ... to see where things are going. See http://weblogs.java.net/blog/kellyohair/archive/2005/09/heap_dump_snaps.html --Ingomar Am 29.09.2008 um 17:30 schrieb Cheng, Ping: All, I wrote a

Re: [rules-users] memory issue when listening to market data

2008-09-29 Thread Ingomar Otter
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ingomar Otter Sent: Monday, September 29, 2008 12:47 PM To: Rules Users List Subject: Re: [rules-users] memory issue when listening to market data Given the information remote diagnosis is not feasible. I would suggest to have a look

Re: [rules-users] memory issue when listening to market data

2008-09-29 Thread Ingomar Otter
-histo and I added up all objects' memory and it pretty much matched what I saw from jconsole. Is there any chance that jmap -histo and -heap return different result? Thanks. -Ping -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ingomar Otter Sent

Re: [rules-users] EDT dependency -- transitive dependencies broken from 4.07 to 5?

2008-10-31 Thread Ingomar Otter
Hi Andrew, I've seen this in 4.0.7 as well. There is a dependency from drools-compiler to either Eclipse JDT or Janino for compilation, depending on what compiler you choose. JDT is default by now. Both compilers are supplied with 5M2 bin-dist, see lib/janino.jar and

Re: [rules-users] For lead Distribution

2008-11-04 Thread Ingomar Otter
yes Am 04.11.2008 um 17:51 schrieb Pramod Koshy: Can we use Drools for a CRM tool to implment the business rules for lead assignment. Say Lead 1 has to be distributed to User 1 if Lead is from State Florida. thanks, -- View this message in context:

Re: [rules-users] foreach in drl file

2009-02-16 Thread Ingomar Otter
Phil, maybe you can tell us what you are trying to do? Are you talking about the RHS? --Ingomar Am 16.02.2009 um 23:15 schrieb can_...@gmx.de: Hello, I would like to itterate over a list in a drl template file, I looked at http://mvel.codehaus.org/MVEL+2.0+Orb+Tags @foreach{item :

Re: [rules-users] foreach in drl file

2009-02-16 Thread Ingomar Otter
Phl, I am still not quite there. , I would like a foreach which itterates through a list in my java class, e.g. Golfer, and addes the conditions in the collection to my rule with ANDs So the condition is where? What I would be looking for is a plain text description of the rule, ie. find

Re: [rules-users] foreach in drl file

2009-02-16 Thread Ingomar Otter
How about when Time(value==10) //it's 10 o'clock $aFriend: Friend() //any friend in the working memory then //RHS will be fired for each friend if it's 10 o'clock end or: when Time(value==10) //is it 10? $self:Self() //get a handle to yourself

Re: [rules-users] Large Rule base failing? StackOverlowError

2009-02-20 Thread Ingomar Otter
Blair. can you post the stack trace? Also, does the probem go away IF you increase stack size? --I Am 20.02.2009 um 17:54 schrieb Christie, Blair: We are having a problem reading in large serialized files. We get a StackOverflow exception when the rules get to be 2m. Is there a way to

Re: [rules-users] FW: When is 5.0 GA?

2009-03-11 Thread Ingomar Otter
If you are not the intended recipient, you have received this transmission in error and you are hereby advised that any review, disclosure, copying, distribution, or use of this transmission, or any of the information included therein, is unauthorized and strictly prohibited. Maybe

Re: [rules-users] Drools 4.0.7 Or 5.0.X ?

2009-03-12 Thread Ingomar Otter
Our project is going into production after 1 year so please let me know is it good idea to implement 4.0.7 or 5.0.X ? I think it's safe to assume that 5.x will be rock solid a year from now so I would suggest 5 as migration from 4.0.x to 5.x is not free. --I Am 12.03.2009 um 14:53 schrieb

[rules-users] Null safe MVEL expressions

2009-03-16 Thread Ingomar Otter
Folks, it seems that since 2.0 MVEL supports null-safe MVEL expressions, ie. fact.?property.subproperty == foo will evaluate to false (instead of failing) if property is null. I tried this some time ago and it seems that the drools parser does not like the ?. Is anybody using this? Cheers,

[rules-users] Hints for profiling pattern-matching

2009-03-18 Thread Ingomar Otter
Folks, I am currently tuning a Drools application. We have made good progress with basic rule tuning (pattern reordering), however I am under the impression that there is still some inefficient matching going on. I am wondering whether there are hooks in Drools (or an approach) to get a

Re: [rules-users] org.drools.runtime.rule.ConsequenceException: [Error: unable to access property (null parent): add] [Near : {... Unknown ....}] ^ [Line: 1, Column: 0]

2009-04-01 Thread Ingomar Otter
Ashish, My guess is that you are navigating properties and the something along the way is null. Eg object.prop1.prop2 where prop1 is null. If prop1 can be null you have to check for nullness first, ie. object.prop1!=null, object.prop1.prop2 --Ingomar Am 01.04.2009 um 19:23 schrieb

Re: [rules-users] Performance of compiler

2009-04-17 Thread Ingomar Otter
Christian, with our app, we see a compile performance which is at least an order of magnitude higher. I would assume that in your case the extreme fine granularity of your DRLs may be slowing things down. Have you tried to consolidate these in bigger but fewer DRls? If you need that

[rules-users] Re: Guvnor stuck when opening web based decision table - any hints?

2009-04-27 Thread Ingomar Otter
Well maybe it is lost and I just re-create it. However the archive button is only visible when I open the asset. :-( Solution: Mount Guvnor via WebDav and fix it there. :-) --I Am 24.04.2009 um 11:17 schrieb Ingomar Otter: When opening a web-based decision table my 5.0.0CR1 guvnor gets stuck

Re: [rules-users] Does drools have any trigger?

2009-04-28 Thread Ingomar Otter
Lindy, by default Drools will re-evaluate the rules as needed once facts are changed (and the engine is told about it), so when changed is actually the default behavior. The examples you give sound more like an event-processing scenario (reasoning over time) so you might want to have a look

[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

[rules-users] Sharing packages between rule bases?

2009-05-04 Thread Ingomar Otter
Hello @all. We are generating quite some rules and we have handcrafted rules. We'd like to combine both into RuleBases that we use for a limited time. So far we have parsed the static packages and merged these into RuleBases we create. We hang on to the static packages to avoid unnnecessary

Re: [rules-users] Download Drools 4.0.7

2009-05-20 Thread Ingomar Otter
Shenika, It's always here: http://anonsvn.jboss.org/repos/labs/labs/jbossrules/tags/4.0.7.19894.GA/ Check it out and buikd it (it's trivial). If you get's nervous because of this, you might want to consider to move from the community to the RedHat supported version. ;-) --I Am

Re: [rules-users] fact granularity, performance, and other questions

2009-05-27 Thread Ingomar Otter
David, - Does the order of the conditions in a rule affect performance, the execution order, or the structure of the Rete network? Yes, quite a lot has been written about this. The drools documentation has a few paragraphs with good heuristics... A popular read seems to be this paper, which

Re: [rules-users] Is Drools suitable for this scenario?

2009-05-28 Thread Ingomar Otter
Alex, sounds like a feasible use of Drools to me. Do you have details on number of facts, rules and/or typical rules? The time you give (5msec) is ambitious but I think is feasible if done right. This means that I do not see a reason why this can not be achieved with Drools - in principle.

Re: [rules-users] Upgrade to Drools 5 - loss of performance

2009-05-28 Thread Ingomar Otter
During a few experiments I did with MVEL, I have found that 2.x actually performs slower than 1.x in our case. Maybe that is a starting point. Scott, do you have the possibility to profile your application using 4.x and using 5.x? That should reveal the bottlenecks and I am sure that

Re: [rules-users] A relational SQL Database as RuleBase

2009-06-03 Thread Ingomar Otter
Rene, mhhm, what are your trying to do (besides storing rules in a rdbms)? What's the use-case? Cheers, --I Am 03.06.2009 um 22:21 schrieb r.r.neum...@freenet.de: Hi guys, my question is listed in the topic. Is it possible? I read, that Drools 4 provides such a feature but in this case,

Re: [rules-users] A relational SQL Database as RuleBase

2009-06-04 Thread Ingomar Otter
To me it appears to be a very generic question that's hard to answer without serious mind-reading skills. Am 04.06.2009 um 09:31 schrieb r.r.neum...@freenet.de: It's just a question still now :) ... -- View this message in context:

Re: [rules-users] Default rule

2009-06-04 Thread Ingomar Otter
How about if you create a rule with lowest salience, this will fire _after_ all other rules have fired. Would this help? Am 04.06.2009 um 22:17 schrieb Malenfant, Andre: Anyone knows if it is possible to have a `default` rule that would fire only if others have not? Also, is there a way,

Re: [rules-users] Templates / Generated rules debugging

2009-06-08 Thread Ingomar Otter
- Since this is a web application, I cannot debug the rules in Eclipse (unless I am missing something) You are missing something. :-) That's possible. However we have found regular debuggers not to helpful. Have a look at the WorkingMemoryLoggers, they can give you a detailed

Re: [rules-users] Templates / Generated rules debugging

2009-06-08 Thread Ingomar Otter
...@lists.jboss.org ] On Behalf Of Ingomar Otter Sent: Monday, June 08, 2009 12:00 PM To: Rules Users List Subject: Re: [rules-users] Templates / Generated rules debugging - Since this is a web application, I cannot debug the rules in Eclipse (unless I am missing something) You are missing