I am trying to use Camunda REST Connector with ServiceTasks to perform automatic tasks in my BPM workflow. However I am not sure what is the best way to catch technical errors that occur within the ServiceTask, for example if the REST API endpoint is not responding.
I would assume that I should have boundary errors after for example 1-2-3 retries of the API, but the documentation says that "In the context of the process engine, errors are normally raised as Java exceptions which you have to handle."
I am using Camunda only through the REST API, and I am not sure how to handle technical errors (for example if the ServiceTask should send an email, but the REST API is down and it is not possible to send the email. Then this sounds like a business error, since an admin should perform a manual task of sending the email himself...).
What is the best practice to handle technical errors in a BPM workflow?
Thank you,
Best regards,
Anton