为了执行自动化项目,机器人需要访问与项目相关的活动。有四种默认的活动订阅源:本地、Orchestrator、官方和 Go!。它们与您的机器人之间的交互取决于条件,例如订阅源的可用性和状态、与 Orchestrator 的连接、包签名以及 Studio 中设置的运行时规则。
可能会出现以下情况:
- 如果选择安装本地 Studio 订阅源,则系统会创建
%ProgramFiles%\UiPath\Studio\Packages
文件夹。此订阅源包含安装时 UiPath 官方支持的活动包。订阅源默认情况下处于启用状态。 - 如果选择不安装本地订阅源,则系统会创建
%ProgramFiles%\UiPath\Studio\Packages
文件夹;但是,该文件夹仅包含作为默认依赖项添加到新项目的包:UiPath.UIAutomation.Activities
、UiPath.System.Activities
、UiPath.Excel.Activities
和UiPath.Mail.Activities
。 - When you connect the Robot to Orchestrator, a NuGet feed is provided by Orchestrator. It contains the activity packages that are officially supported by UiPath. The feed is enabled by default and is dependent on your storage settings..
注意
组合式存储库不支持在专用的包文件夹中使用复制粘贴命令。
注意
即使您将库配置为在租户级别隔离,活动包仍存储在主机订阅源中。详细了解库订阅源。
- 如果机器人未连接到 Orchestrator,也未在本地订阅源中找到所需活动,则可使用 MyGet 订阅源 (
https://www.myget.org/F/workflow/
)。这是官方在线 UiPath 订阅源,Studio 中的包管理器也从该订阅源中检索其活动。此订阅源包含 UiPath 官方支持的活动包。此订阅源默认情况下处于禁用状态。要启用该订阅源,请在 Studio 中转到“设置”>“管理源”,然后选中相应的复选框。
More details about managing activity packages in our Studio guide here.
备注:
可以通过 API 密钥或基本身份验证凭据保护订阅源。
由于 NuGet 的限制,在负载较重的环境中,如果手动复制本地订阅源中的多个包,则活动包的解压缩速度会很慢。建议您通过 NuGet 上传活动。
当您开始一项工作时,机器人会在所有可用资源中搜索所需的活动包,并从响应时间最短的订阅源中检索它们。由于活动包具有多个版本,此流程还将考虑为 Studio 中的包选择的运行时规则,如下所示:
- If you selected Strict as a runtime rule, the Robot searches for the exact version specified for that package. For example, if you set the Version field to 2.5.0, and the Runtime Rule field to Strict, the Robot only searches for version 2.5.0 of that package. If the version is not found in any of the existing sources, an error is thrown.
- 如果您选择“最低适用版本”作为运行时规则,则机器人会搜索指定的版本或更高版本。例如,如果将“版本”字段设置为“2.5.0”,并将“运行时规则”字段设置为“最低适用版本”,则机器人会搜索从 2.5.0 开始的任何版本,例如 2.5.0、2.5.1、2.5.2 等。如果在任何现有来源中均未找到任何适用的版本,则会引发错误。
More details about project dependencies in our Studio guide here.
注意
如果强制使用签名包,则无论是否在订阅源中找到未签名的活动包,您均无法对其进行检索。如需详细了解如何对程序包进行签名,请参阅此处的 Studio 指南。
默认活动包
以下是与 Studio 和 Robot(如果已选中)以及 Orchestrator 一起安装的受官方支持的活动包:
- UiPath.Excel.Activities
- UiPath.Mail.Activities
- UiPath.System.Activities
- UiPath.UIAutomation.Activities
- UiPath -
UiPath.UiAutomation.Activities
包的依赖项 - UiPath.Vision -
UiPath.UiAutomation.Activities
包的依赖项 - UiPath.Core.Activities
- UiPath.Framework.Activities - Required for legacy process compatibility
- UiPath.Cognitive.Activities
- UiPath.IntelligentOCR.Activities
- UiPath.PDF.Activities
- UiPath.Terminal.Activities
- UiPath.WebAPI.Activities
- UiPath.Word.Activities
- UiPath.CefSharpBundle -Studio 中
C#
流程设计的依赖项 - UiPath.DocumentProcessing.Contracts
6个月前更新