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
Hello,
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.
Regards
I know you can do this with the Engine/Java API, but I don't know how to do it with REST API
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.",
...
"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.
Alex.
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.