[rules-users] how to check reference

2007-05-18 Thread Sikkandar Nawabjan
Hi, we are using drools version 3.0.6. I want to check the object references of t inserted objects in working memory. How to check the condition in LHS? right now am doing the following way when $obj1:object() $obj2:object() then if($obj1!=$obj2) System.out.println(Fired);

Re: [rules-users] how to check reference

2007-05-18 Thread Edson Tirelli
Yes, in 3.0.6 you will need eval. But also it is important to remember that by default, in 3.0.6, an object will never match more than one pattern. So in the given example, ob1 and ob2 will always be different and the check is not needed. In 4.0, things are a bit different, as by default a