Setting Up Abort Actions
From OpsWise Documentation Wiki
Your trail:SQLScheduling and Distributing ReportsSecuritySelecting Windows for the Home PageSetting Up Abort Actions
Contents |
Overview
The Abort Action allows you to abort a running process and/or overwrite the exit code generated by a process, based on specified conditions. You can trigger the action based on one or more of the following events associated with the task instance:
- Status or statuses of the task instance
- Exit code(s) generated by the program (along with at least one status)
- Late start
- Early or late finish
You can attach one or more Abort Actions to any OpsWise Automation Center task. For Workflow tasks, you can also specify whether you want the abort action instructions to apply to the workflow itself, the workflow and its tasks, or to the tasks only.
Attaching an Abort Action to a Task
- Display the task that will generate the Abort Action.
- Click on the Actions tab. This tab displays a list of all previously entered Actions for this task, including Abort Actions, Email Notifications, and Set Variables.
- Click New. The Action wizard displays, as shown below.
- Click Abort Action. The Abort Actions screen displays.
- Using the field descriptions provided below as a guide, complete the fields as needed.
- Click the Submit button to save the record and return to the Actions list, or, right-click and select Save to save the record and remain on the current display.
- If appropriate, repeat these steps for any additional Actions you want to add.
Abort Actions Field Descriptions
The table below describes the fields and buttons on the Abort Actions screen.
| Field Name | Description |
|---|---|
| Action Inheritance | Workflow tasks only. Specifies what records these instructions apply to. Options:
|
| Status | The status of this task. To trigger an abort action, you can specify status only, or status and exit code. You can specify as many statuses as needed. Options:
|
| Exit Codes | Specifies one or more exit codes that will trigger the Abort Action. If you specify an exit code, you must also specify at least one status. Use commas to separate multiple exit codes; use a hyphen to specify a range. Example: 1, 5, 22-30. |
| On Late Start | Generate the Abort Action if the task started late, based on the Late Start Time specified in the task. |
| On Late Finish | Generate the Abort Action if the task finishes late, based on the Late Finish time specified in the task. |
| On Early Finish | Generate the Abort Action if the task finishes early, based on the Early Finish Time specified in the task. |
| Cancel Process if Active | If enabled, instructs the system to cancel the process that was launched by this task. |
| Override Exit Code | Overrides the exit code returned by the process with the exit code specified in this field. |
| Submit button | Submits the new record to the database. |
| Update button | Saves updates to the record. |
| Delete button | Deletes the current record. |


