AnsweredAssumed Answered

My usage error retrieving variable ?

Question asked by dthknt on Jan 6, 2016
Latest reply on Jan 7, 2016 by jbarrez
I created an subprocess with multiInstanceLoopCharacteristics as follows:

<subProcess id="sp_preencherPUA" name="Gera PUAs">
   <multiInstanceLoopCharacteristics isSequential="false">
      <inputDataItem name="assignee" />
   <startEvent id="inicioPUA" name="Inicia PUA" />   
   <endEvent id="fimSp_preencherPUA" name="End" />

And as the FAQ describes "Each of the executions will have a process variable named assignee".
When I try to get it using
runtimeService.getVariable(processInstanceId, assignee); 
, as I use it everywhere on the system, it returns null.
If I change processInstanceId to executionId value, it works !
I checked the table "ACT_RU_VARIABLE", both process and execution values are there and match with Task instance values.

Is it some multi instance limitation ?