<div><br></div>   Hello Daniel,<div><br></div><div>   It is hard to say what is wrong, just from the information bellow. Maybe you can provide a test case that would allow others to inspect what you are doing and pointing you in the right direction?</div>

<div><br></div><div>     Edson</div><div><br><div class="gmail_quote">2010/7/7 djb <span dir="ltr">&lt;<a href="mailto:dbrownell83@hotmail.com" target="_blank">dbrownell83@hotmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi,<br>
<br>
So I am making progress...  I am taking medical insurance claims and<br>
inserting them into the entry-points as events, using the date of the claim<br>
as the timestamp of the event.<br>
<br>
I just want to check how am I meant to do this?  I decided I probably need a<br>
pseudo-clock as I am using historical data.  I presume I am meant to work<br>
out how long it has been since the last claim, and then call advanceTime, as<br>
below...<br>
<br>
<br>
long previousClaimTime = 0;<br>
for (ClaimOrReversal cor : history)<br>
{<br>
   if (cor.isSubmittal())<br>
      {<br>
        long ms = cor.getTimestamp().getTime() - previousClaimTime;<br>
        clock.advanceTime(ms, TimeUnit.MILLISECONDS);<br>
        claimEntry.insert(cor);<br>
      }<br>
<br>
   previousClaimTime = cor.getTimestamp().getTime();<br>
}<br>
<br>
<br>
However, nothing is firing (claimEntry above corresponds to the entry point<br>
name below).<br>
Not even this:<br>
<br>
rule claimReceived<br>
when<br>
      $event : ClaimSubmittedEvent() from entry-point<br>
&quot;ClaimReceivedEntryPoint&quot;<br>
then<br>
      System.out.println(&quot;YEAH!&quot;);<br>
end<br>
<br>
What am I doing wrong?<br>
<br>
Regards,<br>
Daniel<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Fusion-pseudo-time-and-custom-timestamps-tp949325p949325.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Fusion-pseudo-time-and-custom-timestamps-tp949325p949325.html</a><br>


Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com" target="_blank">www.jboss.com</a><br>
</div>