Is there a way to start a process by a delegated user using API in Community Edition?


I'm trying to use the Rest API to manage our process. I'm stuck in the process instantiation, since I couldn't find a way to inform the user who actually created the case...

As I'm using the Rest API, I'm logging in with an admin user, and I'd like to indicate he is acting in name of the real user. But the API is just a POST to /API/bpm/process/:processId/instantiation, and there is no information about any kind of delegation or something like that.

Is there any way to do what I need?

Version 7.9.1


Submitted by rtumminelli_1394599 on Thu, 03/12/2020 - 20:36

I know you can do this with the Engine/Java API, but I don't know how to do it with REST API sad_smile.png

1 answer



Bonita doesn't have the 'delegate' implementation. You need to create it by yourself.
For exemple, add user informations in instantiation contract. Save thoses informations in your own BDM table like 'delegatedUser'.
By this way, you will be able to show the delegatedUser informations in your process.



Submitted by alexgv99_1404063 on Thu, 03/12/2020 - 22:53

Hi... thank you for the answer, but it actually have... if you look at the case representation, in the docs,

"startedBySubstitute":"the identifier of the substitute user (as Process manager or Administrator) who started the process. It can be also the substitute user if d=startedBySubstitute is given.",<br />
...<br />
"started_by":"the identifier of the user who started the case",

and if you create a case through the Bonita Java Client, logged in as admin, you'll have a case started by the user you inform and started by substitute as admin.

So, I still keep the hope to find a way to do what I need.

Anyway, thanks for the time you took to answer the question.


Submitted by bastien.laurent... on Fri, 03/13/2020 - 08:27

Yes, but like rtumminelli_1394599 say, I think it's not possible to do with REST API, so that was my solution. By the way, you can create your own API and use the Bonita Engine API to do this.