Saving a Task Bot
- Última atualização2020/05/12
Saving a Task Bot
The Task Bot 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
- Click .
- Enter the filename in the Select the file field, or click Browse... to select a location of your choice using the Windows Explorer.
- Click Save.
The file opens.
Note: The lines that are disabled in the Task Bot are appended with the "Disabled: True" text. - Verify the contents and click Save.
Save a bot as an XML file from the Workbench
- Click .
- 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.
- Click Open.Tip: Click Browse... to select a location of your choice using the Windows Explorer:
- Click Save.
- 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.
- Launch the command window.
- Enter the following command to save the file to a specific
location:
For example:<application path> /token /<sd> or <sf>: <source directory path or source filename> /<dd> or <df>: <destination directory path or destination filename>
C:\Program Files (x86)\Automation Anywhere 11.2\Client\AAWorkbench.exe /export /sf: C:\Server-Files\Loop.atmx /df:"D:\Task-Repository\Loop.xml
- Select one of the optional parameters.The source and destination parameter type must be the same. For example, sf must be used with df.
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.
By default, the existing file with the same name is overwritten.
XML file structure
The XML file provides task details in three main sections:
- Task Properties
- Variables: each of the variables are in the
<Variable>
node - 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.
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.