How to add retry logic in OIC
In a regular JCA adapter, there are properties for setting the number of retries.
OIC as of now doesn’t allow retry options for Synchronous service but it does allow retry options in Asynchronous service.
In Asynchronous service the errors can be resubmitted. As per OIC documentation
Resubmitting the failed instances can be done as
Resubmitting the failed instances can be done as
§ Single failed message resubmissions
§ Bulk failed message resubmissions
Retry can be done at integration level as well. I am providing the steps below which can be applied to the integration. This example is for SOAP Trigger. Ensure that Trigger has optional element as a RetryCounter-
Step 1: Create Integration. Create a Stage and drag an Invoke (example an external SOAP service).
Step 2: Create an Invoke Connection with URL and Security details from integration created in Step1.
Step 3: Set the retry counter value in OIC LookUp
Step 4: In Stage Error Handler create a SwitchCase, drag the above connection and map parameters from the main flow.
Step 5: In the switch condition, the retry counter value should be less than the LookUp value created in Step3.
Step 6: In Case 1 – Update the retry counter, In Case2 – Invoke the connection created in Step2.