use of setNextUser() function in instance
Hi,
Is anybody has an example of use of the instance function setNextUser ?
I want to start a new workflow and at the first activity the user choose the next user for the next activity.
The function $instance->setNextUser('XXX') seems to work (user id in table) but in the user processes all the users belong to the activity role can act with the activity : I want that only the selected user can act with the activity.
Thanks