Does the doSomething() update or retract any EventObject facts and notify<br>the Drools engine accordingly?<br><br>(So far: Neither using the same class for the &quot;create&quot; and the &quot;delete&quot; events nor<br>using a map (i.e., &quot;data&quot;) for all properties is helping w.r.t. speed.)<br>
<br>-W<br><br><div class="gmail_quote">On 30 January 2012 15:07, Philipp Herzig <span dir="ltr">&lt;<a href="mailto:pherzig@googlemail.com">pherzig@googlemail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sure, here it is. Sorry for any inconvienience!<br>
<br>
rule &quot;new_intent&quot;<br>
timer (20s)<br>
when<br>
     $evt : EventObject(data[&#39;type&#39;]==&#39;create&#39;) from entry-point eventstream<br>
     not ( EventObject(data[&#39;type&#39;]==&#39;delete&#39;,<br>
data[&#39;mrid&#39;]==$evt.data[&#39;mrid&#39;], data[&#39;userid&#39;]==$evt.data[&#39;userid&#39;])<br>
from entry-point eventstream)<br>
then<br>
 SomeAPI.getInstance().doSomething();<br>
end<br>
<br>
<br>
Thank you,<br>
<br>
Philipp<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
2012/1/30 Michael Anstis &lt;<a href="mailto:michael.anstis@gmail.com">michael.anstis@gmail.com</a>&gt;<br>
&gt;<br>
&gt; It&#39;s going to help (probably) if you include the definition of your rule (or rules).<br>
&gt;<br>
&gt; 2012/1/30 Philipp Herzig &lt;<a href="mailto:pherzig@googlemail.com">pherzig@googlemail.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; Dear Community,<br>
&gt;&gt;<br>
&gt;&gt; Drools is pretty fast regarding all my use cases. However, today I have found a problem where I cannot find any solution. Hopefully someone of you can help.<br>
&gt;&gt;<br>
&gt;&gt; 1. I have a rule with a @timer(10s) attribute (should be 24h later on but doesn&#39;t matter). This rule is activated when a &quot;create&quot; event occurs and invalidated once a &quot;delete&quot; event occurs within the timeframe of @timer.<br>

&gt;&gt;<br>
&gt;&gt; 2. I have approx. 9000 &quot;create&quot; events which are bulk loaded into the working memory and creating activations for the rule above.<br>
&gt;&gt;<br>
&gt;&gt; 3. I have approx. 2000 &quot;delete&quot; events which are bulk loaded into my entry-point cancelling the respective activations from step (2)<br>
&gt;&gt;<br>
&gt;&gt; 4. After the timer expired, the first activation is fired correctly. However, all other activations are fired with some noticeable delay (actually it needs 20-30minutes until all activations are fired).<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Do you have an idea what the problem with the timer might be? Unfortunately, I have neither an idea how the scheduler in the background works nor which class I should start looking at.<br>
&gt;&gt;<br>
&gt;&gt; BTW: For testing purpose I switched step (2) &amp; (3), that is, &quot;delete&quot; events are inserted before the &quot;create&quot; events and removed the timer attribute which is obviously the same logic. It performs lightning fast in this case... (all remaining activations are fired within 5 seconds). However, insertinging my &quot;delete&quot; events before the &quot;create&quot; events is ok for testing but not feasible in practice.<br>

&gt;&gt;<br>
&gt;&gt; It would be great if some of you has an idea or point to start within the code.<br>
&gt;&gt;<br>
&gt;&gt; Thanks in advance,<br>
&gt;&gt;<br>
&gt;&gt; Philipp<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
--------------------------------------------<br>
Philipp Herzig, M.Sc.<br>
<br>
Mail: <a href="mailto:pherzig@googlemail.com">pherzig@googlemail.com</a><br>
Cell: 0178 - 6156244<br>
</font></span><div class="HOEnZb"><div class="h5"><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>