This content has been marked as final. Show 2 replies
It looks like you're saving the variable in process instance A and then creating a new process instance B and trying to get the variable value out of B. Try something like:
myProcessInstance.createVariable("status", "PENDING"); jbpmSession.getGraphSession.saveProcessInstance(myProcessInstance); long processId = myProcessInstance.getId();
save your processId somewhere, then later:
ProcessInstance myProcessInstanceReloaded = jbpmSession.getGraphSession().loadProcessInstance(processId); Object savedValue = myProcessInstanceReloaded .getContextInstance().getVariable("status");
Thanks a lot brian...it worked !!!