1 Reply Latest reply on Jul 8, 2009 9:55 AM by Bernd Ruecker

    jBpm 4.0CR1 - Getting variable from processInstance

    Emanuele Fabbri Newbie

      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