Subsection "The Right Hand Side (then)" of the Expert manual explains
some details about the implicit variables. E.g.:
kcontext.getKnowledgeRuntime()
-W
On 13 September 2011 16:16, eskomk <esko.hujanen(a)ebsolut.fi> wrote:
Hi all,
I need to retract events from StatefulKnowledgeSession in rule's
consequences section.
How do I get a handle to the session in rule's RHS ?
When I get this session handle I will try to use its retract method:
void retract(FactHandle handle)
(which is derived from WorkingMemoryEntryPoint interface)
to remove the event which caused the rule to fire.
thanks, Esko
--------------
Esko Hujanen
http://www.ebsolut.fi
--
View this message in context:
http://drools.46999.n3.nabble.com/How-to-get-handle-to-stateful-session-i...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users