<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=821412108-26032007><FONT face=Arial 
color=#0000ff size=2>Hi Bruce,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=821412108-26032007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=821412108-26032007><FONT face=Arial 
color=#0000ff size=2>From my experience (with 3.1-M1) you can reference bound 
Facts/Columns in subsequent patterns; like:-</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=821412108-26032007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV><SPAN class=821412108-26032007>
<DIV dir=ltr align=left><SPAN class=821412108-26032007><FONT face=Arial 
color=#0000ff size=2>$m : Manufacturer ( name == "Honda" )</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=821412108-26032007><FONT face=Arial 
color=#0000ff size=2>$c : Car ( manufacturer == $m )</FONT></SPAN></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>$c : Customer ( 
cars<SPAN class=821412108-26032007> contains $c,&nbsp;</SPAN>age &gt; 
18&nbsp;)</FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=821412108-26032007>$cars.contains("Honda") requires an eval statement as 
your requirement is equivalent to "Customer ( cars.contains("Honda") )" which 
does not use a zero-parameter field accessor and is not compliant with the Java 
Beans specification).</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=821412108-26032007><FONT face=Arial 
color=#0000ff size=2>With kind regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=821412108-26032007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=821412108-26032007><FONT face=Arial 
color=#0000ff size=2>Mike</FONT></SPAN></DIV>
<DIV dir=ltr align=left></SPAN>&nbsp;</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>Bruce 
  leroy<BR><B>Sent:</B> 23 March 2007 18:20<BR><B>To:</B> 
  rules-users@lists.jboss.org<BR><B>Subject:</B> [rules-users] syntax 
  question<BR></FONT><BR></DIV>
  <DIV></DIV>Hi,<BR><BR>I have a question regarding rules syntax particularly 
  with left hand side. Suppose I have the following condition ..<BR><BR>when 
  <BR>&nbsp;&nbsp; Customer ( $cars : cars, age &gt; 18 )<BR>...<BR><BR>How can 
  I use the bind variable "$cars" in subsequent statements without using eval(), 
  like so ... <BR><BR>when <BR>&nbsp; Customer ( $cars : cars,&nbsp; age &gt; 18 
  )<BR>&nbsp; eval( $cars.contains( "Honda" ) )<BR>....<BR><BR><BR>Basically I 
  would like to know what the alternatives for doing something like so this 
  without having to use eval function. I know this might not be the best example 
  for this question, but please I'm just learning this system right now. 
  <BR><BR><BR>Thanks in advance,<BR>Bruce.<BR>&nbsp;&nbsp; 
<BR></BLOCKQUOTE></BODY></HTML>