How to exit or GO TO another spot in the program when an exception is found?

uiautomation
robot
activities

#1

I have a spot where the Robot is looking for an entry provided by a user in the drop down box - If it cannot find it I have it set a few variables to false and etc… but then I would like for it to exit the current workflow and go somewhere else to send a message, run a command and close out … is there a way to GOTO or call a spot like a function in the exception portion of the try/catch?

Please and thank you!!!


#2

Did you check ‘Invoke Workflow’? Basically you can have a seperate workflow which will have your actions that may need to be executed during exception (go somewhere else to send a message, run a command and close out). You can then Invoke this workflow from within the catch block of your main workflow, such that the new workflow would be triggered whenever an exception is thrown.

Let me know if that’s what your are looking for.

Thanks,
Rammohan B.


#3

No because the spot I want to go to is in a workflow and not a workflow in itself… but that does give me some ideas to try!

Thanks!

Kathi