This content has been marked as final.
Show 2 replies
-
1. Re: How to store Process Definition using identifier
brianmb99 Oct 18, 2005 3:38 PM (in response to mangeshd)Hi there,
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");
Brian -
2. Re: How to store Process Definition using identifier
mangeshd Oct 20, 2005 3:21 PM (in response to mangeshd)Thanks a lot brian...it worked !!!