REST API BPM

More general use REST API BDM search

Hi! I'd love some input and ideas, because it feels like I am missing something or thinking of this the wrong way.
I am using bonita to create the process definition, process steps and the business data models. I want to be able to search these existing BDM records via the API based on the fields that exist in the model.

Say you have 3 fields:
- DateCreated field of date type
- Comment field of string type
- DecisionStep of int type

Invoking REST API inside a process/diagram

Hi,

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?

Notifications