Stop Task Action—Setting Properties

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.

To set Stop Task properties

  1. 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:

  1. Under Return status code, select Aborted, Success, or Error.

  2. 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.

  3. To set the Description tab properties, refer to Description Tab Options.

  4. To set the Error Causes and On Error tab properties, refer to Step Error Handling.

  5. When finished, click OK to save settings and close the properties dialog window.

See Also

About Actions

Adding Task Steps

Stop Task Action