JBoss Community

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

created by Mauricio Salatino in jBPM - View the full discussion

Hi Guo-Guang,

Instead of setting a variable to the kcontext you should do the variable mapping in the workitem and the process will automatically copy that information to the process scope when the work item finish. The main idea of work item is that is an external execution from the process context, so having access to the kcontext is not usually a good practice.

 

Cheers

Reply to this message by going to Community

Start a new discussion in jBPM at Community