Integrating External APIs into Bonita BPM - Emmanuel Katto

Hello Community Members,

My name is Emmanuel Katto. I’m currently working on a project using Bonita BPM, and I need some guidance on integrating external APIs effectively.

  1. What are the best practices for integrating external REST APIs into Bonita? Are there existing connectors or recommended approaches to streamline this process?
  2. How can I best handle data mapping between Bonita variables and the response structure from the external API? Is there a built-in tool or method to facilitate this?
  3. What strategies can I implement for error handling during API calls to ensure that my process remains robust and can gracefully recover from issues?

I appreciate any insights you can share based on your experiences.

Thank you for your help!

Best regards,
Emmanuel Katto

1 Like

Hello Emmanuel,

There is a native REST connector suitable for all use cases.
That being said, if you want to improve the UX for the person who will design the process and call that external REST API, you can build a specific connector (by extending the provided REST connector) so that you can define the input, the output and their type to simplify the data manipulation (instead of returning a JSON structure, you could return typed java objects)

You can look at the documentation there: Extensions Source Development Kits(SDK) | Bonita Documentation
And on Github: GitHub - bonitasoft/bonita-connector-rest: Rest connector for Bonita

I hope this helps,
Captain Bonita

1 Like