Should Stop Activity for Non-Orchestrator Robot

I’m wondering if we can have a should stop activity when stopping the robot via UiRobot Tray. I’ve been building several offline robots (not using orchestrator) and often triggering the stop in robot tray should the automation takes time to finish.

Potential uses of the activity:

  1. Proceed to the End Process State to Write Custom Logs or Email Status.
  2. User have the option to run transactions by batch without Intervention on the Source Data.
  3. Partial Testing of Transaction items for developers on Production Environment.

You can declare a variable and mark it true wherever you have should stop activity.
Check the flag value in the last stage of the process. If set to true, terminate the workflow.