How to changed already assigned actor of a task

1
0
-1

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

1
0
-1

Hello Jose,
You can reassign tasks in the Administrator console. For more information see:

https://documentation.bonitasoft.com/bonita/7.6/tasks

Comments

Submitted by josegante on Fri, 04/27/2018 - 18:47

Thanks for your help!
I need to do it in a Groovy script of a task.
Thanks,
Jose

Submitted by joe.pappas on Fri, 04/27/2018 - 18:57

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

Submitted by josegante on Mon, 05/21/2018 - 15:56

Thanks a lot Joe.... and what about for iterating on all active tasks in order to reassign any? (groovy, please)

Notifications