RE: [rules-users] Problem with class Variable

2007-11-27 Thread DELBART Vincent
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

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

2007-11-27 Thread Matija
Should I open a task for decision table support, or for the error that I get? Or both? ;) Regards, M. On 26/11/2007, Fernando Meyer [EMAIL PROTECTED] wrote: 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

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

2007-11-27 Thread Mark Proctor
feature request. Matija wrote: Should I open a task for decision table support, or for the error that I get? Or both? ;) Regards, M. On 26/11/2007, Fernando Meyer [EMAIL PROTECTED] wrote: Hi Matija, Drools ant doesn't support xls files yet, just brl, xml, rfm and dslr, could you please

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

2007-11-27 Thread Waruzjan Shahbazian
I found the solution, the mvel in drools-jbrms library is indeed mvel14-1.2.10.jar, but probably the compilation of the model wasn't done with that version in the classpath? Anyway, you need to compile the package org.acme.insurance.base in a .jar file and upload it as the model in the BRMS

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

2007-11-27 Thread Matija
Done: http://jira.jboss.com/jira/browse/JBRULES-1350 Regards, M. On 27/11/2007, Mark Proctor [EMAIL PROTECTED] wrote: feature request. Matija wrote: Should I open a task for decision table support, or for the error that I get? Or both? ;) Regards, M. On 26/11/2007, Fernando

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

2007-11-27 Thread Darko IVANCAN
Hi, some simple questions: a) Is the Object included in the include statement ? b) Is the Object inserted into the Working Memory ? Do you have sample code, to show/reproduce the error ? The mentioned JUnit Test should do the job. thanks, Darko Ivancan On 26/11/2007 17:08, Mark Proctor

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

2007-11-27 Thread Darko IVANCAN
Well rules are executed in an atomic manner, thanks to the agenda. So, either rule A (retract) or rule B (update) will be executed first. Both retract and update will trigger a re-evaluation of the facts, thus other rules will become valid/invalid. Normally this should not lead to an error, as

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

2007-11-27 Thread Sikkandar Nawabjan
Hi, a) Is the Object included in the include statement ? b) Is the Object inserted into the Working Memory ? I beleive If the object is not imported and not asserted in the working memory the rule may not activated. The problem for me occurred in the then part. what i narrate is simple

[rules-users] Re: Best way to detect duplicate rule names?

2007-11-27 Thread Jared Davis
Mark Proctor mproctor at codehaus.org writes: At the moment no, we could expose a handler/even that allows the user to add additional behaviour. For now your best way of doing this is to augment the PackageBuilder with AOP. snip Mark, Thank you for your help with my questions. We have

RE: [rules-users] Rule firing problem - must be missing somethingobvious

2007-11-27 Thread Anstis, Michael (M.)
You are not telling the rule engine that GlucoseDecisionState has been updated. You might also like to think about how the GlucoseDecisionState and GlucoseDecision are related. If you have multiple instances of either class the rules' behaviour might be unexpected (your RHS's suggest the two are

[rules-users] Globals in LHS of a rule?

2007-11-27 Thread Michael Zimmermann
Hi there, according to the online documentation globals are supported in the LHS of a rule, yet requires a bit of care to use there. But how do I use globals in the LHS? Is there any option to access a globals variable directly like: globals List myList rule SomeRule when myList.size() == 2

Re: [rules-users] Globals in LHS of a rule?

2007-11-27 Thread Darko IVANCAN
Try this: Global java.util.List myList rule SomeOtherRule when myList(size==2); then ... end Doe not seem to be a global problem, but rather a syntax issue. hope this helps, Darko Ivancan On 27/11/2007 14:40, Michael Zimmermann wrote: Hi there, according to the online documentation

Re: [rules-users] Globals in LHS of a rule?

2007-11-27 Thread Michael Zimmermann
Hi Darko, Global java.util.List myList rule SomeOtherRule when myList(size==2); then ... end Sorry, won't work. Unable to resolve object type 'diameters'. What works though is: rule abc when eval (diameters.size() == 2) then ... end cu, Michael

Re: [rules-users] Globals in LHS of a rule?

2007-11-27 Thread Darko IVANCAN
Hmm, Right. Size is not a property (getSize), thus (size==2) does not work. I'm not sure,but myList(size()==2) could work though. Does it ? darko On 27/11/2007 15:09, Michael Zimmermann wrote: Hi Darko, Global java.util.List myList rule SomeOtherRule when myList(size==2);

Re: [rules-users] Globals in LHS of a rule?

2007-11-27 Thread Michael Zimmermann
Darko IVANCAN wrote: I'm not sure,but myList(size()==2) could work though. Does it ? No, doesn't work. My interpreation so far: a) globals are only possible in eval() statements b) access to methods of global variables are not supported. and possibly c) only properties of globals can be

[rules-users] inserting fact in subflow, availability to other flows?

2007-11-27 Thread Eric Miles
I have a main flow that calls a subflow. In this subflow, I am inserting a fact. In a rule in the main flow, it can not find this fact in working memory. Is it possible to insert a fact in a subflow and have it available to a parent flow? Thanks! ___

Re: [rules-users] inserting fact in subflow, availability to other flows?

2007-11-27 Thread Eric Miles
Nevermind, I figured out my problem. It had more to do with the type of join I was doing rather than flow/subflow. Thanks anyways. On Tue, 2007-11-27 at 12:02 -0500, Eric Miles wrote: I have a main flow that calls a subflow. In this subflow, I am inserting a fact. In a rule in the main flow,

Re: [rules-users] Globals in LHS of a rule?

2007-11-27 Thread Mark Proctor
Michael Zimmermann wrote: Darko IVANCAN wrote: I'm not sure,but myList(size()==2) could work though. Does it ? No, doesn't work. My interpreation so far: a) globals are only possible in eval() statements they are valid in evals, inlined evals(previous called predicates),

Re: [rules-users] Globals in LHS of a rule?

2007-11-27 Thread Mark Proctor
Michael Zimmermann wrote: Darko IVANCAN wrote: I'm not sure,but myList(size()==2) could work though. Does it ? No, doesn't work. My interpreation so far: a) globals are only possible in eval() statements b) access to methods of global variables are not supported. and possibly c)

Re: [rules-users] Globals in LHS of a rule?

2007-11-27 Thread Darko IVANCAN
Hi, In fact I had the same idea when java.util.List(size()==2) from myList; then ... But I didn't believe it'll be needed. Thanks for the confirmation, Darko Ivancan On 27/11/2007 17:20, Mark Proctor wrote: Darko IVANCAN wrote: Hmm, Right. Size is not a property (getSize), thus (size==2)

Re: [rules-users] inserting fact in subflow, availability to other flows?

2007-11-27 Thread Mark Proctor
Eric Miles wrote: Nevermind, I figured out my problem. It had more to do with the type of join I was doing rather than flow/subflow. yes its all one working memory, no difference. Thanks anyways. On Tue, 2007-11-27 at 12:02 -0500, Eric Miles wrote: I have a main flow that calls a

[rules-users] JBRMS persistence

2007-11-27 Thread Michael Rhoden
Couple questions about the JBRMS persistence layer. I have been trying to figure out how to upgrade and incorporate the new 4.03 code into my current app using 2.x and 3.x drools. After many months of off and on playing with 4.x I want to see if I have some things straight. 1) JBRMS is