It is possible to retry the same item immediately after a system exception using the REFramework and Orchestrator Queue.
To achieve this, you can modify the “Set Transaction Status” activity. This activity is responsible for updating the status of a transaction in the queue based on the outcome of the process.
Here are the steps to follow:
Add a new argument to the “Set Transaction Status” activity called “RetryImmediately” of type boolean.
In the “Set Transaction Status” activity, add an If statement to check if “RetryImmediately” is true.
If “RetryImmediately” is true, set the transaction status to “In Progress” and set the transaction retry number to the current retry number + 1.
Add a delay activity before the “Get Transaction Item” activity to ensure that the same transaction item is not processed again before the delay is over.
The immediate retry variable should be of a type ‘Boolean’ & you can set the ‘if’ part only in the system exception flow. Why would you try to retry the transaction if throws a business exception, right?