[rules-users] Problem in using or operator with values in map.

2007-09-18 Thread Gaurav2007
Hi All, I am using drool 4.0.1,I am facing some problem in using or operator i am using 2 maps by inserting in to working memory: 1) ErrorMapString,String 2) validationmapString,Object my requirment is to generate error when rule fails for this i am taking following steps: 1) i insert one

Re: [rules-users] Date for 2 years ago

2007-09-18 Thread Dean Jones
Hello Brian, I've done something similar previously using a combination of a field binding constraint, an eval and the excellent joda-time API (http://joda-time.sourceforge.net/). If I remember right, you'd need something along the lines of : import org.joda.time.Duration; import

[rules-users] Problem to run

2007-09-18 Thread f203529
Hello! I’m new with Drools and I follow the documentation to install, but when I try to run the example Hello World its return an error: org.drools.RuntimeDroolsException: Unable to load dialect 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java' at

Re: [rules-users] Problem in using or operator with values in map.

2007-09-18 Thread Edson Tirelli
This seems a bug. May I ask you please to open a JIRA for it and attach a self contained test showing the problem? At the same time, I think there is a conceptual error in your rules: no object should be changed in the LHS of the rules. This will surely cause you problems in the future,

Re: [rules-users] Possible shadow proxy issue with JDK Dynamic proxies in 4.0.1?

2007-09-18 Thread Chris West
I'll be glad to test with the trunk. Do you have a snapshot build or do I have to build my own? It would be nice for your downloads area to contain a nightly snapshot build. -Chris On 9/17/07, Mark Proctor [EMAIL PROTECTED] wrote: Maybe some fixes broke this? can you test with trunk, and

Re: [rules-users] Possible shadow proxy issue with JDK Dynamic proxies in 4.0.1?

2007-09-18 Thread Edson Tirelli
Snapshot build: http://cruisecontrol.jboss.com/cc/artifacts/jboss-rules Thanks. 2007/9/18, Chris West [EMAIL PROTECTED]: I'll be glad to test with the trunk. Do you have a snapshot build or do I have to build my own? It would be nice for your downloads area to contain a nightly

[rules-users] Globals and Boolean object

2007-09-18 Thread vdelbart
Hi, My rule is : #created on: 29 août 2007 package example #list any import classes here. global Boolean test rule Your Third Rule #include attributes such as salience here... when then #actions test = true;

[rules-users] localhost issue with JBoss and Drools BRMS

2007-09-18 Thread Peter Docherty
I am having trouble with the BRMS running under JBoss in that the default for the JBoss app server is to run as localhost but when you change JBoss to use the actual hostname of the machine so that it can be accessed remotely, the repository can't be accessed any more. I know you can export the

Re: [rules-users] Possible shadow proxy issue with JDK Dynamic proxies in 4.0.1?

2007-09-18 Thread Chris West
I tested the SNAPSHOT, and the problem exists. So my tests indicate that the example attached to the JIRA runs properly on 4.0.0, does not work on 4.0.1, and does not work on the trunk SNAPSHOT. -Chris On 9/18/07, Chris West [EMAIL PROTECTED] wrote: Edson, Thanks for the snapshot build

Re: [rules-users] Globals and Boolean object

2007-09-18 Thread vdelbart
thanks, it's working. V. Mark Proctor wrote: java is pass by reference, so all you are doing is assigning the local test pointer to point to something else; which ofcourse won't be reflected in the global resolvers drools.getWorkingMemory.setGlobal(test, test); Mark vdelbart

[rules-users] Exception executing predicate

2007-09-18 Thread Krishnan
Hi all, When exceptions occur during runtime of drools, is there a list of things to see to understand what may be causing this to happen ? I know it is a very generic question. I want to see if there is a methodical way to understand what to look for ?. org.drools.RuntimeDroolsException:

[rules-users] how to perform some task when rule fails.

