<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Consolas;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 92.4pt 72.0pt 92.4pt;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="Section1">
<p class="MsoPlainText">You can probably do what you need by using XOR-GROUPS (activation groups).
<o:p></o:p></p>
<p class="MsoPlainText">If your spreadsheet is configured to be sequential (or you explicitly set rule priority levels) then only the highest priority matching rule in a particular xor-group will be fired.<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">So you may be able to specify the rules as follows:<o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="1051" style="width:788.55pt;margin-left:-.65pt;border-collapse:collapse">
<tbody>
<tr style="height:12.75pt">
<td width="240" nowrap="" valign="bottom" style="width:180.0pt;border:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">CONDITION<o:p></o:p></span></p>
</td>
<td width="172" nowrap="" valign="bottom" style="width:129.0pt;border:solid windowtext 1.0pt;
  border-left:none;padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">CONDITION<o:p></o:p></span></p>
</td>
<td width="199" nowrap="" valign="bottom" style="width:149.0pt;border:solid windowtext 1.0pt;
  border-left:none;padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">CONDITION<o:p></o:p></span></p>
</td>
<td width="221" nowrap="" valign="bottom" style="width:166.0pt;border:solid windowtext 1.0pt;
  border-left:none;padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">CONDITION<o:p></o:p></span></p>
</td>
<td width="114" nowrap="" valign="bottom" style="width:85.55pt;border:solid windowtext 1.0pt;
  border-left:none;padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">ACTION<o:p></o:p></span></p>
</td>
<td width="105" nowrap="" valign="bottom" style="width:79.0pt;border:solid windowtext 1.0pt;
  border-left:none;padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">XOR-GROUP<o:p></o:p></span></p>
</td>
</tr>
<tr style="height:12.75pt">
<td width="832" nowrap="" colspan="4" valign="bottom" style="width:624.0pt;border:
  solid windowtext 1.0pt;border-top:none;padding:0cm 5.4pt 0cm 5.4pt;
  height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Foo<o:p></o:p></span></p>
