First of all, don&#39;t use automated time stamping of events; add a field carrying the (original) event time. I think you could also run the session in CLOUD mode.<br><br>Also, it may not be advisable to pull in facts and reason over them in the same rule. Perhaps retrieval and proper insertion of facts should even be coded in Java, kept separate from the rule logic.<br>
<br>Much depends on the required use cases for running those multiple sessions, and how canned events relate to other data. <br><br>-W<br><br><br><div class="gmail_quote">On 13 July 2011 02:13, rp2 <span dir="ltr">&lt;<a href="mailto:amanteja@gmail.com">amanteja@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"><br>
Wolfgang Laun-2 wrote:<br>
&gt;<br>
&gt; The example does not use events, as in @role(event). You can maintain<br>
&gt; a value of type java.util.Date in your hibernated facts, but don&#39;t make<br>
&gt; them events the way you do.<br>
&gt;<br>
&gt;<br>
</div>It is important for me to use temporal reasoning and CEP, and hence HAD to<br>
define these as @events.<br>
<br>
In addition I wanted to load and persist these events from/in a custom non<br>
JPA compliant key-value store because I will be running multiple instances<br>
of drools as opposed to only one server. Therefore relying on  RAM based<br>
working memory is not enough.<br>
<br>
What would be your suggestion in that regard?<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Temporal-reasoning-with-external-persistence-not-working-tp3158399p3164267.html" target="_blank">http://drools.46999.n3.nabble.com/Temporal-reasoning-with-external-persistence-not-working-tp3158399p3164267.html</a><br>

</font><div><div></div><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>