Re: [rules-users] Validation flow - defer expression evaluation

2011-10-25 Thread peters
putting $var: user.?manager.name to avoid nullpointer in the business rule defeats the purpose of a sanity check upfront, as execution should fail if the relation is empty. Nullpointers are not an elegant way to fail, and the stack trace gives no clue in which rule the error occurred. I was

[rules-users] Rule, import with wildcards and variable / patternBinding

2011-10-25 Thread Per Sterner
Hello, Yesterday I wanted to upgrade my drools version to 5.3 (from 5.1). I got the exception java.lang.NoClassDefFoundError: de/pelle7/testpackage/event/myEvent (wrong name: de/pelle7/testpackage/event/MyEvent) while adding my resources. I removed the import wildcards and the error

Re: [rules-users] 5.3.0.Final resource change scanner bug

2011-10-25 Thread Jiri Svitak
This has been already reported: https://bugzilla.redhat.com/show_bug.cgi?id=741219 https://bugzilla.redhat.com/show_bug.cgi?id=741287 This happens for Guvnor's PKG, XLS, DRF and I guess CSV too. You'll find test cases there. Jiri Svitak On 10/25/2011 12:07 AM, Michael Anstis wrote: Thanks

Re: [rules-users] Validation flow - defer expression evaluation

2011-10-25 Thread peters
Hi, I have added a subprocess to the flow, but the exception still occurs: Caused by: [Error: null pointer or function not found: getName] [Near : {... manager.getName().equals(tes }] Would anyone have suggestions or know about best practices for handling this kind of scenario? Thanks --

Re: [rules-users] Why this rule fires immediately ?

2011-10-25 Thread eskomk
Hi W et al., I came up with a following solution. One reason why I came up with this kind of solution is that it is not firing every time when there comes a temperature reading (ZZZBean) in the system (working memory). Would you comment if this solution is viable and if there are any pitfalls ?

[rules-users] [planner][5.3.0.Final] Benchmark

2011-10-25 Thread Guilherme Kunigami
I'm trying to upgrade from drools 5.2.0 to 5.3.0 and having some difficulties with the planner benchmark. I'd like to make a set of move factories common to all local search solvers, by adding them to inheritedSolverBenchmark block. But it seems that the localSearch environment always requires a

Re: [rules-users] Rule, import with wildcards and variable / patternBinding

2011-10-25 Thread Edson Tirelli
Per, This looks like a bug. Can you please open a JIRA for it with the information on this e-mail? Thank you, Edson 2011/10/25 Per Sterner pelle...@yahoo.de Hello, Yesterday I wanted to upgrade my drools version to 5.3 (from 5.1). I got the exception

Re: [rules-users] WorkingMemoryLogger + statelessSessions = memory leak?

2011-10-25 Thread Swindells, Thomas
Anybody? From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Swindells, Thomas Sent: 21 October 2011 14:49 To: Rules Users List (rules-users@lists.jboss.org) Subject: [rules-users] WorkingMemoryLogger + statelessSessions = memory leak? Hi

[rules-users] [drools planner 5.3.0 Final] cached planning values

2011-10-25 Thread guyver
I get the following exception when i try to solve and don't know if i didn't set something properly on my side or if there is a bug in the planner. After debugging, seems like cachedPlanningValues in PlanningValueCreator is being created as an empty collection and when PlanningValueWalker gets

[rules-users] Drools 5.3.0 Dependencies

2011-10-25 Thread arrehman
Hi, I was using drools 5.2.0 in my grails 2.0.0.M2 application. I use Drools expert to execute a .drl file I have. The three dependencies that I have set up for this to work was: runtime 'org.drools:drools-core:5.2.0.Final' runtime 'org.drools:drools-compiler:5.2.0.Final'

Re: [rules-users] Drools 5.3.0 Dependencies

2011-10-25 Thread Michael Anstis
I assume you replaced both drools-core and drools-compiler with those for 5.3? Furthermore, you should endeavour to use knowledge-api which contains the public API. Can you isolate the rules from grail, to understand if it is an integration issue too? On 25 October 2011 20:04, arrehman

Re: [rules-users] Drools 5.3.0 Dependencies

2011-10-25 Thread arrehman
Hi manstis, I will look into incorporating knowledge-api jar and try. Thanks. Anywhere these dependencies are documented clearly? The issue is clearly drools related, i have isolated this already in another git branch meant only for drools upgrade. Abdul -- View this message in context:

Re: [rules-users] Drools 5.3.0 Dependencies

2011-10-25 Thread arrehman
I have included knowledge-api.jar thats not working -- View this message in context: http://drools.46999.n3.nabble.com/Drools-5-3-0-Dependencies-tp3452346p3452445.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___

Re: [rules-users] Drools 5.3.0 Dependencies

2011-10-25 Thread arrehman
Yes locally in machine just to make sure i have only drools upgrade happening. My issues are because of this upgrade guaranteed. The error message drools is giving me is misleading: service.RulesService Error executing drools rules Unexpected global [dateService] No stacktrace, nothing :o Abdul

Re: [rules-users] Drools 5.3.0 Dependencies

2011-10-25 Thread Michael Anstis
I think you are going to need to provide some code and rule definitions to help solve your problem. sent on the move On 25 Oct 2011 21:22, arrehman arrehma...@yahoo.com wrote: Yes locally in machine just to make sure i have only drools upgrade happening. My issues are because of this upgrade

[rules-users] Advice on varying rule behavior based on object tested?

2011-10-25 Thread zstlaw
Each item I am testing MAY have overridden the default thresholds or disable the rule entirely. I would prefer to have this data related to the item I am testing rather than have each rule manage customized behavior for thousands of different types of objects. The object could have a map of

Re: [rules-users] Advice on varying rule behavior based on object tested?

2011-10-25 Thread Edson Tirelli
Zack, The use of rule names as part of your logic (LHS) is a bad practice (as you noticed already) for many reasons. I discussed this yesterday during my presentation at the Rules Fest... I will make the presentation available later this week. I think the problem is that you are mixing