Integration error handling

rajasekar reddy
Tera Contributor

Hi experts,

We are doing a 3rd party soap integration, where we check our external visitor's name in the 3rd party website.

Now we have the requirement to have a failsafe mechanism.

If we don't get response after sending request through Business rule, system need to wait for 10 mins and send the request again.

It should retry attempt to send soap request 5times

 

how can we achieve this?

 

 

 

3 REPLIES 3

Oliver Stammler
Giga Guru

Hey @rajasekar reddy,

how do you trigger this API?
If you are using flow designer just create an "if" and check for the response.
If the response is empty, wait for 10 minutes, retry the api call and then loop back to the if.

Use the flow logic "do the following until" to repeat this either 5 times or until the correct response is available.

If i was able to help you or even better to solve your query then please mark my comment Helpful and/or Correct.

Thanks and best regards

Oli

 

Hi @Oliver Stammler , we are not using flow designer. We are triggering the soap message through BR

Hey @rajasekar reddy,
thanks - I did miss this information in your initial question. Sorry about that.

So I would still recommend to use a flow for this requirement but if you want to stick to business rules, I would suggest to fire an event in your business rule, in case of the missing response, to call a script action which will then trigger the API call again. 
If the response is valid, simply do not trigger the event and then your business rule won't send a new API call.

Best regards
Oli