<!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.2800.1586" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=855330713-19042007><FONT face=Arial 
color=#0000ff size=2>I switched the type to a String, slapped some quotes 
around&nbsp;921 and it works&nbsp;as expected.&nbsp; Any ideas about why it's 
not working with an Integer?</FONT></SPAN></DIV><BR>
<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>Bynum, 
Joe<BR><B>Sent:</B> Thursday, April 19, 2007 8:53 AM<BR><B>To:</B> 
rules-users@lists.jboss.org<BR><B>Subject:</B> [rules-users] Issue with 
"contains" keyword<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2>
<DIV><SPAN class=020062320-18042007><FONT face=Arial size=2>I'm doing some 
simple evaluation of jrules and I ran into a problem.&nbsp; Here's the rule I'm 
having problems with:</FONT></SPAN></DIV>
<DIV><SPAN class=020062320-18042007><B><FONT color=#960000><FONT 
size=2></FONT></FONT></B></SPAN>&nbsp;</DIV>
<DIV><SPAN class=020062320-18042007><B><FONT color=#960000><FONT face=Arial 
size=2>rule</FONT></B></FONT><FONT size=2><FONT face=Arial> </FONT><FONT 
color=#008000><FONT face=Arial>"751845 - Check Stages"</FONT></DIV>
<DIV></FONT></FONT>
<P align=left><FONT face=Arial></FONT></P>
<P align=left><B><FONT color=#960000><FONT size=2><FONT face=Arial><SPAN 
class=020062320-18042007>&nbsp;&nbsp;&nbsp; 
</SPAN>when</FONT></FONT></FONT></P></B>
<P align=left><FONT size=2><FONT face=Arial><SPAN 
class=020062320-18042007>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>order 
: Order( stages excludes <FONT color=#008000>921</FONT> )</FONT></FONT></P>
<P align=left><B><FONT color=#960000><FONT size=2><FONT face=Arial><SPAN 
class=020062320-18042007>&nbsp;&nbsp;&nbsp; 
t</SPAN>hen</FONT></FONT></FONT></P></B>
<P align=left><FONT size=2><FONT face=Arial><SPAN 
class=020062320-18042007>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN>System.out.println( <FONT color=#008000>"This order contains "</FONT> + 
order.getStages() );</FONT></FONT></P>
<P><FONT face=Arial size=2></FONT><FONT face=Arial color=#960000 
size=2><STRONG>end</STRONG></FONT></P>
<P><SPAN class=020062320-18042007><FONT face=Arial color=#960000 
size=2>OUTPUT:</FONT></SPAN></P><SPAN class=020062320-18042007>
<P><FONT face=Arial size=2>This order contains [804, 921]</FONT></P>
<P><SPAN class=020062320-18042007><FONT face=Arial size=2>I'm actually trying to 
do the opposite using 'stages contains 921'.&nbsp; stages is defined as follows 
in the Order object.</FONT></SPAN></P><SPAN class=020062320-18042007><FONT 
size=2><FONT color=#7f0055 size=2>
<P><FONT face=Arial>private</FONT></FONT><FONT face=Arial><FONT size=2> 
ArrayList&lt;Integer&gt; </FONT><FONT color=#0000c0 size=2>stages</FONT><FONT 
size=2>;</P></FONT></FONT></FONT></SPAN>
<P><SPAN class=020062320-18042007><FONT face=Arial size=2>I'm using the 3.0.6 
binaries on W2K&nbsp;w/Eclipse.</FONT></SPAN></P>
<P><SPAN class=020062320-18042007><SPAN class=020062320-18042007><FONT 
face=Arial size=2>Any ideas what I'm doing wrong here?</FONT></SPAN></SPAN></P>
<P><FONT face=Arial 
size=2></FONT>&nbsp;</P></SPAN></SPAN></DIV></FONT></DIV></BODY></HTML>