February 17, 2023, 11:25am
i am using the reframework with orchestrator queue to automate a process.
I have seen that in the event of a system exception, and with queue retry set to orchestrator 2, it recreates a new queue item but puts it at the end.
I would instead need to retry the same item immediately after the system exception. Is it possible to do this? If so, how?
Thank you in advance
February 17, 2023, 11:37am
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.
March 1, 2023, 10:08am
what type of value should I assign as input to the immediate retry variable?
Also, should the if within the set transaction status only be in the system exception?
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?
March 1, 2023, 11:10am
i don’t want to retry the biz exception.
The retryimmediately var is set by default to true in the main (Ref)?
it is not very clear to me how to encapsulate the if within the system exception branch of the settransactionstatus. Would you have an xaml to share?
Thanks in advance