Allow a specific user to execute a task assigned to another

Hi,

I’m developing a leave management system with Bonita 7.0.1 Community. Basically, an employee creates a leave request that must be approved by his manager. The processes works fine and I have developed a client application using AngularJS. The application allows the user to start processes and execute tasks assigned to him.

Now here is my problem : if the manager is not here to approve the request it will be pending until he returns. To avoid that, I’d like to allow a specific user (let’s call him A) to execute the tasks assigned to the manager (let’s call him M) when he is absent.

  • Validation tasks should be automatically assigned to M
  • A should be able to execute tasks for M from the client application
  • A should be allowed to execute tasks assigned to M but not tasks assigned to other users
  • There are several managers, and A can be a different user for each of them

How can I do it ? Actor filters ? REST API ?

Regards

Hi,

I think you can make an external app that manages these kind of changes. I mean, an app that you can reasign all the tasks of a user, for doing this you can use the Engine API.

You can learn more with the javadoc: http://documentation.bonitasoft.com/javadoc/api/7.0/org/bonitasoft/engine/api/ProcessRuntimeAPI.html#assignUserTask(long,%20long)

I hope this helps.