Thanks for bringing this up and we are working on a better way to have the behaviour you expected. The user targeting is done at the time a new user task instance is created. So adding a new user to a role will not auto update the list of targeted users for tasks that are already in progress.
However this newly added user will be a targeted user for any user task that is initiated after the user is added to the role. We understand this is not expect behaviour and we are looking into ways to improve it.
Hi, is there any update on this topic?
I believe this is highly relevant. From what I can see in Workflow Commons, the only option is to retry or restart the entire workflow — which would, of course, update the targeted users. However, this approach is not really feasible for our case.
We will therefore have to implement custom logic to regularly update the targeted users for user tasks in progress...