On a rule&#39;s RHS:<br><br>    kcontext.getKnowledgeRuntime().getSessionClock()<br><br>org.drools.runtime.KnowledgeContext kcontext is automagically available. See javadoc for KnowledgeRuntime.<br><br>-W<br><br><br><br><div class="gmail_quote">
On 9 May 2011 06:53, kkelleyjr <span dir="ltr">&lt;<a href="mailto:karl.kelley.jr@gmail.com">karl.kelley.jr@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;">
t<br>
<div class="im">Wolfgang Laun-2 wrote:<br>
&gt;<br>
&gt; The session clock is available from the StatefulKnowledgeSession:<br>
&gt;<br>
&gt;    SessionClock clock = kSession.getSessionClock();<br>
&gt;    long ctInMillis = clock.getCurrentTime();<br>
&gt;<br>
&gt;<br>
<br>
</div>I have seen this in the documentation... However, my issue is: how do I get<br>
ref to kSession when the session is created through a spring<br>
configuration... Or are you saying there is always a reference to kSession<br>
within the rules file? if so, how is the ref to kSession accessed?<br>
<br>
 Thanks for your responses,<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/rules-users-Firing-the-rule-at-the-basis-of-time-tp2889494p2917528.html" target="_blank">http://drools.46999.n3.nabble.com/rules-users-Firing-the-rule-at-the-basis-of-time-tp2889494p2917528.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>