UiPath Documentation
robot
2022.10
false
Robot 管理员指南
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

关于活动订阅源

备注:

从 v2018.2 开始,系统会按用户安装流程和活动。这意味着,每个 HD 机器人现使用其自己的活动版本,不再与同一台计算机上的其他机器人共享活动版本。

To have a specific automation project run by a Robot, firstly you need to provide it with access to the automation package and to the activities that make it up. There are four default activity feeds: Local, Orchestrator, Official, and Go!. The Robot's interaction with a feed depends on the following:

  • 订阅源的可用性和状态。

  • 与 Orchestrator 的连接情况。

  • 程序包签名验证。

  • Studio 中设置的运行时规则。

    重要提示:

    当使用多个订阅源时,NuGet 将选择响应最快的订阅源。如果其中一个订阅源不包含已签名的包和依赖项,则 Robot 可能会收到未签名的包或依赖项,从而导致自动化失败。为避免这种情况,请确保所有已配置的订阅源都对包和依赖项进行签名。

根据与 Orchestrator 的连接情况以及订阅源安装选项,可能会出现以下情况:

  • 如果选择安装本地订阅源,则系统会创建 %ProgramFiles%\UiPath\Studio\Packages 文件夹。此文件夹包含安装时 UiPath 正式支持的活动程序包。此订阅源默认处于启用状态。
  • 如果选择安装本地订阅源,则系统会创建 %ProgramFiles%\UiPath\Studio\Packages 文件夹;不过,此文件夹仅包含作为默认依赖项添加到新项目的程序包:UiPath.UIAutomation.ActivitiesUiPath.System.ActivitiesUiPath.Excel.ActivitiesUiPath.Mail.Activities
  • 将机器人连接到 Orchestrator 时,Orchestrator 会提供 NuGet 订阅源。此订阅源包含 UiPath 正式支持的活动程序包。此订阅源默认处于启用状态,并且依赖于存储设置,如下所示:
    • 如果将 NuGet.Repository.Type 设置为 Legacy,则活动默认保存在 ~/NuGetPackages/Activities 位置中。您可以自定义该值,并且系统会将其作为 web.config 文件的 NuGet.Activities.Path 参数保存在 Orchestrator 计算机上。

    • 如果将 NuGet.Repository.Type 设置为 Composite,则活动保存在通过 Storage.TypeStorage.Location 参数指定的位置中。详细了解这些参数

      备注:

      如果将 NuGet.Repository.Type 设置为 Composite,则不支持在程序包专用文件夹中使用复制粘贴命令。

  • If the Robot is not connected to Orchestrator, nor does it find the required activities in the local feed, the feed https://pkgs.dev.azure.com/uipath/Public.Feeds/_packaging/UiPath-Official/nuget/v3/index.json can be used. This is the official online UiPath feed from which the Package Manager in Studio also retrieves its activities. It contains the activity packages that are officially supported by UiPath. This feed is disabled by default. To enable it, go to Settings > Manage Sources in Studio, and select the corresponding check box. More details about managing activity packages in our Studio guide here.

当您向(UiPath Assistant 或 Orchestrator 或 Orchestrator 中的)机器人发出执行命令时,该机器人将查找所有可用源中的所有依赖项(活动、自动化项目),并从首先响应的源开始检索。由于活动程序包可拥有多个版本,因此您需考虑为 Studio 中的程序包选择运行时规则,如下所示:

  • 如果选择“严格”作为运行时规则,则机器人会搜索为该程序包指定的确切版本。例如,如果将“版本”字段设置为“2.5.0”,将“运行时规则”字段设置为“严格”,则机器人只会搜索该程序包的“2.5.0”版本。如果任何现有源中都没有该版本,系统便会抛出错误。

  • 如果您选择“最低适用版本”作为运行时规则,则机器人将搜索指定的版本或更高版本。例如,如果将“版本”字段设置为“2.5.0”,并将“运行时规则”字段设置为“最低适用版本”,则机器人会搜索从 2.5.0 开始的任何版本,例如 2.5.0、2.5.1、2.5.2 等。如果在任何现有来源中均未找到任何适用的版本,则会引发错误。

    You can find out more about project dependencies.

添加或删除活动订阅源

Based on the Deployment Type, the Robot uses Activities Feeds in different ways.

重要提示:
  • 每次修改配置文件时,都需要重新启动机器人以使更改生效。

  • 如要忽略来自NuGet.config的 HTTPS 订阅源,请在UiPath.config<packageSettings>下添加以下行:

    <add key="skipHttpConfigurationSources" value="true" />
    <add key="skipHttpConfigurationSources" value="true" />
    

User Mode Robot

用户模式下将机器人安装到计算机上时,将创建两个 NuGet.config 文件,一个位于安装文件夹,另一个与用户配置文件(位于 %AppData%\NuGet\NuGet.config)绑定。

如果要为用户模式机器人添加或删除“活动订阅源”,可以在此机器人连接到两个 NuGet.config 文件时对其进行任何修改,以获取活动

要添加或删除“活动订阅源”,需要通过添加或删除 Key 来修改 NuGet.config 文件中的 <packageSources> 部分。

您可以添加本地或在线订阅源。

<packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
    <add key="Online Feed" value="https://mycustomfeed.com" />
    <add key="Local Feed" value="C:\local feed" />
</packageSources>
<packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
    <add key="Online Feed" value="https://mycustomfeed.com" />
    <add key="Local Feed" value="C:\local feed" />
</packageSources>

服务模式机器人

此类机器人会检查 install folder 中的 NuGet.config 文件,如果要添加或删除订阅源,则只需修改此文件。

  • 添加或删除活动订阅源
  • 用户模式机器人
  • 服务模式机器人

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新