Actions are functional units grouped into packages. They are located in the Actions palette of the Bot editor in the Control Room. This topic covers actions, package dependencies, the action context menu, and editor toolbar functions.
Actions, packages, and dependencies
Actions are the building blocks of automation. They are grouped into packages based on the technology they automate. For example, the Excel advanced package contains Excel-related actions — such as Open workbook, Go to cell, and Delete cell — that you can insert in the Bot editor to automate a spreadsheet process.
Each package is updated and enabled individually to support new functionality. New bots use the default package version. Existing bots are not automatically updated — they continue to run on the package version they were built with until the Bot Creator manually updates to the new version.
When the Control Room deploys a bot, the packages used to create the automation are collected and sent to the Bot Agent on the destination device. The Bot Agent caches the packages locally, so that it does not require updates each time the bot runs.
To reduce runtime on the first run, use the Preload packages option in the Bot editor to load packages to \ProgramData\AutomationAnywhere\GlobalCache on the local machine before the bot runs.
After you use an action from a package in a bot, that package becomes a dependent file of the bot.
- Learn more about managing packages in Packages.
- Developers can learn more about creating packages in Package SDK.
- Learn more about managing bots and package dependencies in Bot dependencies.
Packages and exe files
| Packages | exe process files |
|---|---|
| DLL | Automation.CSharpDLLWrapper.exe |
| Database | Automation.DatabasePlayer.exe |
Working with actions
Click the vertical ellipsis icon (⋮) at the top right of the action to access the following options:
- Copy action
- Duplicate the action.
- Cut action
- Copy the action and remove it from the bot code.
- Paste after action
- Paste the copied action below the selected action.
- Delete action
- Remove the action from the bot code.
- Disable action
- At run time, bot ignores the action until you turn it on.
- Enable breakpoint
- Pauses the bot for debugging purposes.
- Step over
- Use the Step over icon to go to the next action in debug mode. By default, it starts from the first action in debug mode.
You can edit multiple actions at a time, using the toolbar at the top of the Bot editor.
- Find in this bot (Search box)
- Search for any text or action such as a package
name, actions name, string name, or variable name in the Flow,
List, or Dual view of the Task Bot. You can search text across
multiple pages of the bot and do not require the pages to be loaded
manually. This feature is useful for viewing or editing a bot with
longer code lines to determine where the searched text, such as variables,
strings, or actions is used and in which line.
- You can search only within the lines of the code in the Bot editor.
- The search is not case-sensitive.
- Run from here
- Use the Run from here option to execute the bot from a specific
line in the Bot editor by skipping all the lines of code before it.
This feature helps to execute a particular code block quickly and easily without
running the complete bot.Note: When you use an action within the conditional packages such as If, Loop, or Error handler in the bot, the Run from here option is not available from that action. However, you can use the Run from here option from If, Loop, or Error handler actions.
- Copy items
- Copy actions to a clipboard so they can be duplicated within the bot.
- Cut items
- Copy the actions and remove them from the bot code.
- Paste items
- Paste one or more actions after the highlighted action. If you have not highlighted an action, the
actions are appended to the end of the automation
sequence.Note: This icon is only enabled when there are actions in the clipboard.
- Copy to shared clipboard
- Copy actions, triggers, and metadata to a clipboard that is shared between bots.
- Paste from shared clipboard
- Paste actions, triggers, and metadata from another bot.Note: This icon is only enabled when there are actions in the shared clipboard.
The Copy to shared clipboard option is not displayed if the bot is in Debug mode and you have selected only one line of code. However, this option appears when you select multiple lines of a code.
Auto-save functionality of events in Bot editor
- Recorder: When you create a bot with certain actions and click Recorder, the event is saved, and when the recording is complete, the event is automatically saved.
- Variable manager: When you create or edit a variable to insert it in an action, the changes are saved.Note: The auto-save functionality is not supported when you delete a variable or insert it by pressing F2 to open the variable list.
- Actions menu (vertical ellipsis): When you select any action from this menu, for example Packages, the event is saved automatically. When you make any change to the Packages page and return to the Bot editor, the event is saved.
- Find a file: When you click the Find a file icon, the bot is saved if it is not manually saved. Also, after you click the Add option, the bot is automatically saved.
- Dialog boxes: When a dialog box is opened, it is automatically saved if any
changes are
made.Note: Auto-save is triggered only for top-level dialog boxes and not for nested dialog boxes.
- Deleting variables: When you delete unused variables, the event is saved.
- Bot name change: If you edit the name of a bot, the event is saved.