Hi, I have 4 process instances of 1 process definition initialized with a variables' Map. I want to list these instances and get their variables.
I call an executionProcessQuery and from it I extracted the Executions but Interface Execution doesn't have the methodo "getVariable" and I cannot get an "OpenExecution" or an "ActivityExecution" because it said "org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.jbpm.pvm.internal.model.ExecutionImpl.variables, no session or session was closed".
How can I do?
Thanks.
Emanuele
Use the Service Interface:
executionService.getVariable(... // or executionService.getVariables(...