<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>RE: trivial case in xls</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Courier New">sorry, i used the wrong word "action", instead of "data".</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">take the schema once more to avoid misunderstanding (assume no grouped rows).</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">-------------------------------------------</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> | CONDITION</FONT>
<BR><FONT SIZE=2 FACE="Courier New">-------------------------------------------</FONT>
<BR><FONT SIZE=2 FACE="Courier New">object type/ | $p : Person</FONT>
<BR><FONT SIZE=2 FACE="Courier New">-------------------------------------------</FONT>
<BR><FONT SIZE=2 FACE="Courier New">snippet/condition | ? </FONT>
<BR><FONT SIZE=2 FACE="Courier New">-------------------------------------------</FONT>
<BR><FONT SIZE=2 FACE="Courier New">explaination text | xxxxxxxxx </FONT>
<BR><FONT SIZE=2 FACE="Courier New">-------------------------------------------</FONT>
<BR><FONT SIZE=2 FACE="Courier New">cell/data | ?</FONT>
<BR><FONT SIZE=2 FACE="Courier New">-------------------------------------------</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">it's clear: the condition ("snippet" in my term) can not be empty, and the<B> data</B> ("cell" in my term) can be empty. </FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">in my case how should i put the condition, when no field constraint is there? how should i put in the</FONT><B> <FONT SIZE=2 FACE="Courier New">data</FONT></B><FONT SIZE=2 FACE="Courier New">? an empty invalidates the condition! </FONT></P>
<P><FONT SIZE=2 FACE="Courier New">the case i raised seems trivial. actually it finds many applications as follows. in question comes the rule "otherwise": </FONT></P>
<P><FONT SIZE=2 FACE="Courier New">rule "main"</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">salience 10</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">when</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> $p : Person(age > 35)</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> then</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> // do something with persons older than 35</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">System.out.println("hello, " + $p + "!");</FONT>
<BR><FONT SIZE=2 FACE="Courier New">end </FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">rule "otherwise"</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">when</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> $p : Person()</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> then</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">// ignore other persons, i.e. retract them to avoid memory leaks</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> retract($p);</FONT>
<BR><FONT SIZE=2 FACE="Courier New">end</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Courier New">/ Ben</FONT>
</P>
<BR>
</BODY>
</HTML>