- Release Notes
- Getting Started
- Setup and Configuration
- Automation Projects
- Dependencies
- Types of Workflows
- File Comparison
- Automation Best Practices
- Source Control Integration
- Debugging
- The Diagnostic Tool
- Workflow Analyzer
- About Workflow Analyzer
- ST-NMG-001 - Variables Naming Convention
- ST-NMG-002 - Arguments Naming Convention
- ST-NMG-004 - Display Name Duplication
- ST-NMG-005 - Variable Overrides Variable
- ST-NMG-006 - Variable Overrides Argument
- ST-NMG-008 - Variable Length Exceeded
- ST-NMG-009 - Prefix Datatable Variables
- ST-NMG-011 - Prefix Datatable Arguments
- ST-NMG-012 - Argument Default Values
- ST-NMG-016 - Argument Length Exceeded
- ST-DBP-002 - High Arguments Count
- ST-DBP-003 - Empty Catch Block
- ST-DBP-007 - Multiple Flowchart Layers
- ST-DBP-020 - Undefined Output Properties
- ST-DBP-021 - Hardcoded Timeout
- ST-DBP-023 - Empty Workflow
- ST-DBP-024 - Persistence Activity Check
- ST-DBP-025 - Variables Serialization Prerequisite
- ST-DBP-026 - Delay Activity Usage
- ST-DBP-027 - Persistence Best Practice
- ST-DBP-028 - Arguments Serialization Prerequisite
- ST-USG-005 - Hardcoded Activity Arguments
- ST-USG-009 - Unused Variables
- ST-USG-010 - Unused Dependencies
- ST-USG-014 - Package Restrictions
- ST-USG-020 - Minimum Log Messages
- ST-USG-024 - Unused Saved for Later
- ST-USG-025 - Saved Value Misuse
- ST-USG-026 - Activity Restrictions
- ST-USG-027 - Required Packages
- ST-USG-028 - Restrict Invoke File Templates
- ST-USG-032 - Required Tags
- ST-USG-034 - Automation Hub URL
- Variables
- Arguments
- Imported Namespaces
- Coded automations
- Trigger-based Attended Automation
- Recording
- UI Elements
- Control Flow
- Selectors
- Object Repository
- Data Scraping
- Image and Text Automation
- Citrix Technologies Automation
- RDP Automation
- Salesforce Automation
- SAP Automation
- VMware Horizon Automation
- Logging
- The ScreenScrapeJavaSupport Tool
- The WebDriver Protocol
- Test Suite - Studio
- Extensions
- About extensions
- SetupExtensions tool
- UiPathRemoteRuntime.exe is not running in the remote session
- UiPath Remote Runtime blocks Citrix session from being closed
- UiPath Remote Runtime causes memory leak
- UiPath.UIAutomation.Activities package and UiPath Remote Runtime versions mismatch
- The required UiPath extension is not installed on the remote machine
- Screen resolution settings
- Group Policies
- Cannot communicate with the browser
- Chrome extension is removed automatically
- The extension may have been corrupted
- Check if the extension for Chrome is installed and enabled
- Check if ChromeNativeMessaging.exe is running
- Check if ComSpec variable is defined correctly
- Enable access to file URLs and Incognito mode
- Multiple browser profiles
- Group Policy conflict
- Known issues specific to MV3 extensions
- List of extensions for Chrome
- Chrome Extension on Mac
- Group Policies
- Cannot communicate with the browser
- Edge extension is removed automatically
- The extension may have been corrupted
- Check if the Extension for Microsoft Edge is installed and enabled
- Check if ChromeNativeMessaging.exe is running
- Check if ComSpec variable is defined correctly
- Enable access to file URLs and InPrivate mode
- Multiple browser profiles
- Group Policy conflict
- Known issues specific to MV3 extensions
- List of extensions for Edge
- Extension for VMware Horizon
- SAP Solution Manager plugin
- Excel Add-in
- Troubleshooting
Studio User Guide
Overview
Trigger-based attended automations can involve the following:
- Forms – created using the Form Builder and handled with the Form.Activities package.
- Callouts – created using the Form Builder and displayed with the Callout.Activities package.
- Triggers – using the System.Activities and UIAutomation.Activities packages.
- Global variables – created from the Data Manager.
Forms and callouts represent a core capability of attended automation. Running them using triggers allows you to build complex scenarios. These scenarios involve multiple events happening at the same time. Moreover, the possibility of triggering actions based on the values of global variables helps you to cover even more attended scenarios.
The diagram below shows a process built using forms, form event triggers, and application event triggers. You can build similar processes based on user event triggers and callouts, as well.
To design and run trigger-based attended automations:
- Install the following activity packages:
- Form.Activities version 23.4
- System.Activities 23.4
- UIAutomation.Activities 23.4
- Callout.Activities 23.4
- If you encounter the following error when trying to create a Form file: Couldn't find a compatible Webview2 Runtime installation to host WebViews, install Microsoft Edge WebView2.
The purpose of forms in attended automation is to collect and process user or application input. With the present form capabilities, you can:
- Create forms outside activities, using a Form (uiform file) inside your project. You can later build or edit them independently from any activity that uses the forms. This allows you to separate the process of building forms and then using them in the same automation.
- Create forms using custom HTML files. You can work with HTML forms similarly to how you do with uiform files.
- Display multiple forms at the same
time, using the Show Form activity. Add multiple Show
Form activities and provide a unique name in the Instance Name field
for each of them. The Instance Name property is available for most activities
in the Form.Activities package, and it can be used to:
- Show or perform actions on multiple instances of the same form, by providing unique Instance Names for each form that you show.
- Show or perform actions on all instances, by leaving the Instance Name field empty.
- Set a trigger to start based on form events. These events can represent a form that closes or a certain form component that changes. You can achieve this using the Form Event Trigger activity.
- Choose to only display a form or display it while the rest of the workflow is running. You can do this by enabling or disabling the Continue Workflow Execution property.
- Edit and fetch form values at runtime, using the Set Form Values and Get Form Values activities.
- Change the form properties at runtime, using the Change Form Properties activity.
- Inject custom JavaScript into the form, using the Run Form Script activity.
The role of callouts in attended automation is to direct the user to a specific UI element inside an application, website, product, or even a form. You can also use callouts to create custom validations for apps, pre-populate fields and trigger multiple automations based on user input.
With callout capabilities, you can:
- Create a callout using a Form (uiform) file and design it using the Form Builder.
- Indicate the UI element next to where you want the callout to display using the Show Callout activity.
- Pass values to the elements inside a callout.
Although there is a Callout.Activities package dedicated to callouts, it is also possible to handle callouts using the Form.Activities package, since callouts are uiform files just like regular forms. This means that you can work with callouts in the same way that you would work with a regular form if you are using the Form.Activities package.
- To start workflows based on
application or user events. Additionally, you can specify how to execute actions
when a trigger is fired, through the Scheduling mode:
- Sequential - Actions are executed one after another.
- Concurrent - Actions execution can overlap.
- OneTime - Executes one action and exits monitoring.
- Sequential Collapse - Ignores all upcoming events, except the latest, until the current event finishes execution.
- Sequential Drop - Stops the previous event execution and starts the next event.
Activity Description Form Event Trigger Triggers workflows based on an event happening inside a form. Application Event Trigger Sets up a trigger based on a native event of any type of element (top-level window or any other indicated UI element). Repeat Trigger This activity allows you to configure a TimeSpan as InArgument. When the timespan expires, the trigger executes and can be repeated based on the settings. Keypress Event Trigger Sets up a key pressed event trigger on the indicated UI element. Click Event Trigger Sets up a click event trigger on the indicated UI element. Hotkey Trigger Monitors a specified system-wide key event. Mouse Trigger* Monitors a specified mouse-key combination system-wide event. Click Image Trigger* Monitors the Image defined by the target UI element for mouse input. System Trigger* Monitors a specified system-wide key and/or mouse event. SAP Session Attributes Changed Trigger* Monitors changes in specified SAP session attributes. * - Can be used both on its own and inside a Trigger Scope activity.
- To automate multiple attended
scenarios that can happen once, in sequence, or at the same time. You can
achieve this using the following activities:
Activity Description Run Local Triggers Initialises and starts all local triggers that listen for events on the user’s machine. Stop Local Triggers Terminates the execution of local triggers. When executed, it cancels all ongoing actions, including workflows triggered by events. When Stop Local Triggers executes, ongoing event-triggered workflows are canceled, but the activities in the main workflow continue as usual. Disable Local Trigger Disables one ore more active local triggers that were previously started with the Run Local Triggers activity. Enable Local Trigger Enables one or more active local triggers that were previously started with the Run Local Triggers activity. - To start workflows based on the
behavior of global variables, that you create in the Data Manager. You
can achieve this using the following activities:
Activity Description Global Variable Changed Trigger Pushes a notification to all subscribers when the value of a global variable changes. Notify Global Variable Changed Trigger that starts when the value of a global variable changes.
Triggereventargs
at runtime or during debugging. This workflow
contains multiple Trigger scope activities that execute all triggers in
parallel within your project.
Triggereventargs
workflow as an argument in the
Arguments panel. Each trigger workflow has its own
Triggereventargs
argument, which holds information about
itself. As you execute the project, the Triggereventargs
arguments
update with the latest run information.
Triggereventargs
argument mainly provides the following
information specific to each trigger workflow:
- Trigger type
- Trigger name
- Target element that fired the trigger
- Form components (in the case of Form Trigger Activity)
- Form instance name (in the case of Form Trigger Activity)
Triggereventargs
argument, you
can apply various methods based on the trigger type. For user event triggers, the
following methods are available:
- TargetElement - get
information about the monitored target element
- Attributes - Obtain the attributes of the monitored target element
- DisplayDpiScaleFactor - Determine the size of the target element in pixels
- ImageBase64 - Convert the image of the target element to a Base64 image
- Selector - Retrieve information about the selector used on the target element
- Trigger type
- FormSourceId - Access the ID of the form where the trigger fired
- Instance Name - Retrieve the instance name of the form where the trigger fired
- Trigger workflows are workflows that start with a trigger. These can be debugged in the context of the entire project, or independently.
- If you think that a high number of triggers impact performance, you can enable or disable specific triggers, using the Enable Local Trigger and Disable Local Trigger activities.
- The Enable Local Trigger
and Disable Local Trigger activities are useful in scenarios where you
have multiple workflows monitoring user events that are determined by the phase
in the automation that the user has reached.
- For instance, you can use the Enable Local Trigger activity to activate a trigger once the user has entered their username in a form.
- On the other hand, the Disable Local Trigger activity can be utilized to deactivate a trigger that was scheduled to execute sequentially once the user has reached a specific step during a guided product tour, for example.
The purpose of global variables in attended automation is to record information about the user or application events, and then store it inside a variable that you can later use as input or trigger for other activities. This allows you to easily share data between multiple workflows. With global variable capabilities, you can:
- Notify when the value of a global variable changes, using the Notify Global Variable Changed activity
- Trigger a workflow or activity when the value of a global variable changes, using the Global Variable Changed Trigger activity.