- 简介
- 入门指南
- 可在任何画布上构建
- 使用案例构建
- 使用流构建
- Build with BPMN
- 运营
- 监控
- 正在优化
- 了解优化
- 优化视图
- 访问流程优化应用
- Process Mining 中的流程优化应用
- 使外部数据丰富流程优化
- 参考信息
使外部数据丰富流程优化
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.
-
转到 Process Mining 门户。
-
找到 流程优化 应用程序的应用程序卡,然后从上下文菜单中选择“ 在开发模式下编辑”。
-
从“操作”菜单中选择“ 上传开发者数据” ,以上传外部数据。
- 使用“直接连接 ”选项从 Salesforce 或 ServiceNow 加载数据。
- 或者使用“上传数据”选项从您的源系统上传或导出文件。例如,从“联系人”和“商机 Salesforce 表中加载数据,用于贷款来源流程。有关更多信息,请参阅“上传数据”。
备注:您可以在“数据转换”的“输入”部分查看已创建的输入表(通过文件或直接连接创建)。 您可以选择一个表格,以预览数据。 有关更多信息,请参阅 “输入数据”。
-
转到“数据转换”。
-
在 “转换” 部分找到“ 模型” 文件夹,然后编辑
Objects.sql文件。 -
将
Objects.sql文件中的Object_ID值与外部系统表中的 "ID" 字段进行比较。备注:All object tables from external sources must join on this
Object_IDfield. Maestro Orchestrate, populates theObject_IDfield based on the underlying object of the activity. For example, an IS activity for the Contact table will log theContact_IDas theObject_IDin theAutomation_eventstable). If you want to connect a Contact table from Salesforce, ensure theContact_IDis the same format as theObject_ID. The following code block shows an example SQL statement that can be used inObjects.sqlto match theObject_IDto theContact_IDfield. assignmentSUBSTRING(Automation_events."Object_ID",0,LEN(Automation_events."Object_ID") - 3) as "Object_ID".提示:您可以使用此流程将多个来源加入到单个流程优化应用程序中。 例如,如果我想将 Salesforce、ServiceNow 和流程优化数据全部加入到同一个应用程序中。
-
After confirmation of the Object_ID field from the
Automation_eventstable and externalObject_ID, join the tables on the ID fields. Add theTrace_IDas 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字段的数据类型。 -
转到 数据转换 中的“ 输出 ”部分,然后选择“ 数据模型 ”以查看 流程优化 应用程序的数据模型。
-
将新的外部对象和事件表添加到数据模型中。确保外部对象表已填充并连接了
Trace_ID字段。 有关更多信息,请参阅 “数据模型”。下图显示了包含 Salesforce 中新添加的
opportunity_data和contact_data表的示例数据模型。 -
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.
-
选择“应用于仪表板”, 以在仪表板中提供数据。
-
编辑仪表板,以可视化外部数据,并发布 流程优化 应用程序。
结果
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 外部数据的示例流程图。