Usually you don&#39;t need this; a plain<br>   retract( $boundToEventFact );<br>is sufficient.<br>-W<br><br><div class="gmail_quote">On 13 September 2011 16:16, eskomk <span dir="ltr">&lt;<a href="mailto:esko.hujanen@ebsolut.fi">esko.hujanen@ebsolut.fi</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;">Hi all,<br>
<br>
I need to retract events from StatefulKnowledgeSession in rule&#39;s<br>
consequences section.<br>
How do I get a handle to the session in rule&#39;s RHS ?<br>
<br>
When I get this session handle I will try to use its retract method:<br>
void retract(FactHandle handle)<br>
(which is derived from WorkingMemoryEntryPoint interface)<br>
<br>
to remove the event which caused the rule to fire.<br>
<br>
thanks, Esko<br>
--------------<br>
Esko Hujanen<br>
<a href="http://www.ebsolut.fi" target="_blank">http://www.ebsolut.fi</a><br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/How-to-get-handle-to-stateful-session-in-rule-RHS-tp3332730p3332730.html" target="_blank">http://drools.46999.n3.nabble.com/How-to-get-handle-to-stateful-session-in-rule-RHS-tp3332730p3332730.html</a><br>

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