The rule checks whether output properties for certain activities are declared and used. Certain activities can be excluded. The default excluded activities in this rules are:
- For Each with the namespace
- Message Box with the namespace
- Run Macro with the namespace
- Check App State with the namespace
Make sure output properties for certain activities are set to a declared variable.
In the Project Settings window, select the Workflow Analyzer tab. Find and select the rule.
The default excluded activities for ST-DBP-020 are For Each, Message Box, and Run Macro. Add more activities in the Excluded field by adding their namespaces separated by a comma. For example, the following parameter
UiPath.Core.Activities.ForEach, UiPath.Core.Activities.MessageBox, UiPath.Excel.Activities.Business.ExecuteMacroX, UiPath.Core.Activities.GetVisibleText adds Get Visible Text to the list of activities excluded from the check.
To reset the value to default right-click the rule in the Project Settings window, and then click Reset to default.
Updated about a year ago