<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><head><META content="text/html; charset=us-ascii" http-equiv="Content-Type">

<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META content="MSHTML 6.00.6000.16915" name=GENERATOR></head><BODY>
<DIV>
<DIV><SPAN class=231283223-01122009><FONT face=Verdana size=2>Hi 
All,</FONT></SPAN></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=231283223-01122009><FONT face=Verdana size=2>I have the 
following drool rule that has "or not" under Entity Block. Basically, the rule 
tries to check if&nbsp;there either exists an entity object 
EtsExecutionOrderXref_core00 with&nbsp;the&nbsp;given conditions, or the entity 
does not exist at all with some other conditions.&nbsp;</FONT></SPAN></DIV>
<DIV><SPAN class=231283223-01122009><FONT size=2><FONT face=Verdana></FONT>&nbsp;</DIV></FONT></SPAN>
<DIV><SPAN class=231283223-01122009></SPAN><FONT face=Verdana><FONT size=2><FONT color=#0000ff>dialect "mvel"<BR>rule "Legacy ETSDB 
Rule"<BR>when<BR>EtsExecutionOrderHist_core0:EtsExecutionOrderHist_core(customerOrFirm 
!= 
"0")<BR>EtsExecutionOrderXref_core00:<BR>(<BR>&nbsp;EtsExecutionOrderXref_core<BR>&nbsp;(<BR>&nbsp;&nbsp;entityOID 
== EtsExecutionOrderHist_core0.entityOID , entityRID == 
EtsExecutionOrderHist_core0.entityRID , entityVID == 
EtsExecutionOrderHist_core0.entityVID , referenceID != "2" &amp;&amp; 
referenceIDType == "orderSubCapacity"<BR>&nbsp;)<BR>&nbsp;or 
not(EtsExecutionOrderXref_core<BR>&nbsp;(<BR>&nbsp;&nbsp;entityOID == 
EtsExecutionOrderHist_core0.entityOID , entityRID == 
EtsExecutionOrderHist_core0.entityRID , entityVID == 
EtsExecutionOrderHist_core0.entityVID , referenceIDType == 
"orderSubCapacity"<BR>&nbsp;))<BR>)<BR></FONT>then<BR>end</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Verdana size=2>But, while compiling the rule, I am 
getting the following errors:</FONT></DIV>
<DIV><FONT face=Verdana size=2><FONT size=2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2><FONT size=2>org.drools.compiler.DroolsParserException: [ERR 101] Line 22:16 no viable 
alternative at input </FONT><FONT color=#2a00ff size=2><FONT color=#2a00ff size=2>'entityOID'</FONT></FONT><FONT size=2> in rule "Legacy ETSDB Rule" in 
pattern not, </FONT></DIV>
<DIV>
<P><FONT size=2>org.drools.compiler.DroolsParserException: [ERR 102] Line 22:68 
mismatched input </FONT><FONT color=#2a00ff size=2><FONT color=#2a00ff size=2>','</FONT></FONT><FONT size=2> expecting </FONT><FONT color=#2a00ff size=2><FONT color=#2a00ff size=2>'('</FONT></FONT><FONT size=2> in rule "Legacy 
ETSDB Rule" in pattern EtsExecutionOrderHist_core0.entityOID, </FONT></P>
<P><FONT size=2>org.drools.compiler.DroolsParserException: [ERR 102] Line 22:122 
mismatched input </FONT><FONT color=#2a00ff size=2><FONT color=#2a00ff size=2>','</FONT></FONT><FONT size=2> expecting </FONT><FONT color=#2a00ff size=2><FONT color=#2a00ff size=2>'('</FONT></FONT><FONT size=2> in rule "Legacy 
ETSDB Rule" in pattern EtsExecutionOrderHist_core0.entityOID in pattern 
EtsExecutionOrderHist_core0.entityRID, </FONT></P>
<P><FONT size=2>org.drools.compiler.DroolsParserException: [ERR 102] Line 22:176 
mismatched input </FONT><FONT color=#2a00ff size=2><FONT color=#2a00ff size=2>','</FONT></FONT><FONT size=2> expecting </FONT><FONT color=#2a00ff size=2><FONT color=#2a00ff size=2>'('</FONT></FONT><FONT size=2> in rule "Legacy 
ETSDB Rule" in pattern EtsExecutionOrderHist_core0.entityOID in pattern 
EtsExecutionOrderHist_core0.entityRID in pattern 
EtsExecutionOrderHist_core0.entityVID]</P></FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN class=231283223-01122009>I think the rule 
is correct, but am not able to figure out these compilation errors. Could 
anybody please comment on why this would happen? </SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=231283223-01122009><FONT face=Verdana size=2>Thanks</FONT></SPAN></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV style="COLOR: black; FONT-FAMILY: arial"><SPAN style="FONT-SIZE: 10pt">Malay Shah</SPAN></DIV></DIV>
<DIV>
<HR>
</DIV>
<P CLASS="BulletedList" STYLE="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0in; mso-list: none; tab-stops: .5in"><SPAN STYLE="FONT-SIZE: 8pt; COLOR: gray; mso-bidi-font-family: Arial"><FONT COLOR="gray" FACE="Arial" SIZE="1">NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.&nbsp;We<SPAN STYLE="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: 'Arial','sans-serif'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-GB; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"> may monitor and store emails to the extent permitted by applicable law.</SPAN></FONT></SPAN></P>
<DIV></DIV></BODY></HTML>