<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">A newbie question I'm afraid. I've been
unsuccessful searching the mailing-list archive (and google) for this.</font>
<br>
<br><font size=2 face="sans-serif">I'm trying to simplify rule-writing
for Statistical Analysts to be able to write rules. I'm hoping to achieve
this without resort to DSLR files and a DSL if possible as we currently
need them for nothing else</font>
<br>
<br><font size=2 face="sans-serif">One of the situations I have is the
following:</font>
<br><font size=2 face="sans-serif">--------------------</font>
<br><font size=2 face="sans-serif">when</font>
<br><font size=2 face="sans-serif">$performance : Performance(</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; eval(calcScore.contains(BigInteger.valueOf(6)))</font>
<br><font size=2 face="sans-serif">)<br>
then</font>
<br><font size=2 face="sans-serif">[...]</font>
<br><font size=2 face="sans-serif">--------------------</font>
<br>
<br><font size=2 face="sans-serif">That works absolutely fine: CustAccPerf
being a having several members, including an ArrayList&lt;BigInteger&gt;
called calcScore</font>
<br>
<br><font size=2 face="sans-serif">Howwever I'd like to rewrite it like:</font>
<br><font size=2 face="sans-serif">--------------------</font>
<br><font size=2 face="sans-serif">when</font>
<br>
<br><font size=2 face="sans-serif">$performance : Performance( calcScore
contains 6 )<br>
then</font>
<br><font size=2 face="sans-serif">[...]</font>
<br><font size=2 face="sans-serif">--------------------</font>
<br>
<br><font size=2 face="sans-serif">Given the support for BigInteger &amp;
BigDecimal type comparison, and the structure of the 'contains' operator,
I couldn't see why this wouldn't work.</font>
<br>
<br><font size=2 face="sans-serif">If someone could explain this would
be excellent - for now I'm gong ahead with the eval, but from a non-technical
usability POV the latter form would be far preferable: I'd prefer that
the users don't have to worry about eval or BigInteger, and while I realize
it's not possible (currently) to eliminate that altogether, I would like
to eliminate as many of the (to quote) &quot;meaningless tech stuff&quot;
questions as possible.</font>
<br>
<br><font size=2 face="sans-serif">Alternately if some kind person wants
to tell me a better way of structuring that rule so I can use it as a template,
then that'd be welcome also.</font>
<br>
<br><font size=2 face="sans-serif">Unfortunately we're dealing with a feed
from a 3rd party system so restructuring the data is not a desirable option.</font>
<br>
<br><font size=2 face="sans-serif">Thank you for your time,</font>
<br><font size=2 face="sans-serif">-Trav</font>
<br><font size=2 face="sans-serif"><br>
</font><font size=1 face="Arial"><b>Travis Smith</b><br>
Analyst Programmer<br>
Development Centre<br>
BNZ<br>
<br>
</font><pre>
CAUTION - This message may contain privileged and confidential information 
intended only for the use of the addressee named above. If you are not the 
intended recipient of this message you are hereby notified that any use, 
dissemination, distribution or reproduction of this message is prohibited. 
This email was sent by the Bank of New Zealand. You can contact us on 
0800 ASK BNZ (0800 275 269). Any views expressed in this message are those 
of the individual sender and may not necessarily reflect the views of Bank 
of New Zealand.
</pre>