</td>
<td width="114" nowrap="" valign="bottom" style="width:85.55pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
</td>
<td width="105" nowrap="" valign="bottom" style="width:79.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
</td>
</tr>
<tr style="height:12.75pt">
<td width="240" nowrap="" valign="bottom" style="width:180.0pt;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Date1 $param null<o:p></o:p></span></p>
</td>
<td width="172" nowrap="" valign="bottom" style="width:129.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Date2 $param null<o:p></o:p></span></p>
</td>
<td width="199" nowrap="" valign="bottom" style="width:149.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Date3 $param null<o:p></o:p></span></p>
</td>
<td width="221" nowrap="" valign="bottom" style="width:166.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Date4 $param null<o:p></o:p></span></p>
</td>
<td width="114" nowrap="" valign="bottom" style="width:85.55pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">setPriority($param)<o:p></o:p></span></p>
</td>
<td width="105" nowrap="" valign="bottom" style="width:79.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
</td>
</tr>
<tr style="height:12.75pt">
<td width="240" nowrap="" valign="bottom" style="width:180.0pt;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Date1<o:p></o:p></span></p>
</td>
<td width="172" nowrap="" valign="bottom" style="width:129.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Date2<o:p></o:p></span></p>
</td>
<td width="199" nowrap="" valign="bottom" style="width:149.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Date3<o:p></o:p></span></p>
</td>
<td width="221" nowrap="" valign="bottom" style="width:166.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Date4<o:p></o:p></span></p>
</td>
<td width="114" nowrap="" valign="bottom" style="width:85.55pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">setPriority($param)<o:p></o:p></span></p>
</td>
<td width="105" nowrap="" valign="bottom" style="width:79.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
</td>
</tr>
<tr style="height:12.75pt">
<td width="240" nowrap="" valign="bottom" style="width:180.0pt;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
</td>
<td width="172" nowrap="" valign="bottom" style="width:129.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
</td>
<td width="199" nowrap="" valign="bottom" style="width:149.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
</td>
<td width="221" nowrap="" valign="bottom" style="width:166.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">!=<o:p></o:p></span></p>
</td>
<td width="114" nowrap="" valign="bottom" style="width:85.55pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">1<o:p></o:p></span></p>
</td>
<td width="105" nowrap="" valign="bottom" style="width:79.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">DateXORGroup<o:p></o:p></span></p>
</td>
</tr>
<tr style="height:12.75pt">
<td width="240" nowrap="" valign="bottom" style="width:180.0pt;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
</td>
<td width="172" nowrap="" valign="bottom" style="width:129.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
</td>
<td width="199" nowrap="" valign="bottom" style="width:149.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">!=<o:p></o:p></span></p>
</td>
<td width="221" nowrap="" valign="bottom" style="width:166.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
</td>
<td width="114" nowrap="" valign="bottom" style="width:85.55pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">2<o:p></o:p></span></p>
</td>
<td width="105" nowrap="" valign="bottom" style="width:79.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">DateXORGroup<o:p></o:p></span></p>
</td>
</tr>
<tr style="height:12.75pt">
<td width="240" nowrap="" valign="bottom" style="width:180.0pt;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
</td>
<td width="172" nowrap="" valign="bottom" style="width:129.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">!=<o:p></o:p></span></p>
</td>
<td width="199" nowrap="" valign="bottom" style="width:149.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
</td>
<td width="221" nowrap="" valign="bottom" style="width:166.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
</td>
<td width="114" nowrap="" valign="bottom" style="width:85.55pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">3<o:p></o:p></span></p>
</td>
<td width="105" nowrap="" valign="bottom" style="width:79.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">DateXORGroup<o:p></o:p></span></p>
</td>
</tr>
<tr style="height:12.75pt">
<td width="240" nowrap="" valign="bottom" style="width:180.0pt;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">!=<o:p></o:p></span></p>
</td>
<td width="172" nowrap="" valign="bottom" style="width:129.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
</td>
<td width="199" nowrap="" valign="bottom" style="width:149.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
</td>
<td width="221" nowrap="" valign="bottom" style="width:166.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&nbsp;<o:p></o:p></span></p>
</td>
<td width="114" nowrap="" valign="bottom" style="width:85.55pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">4<o:p></o:p></span></p>
</td>
<td width="105" nowrap="" valign="bottom" style="width:79.0pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:12.75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">DateXORGroup<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">Then if Date4 is set the first rule would be fired, otherwise if date3 is set then row 2 would be fired etc.<o:p></o:p></p>
<p class="MsoPlainText">If there are more permuations that you want to consider you can easily insert them too.<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">Hope that helps,<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">Thomas<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">&gt; <span lang="EN-US">-----Original Message-----</span><o:p></o:p></p>
<p class="MsoPlainText">&gt; <span lang="EN-US">From: rules-users-bounces@lists.jboss.org [mailto:rules-users-</span><o:p></o:p></p>
<p class="MsoPlainText">&gt; <span lang="EN-US">bounces@lists.jboss.org] On Behalf Of HonorGod</span><o:p></o:p></p>
<p class="MsoPlainText">&gt; <span lang="EN-US">Sent: 22 December 2009 11:21</span><o:p></o:p></p>
<p class="MsoPlainText">&gt; <span lang="EN-US">To: rules-users@lists.jboss.org</span><o:p></o:p></p>
<p class="MsoPlainText">&gt; <span lang="EN-US">Subject: Re: [rules-users] verifying 'is not null' in decision table?</span><o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; Thanks Thomas. I got this part now. But I guess the real scenarios I have<o:p></o:p></p>
<p class="MsoPlainText">&gt; been looking is -<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; I have 4 different date fields and I need to check if they are not null and<o:p></o:p></p>
<p class="MsoPlainText">&gt; set a priority using decision table.<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; Lets say I have Date 1 , Date 2&nbsp; , Date 3 , Date 4. If Date 1 is not null<o:p></o:p></p>
<p class="MsoPlainText">&gt; and rest of them are null then my priority is Date 1. If Date 1 and Date 2<o:p></o:p></p>
<p class="MsoPlainText">&gt; are not null and the rest are null then my priority is Date 2 and so<o:p></o:p></p>
<p class="MsoPlainText">&gt; no.....so we are looking at 16 different possibilites and the<o:p></o:p></p>
<p class="MsoPlainText">&gt; priorities....how can i set the priority in this case...<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; Thanks<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; Swindells, Thomas wrote:<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; The key thing to remember with decision tables is that currently a column<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; is only included if there is a value in the rule row and that value will<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; always be included in the rule. The easiest way to do this is to have a<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; condition in the form &quot;firstName != $param&quot; and then have null as the cell<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; value. The other solution if you want separate rules for each field which<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; cannot be null is to have it in the form &quot;$param != null&quot; and enter the<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; field name as the cell value.<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; Thomas<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; -----Original Message-----<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; From: rules-users-bounces@lists.jboss.org [mailto:rules-users-<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; bounces@lists.jboss.org] On Behalf Of HonorGod<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; Sent: 21 December 2009 15:52<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; To: rules-users@lists.jboss.org<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; Subject: [rules-users] verifying 'is not null' in decision table?<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt;<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt;<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; How can I verify if my condition attribute is not null in decision table?<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt;<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; I have a class -<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt;<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; Public Class Person {<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt;<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; String firstName = null;<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; String lastName = null ;<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt;<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; }<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt;<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; In my decision table I have to check if firstName and lastName are not<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; null<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; and then fire actions.<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt;<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; How I can do this? I know I can get that through drl.<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt;<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; Thanks<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt;<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; --<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; View this message in context:<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; http://n3.nabble.com/verifying-is-not-null-in-<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; decision-table-tp96386p96386.html<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; Sent from the Drools - User mailing list archive at Nabble.com.<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; _______________________________________________<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; rules-users mailing list<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; rules-users@lists.jboss.org<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;&gt; https://lists.jboss.org/mailman/listinfo/rules-users<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;<o:p></o:p></p>
<p class="MsoPlainText">&gt; ******************************************************************************<o:p></o:p></p>
<p class="MsoPlainText">&gt; ********<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; This message is confidential and intended only for the addressee. If you<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; have received this message in error, please immediately notify the<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; postmaster@nds.com and delete it from your system as well as any copies.<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; The content of e-mails as well as traffic data may be monitored by NDS for<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; employment and security purposes. To protect the environment please do not<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; print this e-mail unless necessary.<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; 4EX, United Kingdom. A company registered in England and Wales. Registered<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; no. 3080780. VAT no. GB 603 8808 40-00<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;<o:p></o:p></p>
<p class="MsoPlainText">&gt; ******************************************************************************<o:p></o:p></p>
<p class="MsoPlainText">&gt; ********<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; This message is confidential and intended only for the addressee. If you<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; have received this message in error, please immediately notify the<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; postmaster@nds.com and delete it from your system as well as any copies.<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; The content of e-mails as well as traffic data may be monitored by NDS for<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; employment and security purposes.<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; To protect the environment please do not print this e-mail unless<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; necessary.<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; An NDS Group Limited company. www.nds.com<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; _______________________________________________<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; rules-users mailing list<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; rules-users@lists.jboss.org<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt; https://lists.jboss.org/mailman/listinfo/rules-users<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;<o:p></o:p></p>
<p class="MsoPlainText">&gt; &gt;<o:p></o:p></p>
<p class="MsoPlainText">&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt; --<o:p></o:p></p>
<p class="MsoPlainText">&gt; View this message in context: http://n3.nabble.com/verifying-is-not-null-in-<o:p></o:p></p>
<p class="MsoPlainText">&gt; decision-table-tp96386p97139.html<o:p></o:p></p>
<p class="MsoPlainText">&gt; Sent from the Drools - User mailing list archive at Nabble.com.<o:p></o:p></p>
<p class="MsoPlainText">&gt; _______________________________________________<o:p></o:p></p>
<p class="MsoPlainText">&gt; rules-users mailing list<o:p></o:p></p>
<p class="MsoPlainText">&gt; rules-users@lists.jboss.org<o:p></o:p></p>
<p class="MsoPlainText">&gt; https://lists.jboss.org/mailman/listinfo/rules-users<o:p></o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
**************************************************************************************<br>
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data
 may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.<br>
<br>
NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00<br>
**************************************************************************************<br>
</font><br>
<hr>
<font face="Arial" color="Gray" size="1">This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster@nds.com and delete it from your system as well as any copies. The
 content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes.<br>
To protect the environment please do not print this e-mail unless necessary.<br>
<br>
An NDS Group Limited company. www.nds.com<br>
</font>
</body>
</html>