AnsweredAssumed Answered

Reading a variable set in the DelegateExecution

Question asked by mark1970 on Jan 13, 2011
Latest reply on Jan 14, 2011 by mark1970
Hi all,
I'm just beginning learning Activiti and I'd need a bit of help with Execution variables.
I'm setting some variables in a serviceTask

public void execute(DelegateExecution arg0) throws Exception {
                           . . . .
           arg0.setVariable("user", rs.getString(1));

however I'd need to read this variable from an EJB, so I tried:

ExecutionQuery execution = runtimeService.createExecutionQuery().processInstanceId(procId);
List <Execution> list = execution.list();

However the single Execution instances do not contain any getVariable method.
What's the correct way to retrieve the variable value ?