- 入门指南
- 演示应用程序
- 如何
- 通知
- 使用 VB 表达式
- 设计应用程序
- 事件和规则
- 在应用程序中利用 RPA
- 在应用程序中利用实体
- 在应用程序中利用队列
- 在应用程序中引用队列
- 替换队列
- 将 Apps 与队列一起使用
- 在应用程序中利用媒体文件
- 在应用程序中利用操作
- 在应用程序中利用 Connections
- 应用程序生命周期管理 (ALM)
- UiPath 第一方应用程序
- 基本故障排除指南
为了创建更好、更复杂的应用程序,UiPath Apps 可以连接 UiPath Orchestrator 中的队列并与之交互。
从 Orchestrator 导入流程
在 Orchestrator 中发布流程后,您可以从应用程序引用该流程。
有关队列的更多信息,请查看 Orchestrator 指南中的队列部分。
Only queues containing a Specific Data JSON Schema file in Orchestrator are supported by Apps. To better understand how the Specific Data JSON Schema should look like, see the example below:
{
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://example.com/root.json",
"type": "object",
"title": "The Root Schema",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
},
"isPermanent": {
"type": "boolean"
},
"age": {
"type": "number"
},
"department": {
"type": "string",
"enum": ["Sales", "Marketing", "HR"]
}
}
}
{
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://example.com/root.json",
"type": "object",
"title": "The Root Schema",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
},
"isPermanent": {
"type": "boolean"
},
"age": {
"type": "number"
},
"department": {
"type": "string",
"enum": ["Sales", "Marketing", "HR"]
}
}
}
在下面的示例中,我们将演示如何将现有流程导入到应用程序中。
-
在 App Studio 中的现有应用程序中,单击“添加任何
画布顶部的图标。 -
单击“实体”以打开实体引用对话框。
-
选择您有权在帐户中访问的 Orchestrator 租户。 选择托管所需队列的队列,然后单击“下一步” 。 您还可以连接到独立的内部部署租户,选择“使用其他 Orchestrator 租户”。 选择租户后,单击“下一步” 。
-
系统将为当前选定的租户显示一个按文件夹组织的流程列表。高亮显示队列将显示其内容。
-
选中要在应用程序中使用的实体旁边的复选框,然后单击“添加”。
备注:Apps 仅支持 Orchestrator 中包含特定数据 JSON 架构文件的队列。
该流程现已添加到应用程序中。
流程权限在 Orchestrator 中进行管理。请确保您拥有要从 Data Service 中引用的实体的正确权限。
更新引用的队列
如果对队列架构进行了任何更改,请按照以下步骤在 Apps 中进行更新。
-
引用队列后,请从 Apps 的“队列”菜单中选择该队列。
-
从列表中选择阶段。
-
单击刷新图标。
绑定队列
在下面的示例中,我们将一个队列绑定到一个文本框控件。
开始之前
在将实体绑定到 App Studio 中的控件之前,请确保在您的应用程序中引用该实体。
如果要将日期时间对象、数据表、对象或数组发送到队列,请确保将其绑定到string类型字段。您还可以使用string类型字段将复杂对象绑定到队列输入。
程序
- 在现有应用程序中,添加新的文本框控件。
- 选择文本框并转到“值”绑定属性。
- 在“值绑定”属性中添加队列。