How to retry if anything fails in the Init state of the RE framework?

Hi All

As we know in the RE framework the Init state is connected to End State in case of System Error. But what if we want to retry after closing the applications?

In my project i am navigating to a specific page which is an one time activity in the Init state. So that the repetitive part can be handled in Process state.

But what if any selector issue or any system issue arises while navigating ? It will just go to End state and close all applications. But I want it should retry so that may be the system issue would have been resolved in the next try.

Hi @kkp

Reframework that is seen in Uipath is just a template u can modify the State machine layout in any way u want

Let’s say if u want to retry the init state u have to make ur system in such a way it should try at init state if any system exception is caused in the init state

Hope it helps
Nived N :robot:

Happy Automation :relaxed: :relaxed:

But How ?

Any suggestions ??

Hello @kkp

You can add new transition(named as Retry ) in Init State. Init cath sequence, you can set a new boolean variable and use that variable at new transition condition.

But you should update System Exception and Successful transition.

Cheers :slight_smile:

Thanks @abdullahtayhan. I will try.

HI @kkp
Sorry for delayed response
I had attached one of my workflow for reference

in this workflow u can see that how i made changes in reframework so that it retries at INIT state in case of system exception

Let me know if it works for you
Main.xaml (70.9 KB)

Nived N
Happy Automation

  1. Make a new variable in the main.xaml i.e initRetry = 0

  2. Click into Transition [SystemException] which was connected b/w init state and End process and in the Condition, you can see that [systemException isNotNothing]where you write down[systemException isNotNothing And initRety=2] and In the same transition you can find at the bottom [Add shared trigger Transition]

  3. click into the [Add shared trigger Transition] and select the state [Initialization/init] to connect into drop-down [init, Transaction, Process, End]. The new Transition trigger created, by default Name is T1 [You can name anything or initRerty]

  4. In the New Transition[T1] you can find the option i.e Condition where you can write down [systemException isNothing and initRetry<2]

  5. Now you goto inside the Catch section of initialization state where you see on assign is already exits i.e [systemException = Exception]. Add one more Assign Activity [initRetry=initRetry+1]

Your project is done - if there is any system exception it will retry 1 time and after that go to end process.

1 Like

Hello Amit,

I guess in Point number 4 to be [systemException isNotNothing and initRetry<2]