The Stop Task action is used to stop the current task. This is commonly used within an If action to stop the task if a certain condition occurs. Properties can by set to specify whether the task registers as successful, aborted, or failed.
From the Task Builder Available Actions pane, open the AutoMate folder and double-click the Stop Task action or drag it into the Steps pane. The following dialog box appears:
Under Return status code, select Aborted, Success, or Error.
If you select Error, you can optionally enter custom error text or a custom error number in the applicable boxes. This data will appear in error messages for the task. To enter a variable or expression in either of these boxes, click the Insert Expression/Variable button and use the Expression Builder to insert it.
To set the Description tab properties, refer to Description Tab Options.
To set the Error Causes and On Error tab properties, refer to Step Error Handling.
When finished, click OK to save settings and close the properties dialog window.
Adding Task Steps
Stop Task Action