cancel
Showing results for 
Search instead for 
Did you mean: 

How to get elementVariable as variable in Task?

kccoyote
Champ in-the-making
Champ in-the-making
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?
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
hmmm it should do exactly that: add a person_id variable on the task.
How do you fetch the person_id now?