[rules-users] Null Pointer Exception : org.mvel2.ast.Negation.getReducedValueAccelerated(PredicateConstraint.java:298)

2011-12-28 Thread Ronald Albury
MVEL appeared to be null pointer protected when it evaluated our rules ... at least until it got to a Boolean attribute. In every other instance when an value is null Drools skips over the rule ... however, I get the null pointer exception listed above when Drools goes to execute this rule and

[rules-users] Problems with Domain Specific Language in eclipse

2011-12-12 Thread Ronald Albury
I am just trying to learn DSL and have immediately run into issues. I have a simple DSL in the file named XEasyApp.dsl : *[condition][]{value} is an invalid Boolean={value} not in(T,t,1,F,f,0)* and then a simple DSLR in the file named Test.dslr: *package com.onfs.easyapp.rules import

Re: [rules-users] Guvnor Versioning - eclipse plug-in

2011-12-05 Thread Ronald Albury
I found a way to get Guvnor to make Version 3 the active version. I shut-down and restart Tomcat. Surely this can't be the 'standard' way ... and it makes me think that I've tripped over a bug hiding in there somewhere. Thoughts? ___ rules-users

[rules-users] Web client-side rule testing - best practices

2011-12-05 Thread Ronald Albury
I have always thought of Drools-like systems being server-side engines - and we have many server-side-only uses for rules. However, for a good user experience you should do checking as close to data entry as possible, and there is a subset of our server rules that are redundant with the rules

[rules-users] Guvnor Versioning - eclipse plug-in

2011-12-02 Thread Ronald Albury
JBoss Developer Studio 4.1.1.GA Guvnor 5.2.0.Final Tomcat 7.0.23 Guvnor: Created categories and packages. Imported Pojo jar file Eclipse: Created drl rules. Added to Guvnor via plug-in Guvnor: Confirmed drl rules showed up. Everything validated and verified Eclipse: Modified drl rule.

Re: [rules-users] Guvnor hates me

2011-12-01 Thread Ronald Albury
Guvnor hated me at home on Linux. I had to install/config everything again at work - only on Windows-7 Things are behaving much differently here at work ... in a good way I will wipe and reinstall at home and see if it all gets better there Thanks for your help and for your patience. Ron

Re: [rules-users] Retrieving rule name

2011-11-29 Thread Ronald Albury
Davide Thanks - you hit the nail on the head. Ron ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Guvnor hates me

2011-11-28 Thread Ronald Albury
Thanks Michael ... you've been very helpful. Yes, I am considering helping out on the documentation (my undergrad is in Instructional Technology) ... if I can ever figure out how all of this works. I have also read thru some of the 3rd party books on the subject, and I find them quite lacking

[rules-users] Unclear error when rule name missing

2011-11-28 Thread Ronald Albury
I guess I need to learn how to submit bugs. Any help is appreciated. If you forget the name of the rule, instead of a clear error (like Rule name missing) you get a NullPointerException with no indication why. Thanks ___ rules-users mailing list

[rules-users] Retrieving rule name in then clause

2011-11-28 Thread Ronald Albury
Is there a simple way for me to be able to access the rule name in the 'then' clause? When rules fail I want to pass the rule name into my internal error handler. Thanks in advance ___ rules-users mailing list rules-users@lists.jboss.org

Re: [rules-users] Retrieving rule name in then clause

2011-11-28 Thread Ronald Albury
Let me clarify in advance ... my rules are detecting errors in input data ... so when a rule fires it accesses my internal error handler. I realize that rules fire when they succeed, not when they fail. On Mon, Nov 28, 2011 at 4:56 PM, Ronald Albury ronalb...@gmail.com wrote: Is there a simple

Re: [rules-users] Guvnor Hates Me

2011-11-27 Thread Ronald Albury
First - I'd like to thank everyone for their help. I am finding Guvnor less intuitive than I had hoped and I will need your continued patience and assistance to understand it. Problem 1: I added Sample.drl (which contains two rules) from inside Eclipse, and Guvnor split it into two rules

[rules-users] Guvnor hates me

2011-11-25 Thread Ronald Albury
Newbie issue: I created a package, com.scs.test I added a model to that package (a java Jar file with POJOs in it). The jar contains com.scs.test.Message and com.scs.test.Person. I edited the package's Configuration: Imported Types to include the two objects from the model (com.scs.test.Message

Re: [rules-users] Guvnor hates me

2011-11-25 Thread Ronald Albury
I found it. It is not enough to import the Jar file - you must also hit File-Save. On Fri, Nov 25, 2011 at 1:37 PM, Ronald Albury ronalb...@gmail.com wrote: Newbie issue: I created a package, com.scs.test I added a model to that package (a java Jar file with POJOs in it). The jar contains

Re: [rules-users] Guvnor hates me

2011-11-25 Thread Ronald Albury
New Issue: My Message class has an int field (status) and several public static final int values representing possibile statuses. I am trying to use the directed rules editor to create a rule when clause: There is a Message with status equal to Message.SOME_STATUS. I don't see any way to do

[rules-users] multi-factor rule

2011-11-23 Thread Ronald Albury
Hi - I am a Drools newbie and I apologize in advance if the answer to my question is intuitively obvious to the casual user. I have an object that has two fields: location(there are more than 50 locations) and age. I am having difficulty building clean rules for the following pseudo-code //

Re: [rules-users] multi-factor rule

2011-11-23 Thread Ronald Albury
Armand I don't think that works if location=='B' and age=68 ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users