[rules-users] Use only first matching rule

2007-10-29 Thread nechukin
Hi, I'm looking into the Drools engine for our application, and looks like it's satisfies the reqirements. The only thing I haven't found still is a following conflict management model: If rule_1 (with highest salience) is applicable, STOP applying another rules. So the essence is that only 1

Re: [rules-users] Initialize Global

2007-10-29 Thread Kris Verlaenen
That initialized my global but the rule still runs every execution. Can I disable the rule after the first execution? What do you mean by "every execution". A rule should only be executed once, unless it gets reactivated (which should not be the case in this situation). I would like to use (i

Re: [rules-users] equality-based assert behavior and findFactHandle

2007-10-29 Thread Edson Tirelli
Thanks. Marked it as released. 2007/10/29, Adam Lewandowski <[EMAIL PROTECTED]>: > > Done. JIRA-1308 (http://jira.jboss.com/jira/browse/JBRULES-1308). > > BTW, version 4.0.3 showed up under 'Unreleased Versions' > > Edson Tirelli wrote: > > > > Adam, > > > > Yes, you are right. I'm not

Re: [rules-users] equality-based assert behavior and findFactHandle

2007-10-29 Thread Adam Lewandowski
Done. JIRA-1308 (http://jira.jboss.com/jira/browse/JBRULES-1308). BTW, version 4.0.3 showed up under 'Unreleased Versions' Edson Tirelli wrote: Adam, Yes, you are right. I'm not sure why it uses the identity map instead of assert map, but maybe we should change that or at least prov

Re: [rules-users] Parameterized Queries?

2007-10-29 Thread Ronald R. DiFrango
Great Thanks Edson! I will look into it, my problem @ this point is we are 1 week or so out from production so switching out the libraries at this point is risky. On 10/29/07, Edson Tirelli <[EMAIL PROTECTED]> wrote: > > > Ronald > > I think it was available before, but we fixed some impo

Re: [rules-users] equality-based assert behavior and findFactHandle

2007-10-29 Thread Edson Tirelli
Adam, Yes, you are right. I'm not sure why it uses the identity map instead of assert map, but maybe we should change that or at least providing an alternative method for that. May I ask you please to open a JIRA for it? Mark, are you ok with changing the behavior? []s Edson

Re: [rules-users] Is Remote Debugging Supported?

2007-10-29 Thread Mark Proctor
Drools Questions wrote: Hi all, it looks like the only mode supported for rules debugging by the Eclipse plugin is "Drools Application". If my understanding is correct, are there any plans to support debugging "in situ" - i.e. attaching Eclipse to an already running application (server) - like

Re: [rules-users] Using java.util.List in rules

2007-10-29 Thread Edson Tirelli
Anderson, What is the error? Can you provide a self contained example? Using the "from CE" as showed before works. BTW, are you Brazilian? Your name sounds like a Brazilian name. []s Edson 2007/10/27, Anderson Pazza Mello <[EMAIL PROTECTED]>: > > How can I test all ele

[rules-users] Is Remote Debugging Supported?

2007-10-29 Thread Drools Questions
Hi all, it looks like the only mode supported for rules debugging by the Eclipse plugin is "Drools Application". If my understanding is correct, are there any plans to support debugging "in situ" - i.e. attaching Eclipse to an already running application (server) - like Java debuggers can? Thank

[rules-users] equality-based assert behavior and findFactHandle

2007-10-29 Thread Adam Lewandowski
If I set my rule base to use equality-based assert behavior, I'm expecting to be able to use the getFactHandle(object) method to retrieve a previously asserted fact by providing an equivalent (by equals() and hashCode()) object as an argument. This appears to not be the case, as AbstractWorking

Re: [rules-users] Matching time diff

2007-10-29 Thread Edson Tirelli
Miguel, You must be careful with the concept of "current date" when writing rules in RETE: remember that RETE works in 2 stages: 1. at "insert" time, all the rule constraints are evaluated. 2. at "fire" time, the active rules are simply executed. Also, note that using non-time consta

Re: [rules-users] Initialize Global

2007-10-29 Thread java_user_
Thanks. That initialized my global but the rule still runs every execution. Can I disable the rule after the first execution? I would like to use (if (objectList==null)). My list is not immutable. Can I make a similar rule for the LHS? Kris Verlaenen wrote: > > You can create a rule tha

Re: [rules-users] Parameterized Queries?

2007-10-29 Thread Edson Tirelli
Ronald I think it was available before, but we fixed some important bugs on this and other areas in the minor releases, so I really advise you to use 4.0.3. []s Edson 2007/10/29, Ronald R. DiFrango <[EMAIL PROTECTED]>: > > All, > > I saw this and this is exactly what I am lookin

Re: [rules-users] Parameterized Queries?

2007-10-29 Thread Ronald R. DiFrango
All, I saw this and this is exactly what I am looking for. I wanted to confirm though, that is this ability for "Parameterized Queries" only available in 4.0.2 and above or is it available in 4.0.0? Thanks, Ron On 9/5/07, Robert Crawford <[EMAIL PROTECTED]> wrote: > > > On Sep 5, 2007, at 2:19