[rules-users] RE:Problem Using Update

2007-11-26 Thread Sikkandar Nawabjan
Hi, I have rule like this rule Update Id dialect mvel salience 10 no-loop true when $add:Address(name==india) then $add.setId(100); update($add) end am getting the error org.drools.FactException: Update error: handle not found for object and Address mailto:[EMAIL

Re: [rules-users] BRMS Insurance Sample - Invalid Class Exception

2007-11-26 Thread Waruzjan Shahbazian
I am having the same problem. Has anyone got this working? I have tried using mvel version 1.2.8 and 1.2.10 in the classpath of drools-insurance ( where the jUnit tests are ) and by both the serialVersionUID is different. So can anyone tell me which version of mvel is needed to get this

[rules-users] Problem with class Variable

2007-11-26 Thread Mehdi
hi, I have a class Customer.java with class variable allTradeAmounts and I have two rules as follows: rule rule 1 when $c : Customer(); then $c.setAllTradeAmounts($c.getAllTradeAmounts().add(1000)); System.out.println(after modify:

Re: [rules-users] drools-ant task and decision tables

2007-11-26 Thread Fernando Meyer
Hi Matija, Drools ant doesn't support xls files yet, just brl, xml, rfm and dslr, could you please open a ticket in jira and point that to me? regards On 11/23/07, Matija [EMAIL PROTECTED] wrote: Hi, does the drools-ant task know how to compile (.xls) decision tables, or does it only compile

Re: [rules-users] RE:Problem Using Update

2007-11-26 Thread Mark Proctor
Sikkandar Nawabjan wrote: Hi, I have rule like this rule Update Id dialect mvel salience 10 no-loop true when $add:Address(name==india) then $add.setId(100); update($add) end That should work, its a fairly trivial use case, so I'm very surprised it doesn't If you

Re: [rules-users] Problem with class Variable

2007-11-26 Thread Mark Proctor
Mehdi wrote: hi, I have a class Customer.java with class variable allTradeAmounts and I have two rules as follows: rule rule 1 when $c : Customer(); then $c.setAllTradeAmounts($c.getAllTradeAmounts().add(1000)); System.out.println(after modify:

Re: [rules-users] Problem with class Variable

2007-11-26 Thread Mark Proctor
We are thinking of extending the java dialect with a modify command that works like the mvel one; this would negate the need to use a separate modify statement. Just a matter of getting time to do it :( Mark ekke wrote: mehdi, the rules engine has to know that your fact changed, you can use

[rules-users] Comparing two object values

2007-11-26 Thread Saleem Lakhani
Hi, How do I compare attributes of two different objects. E.g; Object1.getEffectiveDate() Object2.getCompletionDate() In drools 3.0. I am using DSL. Thanks, Saleem ___ rules-users mailing list rules-users@lists.jboss.org

Re: [rules-users] Comparing two object values

2007-11-26 Thread Krishnan Sivaramakrishna Iyer
Use Eval -Krishnan Saleem Lakhani wrote: Hi, How do I compare attributes of two different objects. E.g; Object1.getEffectiveDate() Object2.getCompletionDate() In drools 3.0. I am using DSL. Thanks, Saleem

Re: [rules-users] Comparing two object values

2007-11-26 Thread Mark Proctor
Saleem Lakhani wrote: Hi, How do I compare attributes of two different objects. E.g; Object1.getEffectiveDate() Object2.getCompletionDate() Object1( $ed : effectiveDate) Object2( completionDate effectiveDate) Then just replace those two patterns with a dsl mapping. In

Re: [rules-users] Re: Drools and BRMS (60,000+ rules)

2007-11-26 Thread Michael Neale
Hi Len. Yes the main challenges I see are to do with the sheer numbers of rules you see yourself happening, and how to manage that in any sort of BRMS. ie are there 100's of packages, or a few uber packages etc. How do you break it up so its manageable? etc... even simple things, like if there is

[rules-users] RE:update is not working properly

2007-11-26 Thread Sikkandar Nawabjan
Hi, This exception is not throwing very often. Occasionally i got this FactException . Is it because of another rule/Fact? i have the following rule also rule check created error dialect mvel salience 10 no-loop true when $add:Address(continent==asia) then retract(