So, I have some custom code written in “Transition” between two states, “Get transaction Status” and “Process”. If there is any error in the “Transition” code, I still want the bot to go to the “End Process” flow and finish the steps. Is this possible to do so? Or is this not a good way of handling things?
as per your explaination i could see the code is written in transition of get to process…which would never go to end process even if you use a try catch
instead do it in get transaction data so that if it fails it would go to end process as per framework as well
Hi, regarding your question about handling errors in the transition between “Get Transaction Status” and “Process”, you can ensure that the bot moves to the “End Process” flow, even if an error occurs, by using a Try-Catch block in the transition code.
You can wrap your custom code in a Try-Catch block, and in the Catch block, you can log the error and ensure that the bot transitions to “End Process” if something goes wrong. This way, the process will continue to “End Process” and complete any necessary cleanup, even if the transition logic fails.