AnsweredAssumed Answered

How do I get access to execution variables outside of a service task>

Question asked by sirreginald on May 8, 2015
Latest reply on May 11, 2015 by martin.grofcik
I'm new to activiti so apologies if the answer to this is obvious. In a service task I use execution.getVariable().
I need to get execution variables inside a servlet. I tried using:


Execution execution = processEngine.getRuntimeService().createExecutionQuery()
               .processInstanceId(processId)
               .singleResult();

execution.getVariable(propertyId);



But it says that getVariable isn't a method for execution.

Outcomes