[rules-users] ok - index problems - got a real simple test to try !

2007-04-24 Thread Michael Neale
Really truly ;) , try this with junit, and JR 1.2.2 (1.3 also does it): public void testIt() throws Exception { Repository repo = new TransientRepository(); Session sess = repo.login(new SimpleCredentials(foo, password.toCharArray())); Node root = sess.getRootNode();

[rules-users] Re: ok - index problems - got a real simple test to try !

2007-04-24 Thread Michael Neale
ignore that, wrong mailing list ;) On 4/24/07, Michael Neale [EMAIL PROTECTED] wrote: Really truly ;) , try this with junit, and JR 1.2.2 (1.3 also does it): public void testIt() throws Exception { Repository repo = new TransientRepository(); Session sess = repo.login(new

[rules-users] Rule simplification

2007-04-24 Thread Sikkandar Nawabjan
Hi, I have a object having 10 properties. i want to do null check for all those properties. i want to write a single rule to do and i don't want to write java functions in drl.i don't want to write 10 individual rules as the action are same for all the property null check. am using 3.0.6. how

[rules-users] removing rules contained in drl files

2007-04-24 Thread Justine Hlista
Hello, We are managing sets of related rules in drl files. There may be multiple drl files that define a package. It would be really nice if we could easily remove the set of related rules in a given drl file from a package. For example: RuleBase.removeDrlRules(pkg, path/to/drl/file); Is there

[rules-users] Problem with \ while compiling DRL

2007-04-24 Thread Cédric D'Inca
Hi everyone, I am currently experimentating troubles compiling a DRL file with a \ character in it. I am using Drools libraries 3.0.4. I used a XLS decision table that, once compiled, gave me a DRL. The following lines are extracted from it. #From row number: 14 rule Exemple 1 2006 10 10_14

[rules-users] NPE on retract

2007-04-24 Thread Chris West
Hi, Using version 3.0.6 of jboss rules, while retracting an object, I get the following: java.lang.NullPointerException at org.drools.reteoo.beta.InstanceEqualConstrRightMemory.remove(Unknown Source) at org.drools.reteoo.BetaMemory.remove (Unknown Source) at

Re: [rules-users] NPE on retract

2007-04-24 Thread Edson Tirelli
Chris Can you provide a self contained test that shows the problem and open a JIRA with it? I will take a look in it. There is no requirement to define equals/hashcode, but if you do so, you need to make them time consistent, i.e., they cannot change during the time the object is