<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word" xmlns:st1 = 
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
        BEHAVIOR: url(#default#VML)
}
o\:* {
        BEHAVIOR: url(#default#VML)
}
w\:* {
        BEHAVIOR: url(#default#VML)
}
.shape {
        BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]--><o:SmartTagType name="City" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType 
name="place" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if !mso]>
<STYLE>st1\:* {
        BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: Tahoma;
}
@font-face {
        font-family: Verdana;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: blue; TEXT-DECORATION: underline
}
P {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
SPAN.EmailStyle19 {
        FONT-WEIGHT: normal; COLOR: blue; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none; mso-style-type: personal-reply
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=blue link=blue>
<DIV dir=ltr align=left><SPAN class=279434113-28092007><FONT face=Arial 
color=#0000ff size=2>Is 30 correct, you are not clear. Did you want one 
exception for any number of violations?</FONT></SPAN></DIV><BR>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> rules-users-bounces@lists.jboss.org 
  [mailto:rules-users-bounces@lists.jboss.org] <B>On Behalf Of </B>Bhattacharya, 
  Sougata<BR><B>Sent:</B> 28 September 2007 14:33<BR><B>To:</B> Rules Users 
  List<BR><B>Subject:</B> RE: [rules-users] Please help<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Verdana color=blue size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Verdana">Oh yes this raises 
  30 exceptions if I have 6 Line Items<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana color=blue size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <DIV>
  <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
  face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
  <HR tabIndex=-1 align=center width="100%" SIZE=2>
  </SPAN></FONT></DIV>
  <P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN 
  style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT 
  face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> 
  rules-users-bounces@lists.jboss.org 
  [mailto:rules-users-bounces@lists.jboss.org] <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><o:p></o:p></P></DIV>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal 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<o:p></o:p></SPAN></FONT></P>
  <DIV>
  <P class=MsoNormal><SPAN class=gmailquote><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"> 
  sougata.bhattacharya@capgemini.com</A>&gt;:</SPAN></FONT></SPAN><o:p></o:p></P>
  <DIV vlink="purple" link="blue">
  <DIV>
  <P><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
  <P><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Hi 
  All,</SPAN></FONT><o:p></o:p></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><o:p></o:p></P>
  <P><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">LineItem</SPAN></FONT><o:p></o:p></P>
  <P><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">&nbsp;&nbsp; String 
  ID</SPAN></FONT><o:p></o:p></P>
  <P><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">&nbsp;&nbsp; String 
  parentId</SPAN></FONT><o:p></o:p></P>
  <P><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">&nbsp;</SPAN></FONT><o:p></o:p></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><o:p></o:p></P>
  <P><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">&nbsp;</SPAN></FONT><o:p></o:p></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><o:p></o:p></P>
  <P><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">I have to show an 
  exception,</SPAN></FONT><o:p></o:p></P>
  <P><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Please help me to solve 
  this</SPAN></FONT><o:p></o:p></P>
  <P><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">&nbsp;</SPAN></FONT><o:p></o:p></P>
  <P><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Cheers</SPAN></FONT><o:p></o:p></P>
  <P><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Su</SPAN></FONT><o:p></o:p></P></DIV></DIV>
  <TABLE class=MsoNormalTable cellPadding=0 border=0>
    <TBODY>
    <TR>
      <TD 
      style="PADDING-RIGHT: 0.75pt; PADDING-LEFT: 0.75pt; BACKGROUND: white; PADDING-BOTTOM: 0.75pt; PADDING-TOP: 0.75pt" 
      bgColor=white>
        <P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><FONT 
        face="Times New Roman" color=black 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><o:p></o:p></P></TD></TR></TBODY></TABLE>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <TABLE class=MsoNormalTable cellPadding=0 border=0>
    <TBODY>
    <TR>
      <TD 
      style="PADDING-RIGHT: 0.75pt; PADDING-LEFT: 0.75pt; BACKGROUND: white; PADDING-BOTTOM: 0.75pt; PADDING-TOP: 0.75pt" 
      bgColor=white>
        <P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><FONT 
        face="Times New Roman" color=black 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><o:p></o:p></P></TD></TR></TBODY></TABLE>
  <P class=MsoNormal 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">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><o:p></o:p></SPAN></FONT></P></DIV>
  <P class=MsoNormal><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;<st1:City 
  w:st="on"><st1:place w:st="on">Mobile</st1:place></st1:City>: +55 11 
  9287-5646<BR>&nbsp;&nbsp;JBoss, a division of Red Hat @ <A 
  href="http://www.jboss.com">www.jboss.com</A> 
  <o:p></o:p></SPAN></FONT></P></DIV>
  <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></BLOCKQUOTE></BODY></HTML>