Saving a TaskBot

The TaskBot can be saved in the Task Editor using Save as a text file and Save as XML file options. When the TaskBot is as an XML file, its information such as commands, properties, abd variables are saved. However, saving it as a text file does not save the data.

Save a bot as a text file

  1. Click File > Save as text file.
  2. Enter the filename in the Select the file field, or click Browse... to select a location of your choice using the Windows Explorer.
  3. Click Save.

    The file opens.

    Note: Version 11.3.4The lines that are disabled in the TaskBot are appended with the "Disabled: True" text.
  4. Verify the contents and click Save.

Save a bot as an XML file from the Workbench

  1. Click File > Save as XML file.
  2. Enter a filename in the Select the file field.

    If you leave it blank, it uses the task name in the default folder where the task is saved.

  3. Click Open.
    Tip: Click Browse... to select a location of your choice using the Windows Explorer:
  4. Click Save.
  5. Click OK.

Save a bot as an XML file from the command line

To save a bot as an XML file from the command line, you must be logged in as a bot creator.

  1. Launch the command window.
  2. Enter the following command to save the file to a specific location:
    <application path> /token /<sd> or <sf>: <source directory path or source filename> /<dd> or <df>: <destination directory path or destination filename>
    For example:
    C:\Program Files (x86)\Automation Anywhere 11.2\Client\AAWorkbench.exe /export /sf: C:\Server-Files\Loop.atmx /df:"D:\Task-Repository\Loop.xml
  3. Select one of the optional parameters.
    Parameter Description
    token Export
    sf Source file.

    This is mandatory

    sd Source directory.

    This is mandatory

    df Destination file.

    This is optional.

    dd Destination directory.

    This is optional.

    The source and destination parameter type must be the same. For example, sf must be used with df.

    By default, the existing file with the same name is overwritten.

XML file structure

The XML file provides task details in three main sections:

  1. Task Properties
  2. Variables: each of the variables are in the <Variable> node
  3. Commands: each of the commands are in the <Command> node

Saving as, Copying, and Adding a New Task when Version Control is enabled

If you use Save As, Copy, or New to provide a new filename using any of the options, you can add unique names only in the respective folder in which it is created. You cannot add an existing filename.

Version 11.3.3

Saving a protected bot

The File -> Save As option is disabled to protect the Intellectual Property (IP) rights of the original creator of the Digital Worker or bot.

You cannot save the protected bot as an XML file from the command line.