How to changed already assigned actor of a task
Hi,
I'm using BonitaStudioCommunity-7.6.0 and my new requirement is to change the actor already assigned to a task when a timeout has been reached.
(i.e: assign the approval of holiday request to the manager supervisor in case of the manager doesn't answer)
Could you please provide some guidance to this task?
Thanks,
Jose.
1 answer
Hello Jose,
You can reassign tasks in the Administrator console. For more information see:
https://documentation.bonitasoft.com/bonita/7.6/tasks
Comments
Thanks for your help!
I need to do it in a Groovy script of a task.
Thanks,
Jose
In a groovy script
apiAccessor.getProcessAPI().assignUserTask(userTaskId, userId)
Obviously, you'll need the id of the task and user in order to make it work
Thanks a lot Joe.... and what about for iterating on all active tasks in order to reassign any? (groovy, please)