RE: [drools-user] Drools performance and scalability

2005-11-29 Thread Michael Neale
Who was it from? (the archived mail). I am not sure if 1 million users per month would really require 1 million facts in a single working memory. Can you elaborate on what you want to do a bit more (if you are allowed to !). Michael. -Original Message- From: news [mailto:[EMAIL

Re: [drools-user] Drools with a Database?

2005-12-07 Thread Michael Neale
One simple way that people have done this before is simply to store the DRL source as text in a database (depending on your database, you will have to choose an appropriate data type). The RuleBase can then be loaded and cached from this DRL. On 12/7/05, [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: [drools-user] Advice on organising drl files

2005-12-22 Thread Michael Neale
Yes you need some sort of flushable cache to be able to change the RuleBase at runtime. But you don't want to be reloading the rulebase each time. Just call .newWorkingMemory() each time you need a fresh WM to use (sometimes people keep WMs hanging around - not for performance but because the rule

[drools-user] Merry Christmas to all

2005-12-22 Thread Michael Neale
And a happy new year. Next year will be a big one ! Thanks for all your support and contributions. Michael.

Re: [drools-user] Re: JSR94 statefule rule session

2005-12-29 Thread Michael Neale
that? Or are there times you would do one without the other? I'd be interested to know if this is the case. Michael Neale [EMAIL PROTECTED] wrote: Not off the top of my head (I may be missing something obvious). Do you mean modified as in the state of the object is modified, or modified in terms

[drools-user] Drools 2.5 BETA 1 is out

2005-12-29 Thread Michael Neale
Thanks to everyone for all the contributions. We have had a lot of really good improvements and patches submitted. 2.5 has a major redesign of the Semantic Module Framework, and it now generates bin/src bundles behind the scenes for deployment (and possibly debugging). This can also allow for

Re: [drools-user] Exclusion of rules

2005-12-29 Thread Michael Neale
use xor-group attribute. When a rule fires that has a xor-group name set, then non of the other rules with the same group will fire. I *think* this is a 2.1 feature (been a while !). On 12/30/05, Sinha, Amitesh [EMAIL PROTECTED] wrote: Hi, I hope holiday season is bringing a lot of

Re: [drools-user] Execution of Rules

2006-01-05 Thread Michael Neale
Unless I am mistaken, using Native you have to roll your own condition sharing, as the engine has no way of knowing intrinsically how to share. From looking at the code it looks like if you implement hashCode and equals correctly, it may be able to share (but I am not sure). The DRL condition

Re: [drools-user] Problem using Drools 2.5 HelloWorld Example

2006-01-08 Thread Michael Neale
Yep I get that too. Am looking into it. The SMF stuff is quite new, so there are still things like this to iron out, but its good to know its not just my environment. Michael. On 1/9/06, Kapil Gupta [EMAIL PROTECTED] wrote: Hi, I have just downloaded the Drools 2.5 Beta and trying to run the

Re: [drools-user] excel worksheet conditions ignored

2006-01-13 Thread Michael Neale
if there is no text in the cell, the condition will not be included. On 1/13/06, Pascal Chanteux [EMAIL PROTECTED] wrote: Hi everybody ! I am using drools 2.1 with excel worksheet. Sometimes, some conditions columns are completely ignored by the engine, and thus my actions are executed

Re: [drools-user] excel worksheet caching

2006-01-13 Thread Michael Neale
no there is no caching. What version of excel are you using? I have added CSV support as it is less prone to strange variances in the file format which xls is. Unfortunately Excel 97 format is very much a closed format, so it can be a little hard to account for all versions saveing in strange

Re: [drools-user] Re: excel worksheet conditions ignored

2006-01-16 Thread Michael Neale
( org.drools.decisiontable.parser.xls.ExcelParser), but I don't see any references to the FormulaRecord (* org.apache.poi.hssf.record.FormulaRecord* ) . I suppose I need to add some lines of code in the parser if I wanna to use formula in my Drools decision table ? Thanks, Pascal. On 1/14/06, Michael Neale [EMAIL PROTECTED

Re: [drools-user] excel worksheet caching

2006-01-16 Thread Michael Neale
( *UnknownRecord.java:62*) ' occurs often when I modify a well formatted excel file. I am looking for a way to avoid these exception. Can I use a newer version of the apache POI ? Thanks, Pascal On 1/14/06, Michael Neale [EMAIL PROTECTED] wrote: no there is no caching. What version

Re: [drools-user] Necessity of negative conditions?

2006-01-16 Thread Michael Neale
Drools 3 will have Not built in. Not sure if that helps ! On 1/17/06, Peter Van Weert [EMAIL PROTECTED] wrote: Hi, I was wondering what your opinions are on the necessity of negative conditions in production rules? The reason I am interested is that I am currently developing a Java

Re: [drools-user] XOR group

2006-01-17 Thread Michael Neale
This is something that can be tackled by doing lazy condition evaluation (backward), which may be included in the future as an option. In most cases, I don't think the impact on performance would really be anything much. Of course there are some cases where it would - one hack which has been

Re: [drools-user] best practice for ruleset constants?

2006-01-17 Thread Michael Neale
You can actually put constants in functions, and use them in rules as you would normally. java:functions public static final int SOME_VALUE_HERE = 42; public static final String ANOTHER_CONST = Slartibartfast; /java:functions But I am not sure if thats exactly what you want. If these

Re: [drools-user] [Drools][5.2.1] JDKs support in rules expression

2006-01-18 Thread Michael Neale
2.1 only supports JDK 1.4 version of java. 2.5 (which is in beta) I believe supports 1.5 thanks to the built in eclipse JDT compiler. On 1/18/06, Ephemeris Lappis [EMAIL PROTECTED] wrote: Hello. I've already successfully checked that Drools supports JDK 1.5 at runtime for the java code

Re: [drools-user] [Drools][5.2.1] Loop control and best practice

2006-01-18 Thread Michael Neale
Yes no-loop is pretty basic, its idea is to stop RuleA causing it to fire itself recursively. Of course, RuleA could cause RuleB to fire, which in turn causes RuleA to fire (no-loop is not designed to stop that). To make sure things only fire once for the given facts, which I gather is what you

Re: [drools-user] [Drools][5.2.1] Loop control and best practice

2006-01-18 Thread Michael Neale
for the no-loop and for the hand-made loop control for other cases too. -- Ephemeris Lappis -Message d'origine- De : Michael Neale [mailto:[EMAIL PROTECTED] Envoyé : mercredi 18 janvier 2006 23:54 À : user@drools.codehaus.org Objet : Re: [drools-user] [Drools][5.2.1] Loop control

Re: [drools-user] [Drools][5.2.1] JDKs support in rules expression

2006-01-19 Thread Michael Neale
hehehehe... good question. Well, in 2.1 it used Janino. Which is a simple in memory compiler. So the first time you go to execute a rule that has embedded code, it would compile and cache it on the fly. Kind of lazy compilation. In 2.5, its a bit different. It actually takes the java (actually

Re: [drools-user] [Drools][5.2.1] JDKs support in rules expression

2006-01-19 Thread Michael Neale
-Message d'origine- De: Michael Neale [mailto:[EMAIL PROTECTED] Envoyé: vendredi 20 janvier 2006 08:02 À: user@drools.codehaus.org Objet: Re: [drools-user] [Drools][5.2.1] JDKs support in rules expression hehehehe... good question. Well, in 2.1 it used Janino. Which

Re: [drools-user] Performance problems on Transitivity Inferencing + Suggestion for future Release

2006-01-22 Thread Michael Neale
Hi Andreas. The Combination monster strikes again ! Add this as your first condition: java:conditionSystem.identityHashCode(Y) System.identityHashCode (X)/java:condition This will ensure that only useful combinations are added. When I add that, 9 tuples took about 14milliseconds, and

Re: [drools-user] Performance problems on Transitivity Inferencing + Suggestion for future Release

2006-01-23 Thread Michael Neale
OK I understand now - identity will only solve a little bit of the problem. Yeah its a good idea to implement them anyway (read Joshua Blochs Effective Java book for reasons - I think those chapters are online and free..) If the rules were to work on string objects, then you get equals and

Re: [drools-user] NoSuchFieldError: tokenTypeToASTClassMap while loading rulebase

2006-01-24 Thread Michael Neale
hmmm.. often its a missing ; in a condition, or something wierd in a condition node. Send your rules xml On 1/25/06, Markus [EMAIL PROTECTED] wrote: Hi, I'm running drools 2.1 on a servlet which is deployed to a Apache Tomcat 5.0.28 which works fine. I just tried to deploy the same webapp

Re: [drools-user] Problem with import (java sementics)

2006-01-26 Thread Michael Neale
I think you are missing semi colons at the end of the java:import lines (as it is just normal java from a compilers point of view). On 1/26/06, Nicolas Andrieux [EMAIL PROTECTED] wrote: Hi, I'm trying to write function, using java:functions, but i've got a problem when i want to use some

Re: [drools-user] Scheduling/Timetabling with drools

2006-01-26 Thread Michael Neale
No I don't think you need to follow miss manners. Miss manners is designed to stress rule engines for performance profiling reasons, so probably not ideal to emulate ! I am not quite across what you are doing, but I can take a wild stab... (I hope no one gets hurt)... Well in the first rule when

Re: [drools-user] Stragegies for stacking Exceptions

2006-01-30 Thread Michael Neale
the rule engine to cease operation as a rule engine, and return control to the caller as soon as possible (other people can correct me if they have other ideas). On 1/31/06, Geoffrey Wiseman [EMAIL PROTECTED] wrote: On 1/30/06, Michael Neale [EMAIL PROTECTED] wrote: yep validation like

Re: [drools-user] AssertObject Performance

2006-01-31 Thread Michael Neale
lazy loading going on? Are they hibernate proxies? On 1/31/06, Felipe Piccolini [EMAIL PROTECTED] wrote: Hi all, I have a problem asserting some complex objects. Im asserting persistent objects with hibernate. This objects are very complex and in some cases assering one of them

Re: Re[2]: [drools-user] AssertObject Performance

2006-02-01 Thread Michael Neale
The combination monster. Hopefully with Drools 3, performance for this sort of thing will be much improved, but nevertheless, its always good to filter out the unwanted conditions (that you know are unwanted). Generally I believe it helps to have these conditions first in the rule condition list.

Re: Re[2]: [drools-user] Did you see this?.... a new book

2006-02-02 Thread Michael Neale
Cool ! Well its always good to see value added stuff being done around an open source product ! For Drools 3, we are hoping to have a manual out, which will be like the hibernate manual. Of course, books can go much much further then this. If people wanted to contribute their articles/use cases,

Re: [drools-user] [Drools] Authoring and debugging tools

2006-02-06 Thread Michael Neale
Not easily at present. You can use Events to track what is happening on the engine, and there is some support for looking at the Agenda in the plug in. But the focus on the tools for all those features is for Drools 3. Also, when you build a rulebase, the snippets are actually parsed and

Re: [drools-user] Newbie: Is there a way to dynamically change the salience of a rule ?

2006-02-07 Thread Michael Neale
Not really from within a drl file, no. The rule object has a salience property, so it can be set programmatically, but its not part of the rule language. On 2/8/06, sol myr [EMAIL PROTECTED] wrote: Hi, Newbie question: is there a way to dynamically change the salience of a rule (namely,

Re: [drools-user] how to know which rule was fired?

2006-02-08 Thread Michael Neale
The interface to implement is org.drools.event.WorkingMemoryEventListener. It has various call back methods that all get passed the appropriate event. From those events, you can extract the info you need. The method names should be fairly informative in the listener interface. On 2/9/06,

Re: [drools-user] Feature Request: Using isPropertyName for class-field

2006-02-08 Thread Michael Neale
In Drools 3 this is much clearer. You would do a statement like: IF GenericComparable(primary == true) Much neater, and you don't even have to declar the parameter of that type (it is implicit in that case), and yes, it will understand is is actually a getter (lots of people forget). I think

Re: [drools-user] How do I control firing of rules ?

2006-02-08 Thread Michael Neale
- From: Michael Neale [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 08, 2006 3:39 PM To: user@drools.codehaus.org Subject: Re: [drools-user] How do I control firing of rules ? so you are asserting into working memories orders, and items as exploded apart from each other? (if you get

Re: 答复: [drools-user] how to know which rule was fired?

2006-02-09 Thread Michael Neale
Yes sometimes the audit trail of rule firing could be part of your model itself (this is how I have always preferred it in the past). On 2/9/06, 宋宇彬 [EMAIL PROTECTED] wrote: further more,the execute result of every rule is concerned by the business analyst To jrules, this problem is headled

Re: [drools-user] How do I control firing of rules ?

2006-02-09 Thread Michael Neale
; String name; } The second rule is my biggest problem. It fires whenever any Object or and item is modified Thanks, Alan Ho -Original Message- From: Michael Neale [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 08, 2006 4:20 PM To: user@drools.codehaus.org Subject: Re

Re: 答复: [drools-user] Firing rules when something DOESN'T exist

2006-02-13 Thread Michael Neale
. For example: not Person() which says, there is NO person. Stuart On 13 Feb 2006 12:25:47, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: From: Michael Neale [EMAIL PROTECTED] To: user@drools.codehaus.org MIME-Version: 1.0 Subject: Re: [drools-user

Re: [drools-user] Human readable rules

2006-03-01 Thread Michael Neale
Drools 3 will address this, definately. Timeframe is very soon for beta 1. On 3/1/06, Ho, Alan [EMAIL PROTECTED] wrote: I've been looking at the Semantic Module Framework, however I found the Domain specific languages to be as complicated if not more than the java stuff. Is there a way to

Re: [drools-user] Problems running unit test with drools 2.5 beta 2

2006-03-01 Thread Michael Neale
I think its missing JDT from the classpath for the project. On 3/1/06, Paul Smith [EMAIL PROTECTED] wrote: Guys, has anybody had any issues trying to run their drools unit tests from eclipse with drools 2.5 beta 2. Everything seems to work well with 2.1 but I get the following with 2.5

Re: [drools-user] drools 2.5 HelloWorldExample

2006-03-04 Thread Michael Neale
yeah, there have been some dependency changes for 2.5 around libraries. Check out the release notes on the website for a quick list of deps that worked for me for the basic java semantics. On 3/4/06, Paul Smith [EMAIL PROTECTED] wrote: You need to add the commons-jci-SNAPSHOT20051110.jar on to

Re: [drools-user] can your use fireAllRules(AgendaFilter) multiple times

2006-03-06 Thread Michael Neale
no when its finished, the agenda is clear. I think what you really want is Agenda Groups where it is partioned based on some logic - but this is an upcoming drools 3 feature. in the meantime, you can also iterate through and modify all the objects that are already in working memory, causing

Re: Re[2]: [drools-user] can your use fireAllRules(AgendaFilter) multiple times

2006-03-07 Thread Michael Neale
hmmm... well perhaps the rule needs to be broken down, so that in one consequence if modifies fact1, and in a different consequnce it modifies fact2. I am not sure how it can work otherwise. I assume there is more in your consequence then just the modifies? On 3/8/06, Felipe Piccolini [EMAIL

Re: [drools-user] Drools 2.5 error with import line with consequence: Syntax error on token import, assert expected

2006-03-09 Thread Michael Neale
several parent ones - but the import is the same? On 3/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I had few rules file that works fine with Drools 2.1 - however, when I downloaded the 2.5, it gives me following error for the import which I need to have within the consequeuce - The

Re: [drools-user] Drools 2.5 error with import line with consequence: Synt

2006-03-12 Thread Michael Neale
it shouldn't have been from 2.5, but it is being removed from 3.0 On 3/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have parent drl file with: ?xml version=1.0? !DOCTYPE rule-set [ !ENTITY rules-rulefile1 SYSTEM rulefile1.drl !ENTITY rules-rulefile2 SYSTEM

Re: [drools-user] Hot deploy in tomcat doesn't work

2006-03-12 Thread Michael Neale
those) are beeing held by tomcat (locked) when the application restarts which prevents them from being deleted. Thx Kristofer On 3/10/06, Michael Neale [EMAIL PROTECTED] wrote: so the problem is with the jar files? (locked?) On 3/10/06, Kristofer Eriksson [EMAIL PROTECTED] wrote

Re: [drools-user] Out of Memory Errors

2006-03-12 Thread Michael Neale
what version of drools? Can you try both 2.1 and 2.5 as they do fairly different stuff with loading/building (would be good to narrow it down). On 3/10/06, Matias Otero [EMAIL PROTECTED] wrote: Hi, Is there a limit to how many rules can be in a ruleset for a DRL file? I am getting

Re: [drools-user] Out of Memory Errors

2006-03-12 Thread Michael Neale
the domain objects etc). Michael. On 3/13/06, Matias Otero [EMAIL PROTECTED] wrote: I'm currently running 2.1. -Original Message- From: Michael Neale [mailto:[EMAIL PROTECTED] Sent: Monday, 13 March 2006 9:31 AM To: user@drools.codehaus.org Subject: Re: [drools-user] Out of Memory

Re: [drools-user] Out of Memory Errors

2006-03-12 Thread Michael Neale
:[EMAIL PROTECTED] Sent: Monday, 13 March 2006 9:33 AM To: user@drools.codehaus.org Subject: RE: [drools-user] Out of Memory Errors I'm currently running 2.1. -Original Message- From: Michael Neale [mailto:[EMAIL PROTECTED] Sent: Monday, 13 March 2006 9:31 AM To: user

Re: [drools-user] drools 2.5 final and jdk1.4?

2006-03-14 Thread Michael Neale
Its fine to ignore those warnings, most people do. On 3/14/06, Patrick Vankeirsbilck [EMAIL PROTECTED] wrote: Adding the following command line option: -Ddrools.schema.hidewarnings=true made the JAXP warning disappear. The question remains still whether the warning indicates something

Re: [drools-user] Hot deploy in tomcat doesn't work

2006-03-14 Thread Michael Neale
. Anyhow, it is a serious and real problem for me. Kind Regards Kristofer Eriksson On 3/12/06, Michael Neale [EMAIL PROTECTED] wrote: I have no clues about that unfortunately, it does sound wierd. What would cause a jar to be locked? Its almost as if tomcat hasn't finished classloading

Re: [drools-user] Drools Conditions

2006-03-19 Thread Michael Neale
For efficiency reasons, multiple rules with the alternative conditions are better (not NOT convenient in drools 2 !). Just something to consider. On 3/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Warren: I have this condition working in Drools 2.5 Does this help?

Re: [drools-user] Questions: Not condition; Condition sharing; JSR 94 customization; Assert object equality

2006-03-22 Thread Michael Neale
Short answer, not easily with Drools 2. But yes, with Drools 3. On 3/22/06, Juergen [EMAIL PROTECTED] wrote: I recently looked into drools after experimenting with JESS and got a few questions I could not look up in the drools documentation: - Exists a condition to test for non-existence of

Re: [drools-user] Storing rules in a database

2006-03-29 Thread Michael Neale
not be a generic one. Michael Neale has written a repository api for Drools3 which allows you to plug in your repository implementation. The database implementation is based on hibernate, but it should be easy enough to replace the mappings with stored procedures, if you really wanted to go that route

Re: [drools-user] Using null as a literal contraint not allowed in 3.0?

2006-03-30 Thread Michael Neale
the null stuff should be (mostly) resolved now. As for the line spanning, I will take a look at it. Its really a matter of allowing optional EOLs in the grammar, but its easy to miss a spot. On 3/31/06, Yuesong Wang [EMAIL PROTECTED] wrote: Mark, Thanks, I'll be looking forward to the new

Re: [drools-user] Predicate Constraint without Column Binding in 3.0?

2006-04-01 Thread Michael Neale
o : MyObject (name == something) eval(o.getProp(prop) == val)) I think will do what you want. On 4/1/06, Yuesong Wang [EMAIL PROTECTED] wrote: Hi, I'm doing something like this: o : MyObject (name == something) MyObject (n : name - (o.getProp(prop) == val)) As you can see in the

Re: [drools-user] PDSTab announcement

2006-04-01 Thread Michael Neale
Nice ! Well done. On 3/29/06, Ru [EMAIL PROTECTED] wrote: Hello drools-users! On the site http://www.oogis.ru/en/projects/PDSTab/pdstab.htm is published Protege Drools Scenario Tab plug-in (PDSTab) for Protege (http://protege.stanford.edu). This is a visual integrated spatial simulation

Re: [drools-user] Predicate Constraint without Column Binding in 3.0?

2006-04-02 Thread Michael Neale
when you are busy trying to get the release out. Great job with 3.0! Yuesong --- Michael Neale [EMAIL PROTECTED] wrote: o : MyObject (name == something) eval(o.getProp(prop) == val)) I think will do what you want. On 4/1/06, Yuesong Wang [EMAIL PROTECTED] wrote: Hi

Re: [drools-user] org.drools.asm.ClassReader

2006-04-02 Thread Michael Neale
that is just ASM (latest version) that has been jarjared to have a local name space, so you can get the source from ASM (Object Web) and it will be the same. On 4/2/06, Paul Smith [EMAIL PROTECTED] wrote: Can someone point me to the source for: org.drools.asm.ClassReader It doesn't appear

Re: [drools-user] org.drools.asm.ClassReader

2006-04-02 Thread Michael Neale
Paul, can you send on your domain object that is causing it? On 4/2/06, Michael Neale [EMAIL PROTECTED] wrote: that is just ASM (latest version) that has been jarjared to have a local name space, so you can get the source from ASM (Object Web) and it will be the same. On 4/2/06, Paul Smith

Re: [drools-user] Re: free training for coffee

2006-04-04 Thread Michael Neale
I would love to, time has been a bit of a premium lately. Last week I was in Sydney for Linux expo, and in May I am heading off to the UK to spend some time working directly with Mark. So it will have to be this month soon. I am in Brisbane the whole month, at least I think I am (so far).

Re: [drools-user] Functions in Drools 3.0

2006-04-04 Thread Michael Neale
When in the when (he heee) do you want to call it? The only places are in an eval, or predicate or return value... I am not sure if they are allowed in there by design. On 4/4/06, Paul Smith [EMAIL PROTECTED] wrote: I don't seem to be able to call functions from within the 'when' clause of a

Re: [drools-user] Functions in Drools 3.0

2006-04-04 Thread Michael Neale
my mistake, you should be able to call it, there are a fair few integration tests that cover that (Mark tells me). On 4/4/06, Michael Neale [EMAIL PROTECTED] wrote: When in the when (he heee) do you want to call it? The only places are in an eval, or predicate or return value... I am

Re: [drools-user] Functions in Drools 3.0

2006-04-04 Thread Michael Neale
) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests( RemoteTestRunner.java:478) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run( RemoteTestRunner.java:344) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main( RemoteTestRunner.java:196) On 4/4/06, Michael Neale [EMAIL PROTECTED] wrote

Re: [drools-user] Functions in Drools 3.0

2006-04-04 Thread Michael Neale
but valuable for other users as a bit of a gotcha. On 4/4/06, Paul Smith [EMAIL PROTECTED] wrote: Will do. Thanks On 4/4/06, Michael Neale [EMAIL PROTECTED] wrote: to eliminate layers, can you manually expand it, and make sure it fails the same? Also, there is a test_EvalException

Re: [drools-user] creating a DSL

2006-04-06 Thread Michael Neale
in a package under the src\test\resources folder. The dsl file, however, is under src\main\resouces. So Eclipse can't find the dsl where the drl is. Once built, they of course all go to the classes folder, thus the actual execution has no problem. --- Michael Neale [EMAIL PROTECTED] wrote

Re: [drools-user] Problem loading large ruleset file.

2006-04-06 Thread Michael Neale
Is it all one big ruleset? On 4/7/06, Felipe Piccolini [EMAIL PROTECTED] wrote: Hi, Im still using drools 2.x for my project (I cnt switch right now) and I have memory problems because I have a very large ruleset file (about 2.8Mb xml file, near 500 rules). Its a very complex ruleset,

Re: [drools-user] Drools 3, rev. 3505, ArrayIndexOutOfBoundsException, org.drools.reteoo.FactHandleList.get(FactHandleList.java:107)

2006-04-07 Thread Michael Neale
yeah we found that bug, and will probably have RC2 out soon. On 4/7/06, Juergen [EMAIL PROTECTED] wrote: Drools 3, rev. 3505 (or 3502) Modified helloworld example to experiment a bit with rules (DRL not meaningful, looping, ...), nontheless got: java.lang.ArrayIndexOutOfBoundsException: 2

Re: [drools-user] Is RuleBase in 3.0 Thread Safe?

2006-04-07 Thread Michael Neale
yes that should be fine. Calls to newWorkingMemory should be idempotent on the RuleBase object. On 4/8/06, Yuesong Wang [EMAIL PROTECTED] wrote: Multiple threads use the same instance of RuleBase, each creating a new WorkingMemory and asserting their own facts. Would that work? Thanks,

Re: [drools-user] 'end' in a rule specification

2006-04-08 Thread Michael Neale
Can you post your error? On 4/8/06, Mitch Christensen [EMAIL PROTECTED] wrote: Hey, I have a java object that has an 'end' property (i.e. supports setEnd(long end) and getEnd() methods). When I write the following rule, rule I can't use 'end' here when $qo :

Re: [drools-user] Drools 3, Question about fact / field binding

2006-04-08 Thread Michael Neale
to be used like in that: rule rule with eval when b : B(id 10, bindA : a) exists bindA eval ( ... some java-code to: bindA.text matches .*foobar.* ...) then ... end Thanks, Juergen. Michael Neale wrote

Re: [drools-user] activation not cancelled when using eval()

2006-04-08 Thread Michael Neale
Russ, I am not sure, but I think there was a bug that crept into RC1 with eval, that would show up like that, but I can't be sure. RC2 will certainly correct it. On 4/8/06, Russ Egan [EMAIL PROTECTED] wrote: Here are my rules: rule Authorize Resources salience 100 when $r :

Re: [drools-user] Where are the drl/dsl samples?

2006-04-08 Thread Michael Neale
Drools 3 examples you mean? Or 2? For 3, look in the integration tests mainly. On 4/9/06, Felipe Piccolini [EMAIL PROTECTED] wrote: Anyone knows where are the examples now? I cant found the webpage where all those drl and dl examples are. Thanks. -- Felipe Piccolini

Re: [drools-user] Drools 3, object equality in assert

2006-04-08 Thread Michael Neale
object equality for assertion be customized? Drools 3 still seems to use IdentityMap with System.identityHashCode(). Is it planned to be customizeable e.g. with equals() in 3.0? Michael Neale wrote: Short answer, not easily with Drools 2. But yes, with Drools 3. On 3/22/06, Juergen [EMAIL

Re: [drools-user] The rule engine warm up time question

2006-04-08 Thread Michael Neale
no that sounds fine for your application. I assume you have a cached single copy of RuleBase (which is where most of the warm up time would go). You only need to share working memories if you are keeping state in them that is needed between transactions (as otherwise, you are basically asserting

Re: [drools-user] Who can tell me step by step to use drools.net ?

2006-04-09 Thread Michael Neale
try this: http://www.drools.org/dotnet (one of the links from that page is a user guide). We are also setting up a .Net specific mailing list (but not really using it yet). On 4/9/06, bachtk [EMAIL PROTECTED] wrote: Hi everybody, I'm a newcomer here and a newcomer with drools, too. Now, I'm

Re: [drools-user] Cannot use custom facts in drools 2.5

2006-04-10 Thread Michael Neale
can you paste important bits from your rule file? On 4/7/06, Paschetta Elio [EMAIL PROTECTED] wrote: Hello all, I am new to drools. I have downloaded drools 2.5 and I can't make my example working. In particular I can't manage to define a custom object to use as a fact and I obtain

Re: 答复: [drools-user] JBoss Rules - Drools?

2006-04-10 Thread Michael Neale
Its really just 2.x versions versus 3.x versions. We are currently transitioning to 3.x. The name drools lives on, however. On 4/10/06, 宋宇彬 [EMAIL PROTECTED] wrote: The project in codehaus is stopped Pls visit the JBoss Rules SVN: http://anonsvn.labs.jboss.com/labs/jbossrules/trunk To

Re: [drools-user] Cannot use custom facts in drools 2.5

2006-04-10 Thread Michael Neale
with a package but nothing changes. Thank you. Elio -Original Message- From: Michael Neale [mailto:[EMAIL PROTECTED] Sent: lunedì 10 aprile 2006 9.18 To: user@drools.codehaus.org Subject: Re: [drools-user] Cannot use custom facts in drools 2.5 can you paste important bits from your rule

Re: [drools-user] Problem DRL/DSL : OR between two rules

2006-04-10 Thread Michael Neale
practice. On 4/10/06, Michael Neale [EMAIL PROTECTED] wrote: you should be able to do it all on one line, similar to how you showed there. You will need to change the DSL for There exists a Person with name of {name} to be something like: There exists a Person with name of {name}. (with a dot

Re: [drools-user] Problem DSL/DRL : Link OR between two rules

2006-04-10 Thread Michael Neale
just make or map to or, and make sure all your {fields} are enclosed to the parser knows how to pluck our your data. Send some more examples if you need help. On 4/10/06, Unknown [EMAIL PROTECTED] wrote: Thank you for your help ! In my case, it's too complicated to create alternative mapping

Re: [drools-user] Problem DSL/DRL : link OR between two rules

2006-04-10 Thread Michael Neale
sorry are you saying it does work? Yes, at the moment, it will all have to be on one line to be processed like that. On 4/10/06, Unknown [EMAIL PROTECTED] wrote: I think I have found a solution... I have not create the or mapping in the DSL file but or is recognized when all rules are on

Re: [drools-user] Drools 3, object equality in assert

2006-04-10 Thread Michael Neale
much in both engines docu), leading to my question if I could customize drools behaviour. As one can always write a wrapper for drools assertObject to make such checks, and lots of other users probably dont need, my request is not important. Juergen Michael Neale wrote: so you mean p1

Re: [drools-user] 'end' in a rule specification

2006-04-10 Thread Michael Neale
' causes my rule never to fire. If I simply change the property name to 'end2' and modify the rule to reference 'end2', the rule fires as expected. -Mitch -Original Message- From: Michael Neale [mailto:[EMAIL PROTECTED] Sent: Saturday, April 08, 2006 2:37 AM To: user

Re: [drools-user] auto-complet dsl-drl in eclipse IDE

2006-04-10 Thread Michael Neale
Yes that is correct. The DSL mappings are cached the first time they are read. Mostly to keep it simple and light. However, there is probably a way in eclipse to detect a change and refresh it, but frankly I don't want to overload the IDE until it is battle proven with large numbers of rules in

Re: [drools-user] Drools 3, LHS exception handling

2006-04-10 Thread Michael Neale
yes Exceptions should not be thrown as part of normal processing as they can seriously effect perforamnce, but if it is unavoidable, use a function or wrap some objects to catch them. On 4/11/06, Mark Proctor [EMAIL PROTECTED] wrote: Not at the moment, as we consider the working memory to have

Re: [drools-user] need help ! Can the end user edit these conditional data ?

2006-04-11 Thread Michael Neale
something like decision tables may be closer to what you want, where the parameters in the rules can safely be edited. On 4/10/06, Anurag Kumar (anurkuma) [EMAIL PROTECTED] wrote: Hi, I am new to drools - engine. Please give inputs for my following issues. We are proposing DROOLs-

Re: [drools-user] Assert Null objects

2006-04-11 Thread Michael Neale
that rule doesn't quite make sense. you can set a null pointer to a new object in that way and have it do anything useful. explain a bit more what you are trying to do? On 4/11/06, Susan G Lee [EMAIL PROTECTED] wrote: Hi, I'm trying to genericize the use of the drl files. For example, I'm

Re: [drools-user] Too many exceptions...

2006-04-12 Thread Michael Neale
yes they have since been removed. On 4/11/06, Michael Frandsen [EMAIL PROTECTED] wrote: Hello, These printings are no exceptions. These are debug-Information of the Rule Engine, will be turned off in the next time. If your rules are executed like you wish, everything is fine. Greetings

Re: [drools-user] Drools 3, object equality in assert

2006-04-12 Thread Michael Neale
. Michael Neale wrote: what is your expectations on how it should work? (everyone has different ideas it seems !) On 4/10/06, Juergen [EMAIL PROTECTED] wrote: I mean workingMemory.assertObject(new String(A)); workingMemory.assertObject(new String(A)); would currently assert both

Re: [drools-user] Drools 3, return value expression binding possible?

2006-04-12 Thread Michael Neale
Assert the results of expensiveExpression() to the engine. Either from your code, or as a rule. Then the other rules can just depend on That object being in WM. On 4/11/06, Juergen [EMAIL PROTECTED] wrote: Is there some way to bind the result of a return value expression on LHS? e.g.: rule

Re: [drools-user] How to express conditional logic via DRL - ?

2006-04-12 Thread Michael Neale
I am sure you (in the meantime) can have a XorGroup object in WM, and revoke it when a rule fires. Then each rule just has when xor : XorGroup(name==foo) ... then ... retract(xor); end not quite the same, but can achieve similar in the meantime. I guess the trick is then when to put the xor back

Re: [drools-user] NullPointerException using builder.addPackagerFromDrl(source)

2006-04-13 Thread Michael Neale
] at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:115) 15:49:44,796 INFO [STDOUT] at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java :90) 15:49:44,796 INFO [STDOUT] at RuleAuthorization.readRule( RuleAuthorization.java:93) On 4/13/06, Michael Neale [EMAIL

Re: AW: [drools-user] IDE plugin for drools 3

2006-04-13 Thread Michael Neale
I think the fix from the latest one should make it work more widely in 3.2versions. 3.1, I don't know. Certainly some parts will not run, but perhaps the editor and wizards will, but probably not well. 3.2 final will be out in June. Our issues with M6 over M5 were not due to Eclipse APIs, but due

Re: [drools-user] NullPointerException using builder.addPackagerFromDrl(source)

2006-04-14 Thread Michael Neale
. The nullPointerException will only happen when there is no package declared in drl file. Maybe it is because the rules folder(drl and dsl files) already defined in configuration-file .classpath? thanks On 4/14/06, Michael Neale [EMAIL PROTECTED] wrote: I will add a check for a package name at the point at which

Re: [drools-user] DRL authoring with JAXB beans

2006-04-14 Thread Michael Neale
no it should work against any interface you can compile java code against. It just looks for any methods that take no parameters, and return something - interfaces and abstract is fine, as are multiple inherited interfaces. (can't remember what I fixed for RC2 specifically, though). Providing

Re: [drools-user] Drools 3, RHS special names, indirect assert

2006-04-14 Thread Michael Neale
to wrapping assert with code to check for equality. Michael Neale wrote: if there is enough demand for it, we may be able to make it some working memory wide configuration option - certainly. Submit a JIRA request if you like, may come in handy (certainly will for you

Re: [drools-user] RC2

2006-04-17 Thread Michael Neale
OK I thought this may cause an issue. As Yuesong said, it was handy to be able to spread conditions across lines (sentences in DSLs) as it made it more readable. Now when we do that, it won't work. So what do we do? Allow the identity cross product? In simple cases, yes it does make things

Re: [drools-user] PackageBuilder changes

2006-04-17 Thread Michael Neale
That particular error looks like JCI itself is missing, or you have an old one from RC1 possibly hanging around. On 4/17/06, Paul Smith [EMAIL PROTECTED] wrote: Hi guys, looks like RC2 has included a new class PackageBuilderConfiguration. With RC1 everything worked as expected when deployed

Re: [drools-user] PackageBuilder changes

2006-04-17 Thread Michael Neale
the correct stuff was getting built into the ear and the runtime classpaths were updated to the new RC2 jar file names. I'll double check it though. On 4/18/06, Michael Neale [EMAIL PROTECTED] wrote: That particular error looks like JCI itself is missing, or you have an old one from RC1 possibly

  1   2   3   >