Is there a way by which we can modify the data of a process instance in jBPM which is already started (after starting the instance).
I have started a process using
ProcessInstance processInstance = ksession.startProcess(procId,params);
and now after some event I need to modify the process instance data :
((WorkflowProcessInstance) processInstance).setVariable("transit_To", "DONE");
This gives me error: Process instance 875[or.example.proc] is disconnected.
Any sort of information would be really helpful.
Thanks.