whenever system exception occurs in process state it will got to init state ry? but if i want it to not go immediately to init state. i want to check if sysytem exception count is >2 then bot should go to end state and if system exception count is< 2 then bot should go to init state, how will i implement this?
Your condition seems incorrect. Could you please review it again?
When the System Exception count is greater than 0, it transitions to the End state and terminates the process. There’s no scenario where it would check if the System Exception count is less than 2. If the System Exception count is 1, the process will still transition to the End state and stop.
Hope you understand!
but what if i have to implement the logic for it in a process, how will i approach this?
Okay @SRASHTI_PATIL
If you want to implement this follow the below steps,
- You have to create a variable in the Main xaml called SystemExceptionCount which is Int32 datatype and in default value give 0 in variables panel.
- Create arguments in the Process state and Set Transaction status xaml by In\out direction.
- In the Set Transaction xaml go to System exception sequence and drag and drop assign activity and give
- Assign → SystemExceptionCount = SystemExceptionCount+1
- Come to Main workflow there are many transitions which are connected between states. One of the state which is connected from Process transactions state to Initialization state. Open the Transition and modify the condition as below,
- Condition -> SystemException IsNot Nothing andalso SystemExceptionCount<2
- Drag new Transition from Process state to the End process and write the below condition,
- Condition -> SystemException IsNot Nothing andalso SystemExceptionCount > 0
That’s how you have to modify the flow to check the conditions.
Hope you understand!!
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.