<br>&nbsp;&nbsp; I may be misinterpreting your message bellow, but the way I read it, being sarcastic instead of explaining what is your problem will not make people help you. <br><br>&nbsp;&nbsp; I think you need to read the manual, Rule language chapter. To raise only one exception in case there is on or more matches, use the &quot;exists&quot; CE:
<br>
<br>
<span class="e" id="q_1154c6087622e5d0_1"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">
when<br>
&nbsp;&nbsp;&nbsp; exists( LineItem( $parent: parentId ) and LineItem( id != $parent ) )<br>
then<br>
&nbsp;&nbsp;&nbsp; // raise the exception<br>
end</span></font></span><br><br>&nbsp;&nbsp;&nbsp; []s<br>&nbsp;&nbsp;&nbsp; Edson<br><br><div><span class="gmail_quote">2007/9/28, Bhattacharya, Sougata &lt;<a href="mailto:sougata.bhattacharya@capgemini.com">sougata.bhattacharya@capgemini.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 link="blue" vlink="blue" lang="EN-US">

<div>

<p><font color="blue" face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana; color: blue;">Oh yes this raises 30 exceptions if I
have 6 Line Items</span></font></p>

<p><font color="blue" face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana; color: blue;">&nbsp;</span></font></p>

<div>

<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">
<a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">rules-users-bounces@lists.jboss.org</a>
[mailto:<a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">rules-users-bounces@lists.jboss.org</a>] <b><span style="font-weight: bold;">On
Behalf Of </span></b>Edson Tirelli<br>
<b><span style="font-weight: bold;">Sent:</span></b> Friday, September 28, 2007
6:53 PM<br>
<b><span style="font-weight: bold;">To:</span></b> Rules Users List<br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [rules-users] Please
help</span></font></p>

</div><div><span class="e" id="q_1154c6087622e5d0_1">

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
&nbsp;&nbsp;&nbsp; <br>
when<br>
&nbsp;&nbsp;&nbsp; LineItem( $parent: parentId )<br>
&nbsp;&nbsp;&nbsp; LineItem( id != $parent )<br>
then<br>
&nbsp;&nbsp;&nbsp; // raise the exception<br>
end</span></font></p>

<div>

<p><span><font face="Times New Roman" size="3"><span style="font-size: 12pt;">2007/9/28, Bhattacharya, Sougata &lt;<a href="mailto:sougata.bhattacharya@capgemini.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

sougata.bhattacharya@capgemini.com</a>&gt;:</span></font></span></p>

<div link="blue" vlink="purple">

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<p><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">Hi
All,</span></font></p>

<p><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">&nbsp;
I am using drool to validate my business objects. I have a Business object like
this</span></font></p>

<p><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">LineItem</span></font></p>

<p><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">&nbsp;&nbsp;
String ID</span></font></p>

<p><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">&nbsp;&nbsp;
String parentId</span></font></p>

<p><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">&nbsp;</span></font></p>

<p><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">I
get 5 LineItems in a row and each line item has ID&nbsp; and a Parent ID, I
will have to check </span></font></p>

<p><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">&nbsp;</span></font></p>

<p><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">if(parented
of Any LineItem ! = ID of any LineITem)</span></font></p>

<p><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">I
have to show an exception,</span></font></p>

<p><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">Please
help me to solve this</span></font></p>

<p><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">&nbsp;</span></font></p>

<p><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">Cheers</span></font></p>

<p><font face="Verdana" size="2"><span style="font-size: 10pt; font-family: Verdana;">Su</span></font></p>

</div>

</div>

<table border="0" cellpadding="0">
 <tbody><tr>
  <td style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" bgcolor="white">
  <p style="margin-bottom: 12pt;"><font color="black" face="Times New Roman" size="3"><span style="font-size: 12pt; color: black;">This
  message contains information that may be privileged or confidential and is
  the property of the Capgemini Group. It is intended only for the person to
  whom it is addressed. If you are not the intended recipient, you are not
  authorized to read, print, retain, copy, disseminate, distribute, or use this
  message or any part thereof. If you receive this message in error, please
  notify the sender immediately and delete all copies of this message. </span></font></p>
  </td>
 </tr>
</tbody></table>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<table border="0" cellpadding="0">
 <tbody><tr>
  <td style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" bgcolor="white">
  <p style="margin-bottom: 12pt;"><font color="black" face="Times New Roman" size="3"><span style="font-size: 12pt; color: black;">This
  message contains information that may be privileged or confidential and is
  the property of the Capgemini Group. It is intended only for the person to
  whom it is addressed. If you are not the intended recipient, you are not
  authorized to read, print, retain, copy, disseminate, distribute, or use this
  message or any part thereof. If you receive this message in error, please
  notify the sender immediately and delete all copies of this message. </span></font></p>
  </td>
 </tr>
</tbody></table>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">rules-users@lists.jboss.org </a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.jboss.org/mailman/listinfo/rules-users</a></span></font></p>

</div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
<br clear="all">
<br>
-- <br>
&nbsp;&nbsp;Edson Tirelli<br>
&nbsp;&nbsp;Software Engineer - JBoss Rules Core Developer<br>
&nbsp;&nbsp;Office: +55 11 3529-6000<br>
&nbsp;&nbsp;Mobile:
+55 11 9287-5646<br>
&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">www.jboss.com</a>
</span></font></p>

</span></div></div>

</div><div><span class="e" id="q_1154c6087622e5d0_3">



<table><tbody><tr><td bgcolor="#ffffff"><font color="#000000">This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.
<br>
<br>
</font></td></tr></tbody></table></span></div><br>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">
rules-users@lists.jboss.org</a><br><a 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>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;Software Engineer - JBoss Rules Core Developer<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ 
<a href="http://www.jboss.com">www.jboss.com</a>