Re: [rules-users] Ruleflow and persistence

2007-09-11 Thread vdelbart
It's true Kris Verlaenen. But the first set is strange, isn't it? thanks, Vincent -- View this message in context: http://www.nabble.com/Ruleflow-and-persistence-tf4415033.html#a12608948 Sent from the drools - user mailing list archive at Nabble.com.

[rules-users] Adding constraints to facts in DSL

2007-09-11 Thread stephane . remillieux
Hello, I'm using JBossDrools in my company and I have some problems with DSL. Actually, I would like to write something like this : There is a Cheese with ( - age is less than 42 or - age is more than 60 ) - type is 'stilton' Unfortunately, It's the drools parser which

[rules-users] probliem in using in and not in operator in drool file.

2007-09-11 Thread Gaurav2007
Hi All, I am using drool4.0.1 in my application, I have one map in global memory this map contains mapping of id and value,i want to validate these values. but when i am using in and not in rule like: eval(validatorMap.get(name) not in(amit,siddhartha)) where validatorMap is a map of id and

[rules-users] Using DSL and accumulate in Drools BRMS leads to unexpected results

2007-09-11 Thread pentarious
Hi, I'm using the following DSL: [when]There are at least {N} objects in the domain=Number(intValue={N}) from accumulate ( i : Object(), count( i ) ) [when]- category is {Category}=category== {Category} Using the above DSL from Drools BRMS leads to the following result (rule source code):

Re: [rules-users] probliem in using in and not in operator in drool file.

2007-09-11 Thread Edson Tirelli
Inside eval() you must use code in the chosen semantic dialect (either Java or MVEL). None of them have not in operator that is a DRL syntax sugar. So, you need to either properly write Java or MVEL code inside the eval, or use a regular DRL constraint. In this specific case, if you

[rules-users] HELP - Error when accessing RuleAgent

2007-09-11 Thread kissro
I've created the following rule in BRMS and deployed it - rule Underwriting Rule 1 dialect mvel when p : Policy( premium 50.00 ) then p.setStatus( 32 ); end I have the following code processing the rule - public void main(Policy inputPolicy) throws

RE: [rules-users] Adding constraints to facts in DSL

2007-09-11 Thread stephane . remillieux
Hi Vincent, Thanks for your answer but I would really like to use my synthax. I need to write or between 2 constraints and not in a single complex constraint. If someone else could help me ... DELBART Vincent [EMAIL PROTECTED] a écrit : Hello Stephane, I think it's difficult to do

Re: [rules-users] org.mvel.PropertyAccessException

2007-09-11 Thread Kris Verlaenen
Actions in RuleFlow are interpreted at runtime using MVEL. This error seems to indicate that there is a problem in the syntax of your MVEL expression. However, looking at your example, I do not see any problem, System.out.println(Your text here); as action property should work (I just tested

[rules-users] Eclipse validator error

2007-09-11 Thread Tim . Nguyen
Hi, I am using drool IDE 3.0.6 on eclipse and saw bunch of errors on Eclipse Problem/ validator. The .drl file compiled and worked fine. But eclipse validators might not like the drl syntax and throw errors. Here are some errors: - The import (class) cannot be resolved - (declaration) cannot be