Hi,
Yannick gives you the solution but you can't collect the email of the person who performs the task with this command. I recommend you to use it in this case:
return BonitaUsers.getUserProfessionalContactInfo(apiAccessor, taskAssigneeId).getEmail();
Perhaps you can use it for more information.
Comments
Thanks, but this code only saves the user initiating the process. I need to store for each user task that can be performed or not the initiator
I know that you can get the user that is assigned to a task :
I try this in a process andit works, you need to add the returned user to a list on each task.