<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
in 4.0 MR2 you have access to the "this" object, which makes thins a
bit more declarative:<br>
<br>
<div><font face="Arial" size="2">when </font></div>
<div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; $obj1:object();</font></div>
<div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; $obj2:object( this != $obj1 )</font><br>
</div>
<div><font face="Arial" size="2">then<br>
<br>
Also don't use ; after each pattern, Im surprised that even works.<br>
<br>
Mark<br>
</font></div>
<br>
<br>
Chris Woodrow wrote:
<blockquote
 cite="mid:16fdafe70705180221j708a246ci51e4f73154a8afcc@mail.gmail.com"
 type="cite">Hi,<br>
You can use eval();<br>
  <br>
  <div><font face="Arial" size="2">when </font></div>
  <div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; $obj1:object();</font></div>
  <div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; $obj2:object();</font><font
 face="Arial" size="2"><br>
&nbsp;&nbsp;&nbsp; eval ($obj1!=$obj2);</font><br>
  </div>
  <div><font face="Arial" size="2">then</font></div>
  <font face="Arial" size="2">&nbsp;&nbsp;&nbsp; System.out.println("Fired");<br>
  <br>
Hope this helps<br>
Chris<br>
  </font><br>
  <div><span class="gmail_quote">2007/5/18, Sikkandar Nawabjan &lt;<a
 moz-do-not-send="true" href="mailto:Sikkandar.Nawabjan@ustri.com">Sikkandar.Nawabjan@ustri.com
  </a>&gt;:</span>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div>
    <div><font color="#000000" face="Arial" size="2">Hi,</font></div>
    <div><font face="Arial" size="2">we are using drools version 3.0.6.
I want to check the object references of t inserted objects in working
memory.</font></div>
    <div><font face="Arial" size="2">How to check the condition in LHS?</font></div>
    <div><font face="Arial" size="2">right now am doing the following
way</font></div>
    <div><font face="Arial" size="2">when </font></div>
    <div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; $obj1:object()</font></div>
    <div>
    <div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; $obj2:object()</font></div>
    <div><font face="Arial" size="2">then</font></div>
    <div><font face="Arial" size="2">&nbsp;&nbsp; if($obj1!=$obj2)</font></div>
    <div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
System.out.println("Fired");</font></div>
    <div>&nbsp;</div>
    <div><font face="Arial" size="2">how to move the
if(if($obj1!=$obj2)) statement to LHS? am not able to use this operator
in version 3.0.6</font></div>
    <div><font face="Arial" size="2">Thanks and Regs.</font></div>
    <div><font face="Arial" size="2">Basha</font></div>
    <div>&nbsp;</div>
    </div>
    </div>
    <br>
_______________________________________________<br>
rules-users mailing list<br>
    <a moz-do-not-send="true"
 onclick="return top.js.OpenExtLink(window,event,this)"
 href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
    <a moz-do-not-send="true"
 onclick="return top.js.OpenExtLink(window,event,this)"
 href="https://lists.jboss.org/mailman/listinfo/rules-users"
 target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users
    </a><br>
    <br>
  </blockquote>
  </div>
  <br>
  <br clear="all">
  <br>
-- <br>
  <a moz-do-not-send="true" href="mailto:woodrow.chris@gmail.com">woodrow.chris@gmail.com</a>
est ma nouvelle adresse e-mail. <a moz-do-not-send="true"
 href="mailto:chris.woodrow@free.fr">chris.woodrow@free.fr
  </a> va dispara&icirc;tre, pensez &agrave; faire le changement.
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>