Invoking REST API inside a process/diagram



What's the correct way to invoke the REST API from inside a BPM/process? I'm getting the 401 Unauthorized response when trying to use the REST Connector to a bonita API.

When invoking it externally, I understand that you need to call the login service and use the received X-Bonita-API-Token cookie. But inside a BPM what's the proper way? Should we use the same logic, with the execution of a REST Connector to the login service, processing the response headers and then send it as a cookie?

If i'm already executing the process inside the bonita scope, it seems that you'd have to do this kind of logic. Is there any other way?

Thanks in advance


Submitted by gulack on Wed, 08/08/2018 - 15:31

The final goal is to read all BDM entities/objects (in a specific state). Maybe there's some better way for that, without using the REST Connector.

No answers yet.