<br><font size=2 face="Courier New">I think I found the answer to my question:</font>
<br>
<br><font size=2 face="Courier New">rule &quot;Test&quot;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#a00000 face="Courier New"><b>when</b></font><font size=2 face="Courier New">
&nbsp; &nbsp; &nbsp; &nbsp;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; CoApplicant( $relationship : relationship
)</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; Contract ( $state : state )</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </font><font size=2 color=#a00000 face="Courier New"><b>eval</b></font><font size=2 face="Courier New">
($relationship == </font><font size=2 color=#008000 face="Courier New">&quot;S&quot;</font><font size=2 face="Courier New">
|| $state == </font><font size=2 color=#008000 face="Courier New">&quot;CO&quot;</font><font size=2 face="Courier New">
|| $state == </font><font size=2 color=#008000 face="Courier New">&quot;IL&quot;</font><font size=2 face="Courier New">)</font>
<br><font size=2 face="sans-serif">...</font>
<br>
<br><font size=2 face="sans-serif">Thanks</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>kfs2@chrysler.com</b> </font>
<br><font size=1 face="sans-serif">Sent by: rules-users-bounces@lists.jboss.org</font>
<p><font size=1 face="sans-serif">01/16/2009 11:40 AM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
Rules Users List &lt;rules-users@lists.jboss.org&gt;</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">rules-users@lists.jboss.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">[rules-users] or condition - subrules</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2 face="Courier New"><br>
I understand that as this rule is written below it will be compiled into
2 subrules which both fire. &nbsp;I searched the archives and found a post
where Mark Proctor suggested &quot;</font><tt><font size=3>Bind each pattern,
and do the || field constraints in an eval.&quot;. I'm new to Drools, can
someone elaborate on how I would do that with the rule below?</font></tt><font size=3>
<br>
</font><font size=2 face="Courier New"><br>
rule &quot;Test&quot; &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;when &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=3>
</font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(CoApplicant( relationship
== &quot;S&quot; ) or (Contract ( state in (&quot;CO&quot;, &quot;IL&quot;))))</font><font size=3>
</font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;then </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;...</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Thanks</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Kent &nbsp; &nbsp;</font><tt><font size=2>_______________________________________________<br>
rules-users mailing list<br>
rules-users@lists.jboss.org<br>
</font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/rules-users<br>
</font></tt><font size=2 face="sans-serif"> &nbsp;</font></a>
<br>