[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 retrac

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

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 droo

RE: [rules-users] Comparing two object values

2007-11-26 Thread Saleem Lakhani
Eval. Is there any other way ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Krishnan Sivaramakrishna Iyer Sent: Monday, November 26, 2007 4:14 PM To: Rules Users List Subject: Re: [rules-users] Comparing two object values Use Eval -Krishnan Sal

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 --

[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 https://

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 P

Re: [rules-users] Problem with class Variable

2007-11-26 Thread ekke
mehdi, the rules engine has to know that your fact changed, you can use PropertyChangeSupport take a look at the documentation 2.5.4.4. Update 2.5.4.7. Property Change Listener 6.5.3. The Right Hand Side (then) regards ekke Mehdi-6 wrote: > > hi, > > I have a class Customer.java with class va

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] 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 I

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 com

[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: "+$c.getAl

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 working

[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

[rules-users] RE: rules-users Digest, Vol 12, Issue 67

2007-11-26 Thread prateek.katiyar
resence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com -- next part -- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20071126/5e1cf78b/attachment-0

Re: [rules-users] problem in removing rule from rulebase

2007-11-26 Thread Mark Proctor
http://labs.jboss.com/auth/drools/lists.html see 2 and 6 [EMAIL PROTECTED] wrote: Hello all I am using Drools 4.0.3 I want to remove rules from a *InvalidRulePackage *during the run time of the java program. For this I am using *removeRule(String packageName, String ruleName) *method in my

Re: [rules-users] How to link packages in rulebase

2007-11-26 Thread Mark Proctor
[EMAIL PROTECTED] wrote: Hello all I am using Drools 4.0.3 I have two packages in my rulebase.In one package I am keeping all the functions related to my application and in another package I am deploying some rules for a specific module using front end in my application. Now I want to use f