Posted: 26 Dec 2018 17:25 EST Last activity: 27 Dec 2018 14:24 EST
How to halt/stop the automation execution but not terminate, without using close interaction or cancel activity
I am not using interaction and activities in my solution but I wanted to give an option to the users to suspend/halt the processing of the current account number so as to suspend the execution of the current process/thread and start with the new one.(e.g. stop processing the current account number and start with the new account number). Can you please guide me on how to achieve this?
Maybe you can have a boolean variable. If it is set to true, then stop the automation and if false, continue. Then just check that variable at different points in the automation to determine if to continue or stop.
Thanks for the response. Checking for a bool value before proceeding further with each step makes sense, but in my scenario I wanted to provide an option to the user to immediately halt the execution at that instance without even completing the execution of the current step. for e.g. when a user starts processing a card by clicking on start process, automation has to complete 12 steps and when user realizes at step 3 that this is not the correct card to be processed, then we should be able to provide a button to the user to halt the automation at that instance without even completing step 3. Please let me know if there is any way we can kill that thread and initiate a new one or anything similar to this approach.