[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

[rules-users] Can't upload model in BRMS

2007-09-11 Thread Drouin.Mathieu
I can't seem to upload a model into the BRMS. I also tried downloading and uploading the model in the insurance example and it failed. (I tried both the .war on tomcat 6.0.13 and the standalone version on tomcat 5.5.20). Can somebody help? Thanks, Mat _

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 teste

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 d

[rules-users] Can't access binary rules package in application

2007-09-11 Thread kissro
Using BRMS, I created a rule binary package and downloaded it and am trying to access it but I'm getting a NullPointerException. My code looks like this - public void main(Policy inputPolicy) throws Exception { RuleBase ruleBase = loadRuleBase(); StatefulSession session = ruleBase.newS

[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) throw

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

2007-09-11 Thread Edson Tirelli
Yes, This is a bug in the DSL engine. May I ask you please to open a JIRA? Thank you, Edson 2007/9/11, pentarious <[EMAIL PROTECTED]>: > > > Hi, > I'm using the following DSL: > [when]There are at least {N} objects in the domain=Number(intValue>={N}) > from accumulate ( i : Object

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] 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): Numb

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

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

2007-09-11 Thread DELBART Vincent
Hello Stephane, I think it's difficult to do that. Could you try this : There is a Cheese with - age is less than 42 or age is more than 60 - type is 'stilton' with in your DSL [condition][]There is a Cheese with=Cheese() [condition][]- age is less than {low} or age is more than {

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