AnsweredAssumed Answered

How to get elementVariable as variable in Task?

Question asked by kccoyote on Jul 23, 2013
Latest reply on Jul 24, 2013 by jbarrez
Hi,

I'm using the following task:


        <userTask id="myTask">
            <multiInstanceLoopCharacteristics isSequential="false"
                                              activiti:collection="${serviceImpl.getPersonIds(id)}"
                                              activiti:elementVariable="person_id">
            </multiInstanceLoopCharacteristics>
        </userTask>


This makes, as expected, a task for each person id in the collection returned by my service.
To differentiate between the tasks, I need to use the person_id.
However, the person_id is nowhere to be found in the Task.

How do I add/access the person_id for the created tasks, so I can filter on it?

Outcomes