AnsweredAssumed Answered

How to get an MI UserTask variable on Java

Question asked by luisalves00 on Apr 21, 2011
Latest reply on Apr 26, 2011 by luisalves00
Hello,


got this:


<userTask id="usertask2" name="Card Programming (${ppItem.pp.name})"
         activiti:candidateUsers="${ppItem.programmmers}">
         <multiInstanceLoopCharacteristics
            isSequential="false">
            <loopDataInputRef>ppList</loopDataInputRef>
            <inputDataItem name="ppItem" />
         </multiInstanceLoopCharacteristics>
      </userTask>

I was trying to do this:


//PPTaskModel ppModel = (PPTaskModel) getActivitiEngine().getRuntimeService().ge getVariable(task.getProcessInstanceId(), "ppItem"); 

but this is not a global process variable…how do I get it then?

Outcomes