<!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.2900.3059" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=238193603-29052007><FONT face=Arial size=2>Hi 
there,</FONT></SPAN></DIV>
<DIV><SPAN class=238193603-29052007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=238193603-29052007><FONT face=Arial size=2>seeing some very 
strange behaviour from the following rule</FONT></SPAN></DIV>
<DIV><SPAN class=238193603-29052007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=238193603-29052007><B><FONT color=#960000 size=2>
<P align=left>rule</B></FONT><FONT size=2> </FONT><FONT color=#008000 
size=2>"sum higher rate totals"</P></FONT><FONT size=2>
<P align=left></FONT><B><FONT color=#960000 size=2>salience</B></FONT><FONT 
size=2> 970</P>
<P align=left></FONT><B><FONT color=#960000 size=2>no-loop</B></FONT><FONT 
size=2> </FONT><B><FONT color=#960000 size=2>true</P></B></FONT><FONT size=2>
<P align=left></FONT><B><FONT color=#960000 size=2>when</P></B></FONT><FONT 
size=2>
<P align=left>timesheet : TimesheetTransferObject( )</P>
<P align=left>total : SheetTotalTransferObject($ihrisType : ihrisType -&gt; 
($ihrisType.equals(ihrisType.getDutyHourTotal())), $payRate : payRate -&gt; 
($payRate.equals(timesheet.getOfficer().getSubstantiativeRate()) == 
</FONT><B><FONT color=#960000 size=2>false</B></FONT><FONT size=2>))</P>
<P align=left></FONT><B><FONT color=#960000 size=2>eval</B></FONT><FONT 
size=2>(total.getValue().doubleValue() &gt; 0)</P>
<P align=left>highDutyTotal : Double( )</P>
<P align=left></FONT><B><FONT color=#960000 size=2>then</P></B></FONT><FONT 
size=2>
<P align=left>highDutyTotal = </FONT><B><FONT color=#960000 
size=2>new</B></FONT><FONT size=2> 
Double(DateUtils.addElapsedTimes(highDutyTotal.doubleValue(), 
total.getValue().doubleValue()));</FONT></P>
<P align=left><SPAN class=238193603-29052007><FONT 
size=2>modify(highDutyTotal)</FONT></SPAN></P><FONT color=#960000>
<P><FONT size=2><STRONG>end</STRONG></FONT></P>
<P><SPAN class=238193603-29052007><FONT face=Arial color=#000000 size=2>In my 
test the rule fires twice when I don't call modify. Which is the expected 
behaviour because I have two unqiue <FONT 
face="Times New Roman">SheetTotalTransferObject 
objects.</FONT></FONT></SPAN></P>
<P><SPAN class=238193603-29052007><FONT color=#000000 size=2>However when I call 
modify on the Double object the rule only runs once. This is incorrect 
behaviour.</FONT></SPAN></P>
<P><SPAN class=238193603-29052007><FONT color=#000000 
size=2></FONT></SPAN>&nbsp;</P>
<P><SPAN class=238193603-29052007><FONT color=#000000 size=2>Can anyone offer 
any clues as to what may be happening here. Is it to do with my use of the 
Double type?</FONT></SPAN></P></FONT></SPAN></DIV></BODY></HTML>

<table><tr><td bgcolor=#ffffff><font color=#000000>This correspondence is for the named persons only. <br>
It may contain confidential or privileged information or both. <br>
No confidentiality or privilege is waived or lost by any mis transmission. <br>
If you receive this correspondence in error please delete it from your system immediately and notify the sender. <br>
You must not disclose, copy or relay on any part of this correspondence, if you are not the intended recipient. <br>
Any opinions expressed in this message are those of the individual sender except where the sender expressly, <br>
and with the authority, states them to be the opinions of the Department of Emergency Services, Queensland.<br>
</font></td></tr></table>