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.