<div dir="ltr">Concerning point #1, I&#39;m not sure I understand what you mean, I&#39;m sorry, but might be connected to my last statement about &quot;t<span style="font-family:arial,sans-serif;font-size:13px">his approach would solve for &quot;network delay issue&quot; but will induce another problem (...)&quot; </span><div>

<span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Because basically with this approach I personally found that also:</span><div><span style="font-family:arial,sans-serif;font-size:13px">a. data is buffered and inserted in chronological order</span></div>

<div><font face="arial, sans-serif">b. pseudoclock is advanced anyway after a &quot;deathwatch&quot; period, normally to activate negative patterns as you mention - thus at the same time discarding data if arriving after the deathwatch already triggered</font></div>

<div><font face="arial, sans-serif">c. </font><span style="font-family:arial,sans-serif">pseudoclock </span><font face="arial, sans-serif">is advanced anyway to trigger timers of rules</font></div><div><font face="arial, sans-serif"><br>

</font></div><div><font face="arial, sans-serif">This is the part which gets complex and the reason behind I mentioned </font><span style="font-family:arial,sans-serif;font-size:13px">I do mostly same as code example linked.</span></div>

<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">In my use case scenario, implementation of </span><span style="font-family:arial,sans-serif">deathwatch + advance of pseudoclock anyway, do fit the bill; but of course result may vary depending case by case.</span></div>

</div><div><span style="font-family:arial,sans-serif"><br></span></div><div><span style="font-family:arial,sans-serif"><br></span></div><div><span style="font-family:arial,sans-serif">Concerning point #2 in my use case timer of rules do work, even if I use pseudoclock.  </span><span style="font-family:arial,sans-serif">But again, result may differ depending on the rules specification, I suppose.</span></div>

<div><span style="font-family:arial,sans-serif"><br></span></div><div><span style="font-family:arial,sans-serif"><br></span></div><div><span style="font-family:arial,sans-serif">Sorry I cannot be of more help, I thought worthy share my experience anyway because I felt was very similar scenario, and fortunately the system behaves as expected.</span></div>

<div><span style="font-family:arial,sans-serif"><br></span></div><div><span style="font-family:arial,sans-serif">Ciao</span></div><div><span style="font-family:arial,sans-serif">MM</span></div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Wed, Jun 4, 2014 at 2:07 PM, SebastianStehle <span dir="ltr">&lt;<a href="mailto:mail2stehle@gmail.com" target="_blank">mail2stehle@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Thanks for your answer.<br>
<br>
We already use the pseudo-clock for running unit tests, but there might be<br>
some other problems:<br>
<br>
1. If you do not move forward step by step you can miss the exact times when<br>
using negative patterns. e.g. in my example you would need to step forward<br>
with AdvanceTiem with about 100ms or 1sec or so.<br>
<br>
2. We also use timers, this does not work with the pseudo clock as well,<br>
same problem like above.<br>
<br>
In my understand the example should work, if not I dont see what the<br>
@timestamp config is for.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Fusion-Insert-Events-with-timestamp-in-the-past-tp4029843p4029852.html" target="_blank">http://drools.46999.n3.nabble.com/Fusion-Insert-Events-with-timestamp-in-the-past-tp4029843p4029852.html</a><br>


<div class="HOEnZb"><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">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>
</div></div></blockquote></div><br></div>