<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">We need some rule code to get a better idea of what's going on.&nbsp; Can you post some?<br><br>--- On <b>Thu, 4/8/10, Rajnikant Gupta <i>&lt;capricorn.raj@gmail.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Rajnikant Gupta &lt;capricorn.raj@gmail.com&gt;<br>Subject: [rules-users] Tuples in Agenda Item.<br>To: rules-users@lists.jboss.org<br>Date: Thursday, April 8, 2010, 1:36 PM<br><br><div id="yiv1194864757"><div>&nbsp;</div>
<div>Hi,</div>
<div>&nbsp;<br>I have a doubt regarding tuples. I created a rule using complex types objects. I am comparing two complex type objecs which have parent-child relationship eg. "ParentType.equals(ChildType)". I expect this to follow java rule which allows such comparision. Now when I run the rules with different values for fields in ParentType and ChildType (which means the rule should fail) to my surprise it evals to TRUE. Also upon inspection, the tuple shows me only the ChildType instance not the ParentType. <br>
&nbsp;<br>I would appreciate any help on this.</div>
<div>&nbsp;</div>
<div><br clear="all">Regards,<br><br>Rajnikant</div>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>rules-users mailing list<br><a ymailto="mailto:rules-users@lists.jboss.org" href="/mc/compose?to=rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></div></blockquote></td></tr></table><br>