2007-09-18 Thread Gaurav2007
Hi All, My requirment is that i want to send corresponding error when any rule fails. for example: rule ValidationRuleExp_G250.4_0 when IValidationField(attributeId ==G250.4) (((Map( this[G250.18] !=4))(Map( this[G250.4]not in(910,990,983,995,996,997||((Map( this[G250.18] ==4))(Map(

Re: [rules-users] localhost issue with JBoss and Drools BRMS

2007-09-18 Thread Fernando Meyer
just enable the -Djboss.bind.address=0.0.0.0 property in your jboss config On 9/18/07, Peter Docherty [EMAIL PROTECTED] wrote: I am having trouble with the BRMS running under JBoss in that the default for the JBoss app server is to run as localhost but when you change JBoss to use the

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

2007-09-18 Thread Drouin.Mathieu
Has anyone managed to download the model from the insurance example in the BRMS? I'm using the standalone version on tomcat 5.5.20. Thanks, Mat -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Drouin.Mathieu Sent: September 11, 2007 11:52 AM To:

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

2007-09-18 Thread Drouin.Mathieu
Ok, found out the download didn't work because I was using IE 6...so I tried in firefox and it works... The upload still doesn't work though...getting the following exception... ERROR 18-09 13:01:48,014 (ApplicationContext.java:log:675) Exception while dispatching incoming RPC call

Re: [rules-users] Problem with memberOf and/or eval used in collect statement

2007-09-18 Thread Edson Tirelli
Chris, Thanks for reporting this. I fixed a bug in 4.0.0 (released in 4.0.1) that causes you to see the correct value for TestEval1 in 4.0.1 and later versions. Although, at that time I missed the memberOf scenario. I know why it happens (shadow fact related), but now I need to

Re: [rules-users] how to perform some task when rule fails.

2007-09-18 Thread Edson Tirelli
Hi, First, it would be better if you can use the constraints inside the same pattern, avoiding subrule generation, instead of using multiple patterns: Map( this[G250.18] !=4 this[G250.4] not in(910,990,983,995, 996,997) || this[G250.18] ==4 this[G250.4] in

Re: [rules-users] Exception executing predicate

2007-09-18 Thread Edson Tirelli
Krushnan, Isn't there a cause by down the stack trace? Current code for raising the exception is: try { return this.expression.evaluate( object, null, this.previousDeclarations,

Re: [rules-users] Exception executing predicate

2007-09-18 Thread Krishnan
Hi, Thanks for your help as always. I did look at it a little more closer. The caused error is as follows :- INFO | jvm 1 | 2007/09/14 16:46:33 | Caused by: java.lang.NullPointerException INFO | jvm 1 | 2007/09/14 16:46:33 | at

Re: [rules-users] Exception executing predicate

2007-09-18 Thread Edson Tirelli
Krishnan, By the line: INFO | jvm 1 | 2007/09/14 16:46:33 | at com.makesys.fs.is.dnpiac.vendorBehaviour.snmp.Rule_Cisco_Systems_0.returnValue0 (Rule_Cisco_Systems_0.java:14) We can decipher the trace :) and know that the NPE is raised in the rule Rule Cisco Systems, in the first return

Re: [rules-users] Problem with memberOf and/or eval used in collect statement

2007-09-18 Thread Chris West
http://jira.jboss.com/jira/browse/JBRULES-1204 On 9/18/07, Edson Tirelli [EMAIL PROTECTED] wrote: Chris, Thanks for reporting this. I fixed a bug in 4.0.0 (released in 4.0.1) that causes you to see the correct value for TestEval1 in 4.0.1 and later versions. Although, at that

Re: [rules-users] Problem with memberOf and/or eval used in collect statement

2007-09-18 Thread Edson Tirelli
Chris, Do you really need to collect all these facts? Are you doing anything with these lists? It would be easier if you can show me the full rule, but seems to me that maybe you can avoid some or all of these collects. Remember that collect is a heavy CE, so it is always good to avoid

Re: [rules-users] Problem with memberOf and/or eval used in collect statement

2007-09-18 Thread Chris West
The fix for 1115 and fix for 1204 you're working will not help me unless 1203 is fixed, because all versions of code after 4.0.0 are affected by 1203, and it is a showstopper for me since I use JDK dynamic proxies as facts. -Chris On 9/18/07, Edson Tirelli [EMAIL PROTECTED] wrote: Chris,

Re: [rules-users] Problem with memberOf and/or eval used in collect statement

2007-09-18 Thread Edson Tirelli
Chris, Ok, 1203 is in the pipeline too... []s Edson 2007/9/18, Chris West [EMAIL PROTECTED]: The fix for 1115 and fix for 1204 you're working will not help me unless 1203 is fixed, because all versions of code after 4.0.0 are affected by 1203, and it is a showstopper for me