Hi Mr ,
this is true?
TaskService taskService = execution.getEngineServices().getTaskService();
UserTask task2 = new UserTask();
MultiInstanceLoopCharacteristics loop = new MultiInstanceLoopCharacteristics();
loop.setElementVariable("assignee");
loop.setInputDataItem("notificationFinalUserList");
task2.setLoopCharacteristics(loop);
task2.setAssignee(execution.getVariable("assignee").toString());
taskService.saveTask((Task) task2);
"notificationFinalUserList" is a global variable(collection)
for this :
<userTask id="multiTask" name="Review task" activiti:assignee="${assignee}">
<multiInstanceLoopCharacteristics isSequential="false" activiti:collection="notificationFinalUserList" activiti:elementVariable="assignee">
</multiInstanceLoopCharacteristics>
</userTask>