Re: [rules-users] Facing problem in ResourceChangeScanner

2012-03-26 Thread Saurabh
knowledgeBase is updated buy DefaultKnowledgeAgentEventListener , but it is not impacting the knowledgeSession. May i need to update knowledgesession manually or defaultListener does itslelf. Thanks, Saurabh -- View this message in context: http://drools.46999.n3.nabble.com/Facing-proble

Re: [rules-users] Facing problem in ResourceChangeScanner

2012-03-26 Thread Saurabh
Hi Jiri Svitak, My changeSet.xml contents are: http://drools.org/drools-5.0/change-set"; xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"; xs:schemaLocation="http://drools.org/drools-5.0/change-set http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/

Re: [rules-users] [rules user] different behavior on double type

2012-03-26 Thread Mark Proctor
On 27/03/2012 03:01, Zeke wrote: Whether the comparison is precarious or not should depend on how you handle the literal. If you handle 99.9 as BigDecimal("99.9") which precision can be controlled, you can trust the comparison. Anyway, since it has different behavior for these two cases, it sh

Re: [rules-users] [rules user] different behavior on double type

2012-03-26 Thread Zeke
Whether the comparison is precarious or not should depend on how you handle the literal. If you handle 99.9 as BigDecimal("99.9") which precision can be controlled, you can trust the comparison. Anyway, since it has different behavior for these two cases, it should be a bug, right? I just want to

[rules-users] No matching property definition found after migration

2012-03-26 Thread mrben
Hi, Just migrated from Guvnor 5.1.1 to Guvnor 5.3.0 on Tomcat 6.0.29. Everything went fine, except when I logint to my account I get this error message: 400 javax.jcr.nodetype.ConstraintViolationException: no matching property definition found for {http://www.jboss.org/drools-repository/1.0}works

[rules-users] MVEL interpretation

2012-03-26 Thread Mike Melton
My team is using Drools on a government project. As is usually the case with government projects, the security folks have their hands in every aspect of the project. They have big questions on MVEL, but I'm going to try to boil them down to one simple question: At what stage(s) of Drools's lifecyc

Re: [rules-users] Complexity Conflict Resolver not working as expected

2012-03-26 Thread Wolfgang Laun
Two other ways to achieve what's wanted: (1) Retract the fact on the RHS of the matching rule. (2) Add a boolean attribute a to the fact, add a constraint a == false and modify the fact on the RHS of the matching rule, setting a to true. -W On 26 March 2012 15:58, FrankVhh wrote: > Hi, > > To

Re: [rules-users] NullPointerException when load file rules

2012-03-26 Thread Mauricio Salatino
So, probably there is something related on how those resources are loaded or how the jar files are scanned when they are loaded. This doesn't means that drools doesn't work.. probably is a bug and you should report it if you can create an isolated test with the error inside Jira. Cheers 2012/3/26

Re: [rules-users] NullPointerException when load file rules

2012-03-26 Thread elMateo
With Java 7, when I run a bundle with Drools (in Apache Felix), I get this exception: *org.drools.RuntimeDroolsException: Unable to load dialect* * 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java:org.drools.rule.builder.dialect.java.JavaDialectConfiguration' * I had this probl

Re: [rules-users] NullPointerException when load file rules

2012-03-26 Thread Mauricio Salatino
What do you mean with "doesn't work well"? which problem are you experiencing? 2012/3/26 elMateo > Hi all, > > the problem is that Drools doesn't work well with Java 1.7.0 > > On Mon, Mar 26, 2012 at 2:21 PM, jjmartinez wrote: > >> Hello all, >> >> I have, again, this exception: >> >> org.drool

Re: [rules-users] NullPointerException when load file rules

2012-03-26 Thread elMateo
Hi all, the problem is that Drools doesn't work well with Java 1.7.0 On Mon, Mar 26, 2012 at 2:21 PM, jjmartinez wrote: > Hello all, > > I have, again, this exception: > > org.drools.RuntimeDroolsException: Unable to load dialect > 'org.drools.rule.build > > er.dialect.java.JavaDialectConfigura

Re: [rules-users] Complexity Conflict Resolver not working as expected

2012-03-26 Thread FrankVhh
Hi, To my knowledge, conflict resolvers are only used to determine priority of rule activations. It does not prevent rules from firing. You should be able to get the behavior you want by adding activation-groups. In an activation group, only one rule can fire. See documentation. Regards, Frank

Re: [rules-users] NullPointerException when load file rules

2012-03-26 Thread jjmartinez
Hello all, I have, again, this exception: org.drools.RuntimeDroolsException: Unable to load dialect 'org.drools.rule.build er.dialect.java.JavaDialectConfiguration:java:org.drools.rule.builder.dialect.ja va.JavaDialectConfiguration' but I have a file in META-INFcalled drools.packagebuilder.conf

Re: [rules-users] [rules user] different behavior on double type

2012-03-26 Thread Wolfgang Laun
4.0.7 is rather old. 5.1.1 and later do not exhibit this behaviour. However, it should be noted that comparing double values using == is a precarious approach. For instance, 99.9 (the mathematical number) cannot be represented as a double machine number. Hence, you do not truly test for equality w

Re: [rules-users] Guvnor "Repository Configuration" not available under "Administration"

2012-03-26 Thread devan.vanree...@gmail.com
I was using an incorrect version of Guvnor, thanks for your help. -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-Repository-Configuration-not-available-under-Administration-tp3851863p3857750.html Sent from the Drools: User forum mailing list archive at Nabble.com. _

[rules-users] [rules user] different behavior on double type

2012-03-26 Thread Zeke
Hi, guys: I am using Drools 4.0.7. I find a strange behavior. When my LHS is "Message( varDouble == 99.9 )" and "varDouble" equals "new Double(99.9)", the condition is true. But when my LHS is "Message( types.doubleType == 99.9 )" and the "doubleType" field is also equal to "new Double(99.9)", th