Http-connector ConnectionTimeout

I am trying to build a process which connects to several APIs. I am trying to use http-connectors for the same.
After some experimentation, I realize that the http-connector does not do anything special for status codes like 4xx or 5xx.
But for ConnectionTimeout exceptions, (where the status code does not exist) the task throws up. I tried using a boundary error event . But, it did not get invoked despite the exception (which i see in logs).

My questions are:

  1. How can I handle such exceptions in the workflow ?
  2. What errors can the http-connector throw that can be caught using the error boundary event ?

retry_poc.bpmn (7.9 KB)

I would suggest not using Connectors at all
Use Java Classes or External Tasks for making the calls, it’s much easier to build, maintain and customize.

2 Likes

Thanks @Niall. Ill proceed with the Java classes.

You can also do it quickly with a script task such as Replacing Http-Connector with Jsoup usage

Where the http connection made by the lib has a timeout method to control how long the http connection will remain active before timeout