- Overview
- Custom activities
- Migrating Activities to .NET 6
- Release Notes
- Building Workflow Analyzer Rules
- Building Activities Project Settings
- Creating Custom Wizards
- Prioritize Activities by Scope
- UiPath.Activities.Api.Base
- UiPath.Studio.Activities.Api
- UiPath.Studio.Activities.Api.Activities
- IAnalyzerConfigurationService
- UiPath.Studio.Activities.Api.Analyzer.Rules
- UiPath.Studio.Analyzer.Models
- UiPath.Studio.Activities.Api.BusyService
- UiPath.Studio.Activities.Api.ExpressionEditor
- UiPath.Studio.Activities.Api.Expressions
- UiPath.Studio.Activities.Api.Licensing
- UiPath.Studio.Activities.Api.Mocking
- UiPath.Studio.Activities.Api.ObjectLibrary
- UiPath.Studio.Activities.Api.PackageBindings
- UiPath.Studio.Activities.Api.ProjectProperties
- UiPath.Studio.Activities.Api.ScopedActivities
- UiPath.Studio.Activities.Api.Settings
- UiPath.Studio.Activities.Api.Wizards
- UiPath.Studio.Activities.Api.Workflow
- UiPath.Studio.Api.Controls
- UiPath.Studio.Api.Telemetry
- UiPath.Studio.Api.Theme
- Robot JavaScript SDK
- Triggers SDK
UiPath.Studio.Activities.Api.Analyzer.Rules
In this section you can find more information on how to build activities using UiPath.Studio.Activities.Api.Analyzer.Rules.
A message that indicates the activity that triggered a Workflow Analyzer error.
InspectionMessage > ActivityMessage
Represents the base class for rules and counters.
Type |
Name |
Remarks |
---|---|---|
string |
Name |
The name of the rule/counter as it appears in the Workflow Analyzer Settings window. |
string |
Id |
|
IDictionary<string, IParameter> |
Parameters |
The collection of parameters that can be configured by the user. |
bool |
DefaultIsEnabled |
If
true , the rule is enabled by default. Requires Studio 2019.10.3 or later.
|
string |
DocumentationLink |
A link that can be clicked in the WFA settings window. Requires Studio 2019.10.3 or later. |
List<string> |
ApplicableScopes |
The target configuration where this rule should apply. See RuleConstants for some examples. Requires Studio 2020.4 or later. |
Interface for counter definition.
AnalyzerInspector > Counter
A counter that applies to a certain InspectionObject.
AnalyzerInspector > Counter > Counter<T>
public Rule(string ruleName, string ruleId, Func<T, Rule, InspectionResult> inspectionFunction)
Type |
Name |
Remarks |
---|---|---|
string |
counterName |
The name of the counter. |
string |
counterId |
The Id of the counter must be unique. |
Func<IReadOnlyCollection<T>, Counter, InspectionResult> |
inspectionFunction |
A function that receives the objects to be inspected and the counter as configured by the user and must return an InspectionResult. |
A result to an inspection.
IResult > InspectionResult
Type |
Name |
Remarks |
---|---|---|
bool |
HasErrors | |
ICollection<string> |
Messages |
For more detailed messages, use InspectionMessage. |
ICollection<InspectionMessage> |
InspectionMessages |
Better, scalable, and detailed messages. Specialized types are available (ActivityMessage). Requires Studio 2019.10.3 or later. |
string |
RecommendationMessage |
The recommendation for this result. |
TraceLevel |
ErrorLevel |
The error level of this result. |
string |
DocumentationLink |
The documentation link of this result. |
Defines the look of a rule or counter parameter.
Type |
Name |
Remarks |
---|---|---|
string |
Key |
Unique key for this parameter in this rule. |
string |
LocalizedDisplayName |
Current localized display name. |
string |
Value |
A value from the user for this parameter. |
string |
ConstraintRegex |
The constraint regex for the value. Requires Studio 2019.10.2 or later. |
bool |
DefaultValue |
The default value for this parameter. Requires Studio 2019.10.2 or later. |
A simple implementation of IParameter.
IParameter > Parameter
Type |
Name |
Remarks |
---|---|---|
string |
Key |
Unique key for this parameter in this rule. |
string |
LocalizedDisplayName |
Current localized display name. |
string |
Value |
A value from the user for this parameter. |
string |
ConstraintRegex |
The constraint regex for the value. Requires Studio 2019.10.2 or later. |
bool |
DefaultValue |
The default value for this parameter. Requires Studio 2019.10.2 or later. |
A package dependency that triggered a Workflow Analyzer error.
InspectionMessage > ProjectMessage
Interface for rule definition.
AnalyzerInspector > Rule
public Rule(string ruleName, string ruleId)
Type |
Name |
Remarks |
---|---|---|
string |
ruleName |
The name as it appears in the Workflow Analyzer Settings window. |
string |
ruleId |
The Id of the rule must be unique. |
Type |
Name |
Remarks |
---|---|---|
TraceLevel |
ErrorLevel |
|
TraceLevel |
DefaultErrorLevel |
The default error level for this rule. Requires Studio 2019.10.2 or later. |
string |
RecommendationMessage |
The configurable recommendation message. |
A rule that applies to a certain InspectionObject.
AnalyzerInspector > Rule > Rule<T>
An IInspectionObject that defines what this rule applies to.
public Rule(string ruleName, string ruleId, Func<T, Rule, InspectionResult> inspectionFunction)
Type |
Name |
Remarks |
---|---|---|
string |
ruleName |
The name as it appears in the Workflow Analyzer Settings window. |
string |
ruleId |
The Id of the rule must be unique. |
Func<T, Rule, InspectionResult> |
inspectionFunction |
A function that receives the objects to be inspected and the rule as configured by the user and must return an InspectionResult. |
Defines the Studio profile to which a rule applies.
The message returned when a workflow is analyzed.
InspectionMessage > WorkflowMessage
- ActivityMessage
- Inheritance
- Properties
- AnalyzerInspector
- Inheritance
- Properties
- Counter
- Inheritance
- Constructors
- Counter <T>
- Inheritance
- Generic Type T
- Constructors
- InspectionMessage
- Properties
- InspectionResult
- Inheritance
- Properties
- IParameter
- Inheritance
- Properties
- Parameter
- Inheritance
- Properties
- ProjectMessage
- Inheritance
- Properties
- Rule
- Inheritance
- Constructors
- Properties
- Rule <T>
- Inheritance
- Generic Type T
- Constructors
- RuleConstants
- Constants
- WorkflowMessage
- Inheritance
- Properties