- UiPath Assistant
- 安装 UiPath Assistant
- 配置 UiPath Assistant
- MacOS 上的 Assistant
- 画中画
- 配置 Attended 自动化
- 监管
- Assistant 中的微件
A Widget refers to a plug-in integrated with the UiPath Assistant holding a functionality, for example, the Apps Widget, or your own custom one.
在 UiPath Assistant 中安装微件的主要方法有两种:
下载微件
由 UiPath 构建的微件通过官方订阅源分发,而自定义微件则以 .nupkg 文件的形式发布到 Orchestrator 的库中。在这两种情况下,系统都将根据监管策略将它们下载并安装在 UiPath Assistant 中。
下载微件的过程包括以下步骤:
-
UiPath Assistant 可以联系 Automation Ops 来获取监管策略。
-
UiPath Assistant 会在 Orchestrator 库订阅源中查找所请求的微件。
-
如果在此未找到该微件,则使用官方的 NuGet 订阅源。
备注:如果两个订阅源都被允许,则 UiPath Assistant 会优先考虑 Orchestrator 库订阅源,而非官方的 NuGet 订阅源。
-
微件已下载并添加到 UiPath Assistant。
备注:In order to see a new widget, you need to Quit and restart the UiPath Assistant, sign out and sign back in, or reload widgets by opening the
Windows Tray-> right click on the UiPath Assistant icon -> Reload Widgets.
在 UiPath Assistant 中手动添加微件
To manually add a Widget to the UiPath Assistant, you need the .js compiled file. If the Widget is already built in a .js file, simply drag and drop it on the UiPath Assistant homepage, else, you need to build the Widget first as per the instructions found here.
为了使用户能够在 UiPath Assistant 中拖放 .js 文件,监管策略必须允许使用自定义微件。
通过 Automation Ops 监管微件
Widget Governance allows you to manage user access to Widgets. For more information, check out the Creating Governance Policies documentation.
通过为 UiPath Assistant 创建的策略,您可以:
-
选择是否允许用户安装自己的自定义微件。
-
Choose if you want to use the UiPath Official widget feeds. If you choose yes, the widgets will be downloaded from either the official feed or your Orchestrator libraries feed. If you choose no, then only the Orchestrator library feeds will be enabled.
-
只需添加 NuGet 包的名称和版本,即可列出您希望用户可以访问的微件。
备注:如果将监管策略设置为不允许自定义微件,则用户将无法通过拖放来添加自定义微件,并且仅当通过 Orchestrator 订阅源进行部署时才能安装微件。此外,如果您选择不允许自定义微件和官方订阅源,则用户只能访问 Orchestrator 订阅源中发布的微件。
通过 Automation Ops 监管微件
如果 UiPath Assistant 未通过自动化操作中设置的策略进行监管,或者无法应用该策略,则使用 agent-settings.json 配置。如果上述两种方法均无法使用,则 Assistant 将使用默认策略,其中包含最新版本的 UiPath 市场和 Apps 微件。
这可以通过打开 %userprofile%\AppData\Roaming\UiPath 中的 agent-settings.json 并在 agent 标签下添加 defaultNugetWidgetConfig 属性来修改。
When setting up the policy in agent-settings.json, make sure to also configure the expiration date.
"defaultNugetWidgetConfig": {
"widgets": {
"UiPath.Marketplace.Widget": "1.0.0"
},
"enableOldWidgets": true,
"enableFallbackFeed": true,
"expires": "2100-01-01T00:00:00.000Z",
"policy": "My custom default policy"
}
"defaultNugetWidgetConfig": {
"widgets": {
"UiPath.Marketplace.Widget": "1.0.0"
},
"enableOldWidgets": true,
"enableFallbackFeed": true,
"expires": "2100-01-01T00:00:00.000Z",
"policy": "My custom default policy"
}
如果从 Automation Ops 下载了策略,并且修改了 agent-settings.json 中的设置,您需要等待已下载的策略过期,才能应用本地策略。