How to setup connect-timeout

Hi,

I call a REST API from BPM Engine. I get some trouble when calling from my local machine. I get an exception connect timed out. So I want to increase the connect-timeout.
I tried to put in flowable.properties file with values
flowable.http.socket-timeout=60000
flowable.http.connect-timeout=60000
flowable.http.connection-request-timeout=60000

But engine doesn’t consider my parameterization. Into FlowableHttpProperties class, this value is defined as Duration. Do I need to use a specific format to set them up ?

It uses the Spring Boot format of expressing Durations. So something like

flowable.http.socket-timeout=60s

will work

1 Like

Thank you for your response.

There was another mistake on my side, I tried to create a properties file in tomcat conf directory. When I move it inside the war and with your format, it now OK.

This is helpful. It resolved issue which i was facing with http task (socket timeout). Thanks a lot.