AnsweredAssumed Answered

How to recover variables after the execution of the process?

Question asked by rodolfobarbeiro on Jul 7, 2011
Latest reply on Jul 18, 2011 by rodolfobarbeiro
Hi!

I'm trying to retrieve the variables of a process that has no "waitState" task. But an error occurs because the process instance is already closed.


ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(processName, parameters);
         
Map<String, Object> variables =  runtimeService.getVariables(processInstance.getId());


Is there any other way to recover the process variables?

Thanks!

Outcomes