How do I implement something like tihs:
1)make a HTTP call and wait for about 5000 ms.(Waiting period can vary)
2) if you get response, take path A.
3) else Take Path B.
The below article will help you implement the delay you are looking for. Regarding the second part of the question, you may introduce Decision/Route shape, based on the HTTP connector response you see, you can configure these shapes to decide the execution path.
How to Delay a Process Execution Using Groovy
1)make a HTTP call and wait for about 5000 ms.(Waiting period can vary) - you mean keep connetion alive for 5000 ms or keep the time out limit to 5000 ms.
for 2/3 you can use decision step where you can read the HPPT response compare it and take required path.
HI Kuladeep Surisetti,
If I understand you correctly you are intending to make a increase timeout for HTTP client then you can go through doc How to Increase HTTP Timeout .
If you wish to keep your thread in a waiting state go through document specified by Ramya.
Once you get the response out of it use get application status code and application status response (SETPROPERTIES-> DYNAMIC PROPERTY-> META DATA) Based on which you can specify a success or a failure.
Hope this helps,
Retrieving data ...