[rules-users] how to check reference

Sikkandar Nawabjan Sikkandar.Nawabjan at ustri.com
Fri May 18 05:07:49 EDT 2007


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");
 
how to move the if(if($obj1!=$obj2)) statement to LHS? am not able to use this operator in version 3.0.6
Thanks and Regs.
Basha
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070518/83aaaf5d/attachment.html 


More information about the rules-users mailing list