I have an integration with one or more invokes and I want to apply retry functionality to them, e.g. retry on failure up to 3 times etc.
Now you could implement this yourself, but now just let OIC do the work – here is a simple example –
As you can see, this part of my integration uses the Netsuite connection to create a customer.
I now want to apply Retry Logic to this. It’s very simple to do so -
Let’s check out exactly what’s been added -
First let’s look at the While loop -
here I invoke the Netsuite action createCustomer while -
The main logic is as follows –
Attempt to create the Netsuite customer; if successful, set the retry variable to false.
The fault handler logic is as follows -
The Wait – is based on a variable –
The variables are set in the initial assign action –
You can of course, set these variables to what suits you.