Using the Automated Tasks Editor

This article contains the following topics:
casm171
This article contains the following topics:
You can author, debug, test, and upload automated tasks in your support environment using the Automated Tasks Editor. You can create automated tasks by customizing default templates and components. Modifying these defaults requires minimal or no coding, but if any errors occur, the application displays the line of code reporting the error.
The editor uses web services to access automated tasks depending on provided credentials during CA SDM authentication. An Administrator can permit analysts to access the server with the Automated Task Editor, and allow analysts to modify and upload public or tenant-specific scripts. The editor provides dialogs to edit the basic automated task settings, security settings, and dependencies on libraries and static content items. The automated task framework implements three objects used by the automated task author: Task, Step, and Logger.
You can do the following with automated tasks:
  • Create and customize steps based on automated task step templates provided by CA Technologies.
  • Customize an automated task by editing the step template properties in a property sheet, or by editing the code directly. The code editor supports syntax highlighting and automatic code completion functionality while typing.
  • An Administrator can run reports that show whether automated tasks were successful or not. The definition of success varies considerably depending on what the automated task is trying to do. CA SDM provides the
    Functions.SetExecutionState()
    function call that enables the task to declare its execution state as being success, fail, or not setting it at all. The automated task execution state field filters the report.
  • Send emails to end users or to an external system using the CA SDM mail daemon.
Localize automated tasks by declaring all strings to localize as automated task step properties. You can edit these step properties in the Automated Task Editor for each supported locale separately. The values of these properties are accessed from automated task step script code using Step.GetProperty() which returns the correct localized version of the specified property based on the localization ID of the customer running the automated task.
Edit an Automated Task
You can download automated tasks from the server and edit them in the Automated Task Editor. Any content that is newer in the version than the existing content on the server is imported into the database and made available to administrators of that tenant.
To edit an automated task
  1. Open the Automated Task Editor.
    The Support Automation Task Editor appears.
  2. On the toolbar, select the Upload Automated Task icon.
    The Open Automated Task from Server pane appears.
  3. Select the automated task that you want to download.
    Note:
    If you are a privileged user in a multi-tenancy environment, you can edit public or tenant-specific automated tasks.
  4. Click Open Task.
    The Support Automation Task Editor downloads the task to the client and opens it in the application.
    The download creates a text file on the computer of the task author that contains the dependent content.
Upload an Automated Task
You can upload automated tasks that you created in the application. When you select a task, all dependent content automatically uploads, such as libraries and static content.
To upload an automated task
  1. Open the Automated Task Editor.
    The Support Automation Task Editor appears.
  2. Select the automated task you want to upload.
  3. Select the classification where you want to upload the task.
    Note:
    If you are a privileged user in a multi-tenancy environment, select the appropriate tenant when uploading the automated task, or make the task public.
  4. On the toolbar, select the Upload Automated Task icon.
    The Support Automation Task Editor uploads the task to the server.