AnsweredAssumed Answered

Loop over list and assign user tasks

Question asked by gi00vani_kun on Mar 3, 2015
Latest reply on Mar 3, 2015 by jbarrez
Hi,

I am new to Activiti.

I've been working on this for 1 month now and reaching the end of my project I've got into a problem, when iterating a list in a user task as sequential the items will have the same value and they'll be displayed (User inbox as one 1 item ) but they are actually one over another (because the engine assigns  the same id to each of them( my hunch) )


<userTask id="usertask2" name="Solve ">
      <multiInstanceLoopCharacteristics isSequential="true"  activiti:collection="list2process">
        <!–loopCardinality>5</loopCardinality –>
      </multiInstanceLoopCharacteristics>
    </userTask>


And when I'm iterating in parallel the user will receive only the last value of the list ! (hence all user tasks will have the same value and not a unique one)


<userTask id="usertask2" name="Solve ">
      <multiInstanceLoopCharacteristics isSequential="false"  activiti:collection="list2process">
        <!–loopCardinality>5</loopCardinality –>
      </multiInstanceLoopCharacteristics>
    </userTask>


What am I doing wrong ? it there a way to create multiple unique user tasks and each of them to get the right value from the list ?

Outcomes