<!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.16850" name=GENERATOR></head><BODY>
<DIV>
<DIV><SPAN class=949570720-03082009><FONT face=Verdana size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=949570720-03082009><FONT face=Verdana size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=949570720-03082009><FONT face=Verdana size=2>I am trying to use
eval block in one of the rules and am a bit confused about it. The rule is
something like this:</FONT></SPAN></DIV>
<DIV><SPAN class=949570720-03082009><FONT face=Verdana size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=949570720-03082009>
<P align=left><FONT face=Verdana size=2>rule
"LastCapacity"<BR>when<BR> e:
Execution(lastCapacity:lastCapacity,parentOid:parentOid)<BR>
eo:
ExecutionOrder(entityOid:entityOid,msgType:msgType,execType:execType)<BR><STRONG>
eval(lastCapacity != null && entityOid == parentOid && msgType
== "8")</STRONG><BR>then</FONT></P>
<P align=left><SPAN class=949570720-03082009></SPAN><FONT face=Verdana size=2>.<SPAN class=949570720-03082009>.................</SPAN><BR>end</FONT></P>
<P><SPAN class=949570720-03082009><FONT face=Verdana size=2>where Execution and
ExecutionOrder are 2 objects that are linked by an ID. I expect eval to return
true for certain sets of objects that I send. But, the above rule exits without
running the consequence. On the other hand, when I write the rule
as:</FONT></SPAN></P>
<P><SPAN class=949570720-03082009><FONT face=Verdana size=2> rule
"LastCapacity"<BR>when<BR> e:
Execution(lastCapacity:<STRONG>lastCapacity==null</STRONG>,parentOid:parentOid)<BR>
eo: ExecutionOrder(entityOid:<STRONG>entityOid == parentOid</STRONG>,
<STRONG>msgType == "8"</STRONG>)<BR>then</FONT></SPAN></P>
<P><SPAN class=949570720-03082009><FONT face=Verdana size=2>.............................<BR>end</FONT></SPAN></P></SPAN></DIV>
<DIV><FONT face=Verdana size=2><SPAN class=949570720-03082009>the rule triggers
the consequence for same set of objects. I thought that if the expression
in eval block comes out to be true, the consequence will be triggered. Am I
missing something obvious here?</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN class=949570720-03082009></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=2><SPAN class=949570720-03082009>Thanks</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV style="COLOR: black; FONT-FAMILY: arial"><SPAN style="FONT-SIZE: 10pt">Malay Shah<BR></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. 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>