UiPath Documentation
maestro
latest
false
Maestro Orchestrate 用户指南
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。

使外部数据丰富流程优化

Connect Maestro Orchestrate Process Optimization to external systems such as Salesforce or ServiceNow to extend context and improve process segmentation.

To enhance Process optimization in Maestro Orchestrate, you can extend context and visibility into the underlying business objects by connecting to external source systems—such as Salesforce or ServiceNow—that the process operates on.

为了实现更好的流程表示和分割,您需要从这些追踪业务对象及其状态的外部系统中导入数据,进入 Process Mining 中的流程优化应用程序。这有助于获得更精细的洞察,并有助于发现有待改进的领域。

示例包括识别支持工单数量高的产品区域,或通过 Process Mining 根据新发现的采购订单步骤优化流程。

This page describes the steps to join external data with internal Maestro Orchestrate trace data to achieve this level of insight.

先决条件​

假设:

  • 已在租户级别启用 Process Mining。
  • 您熟悉内部数据模型、SQL 和 Process Mining 功能。
  • 您已分配给 Process Mining 开发者角色。有关更多信息,请参阅“ 设置用户”。
  • 您拥有流程优化应用程序的“编辑数据”、 “编辑仪表板 ”和“ 查看 ”权限。 有关更多信息,请参阅“管理 Process Mining 应用程序的访问权限”。
  • You have built, deployed, and ran a Maestro Orchestrate process that has Integration Service activities associated with an external source system (E.g. Loan Origination process that pulls and updates records from Salesforce).

如何丰富优化数据​

To enrich your Process Optimization app with external data, connect to your source system and join the external tables with the Maestro Orchestrate automation data in Data transformations.

  1. 转到 Process Mining 门户。

  2. 找到 流程优化 应用程序的应用程序卡,然后从上下文菜单中选择“ 在开发模式下编辑”。

  3. 从“操作”菜单中选择“ 上传开发者数据” ,以上传外部数据。

    • 使用“直接连接 ”选项从 Salesforce 或 ServiceNow 加载数据。
    • 或者使用“上传数据”选项从您的源系统上传或导出文件。例如,从“联系人”和“商机 Salesforce 表中加载数据,用于贷款来源流程。有关更多信息,请参阅“上传数据”。
    备注:

    您可以在“数据转换”的“输入”部分查看已创建的输入表(通过文件或直接连接创建)。 您可以选择一个表格,以预览数据。 有关更多信息,请参阅 “输入数据”。

  4. 转到“数据转换”。

  5. 在 “转换” 部分找到“ 模型” 文件夹,然后编辑 Objects.sql 文件。

  6. 将 Objects.sql 文件中的 Object_ID 值与外部系统表中的 "ID" 字段进行比较。

    备注:

    All object tables from external sources must join on this Object_ID field. Maestro Orchestrate, populates the Object_ID field based on the underlying object of the activity. For example, an IS activity for the Contact table will log the Contact_ID as the Object_ID in the Automation_events table). If you want to connect a Contact table from Salesforce, ensure the Contact_ID is the same format as the Object_ID. The following code block shows an example SQL statement that can be used in Objects.sql to match the Object_ID to the Contact_ID field. assignment SUBSTRING(Automation_events."Object_ID",0,LEN(Automation_events."Object_ID") - 3) as "Object_ID".

    提示:

    您可以使用此流程将多个来源加入到单个流程优化应用程序中。 例如,如果我想将 Salesforce、ServiceNow 和流程优化数据全部加入到同一个应用程序中。

  7. After confirmation of the Object_ID field from the Automation_events table and external Object_ID, join the tables on the ID fields. Add the Trace_ID as a field to the table to associate the external object with a Maestro Orchestrate run.

    以下代码块显示了连接到 contact_data.sql 文件中以创建 Contact 表并将其与自动化数据连接的示例。

    select
       contact_data.*,
       Objects."Trace_ID",
       concat('Contact',to_varchar({{ pm_utils.id() }})) as "Unique_ID"
    from {{ source('sources', 'contact_data') }} as contact_data
    left join {{ref('Objects')}} as Objects
    ON contact_data."Contact ID" = Objects."Object_ID"
    select
       contact_data.*,
       Objects."Trace_ID",
       concat('Contact',to_varchar({{ pm_utils.id() }})) as "Unique_ID"
    from {{ source('sources', 'contact_data') }} as contact_data
    left join {{ref('Objects')}} as Objects
    ON contact_data."Contact ID" = Objects."Object_ID"
    
    备注:

    使用该函数创建的.id()字段默认为数字。 您需要将其转换为 varchar,因为这是 Automation_events 表中 Event_ID 字段的数据类型。

  8. 转到 数据转换 中的“ 输出 ”部分,然后选择“ 数据模型 ”以查看 流程优化 应用程序的数据模型。

  9. 将新的外部对象和事件表添加到数据模型中。确保外部对象表已填充并连接了 Trace_ID 字段。 有关更多信息,请参阅 “数据模型”。

    下图显示了包含 Salesforce 中新添加的 opportunity_data 和 contact_data 表的示例数据模型。

  10. In the Output section in Data transformations, select Process to view the processes defined for the Process optimization app. Make sure there is a process defined with all events that will combine the events from the Maestro Orchestrate process and the external object events tables. Refer to Adding and editing processes for more information.

  11. 选择“应用于仪表板”, 以在仪表板中提供数据。

  12. 编辑仪表板,以可视化外部数据,并发布 流程优化 应用程序。

结果​

The external data is integrated into the Process Optimization app and available for visualization in dashboards. The process graph reflects the combined Maestro Orchestrate automation data and external object data from the connected source system.

以下图示显示了包含 Salesforce 外部数据的示例流程图。

  • 先决条件​
  • 如何丰富优化数据​
  • 结果​

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新