JBoss Community

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

created by Guo-Guang Chiou in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community