Stop action
- Updated: 2025/03/17
Stop action
The Stop action in the Task Bot package enables you to stop the running bot.
Settings
For example, use the Stop action to terminate the bot if a condition is met, such as if the bot encounters a file larger than 100 MB.
Using Stop action
Behavior of Stop action with using error handling in your task.
Scenario | Automation structure | Execution result |
---|---|---|
Scenario 1 |
|
In this scenario, the Stop
action was executed before the Try
action started. As a result, the execution was halted, and
the Finally
action was not executed.
|
Scenario 2 |
|
In this scenario, as the execution entered the
Try
action, it proceeded to the Finally
action. However, the Stop
action placed within the Try
action terminated the execution without moving on to the next
action, which is Message Box 4.
|
Scenario 3 |
|
In this scenario, the Stop
action was placed within the Try
action. When an exception occurred during the execution of
the Try
action, the Stop action was skipped
and control was passed to the Catch
action. As a result, the Stop
action was not executed, and the automation continued running
without termination.
|
Scenario 4 |
|
In this scenario, an action within the Try action experienced an error, causing the execution to transition to the Catch action, where an error or exception message was displayed. Afterward, the Finally action was executed. In this case, since the Stop action was placed within the Catch action, the automation execution terminated after the Finally action, preventing the next action Message 4 from executing.
|
Scenario 5 |
|
In this scenario, an action within the Try action experienced an error, causing the execution to transition to the Catch action, where an error or exception message was displayed. Afterward, the Finally action was executed. In this case, since the Stop action was placed within the Finally action, the automation execution terminated after the Finally action, preventing the next set of actions from executing.
|