I think that the idea is that WI should be isolated from the context itself. WI receives parameters, and do some work. When someone completes the WI (that someone could be the WI itself, or some other async process from outside) output parameter could be included. So if you need to read a context variable to make some kind of decision inside your WI, map it to the WI's parameters. If you need to modify a context variable, you could use the WI's output parameters in conjunction with another process node.<div>
<br></div><div>Best, </div><div><br><div class="gmail_quote">On Tue, Jun 1, 2010 at 12:47 AM, blackrosey <span dir="ltr"><<a href="mailto:blackrosezy@gmail.com">blackrosezy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
How do I access kcontext in custom workItem?<br>
<br>
public void executeWorkItem(WorkItem i, WorkItemManager m) {<br>
// I want kcontext variable here<br>
}<br>
<br>
Thanks.<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/RuleContext-aka-kcontext-in-workItem-tp860256p860256.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/RuleContext-aka-kcontext-in-workItem-tp860256p860256.html</a><br>
Sent from the Drools - User 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><br clear="all"><br>-- <br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>
</div>