- 入门指南
- 安装和升级
- 机器人类型
- 机器人组件
- 许可
- 将机器人连接到 Orchestrator
- 流程与活动
- 日志记录
- 特定场景
- 监管
- 故障排除
从 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 的连接情况以及订阅源安装选项,可能会出现以下情况:
- If you choose to install the local feed, the
%ProgramFiles%\UiPath\Studio\Packagesfolder is created. It contains the activity packages that are officially supported by UiPath® at install time. The feed is enabled by default. - 如果选择不安装本地订阅源,则系统会创建
%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 as follows:
-
如果将
NuGet.Repository.Type设置为Legacy,则活动默认保存在~/NuGetPackages/Activities位置中。您可以自定义该值,并且系统会将其作为web.config文件的NuGet.Activities.Path参数保存在 Orchestrator 计算机上。 -
如果将
NuGet.Repository.Type设置为Composite,则活动保存在通过Storage.Type和Storage.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.jsoncan 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.
When you give the execute command to the Robot (be it in the UiPath® Assistant or Orchestrator), it looks for all its dependencies (activities, automation projects) in all available sources, and retrieves them from the one which responds first. Since activities packages can have multiple versions, the runtime rules selected for the packages in Studio are taken into account, as follows:
-
如果选择“严格”作为运行时规则,则机器人会搜索为该程序包指定的确切版本。例如,如果将“版本”字段设置为“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 文件,如果要添加或删除订阅源,则只需修改此文件。