[jboss-user] [jBPM] - Re: How to get an object like kcontext to call setVariable("variable", value) for begin used by following tasks??

Guo-Guang Chiou do-not-reply at jboss.com
Mon Oct 17 20:50:12 EDT 2011


Guo-Guang Chiou [http://community.jboss.org/people/taitung.wilbert] created the discussion

"Re: How to get an object like kcontext to call setVariable("variable",value) for begin used by following tasks??"

To view the discussion, visit: http://community.jboss.org/message/632167#632167

--------------------------------------------------------------
Hi Mauricio, 

I did use variable mapping in the workitem handler. 
That's why I can get the variable by using WorkItem.getVariable("").
You mention that externally accessing kcontext is not a good practice.
However, I think,in some situation, it is inevitable that some tasks(ex user task, script task, and etc) 
depends on the outputs produced by WorkItemHandler.
Therefore, how do I can affect the variable value in WorkItemHandler, 
or, is there any alternative of good practice to accomplish the process I want.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/632167#632167]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111017/f7098db0/attachment.html 


More information about the jboss-user mailing list