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