UiPath Documentation
apps
latest
false
旧版 Apps 用户指南
重要 :
有关 Studio Web 中的应用程序项目文档,请参阅 Studio Web 文档中的“应用程序项目”一章:https://docs.uipath.com/zh-CN/studio-web/automation-cloud/latest/user-guide/apps-in-studio-web。 请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

在应用程序中引用队列

为了创建更好、更复杂的应用程序,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"]
        }
        }
    }

在下面的示例中,我们将演示如何将现有流程导入到应用程序中。

  1. 在 App Studio 中的现有应用程序中,单击“添加任何文档图像画布顶部的图标。

  2. 单击“实体”以打开实体引用对话框。

  3. 选择您有权在帐户中访问的 Orchestrator 租户。 选择托管所需队列的队列,然后单击“下一步” 。 您还可以连接到独立的内部部署租户,选择“使用其他 Orchestrator 租户”。 选择租户后,单击“下一步”

  4. 系统将为当前选定的租户显示一个按文件夹组织的流程列表。高亮显示队列将显示其内容。

  5. 选中要在应用程序中使用的实体旁边的复选框,然后单击“添加”。

    备注:

    Apps 仅支持 Orchestrator 中包含特定数据 JSON 架构文件的队列。

该流程现已添加到应用程序中。

备注:

流程权限在 Orchestrator 中进行管理。请确保您拥有要从 Data Service 中引用的实体的正确权限。

更新引用的队列

如果对队列架构进行了任何更改,请按照以下步骤在 Apps 中进行更新。

  1. 引用队列后,请从 Apps 的“队列”菜单中选择该队列。

  2. 从列表中选择阶段。

  3. 单击刷新图标。

绑定队列

在下面的示例中,我们将一个队列绑定到一个文本框控件。

开始之前

在将实体绑定到 App Studio 中的控件之前,请确保在您的应用程序中引用该实体。

备注:

如果要将日期时间对象、数据表、对象或数组发送到队列,请确保将其绑定到string类型字段。您还可以使用string类型字段将复杂对象绑定到队列输入。

程序

  1. 在现有应用程序中,添加新的文本框控件。
  2. 选择文本框并转到“值”绑定属性。
  3. 在“值绑定”属性中添加队列。
  • 从 Orchestrator 导入流程
  • 更新引用的队列
  • 绑定队列
  • 开始之前
  • 程序

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新