Analyze
Description
The Analyze activity uses a Workflow Analyzer policy to check your code against a set of rules.
This activity is used to confirm that the project about to be managed by the pipeline is correct. After the code is validated against the Workflow Analyzer rules in the policy, a summary is logged. If any errors appear, the activity throws an exception.
note
If the project was developed using Studio and the policy is set for StudioX, or vice-versa, an error is shown.
Project compatibility
Windows | Cross-platform
Configuration
Designer panel
- Repository path - The path to the repository where the project resides.
- Project path - The path to the project inside the repository.
- Policy - The Automation Ops Studio governance policy containing the Workflow Analyzer rules. If not provided, the default workflow analyzer rules apply.
- You can use an
AnalyzePolicyprocess argument (found in theUiPath.Pipelines.Activitiespackage namespace) or the actual policy ID as a string. Using anAnalyzePolicyprocess argument, you can then select the Governance policy when setting the pipeline in Automation Ops. When testing, you can use the actual policy Id as a string and then switch to theAnalyzePolicyprocess argument. - The policy URL should have the following format:
https://cloud.uipath.com/organization/tenant/governance_/policies/Development/PolicyId
- You can use an
Properties panel
Common
- Continue on error - (Optional) Specifies if the automation should continue even when the activity throws an error. This field only supports
Booleanvalues (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.
Output
- Analysis result (Output) - Result of the analysis. It is of type
System.Data.DataTable. The columns are Level, ErrorCode, RuleName, FilePath, Recommendation, and DocumentationLink. The column type is String. The result is always returned. It is returned even in the case of an Exception being thrown as a result of analysis failure or if the Continue on error parameter is set to True.