[go: up one dir, main page]

CN112101803A - Business process monitoring method, device, system, equipment and medium - Google Patents

Business process monitoring method, device, system, equipment and medium Download PDF

Info

Publication number
CN112101803A
CN112101803A CN202010996098.6A CN202010996098A CN112101803A CN 112101803 A CN112101803 A CN 112101803A CN 202010996098 A CN202010996098 A CN 202010996098A CN 112101803 A CN112101803 A CN 112101803A
Authority
CN
China
Prior art keywords
business process
task
node
task node
business
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010996098.6A
Other languages
Chinese (zh)
Inventor
史高雄
王镇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010996098.6A priority Critical patent/CN112101803A/en
Publication of CN112101803A publication Critical patent/CN112101803A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Operations Research (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Educational Administration (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a business process monitoring method, a device, a system, equipment and a medium, wherein the method is executed by a server associated with a business process engine, and the method comprises the following steps: receiving state information reported by each task node of a pre-created service flow in a service flow engine, wherein the service flow comprises at least two task nodes, and the state information at least comprises task starting time and task ending time reported by each task node; and determining whether each task node has overtime fault or not based on the state information of each task node and node configuration information corresponding to each task node, wherein the node configuration information is configured in advance when the flow of the service flow engine is defined. According to the technical scheme provided by the embodiment of the application, the problem of overtime faults of each task node in the business process is judged in real time by analyzing the state information reported by the task nodes, and the monitoring efficiency of the business process is effectively improved.

Description

业务流程监控方法、装置、系统、设备和介质Business process monitoring method, apparatus, system, device and medium

技术领域technical field

本申请一般涉及企业管理软件技术领域,具体涉及一种业务流程监控方法、装置、系统、设备和介质。The present application generally relates to the technical field of enterprise management software, and specifically relates to a business process monitoring method, apparatus, system, device and medium.

背景技术Background technique

在现代社会生活中,通过业务终端执行某一业务流程来实现某种业务目的是常见业务处理方式。其中,业务流程是将至少两个任务节点按照业务逻辑连接起来确定的。In modern social life, it is a common business processing method to implement a business process through a business terminal to achieve a business purpose. The business process is determined by connecting at least two task nodes according to business logic.

在相关技术中,一般在业务流程执行结束后,判断该业务流程在执行过程是否出现故障。目前,对于任务节点较多的复杂业务流程,在确定业务流程的执行过程出现故障时,不能精确的确定出现故障的任务节点,从而无法精准高效的修复故障。In the related art, generally after the execution of the business process is completed, it is judged whether the business process has a fault during the execution process. At present, for a complex business process with many task nodes, when it is determined that the execution process of the business process is faulty, the faulty task node cannot be accurately determined, so that the fault cannot be accurately and efficiently repaired.

发明内容SUMMARY OF THE INVENTION

鉴于现有技术中的上述缺陷或不足,期望提供一种可以监控业务流程中任务节点是否出现超时故障的业务流程的监控方法、装置、系统、设备和介质。In view of the above-mentioned defects or deficiencies in the prior art, it is desirable to provide a business process monitoring method, apparatus, system, device and medium that can monitor whether a task node in a business process has a timeout fault.

第一方面,本申请实施例提供了一种业务流程监控方法,该方法由与业务流程引擎关联的服务器执行,该方法包括:In a first aspect, an embodiment of the present application provides a business process monitoring method, the method is executed by a server associated with a business process engine, and the method includes:

接收业务流程引擎中预先创建的业务流程的各个任务节点上报的状态信息,该业务流程中包括至少两个任务节点,该状态信息至少包括每个任务节点上报的任务开始时间或任务结束时间;Receive status information reported by each task node of a pre-created business process in the business process engine, the business process includes at least two task nodes, and the state information at least includes the task start time or task end time reported by each task node;

基于每个任务节点的状态信息和与每个任务节点对应的节点配置信息,确定每个任务节点是否出现超时故障,节点配置信息是在业务流程引擎的流程定义时预先配置的。Based on the state information of each task node and the node configuration information corresponding to each task node, it is determined whether each task node has a timeout fault, and the node configuration information is pre-configured during the process definition of the business process engine.

第二方面,本申请实施例提供了一种业务流程监控装置,该装置被配置在与业务流程引擎关联的服务器上,该装置包括:In a second aspect, an embodiment of the present application provides a business process monitoring device, the device is configured on a server associated with a business process engine, and the device includes:

第一接收模块,被配置为接收业务流程引擎中预先创建的业务流程的各个任务节点上报的状态信息,该业务流程中包括至少两个任务节点,该状态信息至少包括每个任务节点上报的任务开始时间或任务结束时间;The first receiving module is configured to receive state information reported by each task node of a pre-created business process in the business process engine, the business process includes at least two task nodes, and the state information at least includes the task reported by each task node start time or task end time;

第一确定模块,被配置为基于每个任务节点的状态信息和与每个任务节点对应的节点配置信息,确定每个任务节点是否出现超时故障,该节点配置信息是在业务流程引擎的流程定义时预先配置的。The first determination module is configured to determine whether each task node has a timeout failure based on the state information of each task node and the node configuration information corresponding to each task node, and the node configuration information is defined in the process of the business process engine. pre-configured.

第三方面,本申请实施例提供了一种业务流程监控系统,所述系统包括业务终端和服务器包括:In a third aspect, an embodiment of the present application provides a business process monitoring system, where the system includes a business terminal and a server including:

业务终端,其包括在其上运行的业务流程引擎,被配置为将业务流程引擎中预先创建的业务流程的各个任务节点的状态信息上报给服务器,该业务流程中包括至少两个任务节点,该状态信息至少包括每个任务节点上报的任务开始时间或任务结束时间;The business terminal, which includes a business process engine running on it, is configured to report the status information of each task node of the business process pre-created in the business process engine to the server, the business process includes at least two task nodes, the The status information includes at least the task start time or task end time reported by each task node;

服务器,被配置为从业务终端接收状态信息,并基于每个任务节点的状态信息和与每个任务节点对应的节点配置信息,确定每个任务节点是否出现超时故障,该节点配置信息是在业务流程引擎的流程定义时预先配置的。The server is configured to receive status information from the service terminal, and based on the status information of each task node and the node configuration information corresponding to each task node, determine whether each task node has a timeout failure, and the node configuration information is in the service node. The process engine's process definition is pre-configured.

第四方面,本申请实施例提供了一种计算机设备,计算机设备包括存储器、处理器以及存储在存储器并可在处理器上运行的计算机程序,处理器用于执行程序时实现如第一方面的方法。In a fourth aspect, an embodiment of the present application provides a computer device, the computer device includes a memory, a processor, and a computer program stored in the memory and running on the processor, where the processor is configured to implement the method of the first aspect when executing the program .

第五方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序用于实现如第一方面的方法。In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and the computer program is used to implement the method of the first aspect.

本申请实施例提供的业务流程的监控方法、装置、系统、设备和介质,该方法通过接收业务流程中的所有任务节点上报的状态信息,并基于每个任务节点上报的状态信息和与其对应预先配置的配置信息,确定每个任务节点是否出现超时故障,以精确的确定出现故障的任务节点,实现对业务流程处理过程中的每个任务节点进行实时监控,提高业务处理流程中故障监控的精准度,确保精准高效的修复故障。The method, device, system, device and medium for monitoring a business process provided by the embodiments of the present application, the method receives the state information reported by all task nodes in the business process, and based on the state information reported by each task node and its corresponding Configured configuration information to determine whether each task node has a timeout fault, so as to accurately determine the faulty task node, realize real-time monitoring of each task node in the process of business process processing, and improve the accuracy of fault monitoring in the business process process. to ensure accurate and efficient repair of faults.

附图说明Description of drawings

通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

图1为申请实施例提供的一种业务流程的监控的实施环境架构图;FIG. 1 is an implementation environment architecture diagram of monitoring of a business process provided by the application embodiment;

图2为申请实施例提供的一种业务流程的监控方法的流程示意图;2 is a schematic flowchart of a method for monitoring a business process provided by an application embodiment;

图3为申请实施例提供的另一种业务流程的监控方法的流程示意图;3 is a schematic flowchart of another method for monitoring a business process provided by the application embodiment;

图4为申请实施例提供的一种业务流程的部署和监控过程的示意图;4 is a schematic diagram of a deployment and monitoring process of a business process provided by an embodiment of the application;

图5为申请实施例提供的一种产品的订单处理流程的流程图;5 is a flowchart of an order processing process for a product provided by the application embodiment;

图6为申请实施例提供的一种业务流程的监控装置的结构示意图;6 is a schematic structural diagram of an apparatus for monitoring a business process provided by an embodiment of the application;

图7为申请实施例提供的另一种业务流程的监控装置的结构示意图;7 is a schematic structural diagram of another apparatus for monitoring a business process provided by an embodiment of the application;

图8为申请实施例提供的又一种业务流程的监控装置的结构示意图;8 is a schematic structural diagram of another apparatus for monitoring a business process provided by an embodiment of the application;

图9为申请实施例提供的又一种业务流程的监控装置的结构示意图;9 is a schematic structural diagram of another apparatus for monitoring a business process provided by an embodiment of the application;

图10为申请实施例提供的又一种业务流程的监控设备的结构示意图。FIG. 10 is a schematic structural diagram of another business process monitoring device provided by an embodiment of the application.

具体实施方式Detailed ways

下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与发明相关的部分。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the related invention, but not to limit the invention. In addition, it should be noted that, for the convenience of description, only the parts related to the invention are shown in the drawings.

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.

随着互联网技术的发展,利用高效便捷性的业务系统处理业务已经是现代生活中常见的业务处理手段,业务系统通常可以整合多个业务流程,以满足业务目的的需求。如企业管理系统,可以搭载有请假审批流程,货物管理流程和经费申请流程等。With the development of Internet technology, using efficient and convenient business systems to process business has become a common business processing method in modern life. Business systems can usually integrate multiple business processes to meet the needs of business purposes. For example, the enterprise management system can be equipped with a leave approval process, a cargo management process and a fund application process.

业务流程的设计是业务系统搭建过程中的核心工作之一,流程引擎可以根据一定的协议将至少一个任务节点进行排列组合以实现某一业务目的。Flowable是一种常用的流程引擎,允许开发人员基于BPMN2.0(英文:Business Process Model and Notation,中文:业务流程模型和标记法)协议标准以流程图的形式设计业务流程,降低了业务流程设计的难度。The design of the business process is one of the core tasks in the process of building a business system. The process engine can arrange and combine at least one task node according to a certain protocol to achieve a business purpose. Flowable is a commonly used process engine that allows developers to design business processes in the form of flowcharts based on the BPMN2.0 (English: Business Process Model and Notation, Chinese: Business Process Model and Notation) protocol standard, reducing business process design. difficulty.

通常情况下,设计业务流程的协议中可以配置监控机制,可以在业务流程执行结束后,利用监控机制获取的业务流程的状态信息,帮助运营人员判断业务流程在执行过程中是否出现故障。但是,基于BPMN2.0协议标准设计的业务流程,在业务流程的实际执行过程中,一般只会对整个业务流程是否出现故障进行判断,如通过对业务流程的开始时间和结束时间进行监控,将业务流程的开始时间和结束时间的时间差值与业务流程的允许执行时长进行比较,确定业务流程的执行时长是否超时,若超时,确定业务流程在执行过程中出现故障。在业务流程执行完后,判断业务流程的执行过程是否出现故障的业务流程故障监控技术,对于包括多个任务节点的复杂业务流程来说,由于无法精准监控出现故障的任务节点,对于运维人员的故障检修造成了很大的负担。Usually, the monitoring mechanism can be configured in the protocol for designing the business process. After the execution of the business process, the status information of the business process obtained by the monitoring mechanism can be used to help operators determine whether the business process is faulty during the execution process. However, for the business process designed based on the BPMN2.0 protocol standard, in the actual execution process of the business process, it is generally only judged whether the entire business process is faulty. For example, by monitoring the start time and end time of the business process, the The time difference between the start time and the end time of the business process is compared with the allowable execution time of the business process to determine whether the execution time of the business process has timed out. After the execution of the business process, the business process fault monitoring technology is used to determine whether the execution process of the business process is faulty. For a complex business process including multiple task nodes, since it is impossible to accurately monitor the faulty task node, it is very difficult for operation and maintenance personnel. Troubleshooting caused a great burden.

图1是本申请实施例提供的一种业务流程监控方法的实施环境架构图。如图1所示,该实施环境架构包括:业务终端110和服务器120。FIG. 1 is an implementation environment architecture diagram of a business process monitoring method provided by an embodiment of the present application. As shown in FIG. 1 , the implementation environment architecture includes: a service terminal 110 and a server 120 .

其中,业务终端100可以预先安装用于管理企业的软件系统,该软件系统可以响应用户输入的操作执行某一具体的业务流程,以达到与该业务流程对应的业务目的。该软件系统可以依赖与业务流程引擎来实现对业务操作的管理。The service terminal 100 may be pre-installed with a software system for managing an enterprise, and the software system may execute a specific business process in response to an operation input by the user, so as to achieve a business purpose corresponding to the business process. The software system can rely on the business process engine to manage business operations.

在业务流程执行过程中,该业务终端110可以将业务流程中的每个任务节点的状态信息发送给服务器120,以使服务器120基于每个任务节点的状态信息判断任务节点在执行过程中是否出现故障,该任务节点的状态信息包括任务节点开始执行事件的第一状态信息和结束执行事件的第二状态信息。在业务流程执行结束后,该业务终端110也可以将业务流程的状态信息发送给服务器120,以使服务器120基于业务流程的状态信息判断业务流程在执行过程中是否出现故障,该业务流程的状态信息包括业务流程结束执行事件的第三状态信息。During the execution of the business process, the service terminal 110 can send the state information of each task node in the business process to the server 120, so that the server 120 can judge whether the task node appears during the execution process based on the state information of each task node If there is a fault, the state information of the task node includes first state information of the task node start execution event and second state information of the end execution event. After the execution of the business process, the service terminal 110 may also send the state information of the business process to the server 120, so that the server 120 can judge whether the business process fails during the execution process based on the state information of the business process, and the state of the business process The information includes third state information of the business process end execution event.

在本申请中,业务终端100的类型可以包括但不限于智能手机、平板电脑、电视机、笔记本电脑、台式电脑等,本申请实施例对此不进行具体限定。In this application, the type of the service terminal 100 may include, but is not limited to, a smart phone, a tablet computer, a television, a notebook computer, a desktop computer, and the like, which are not specifically limited in this embodiment of the application.

其中,服务器120具有数据处理和存储功能,可以利用业务终端110发送的业务流程中任务节点的状态信息和服务器中预先存储的与任务节点对应的配置信息,和/或利用业务终端110发送的业务流程的状态信息和服务器中预先存储的与业务流程对应的配置信息,确定该业务终端110中正在执行的业务流程中的每个任务节点和/或业务流程是否出现超时故障,并将该故障监控结果存储于数据库中,以及对故障任务节点或者故障业务流程进行提醒。The server 120 has data processing and storage functions, and can use the status information of the task nodes in the business process sent by the service terminal 110 and the configuration information corresponding to the task nodes pre-stored in the server, and/or use the service sent by the service terminal 110. The state information of the process and the configuration information corresponding to the business process pre-stored in the server, determine whether each task node and/or business process in the business process being executed in the service terminal 110 has a timeout fault, and monitor the fault. The results are stored in the database, and the faulty task node or faulty business process is reminded.

服务器120,例如可以是OLA服务器,其可以主要用于负责管理和存储SLA/OLA的基础配置数据;接收业务流程实例实际运行过程中所产生的OLA上报的状态信息,状态信息例如是任务节点的开始时间和结束时间,还可以负责计算SLA/OLA最终的计算结果,并存储。以及监控OLA超时的任务节点,并对OLA超时的任务节点进行提醒。服务器120与业务终端110可以采用外挂方式连接。The server 120 can be, for example, an OLA server, which can be mainly used to manage and store the basic configuration data of SLA/OLA; receive status information reported by the OLA generated during the actual running of the business process instance, and the status information is, for example, of a task node. The start time and end time can also be responsible for calculating the final calculation result of SLA/OLA and storing it. And monitor the task nodes whose OLA has timed out, and remind the task nodes whose OLA has timed out. The server 120 and the service terminal 110 may be connected in a plug-in manner.

该服务器120可以是一台服务器,也可以是由若干台服务器构成的服务器集群,或者服务器120可以包含一个或多个虚拟化平台,或者服务器120可以是一个云计算服务中心。The server 120 may be a server, or a server cluster composed of several servers, or the server 120 may include one or more virtualization platforms, or the server 120 may be a cloud computing service center.

业务终端110与服务器120之间通过有线或无线网络建立通信连接。可选的,上述的无线网络或有线网络使用标准通信技术和/或协议。网络通常为因特网、但也可以是任何网络,包括但不限于局域网(Local Area Network,LAN)、城域网(Metropolitan AreaNetwork,MAN)、广域网(Wide Area Network,WAN)、移动、有线或者无线网络、专用网络或者虚拟专用网络的任何组合。A communication connection is established between the service terminal 110 and the server 120 through a wired or wireless network. Optionally, the above-mentioned wireless network or wired network uses standard communication technologies and/or protocols. The network is usually the Internet, but can be any network, including but not limited to Local Area Network (LAN), Metropolitan Area Network (MAN), Wide Area Network (WAN), mobile, wired or wireless network , private network, or any combination of virtual private networks.

为了便于理解和说明,下面通过图2至图10详细阐述本申请实施例提供的业务流程监控方法、系统、装置、设备和介质。For ease of understanding and description, the business process monitoring method, system, apparatus, device, and medium provided by the embodiments of the present application are described in detail below with reference to FIG. 2 to FIG. 10 .

本申请实施例提供一种业务流程监控方法,该方法由服务器执行,如图2所示,该方法包括:An embodiment of the present application provides a business process monitoring method. The method is executed by a server. As shown in FIG. 2 , the method includes:

S201、接收业务流程引擎中预先创建的业务流程的各个任务节点上报的状态信息。S201. Receive state information reported by each task node of a pre-created business process in the business process engine.

在本申请实施例中,上述业务流程包括两个或者两个以上的任务节点。状态信息至少包括每个任务节点上报的任务开始时间或任务结束时间。In the embodiment of the present application, the above-mentioned business process includes two or more task nodes. The status information includes at least the task start time or the task end time reported by each task node.

业务流程引擎是对企业的业务进行管理的底层支撑平台。其可以包括多个模块,例如流程加载模块、流程执行模块和数据同步模块等功能模块。其中流程加载模块可以将配置数据向业务终端的缓存中加载;在缓存中存储有流程实例和流程配置。其中,流程配置包括流程定义,流程实例包括流程状态、流程数据等。用户可以通过接口调用流程来执行缓存中的流程实例,在流程实例执行之后,被持久化存储到持久层。流程监控可以对缓存中的流程实例进行监控,还可以对持久化层的流程日志进行监控。The business process engine is the underlying support platform for managing the business of the enterprise. It may include multiple modules, such as functional modules such as a process loading module, a process execution module, and a data synchronization module. The process loading module can load the configuration data into the cache of the service terminal; the process instance and the process configuration are stored in the cache. The process configuration includes process definition, and the process instance includes process status, process data, and the like. The user can call the process through the interface to execute the process instance in the cache. After the process instance is executed, it is persisted and stored in the persistence layer. Process monitoring can monitor process instances in the cache and process logs in the persistence layer.

流程定义是指按照业务逻辑定义的流程框架。Process definition refers to the process framework defined by business logic.

业务流程是指在流程定义中包含的业务组合,也可以称为业务流程实例。针对业务流程实例的运行情况的监控,可以通过SLA指标(英文全称Service Level Agreement,中文为服务水平协议)来评价,SLA是指完成一个业务流程实例的运行(即从业务流程实例开始启动到业务流程实例结束)的时间。可以预先配置期望SLA值,标识期望业务流程实例运行完成的时间。实际SLA值是指业务流程实例实际运行所使用的时间。A business process refers to a business composition contained in a process definition, which can also be referred to as a business process instance. The monitoring of the operation of the business process instance can be evaluated by the SLA indicator (full name Service Level Agreement in English, service level agreement in Chinese). Process instance ends). Expected SLA values can be pre-configured to identify when the business process instance is expected to run to completion. The actual SLA value refers to the time it takes for the business process instance to actually run.

任务节点是指业务流程所包含的任务。针对任务节点的完成情况的监控,可以通过OLA(英文全称Operation Level Agreement,中文:运营水平协议)来评价,OLA是指完成一个业务流程实例中任一个任务节点的运行(即从业务流程实例开始启动到业务流程实例结束)的时间。可以预先配置期望OLA值,标识期望业务流程实例所包含的业务节点运行完成的时间。实际OLA值是指业务流程实例所包含的业务节点的实际运行所使用的时间。The task node refers to the tasks included in the business process. The monitoring of the completion of task nodes can be evaluated through OLA (English full name Operation Level Agreement, Chinese: Operation Level Agreement). OLA refers to the completion of the operation of any task node in a business process instance (that is, starting from the business process instance). The time from the start to the end of the business process instance). The expected OLA value can be pre-configured to identify the time when the business nodes included in the expected business process instance run to completion. The actual OLA value refers to the time used by the actual operation of the business nodes included in the business process instance.

任务节点的状态信息是指任务节点的上报事件状态。状态信息可以包括任务节点的统计关键属性。统计关键属性可以通过上报事件状态对应的时间属性、标识属性等来表征。例如,状态信息可以包括流程标识(ProcessDefinitionKey)、流程实例ID(InstanceID)、任务节点标识(TaskKey)、任务节点ID(TaskID)。The status information of the task node refers to the reported event status of the task node. The state information may include statistical key attributes of task nodes. Statistical key attributes can be characterized by time attributes, identification attributes, etc. corresponding to the reported event status. For example, the state information may include a process ID (ProcessDefinitionKey), a process instance ID (InstanceID), a task node ID (TaskKey), and a task node ID (TaskID).

流程标识,用于指示业务流程的类型,属于流程定义的范畴。一个流程标识可以启动多个流程实例。多个任务集合起来就是一个流程定义对应一个流程标识Process ID, used to indicate the type of business process, belongs to the category of process definition. A process ID can start multiple process instances. The collection of multiple tasks is a process definition corresponding to a process ID

流程实例ID(即业务流程标识),用于指示一个具体的业务流程实例,属于业务流程运行过程的范畴。The process instance ID (namely, the business process identifier) is used to indicate a specific business process instance, which belongs to the category of the business process running process.

任务节点标识,用于指示某一类流程中的某一个任务节点,属于流程定义范畴。The task node identifier is used to indicate a certain task node in a certain type of process, which belongs to the category of process definition.

任务节点ID,用于指示一个具体的实际运行的业务流程中的一个任务节点的唯一标识。相同的任务标识在不同的业务流程中会对应不同的任务ID。The task node ID is used to indicate the unique identifier of a task node in a specific actually running business process. The same task ID corresponds to different task IDs in different business processes.

在本申请实施例中,为了监控业务流程的执行过程,在业务流程引擎的流程定义中配置两个或者三个全局监听器,每个全局监听器的监听范围是业务流程中部署的全部任务节点。根据监听内容不同,配置第一全局监听器用于监听每个任务节点上报的开始执行事件;第二全局监听器用于监听每个任务节点上报的结束执行事件;第三全局监听器用于监听业务流程的结束执行事件。In the embodiment of the present application, in order to monitor the execution process of the business process, two or three global listeners are configured in the process definition of the business process engine, and the monitoring scope of each global listener is all task nodes deployed in the business process. . According to the different monitoring content, configure the first global listener to monitor the start execution event reported by each task node; the second global listener to monitor the end execution event reported by each task node; the third global listener to monitor the business process End execution event.

在任一业务流程的执行过程中,第一全局监听器的业务逻辑是:监听该业务流程中每个任务节点上报的与开始执行事件对应的业务状态。During the execution of any business process, the business logic of the first global listener is to monitor the business state corresponding to the execution start event reported by each task node in the business process.

从业务状态中可以获取与该开始执行事件对应的任务开始时间,业务流程的流程标识、流程实例ID、任务节点标识和任务节点ID。任务开始时间(StartTime)是指业务流程中一个任务节点开始执行事件的开始时间,由流程引擎上报。The task start time corresponding to the execution start event, the process ID, process instance ID, task node ID and task node ID of the business process can be obtained from the business state. The task start time (StartTime) refers to the start time when a task node in the business process starts to execute an event, which is reported by the process engine.

业务状态还可以包括其他的统计配置属性,例如,单元体(ItemId)是指一个具体的流程实例中一个任务节点下运行的单元体对象,例如,不同的设备集,可以单元体可以用于标识不同的单元体对象在某一个任务的运行中所使用的时间,主要适用于流程分批处理的场景;分级级别(LevelId)是指流程实例中一个任务节点下运行的紧急程度;The business status can also include other statistical configuration attributes. For example, the unit body (ItemId) refers to the unit body object running under a task node in a specific process instance. For example, different device sets can be used to identify the unit body. The time used by different unit objects in the running of a certain task is mainly applicable to the scenario of batch processing of the process; the level (LevelId) refers to the urgency of running under a task node in the process instance;

任务用时(ExecuteHours)是指业务流程中一个任务节点实际运行所需要的时间,该时间是通过预先配置在服务器内的时间算法基于任务开始时间和任务结束时间计算得到的。The task time (ExecuteHours) refers to the time required for a task node to actually run in the business process. The time is calculated based on the task start time and the task end time through a pre-configured time algorithm in the server.

任务是否及时(IsInTime)是指示业务流程中一个任务节点运行完成是否在所允许的时限范围内的标识。Whether the task is in time (IsInTime) is an identifier indicating whether the completion of a task node in the business process is within the allowable time limit.

第二全局监听器的业务逻辑是:监听该业务流程中每个任务节点上报的与结束执行事件对应的业务状态。The business logic of the second global listener is to monitor the business state corresponding to the end execution event reported by each task node in the business process.

从业务状态中可以获取与该结束执行事件对应的任务结束时间,任务结束时间(EndTime)是指业务流程中一个任务节点结束执行时间的结束时间,由流程引擎上报。其他状态信息和第一全局监听器的描述相同。The task end time corresponding to the end execution event can be obtained from the business state. The task end time (EndTime) refers to the end time of the end execution time of a task node in the business process, which is reported by the process engine. Other state information is the same as the description of the first global listener.

本申请实施例中,每个全局监听器是配置在业务流程引擎上的逻辑,每个全局监听器都与具体的业务流程逻辑无关,也不会改变业务流程引擎本身的内在逻辑,不影响业务流程的执行和流程引擎的功能。In the embodiment of the present application, each global listener is the logic configured on the business process engine, and each global listener has nothing to do with the specific business process logic, does not change the internal logic of the business process engine itself, and does not affect the business process The execution of the process and the functionality of the process engine.

在业务终端上执行业务流程时,业务流程引擎中的第一全局监听器和第二全局监听器可以监听业务流程中每个任务节点的状态信息。在第一全局监听器监听到任务节点开始执行事件后,生成第一状态信息,通过调用服务器接口将该第一状态信息发送给服务器,该服务器接口,例如可以是Record API接口。服务器接收通过该第一全局监听器上报的任务开始时间。When the service process is executed on the service terminal, the first global listener and the second global listener in the service process engine can monitor the status information of each task node in the service process. After the first global listener monitors the task node execution start event, it generates first state information, and sends the first state information to the server by calling a server interface, which may be, for example, a Record API interface. The server receives the task start time reported through the first global listener.

在第二全局监听器监听到任务节点结束执行事件后,生成第二状态信息,通过调用服务器接口将该第二状态信息发送给服务器,服务器可以接收通过该第二全局监听器上报的任务结束时间。After the second global listener monitors the end execution event of the task node, second status information is generated, and the second status information is sent to the server by calling the server interface, and the server can receive the task end time reported by the second global listener. .

服务器可以将该第一状态信息和第二状态信息存储于第一数据库中,该第一数据库用于存储业务终端发送的业务流程的各个业务节点的状态信息,其中,该业务流程中包括两个或者两个以上任务节点。The server may store the first state information and the second state information in a first database, where the first database is used to store the state information of each service node of the service process sent by the service terminal, wherein the service process includes two Or more than two task nodes.

S202、基于每个任务节点的状态信息和与每个任务节点对应的节点配置信息,确定每个任务节点是否出现超时故障。S202. Determine whether each task node has a timeout fault based on the state information of each task node and the node configuration information corresponding to each task node.

在上述步骤中,该节点配置信息是在业务流程引擎的流程定义时预先配置的。该节点配置信息至少包括与每个任务节点对应的任务节点时限。In the above steps, the node configuration information is pre-configured during the process definition of the business process engine. The node configuration information includes at least a task node time limit corresponding to each task node.

在本申请实施例中,节点配置信息是指业务流程和业务流程所包含的各个任务节点的属性信息的集合。In this embodiment of the present application, the node configuration information refers to a business process and a set of attribute information of each task node included in the business process.

在流程定义过程中,即构建流程图时,将业务流程和业务流程所包含的配置数据写入到流程定义中。例如BPMN2.0流程定义。在服务器部署流程定义时,对流程定义进行解析,可以得到与业务流程对应的流程配置信息,和与每个业务节点对应的节点配置信息。In the process of process definition, that is, when building a flowchart, the business process and the configuration data contained in the business process are written into the process definition. For example, BPMN2.0 process definition. When the server deploys the process definition, the process definition is parsed, and the process configuration information corresponding to the business process and the node configuration information corresponding to each business node can be obtained.

流程配置信息是指对业务流程实例进行配置的基础属性参数。例如,SLA配置关键属性。SLA配置关键属性包括流程标识、SLA时限(LimitedHours)、SLA取时限算法(LimitedArithmetic)、时间计算算法(Arithmetic)、分级级别(LevelId)等。其中,SLA时限是指一个流程实例从开始运行到最终结束,所允许的最长时间(即时限要求)。SLA取时限算法是指适用于不同的时间发起的流程,所允许的SLA时限不同的情况,即可以通过某种算法来动态确定SLA时限。时间计算算法是计算业务流程实例从流程开始时间到流程结束时间所消耗的有效时间。比如自然日时间算法、工作日时间算法等。分级级别用于指示某一个具体流程实例的紧急程度的标识,同一类流程下,不同的流程实例,可以定义不同的分级级别,不同的分级级别,对应不同的SLA时限(LimitedHours)。The process configuration information refers to the basic attribute parameters for configuring the business process instance. For example, SLAs configure key attributes. The key attributes of SLA configuration include process identification, SLA time limit (LimitedHours), SLA taking time limit algorithm (LimitedArithmetic), time calculation algorithm (Arithmetic), classification level (LevelId), etc. Among them, the SLA time limit refers to the maximum time allowed for a process instance from the beginning to the final end (ie, the time limit requirement). The SLA time limit algorithm is applicable to processes initiated at different times, and the allowed SLA time limit is different, that is, an algorithm can be used to dynamically determine the SLA time limit. The time calculation algorithm is to calculate the effective time consumed by the business process instance from the process start time to the process end time. Such as natural day time algorithm, working day time algorithm, etc. The classification level is used to indicate the urgency of a specific process instance. Under the same type of process, different process instances can define different classification levels, and different classification levels correspond to different SLA time limits (Limited Hours).

节点配置信息是指对业务流程中各个任务节点进行配置的基础属性参数。例如,OLA配置关键属性。OLA配置关键属性可以包括流程标识(ProcessDefinitionKey)、任务标识(TaskKey)、OLA时限(LimitedHours)、OLA取时限算法(LimitedArithmetic)、时间计算算法(Arithmetic)、分级级别(LevelId)等。其中,OLA时限是指一个流程实例中的某一个任务节点从开始运行(任务开始时间)到最终结束(任务结束时间),所允许的最长时间(即时限要求)。OLA取时限算法是指适用于不同的时间发起的流程,所允许的OLA时限不同的情况,即可以通过某种算法来动态确定OLA时限。时间计算算法是指计算流程实例中的某一个任务节点从任务开始时间到任务结束时间所消耗的有效时间。比如自然日时间算法、工作日时间算法等。分级级别是指用于指示某一个具体业务流程实例中某一个任务节点的紧急程度,同一类流程下,不同的流程实例,可以定义不同的分级级别,不同的分级级别,对应不同的OAL时限(LimitedHours)。The node configuration information refers to the basic attribute parameters for configuring each task node in the business process. For example, OLA configures key attributes. The key attributes of the OLA configuration may include process identification (ProcessDefinitionKey), task identification (TaskKey), OLA time limit (LimitedHours), OLA time limit algorithm (LimitedArithmetic), time calculation algorithm (Arithmetic), classification level (LevelId) and so on. Among them, the OLA time limit refers to the maximum time allowed (ie time limit requirement) for a certain task node in a process instance from the start of operation (task start time) to the final end (task end time). The OLA time limit algorithm is suitable for processes initiated at different times, and the allowed OLA time limit is different, that is, the OLA time limit can be dynamically determined by a certain algorithm. The time calculation algorithm refers to calculating the effective time consumed by a task node in the process instance from the task start time to the task end time. Such as natural day time algorithm, working day time algorithm, etc. The classification level is used to indicate the urgency of a task node in a specific business process instance. Under the same type of process, different process instances can define different classification levels, and different classification levels correspond to different OAL time limits ( Limited Hours).

为了实现对业务流程执行过程的实时监控,在业务流程的设计过程中,不破坏业务流程设计BPMN2.0核心标准协议,并对该标准协议进行扩展,为业务流程中的每个任务节点预先配置多个属性信息,生成最终的业务流程图。In order to realize the real-time monitoring of the execution process of the business process, in the design process of the business process, the BPMN2.0 core standard protocol of the business process design is not destroyed, and the standard protocol is extended to pre-configure each task node in the business process Multiple attribute information to generate the final business flow chart.

当该业务流程图被部署在业务终端的业务流程引擎上时,业务流程引擎可以解析该扩展后的BPMN2.0协议,获取业务流程中每个任务节点的属性信息,生成与每个任务节点对应的节点配置信息,利用该业务终端将业务流程中与每个任务节点对应的节点配置信息发送给该服务器。When the business process flow diagram is deployed on the business process engine of the service terminal, the business process engine can parse the extended BPMN2.0 protocol, obtain the attribute information of each task node in the business process, and generate a map corresponding to each task node. The node configuration information corresponding to each task node in the business process is sent to the server by using the service terminal.

在业务流程引擎部署一个或多个业务流程时,可以获取每个业务流程中与每个任务节点对应的节点配置信息,将该一个或多个业务流程中与每个任务节点对应的节点配置信息发送给服务器,以使服务器可以将该一个或者多个业务流程的多个节点配置信息存储于配置信息数据库中。When the business process engine deploys one or more business processes, the node configuration information corresponding to each task node in each business process can be obtained, and the node configuration information corresponding to each task node in the one or more business processes can be obtained. It is sent to the server, so that the server can store the multiple node configuration information of the one or more business processes in the configuration information database.

生成与每个任务节点对应的节点配置信息的过程可以是:The process of generating node configuration information corresponding to each task node can be:

对于每个业务流程,从扩展后的BPMN2.0协议中读取业务流程的流程标识、流程实例ID、业务流程中每个任务节点的任务节点标识、该任务节点的任务节点ID和任务节点属性信息。For each business process, read the process ID, process instance ID, task node ID of each task node in the business process, task node ID and task node attributes of the task node from the extended BPMN2.0 protocol information.

可选地,该任务节点属性信息可以包括:表示某一任务节点紧急程度的任务节点等级,与该任务节点等级对应的第一时限,该第一时限为任务节点等级下任务节点被允许的最长执行时间,确定该第一时限的第一取时限算法和确定执行该任务节点的实际耗时的第一时间算法。其中,该第一时间算法可以为自然日时间算法或工作日时间算法等。该第一取时限算法可以是时间配置字段或者确定第一时限的算法逻辑,该时间配置字段可以为2h或者3h,表示该第一时限为2小时或者3小时。该确定第一时限的算法逻辑可以基于实际需要确定,本申请实施例对此不做限定。例如,该确定第一时限的算法逻辑可以是:对于某一任务节点,以每日下午15时为时间界限,当服务器在某一日早晨9点钟,接收到关于该任务节点的开始执行事件的第一状态信息,则确定该任务节点在此次执行过程中的第一时限为当日21点;当服务器在某一日晚上20点钟,接收到关于该任务节点的开始执行事件的第一状态信息,则确定该任务节点在此次执行过程中的第一时限为次日8点。Optionally, the task node attribute information may include: a task node level representing the urgency of a certain task node, and a first time limit corresponding to the task node level, where the first time limit is the maximum allowed task node under the task node level. Long execution time, the first time limit algorithm for determining the first time limit and the first time algorithm for determining the actual time consuming of executing the task node. Wherein, the first time algorithm may be a natural day time algorithm or a working day time algorithm or the like. The first time limit algorithm may be a time configuration field or algorithm logic for determining the first time limit, and the time configuration field may be 2h or 3h, indicating that the first time limit is 2 hours or 3 hours. The algorithm logic for determining the first time limit may be determined based on actual needs, which is not limited in this embodiment of the present application. For example, the algorithm logic for determining the first time limit may be: for a certain task node, taking 15:00 pm every day as the time limit, when the server receives a start execution event for the task node at 9:00 am on a certain day The first state information of the task node is determined to be the first time limit of the task node in the execution process of the current day at 21:00; status information, it is determined that the first time limit of the task node in this execution process is 8:00 the next day.

在本步骤中,基于状态信息和与任务节点对应的配置信息,确定任务节点是否出现超时故障的过程可以是:In this step, based on the status information and the configuration information corresponding to the task node, the process of determining whether the task node has a timeout fault may be:

服务器通过比对接收到的第一状态信息和第二状态信息中的第一标识,当两个第一标识一致时,确定该第一状态信息和第二状态信息为与第一标识对应的业务流程中任务节点的状态信息,该第一标识至少包括业务流程的流程标识、流程实例ID、任务节点标识和任务节点ID。服务器利用该第一标识在配置信息数据库查找与第一标识对应的任务节点的配置信息,读取该配置信息中的第一时间算法,利用该第一时间算法确定任务节点的开始时间与结束时间的第一时间差值,当该第一时间差值大于配置信息中的第一时限时,确定任务节点出现超时故障,并记录该与第一标识对应的任务节点的故障诊断结果,该结果可以被保存于第二数据库中,该第二数据库用于存储业务流程故障诊断结果的统计数据。The server compares the received first state information and the first identifier in the second state information, and when the two first identifiers are consistent, determines that the first state information and the second state information are services corresponding to the first identifier Status information of the task node in the process, the first identification at least includes the process identification, process instance ID, task node identification and task node ID of the business process. The server uses the first identifier to search the configuration information database for the configuration information of the task node corresponding to the first identifier, reads the first time algorithm in the configuration information, and uses the first time algorithm to determine the start time and end time of the task node When the first time difference is greater than the first time limit in the configuration information, it is determined that the task node has a timeout fault, and the fault diagnosis result of the task node corresponding to the first identification is recorded, and the result can be is stored in the second database, where the second database is used to store the statistical data of the fault diagnosis results of the business process.

其中,该第一时间差值为该任务节点的实际执行时长,该超时故障表示与第一标识对应的任务节点的实际执行时长超过任务节点被允许的最长执行时间,证明该任务节点在执行过程中发生故障。该故障诊断结果通常包括业务流程的流程标识、流程实例ID、任务节点标识和任务节点ID、开始时间、结束时间、流程等级、任务节点等级、第一时间差值、任务节点是否超时标识和/或执行任务节点的业务终端ID。The first time difference is the actual execution time of the task node, and the timeout fault indicates that the actual execution time of the task node corresponding to the first identifier exceeds the longest allowed execution time of the task node, which proves that the task node is executing A failure occurred in the process. The fault diagnosis result usually includes the process ID of the business process, the ID of the process instance, the ID of the task node and the ID of the task node, the start time, the end time, the level of the process, the level of the task node, the first time difference, whether the task node has timed out, and/or Or the service terminal ID of the node that executes the task.

本申请实施例提供的业务流程监控方法,可以接收业务流程中的所有任务节点上报的状态信息,并基于每个任务节点上报的状态信息和与其对应的节点配置信息,确定任务节点是否出现超时故障,从而精确地确定出现故障任务节点,实现对业务流程过程中的每个任务节点进行实时监控,提高业务流程的故障监控的精准度,确保精准高效的修复故障。The business process monitoring method provided by the embodiment of the present application can receive the status information reported by all task nodes in the business process, and determine whether the task node has a timeout fault based on the status information reported by each task node and its corresponding node configuration information , so as to accurately determine the faulty task node, realize real-time monitoring of each task node in the business process, improve the accuracy of fault monitoring in the business process, and ensure accurate and efficient fault repair.

在上述实施例基础上,本申请实施例还提供一种业务流程监控方法,该方法由服务器执行,如图3所示,该方法包括:On the basis of the above embodiments, the embodiments of the present application further provide a business process monitoring method. The method is executed by a server. As shown in FIG. 3 , the method includes:

S301、读取并存储节点配置信息和流程配置信息。S301. Read and store node configuration information and process configuration information.

该节点配置信息和流程配置信息是在基于业务流程引擎创建流程定义时配置的基础配置数据;且在部署流程定义时,对流程定义进行解析得到的。The node configuration information and the process configuration information are basic configuration data configured when the process definition is created based on the business process engine; and are obtained by parsing the process definition when the process definition is deployed.

在上述步骤中,流程配置信息至少包括与所述业务流程对应的流程节点时限。流程配置信息还可以包括:流程标识、SLA时限、SLA取时限算法、时间计算算法,以及分级级别等。例如,In the above steps, the process configuration information includes at least the process node time limit corresponding to the business process. The process configuration information may also include: process identification, SLA time limit, SLA taking time limit algorithm, time calculation algorithm, and classification level. E.g,

SLA时限是指一个流程实例从开始运行到最终结束,所允许的最长时间(即时限要求)。The SLA time limit refers to the maximum time allowed for a process instance from the beginning to the final end (ie, the time limit requirement).

SLA取时限算法是指适用于不同的时间发起的流程,所允许的SLA时限不同的情况,即可以通过某种算法来动态确定SLA时限。The SLA time limit algorithm is applicable to processes initiated at different times, and the allowed SLA time limit is different, that is, an algorithm can be used to dynamically determine the SLA time limit.

时间计算方法是指计算流程实例从流程开始时间到流程结束时间所消耗的有效时间。比如自然日时间算法、工作日时间算法等。The time calculation method refers to calculating the effective time consumed by the process instance from the process start time to the process end time. Such as natural day time algorithm, working day time algorithm, etc.

分级级别是指用于指示某一个具体流程实例的紧急程度,同一类流程下,不同的流程实例,可以定义不同的分级级别,不同的分级级别,对应不同的SLA时限(LimitedHours)。The classification level is used to indicate the urgency of a specific process instance. Under the same type of process, different process instances can define different classification levels, and different classification levels correspond to different SLA time limits (Limited Hours).

在本步骤中,业务终端可以响应业务流程引擎的部署操作,解析业务系统中的至少一个业务流程的协议,获取每个业务流程中与每个任务节点对应的配置信息,将其发送至服务器,服务器可以接收至少一个业务流程中与每个任务节点对应的配置信息,将其存储于配置信息数据库中。In this step, the business terminal can respond to the deployment operation of the business process engine, parse the protocol of at least one business process in the business system, obtain the configuration information corresponding to each task node in each business process, and send it to the server, The server may receive configuration information corresponding to each task node in at least one business process, and store the configuration information in the configuration information database.

S302、接收业务流程引擎中预先创建的业务流程的各个任务节点上报的状态信息。S302. Receive state information reported by each task node of a pre-created business process in the business process engine.

上述步骤中,业务流程中包括至少两个任务节点,状态信息至少包括每个任务节点上报的任务开始时间和任务结束时间。In the above steps, the business process includes at least two task nodes, and the status information includes at least the task start time and the task end time reported by each task node.

S303、基于每个任务节点的状态信息和与每个任务节点对应的节点配置信息,确定每个任务节点是否出现超时故障。S303 , based on the state information of each task node and the node configuration information corresponding to each task node, determine whether each task node has a timeout fault.

上述步骤中,节点配置信息是在业务流程引擎的流程定义时预先配置的。节点配置信息至少包括与每个任务节点对应的任务节点时限。In the above steps, the node configuration information is pre-configured during the process definition of the business process engine. The node configuration information includes at least a task node time limit corresponding to each task node.

需要说明的是,在本申请实施例中,步骤S302至S303的过程可以参考上述实施例中的步骤S201至S202,本申请实施例对此不做赘述。It should be noted that, in this embodiment of the present application, for the processes of steps S302 to S303, reference may be made to steps S201 to S202 in the foregoing embodiment, which will not be repeated in this embodiment of the present application.

S304、接收业务流程的第一个任务节点通过业务流程引擎的第一监听器上报的业务流程对应的流程开始时间;S304, the process start time corresponding to the business process reported by the first task node of the business process through the first listener of the business process engine;

S305,接收业务流程的最后一个任务节点通过业务流程引擎的第三监听器上报的业务流程对应的流程结束时间。S305: Receive the process end time corresponding to the business process reported by the last task node of the business process through the third listener of the business process engine.

在上述步骤中,获取业务流程的流程开始时间的过程可以是:In the above steps, the process of obtaining the process start time of the business process may be:

服务器接收到业务终端发送的当前正在执行的业务流程中任一任务节点的状态信息后,读取状态信息中的业务节点标识和流程实例ID,确定该流程实例ID下没有存在其他上报状态信息的业务节点标识,则认为上报状态信息的业务节点是整个业务流程的开始,记录SLA开始时间。否则,认为上报状态信息的业务节点不是整个业务流程的开始,只记录任务OLA开始时间。After receiving the status information of any task node in the currently executing business process sent by the service terminal, the server reads the service node identifier and process instance ID in the state information, and determines that there is no other reporting state information under the process instance ID. If the service node identifier is used, the service node that reports the status information is considered to be the start of the entire service process, and the SLA start time is recorded. Otherwise, it is considered that the business node reporting the status information is not the start of the entire business process, and only the start time of the task OLA is recorded.

可以判断该任务节点是否为该业务流程中的第一个任务节点。例如可以通过:接收业务流程中任意一个任务节点的上报的状态信息;It can be determined whether the task node is the first task node in the business process. For example, by: receiving the status information reported by any task node in the business process;

获取状态信息中的业务流程标识和当前任务节点标识;Obtain the business process ID and the current task node ID in the status information;

在确定业务流程标识下不存在其他的任务节点标识时,指示当前任务节点标识对应的任务节点为业务流程的第一任务节点;When it is determined that there is no other task node identification under the business process identification, indicating that the task node corresponding to the current task node identification is the first task node of the business process;

记录第一任务节点上报的任务开始时间为业务流程对应的流程开始时间。The task start time reported by the first task node is recorded as the process start time corresponding to the business process.

该方法还可以包括:The method may also include:

存储该业务流程的业务节点标识、流程实例ID和业务流程的开始时间之间的映射关系。The mapping relationship between the business node identifier of the business process, the process instance ID and the start time of the business process is stored.

其中,该判断该任务节点是否为该业务流程中的第一个任务节点过程可以是:Wherein, the process of judging whether the task node is the first task node in the business process may be:

利用任务节点标识和业务流程标识在第一数据库中查找是否已经存在与该业务流程标识和任务节点标识对应的状态信息,若不存在,则确定该任务节点为该业务流程中的第一个任务节点,且该状态信息为第一状态信息;若存在,利用该业务流程的业务流程标识、业务节点标识查找映射关系获取业务流程的开始时间。Use the task node identifier and the business process identifier to find out whether there is state information corresponding to the business process identifier and the task node identifier in the first database, and if not, determine that the task node is the first task in the business process node, and the state information is the first state information; if it exists, use the business process identifier of the business process and the business node identifier to search for the mapping relationship to obtain the start time of the business process.

服务器获取业务流程的结束时间的过程可以包括:The process by which the server obtains the end time of the business process may include:

在本申请实施例中,业务流程引擎中配置第三全局监听器,该第三全局监听器的监听范围是业务系统中部署的全部可执行业务流程。在任一业务流程的执行过程中,第三全局监听器的业务逻辑是:In the embodiment of the present application, a third global listener is configured in the business process engine, and the monitoring scope of the third global listener is all executable business processes deployed in the business system. During the execution of any business process, the business logic of the third global listener is:

监听并获取该业务流程的结束执行事件和业务流程的结束时间,同时获取业务流程标识和业务节点标识,业务流程的结束执行事件标识和业务流程的结束时间,作为第三状态信息;Monitor and obtain the end execution event of the business process and the end time of the business process, and simultaneously obtain the business process identifier and the business node identifier, the end execution event identifier of the business process and the end time of the business process, as the third state information;

通过调用服务器接口将该第三状态信息发送给服务器。The third state information is sent to the server by calling the server interface.

当业务终端上有业务流程正在执行时,业务流程引擎中的第三全局监听器可以监听业务流程中各个任务节点上报的状态信息。在第三全局监听器监听到业务流程结束执行事件后,根据上报的状态信息中解析得到的状态信息内容生成第三状态信息,通过调用服务器接口将该第三状态信息发送给服务器,服务器可以通过该第三监听器接收业务节点上报的业务流程的结束时间。When a business process is being executed on the business terminal, the third global listener in the business process engine can monitor the status information reported by each task node in the business process. After the third global listener monitors the end execution event of the business process, it generates third state information according to the content of the state information parsed from the reported state information, and sends the third state information to the server by calling the server interface. The third listener receives the end time of the business process reported by the business node.

可选地,还可以在业务流程的执行过程中,服务器可以按照预设时间间隔向业务终端发送查询请求,业务终端可以响应该查询请求,判断业务终端中当前正在执行的业务流程是否实行完毕,若是,可以向服务器发送业务流程的第三状态信息。Optionally, during the execution of the service process, the server may send a query request to the service terminal at preset time intervals, and the service terminal may respond to the query request and determine whether the currently executing service process in the service terminal is completed. If so, the third state information of the business process can be sent to the server.

S306、基于业务流程的结束时间、业务流程的开始时间及与业务流程对应的流程配置信息,确定业务流程是否出现超时故障。S306 , based on the end time of the business process, the start time of the business process, and the process configuration information corresponding to the business process, determine whether a timeout failure occurs in the business process.

在本申请实施例中,在业务流程的设计过程中可以为业务流程预先配置流程属性信息,并在业务流程图的部署过程中,解析该扩展后的BPMN2.0协议中的业务流程的流程属性信息,生成与业务流程对应的流程配置信息。In this embodiment of the present application, the process attribute information can be pre-configured for the business process during the design process of the business process, and the process attribute of the business process in the expanded BPMN2.0 protocol can be parsed during the deployment process of the business process flow. information to generate process configuration information corresponding to the business process.

在业务流程引擎中部署一个或者多个业务流程时,获取与每个业务流程对应的流程配置信息和节点配置信息,将与每个业务流程中对应的流程配置信息和节点配置信息发送给服务器,以使服务器可以将一个或多个业务流程的流程配置信息和节点配置信息存储在配置信息数据库中。When deploying one or more business processes in the business process engine, obtain the process configuration information and node configuration information corresponding to each business process, and send the process configuration information and node configuration information corresponding to each business process to the server, So that the server can store the process configuration information and node configuration information of one or more business processes in the configuration information database.

生成与业务流程对应的流程配置信息的过程可以是:The process of generating process configuration information corresponding to the business process may be:

对于每个业务流程,从扩展后的BPMN2.0协议中读取该业务流程的流程标识、流程实例ID和业务流程属性信息,组成与业务流程对应的流程配置信息。For each business process, the process identification, process instance ID and business process attribute information of the business process are read from the extended BPMN2.0 protocol to form process configuration information corresponding to the business process.

可选地,该业务流程属性信息可以包括:表示某一业务流程的紧急程度的流程等级,与该流程等级对应的第二时限,该第二时限为流程等级下业务流程被允许的最长执行时间,确定该第二时限的第二取时限算法和确定执行该业务流程的时实际耗时的第二时间算法。其中,该第二时间算法可以为自然日时间算法或工作日时间算法等;该第二取时限算法可以是时间配置字段或者确定第二时限的算法逻辑,该算法逻辑可以基于实际需要确定,本申请实施例对刺不做限定,例如,该确定第二时限的算法逻辑可以是:对于某一业务流程,以每日下午11时为时间界限,当服务器在某一日早晨8点钟,接收到关于该业务流程第一个任务节点的第一状态信息,则确定该业务流程在此次执行过程中的第二时限为当日20点;当服务器在某一日晚上21点钟,接收到关于该业务流程第一个任务节点的第一状态信息,则确定该业务流程在此次执行过程中的第二时限为次日9点。Optionally, the business process attribute information may include: a process level indicating the urgency of a certain business process, and a second time limit corresponding to the process level, where the second time limit is the longest allowed execution of the business process under the process level. time, a second time limit algorithm for determining the second time limit and a second time algorithm for determining the actual time consuming when executing the business process. Wherein, the second time algorithm may be a natural day time algorithm or a working day time algorithm, etc.; the second time limit algorithm may be a time configuration field or an algorithm logic for determining the second time limit, and the algorithm logic may be determined based on actual needs. The application embodiment does not limit the thorn. For example, the algorithm logic for determining the second time limit may be: for a certain business process, taking 11:00 pm every day as the time limit, when the server receives the data at 8:00 o'clock in the morning on a certain day. When the first state information about the first task node of the business process is reached, it is determined that the second time limit of the business process in this execution process is 20:00 on the current day; when the server receives information about the The first state information of the first task node of the business process determines that the second time limit of the business process in this execution process is 9:00 the next day.

在本步骤中,基于业务流程的流程结束时间、业务流程的流程开始时间及与业务流程对应的配置信息,确定业务流程是否出现超时故障的过程可以是:In this step, based on the process end time of the business process, the process start time of the business process, and the configuration information corresponding to the business process, the process of determining whether a timeout failure occurs in the business process may be:

服务器可以从接收到的第三状态信息中读取流程标识和流程实例ID作为第二标识,利用该第二标识在配置信息数据库查找与第二标识对应的与业务流程的配置信息,读取该配置信息中的第二时间算法,利用该第二时间算法确定业务流程的开始时间与结束时间的第二时间差值,当该第二时间差值大于配置信息中的第二时限时,确定业务流程出现超时故障,并记录业务流程的故障诊断结果,该结果可以被保存与第二数据库中。其中,该第二时间差值为该业务流程的实际时长,该故障诊断结果通常包括业务流程的流程标识、流程实例ID、第二开始时间、结束时间、流程等级、第二时间差值、业务流程是否超时标识和/或执行业务流程的业务终端ID。The server can read the process identifier and the process instance ID from the received third state information as the second identifier, use the second identifier to search the configuration information database for the configuration information corresponding to the business process corresponding to the second identifier, and read the The second time algorithm in the configuration information, using the second time algorithm to determine the second time difference between the start time and the end time of the business process, when the second time difference is greater than the second time limit in the configuration information, determine the service When a timeout fault occurs in the process, the fault diagnosis result of the business process is recorded, and the result can be saved in the second database. Wherein, the second time difference is the actual duration of the business process, and the fault diagnosis result usually includes the process identifier of the business process, the process instance ID, the second start time, the end time, the process level, the second time difference, the business process Indicates whether the process has timed out and/or the ID of the business terminal that executes the business process.

可选地,服务器确定业务流程中的某一任务节点,或者业务流程出现超时故障后,可以向业务终端发送提醒信息,以使业务终端在接收到该提醒信息后,及时办理任务节点或者业务流程的任务,及时发现并提示业务流程处理过程中的超时故障。Optionally, the server determines a certain task node in the business process, or after a timeout failure occurs in the business process, it can send reminder information to the business terminal, so that the business terminal can handle the task node or business process in time after receiving the reminder information. tasks, timely discover and prompt timeout faults during business process processing.

在本申请实施例中,在业务流程的设计过程中,业务流程中两个或者两个以上任务节点的执行顺序是预先配置的。例如任务节点1完成之后,执行任务节点2,然后依次执行其他的任务节点,整个任务节点完成之后,即完成一个业务流程。In this embodiment of the present application, during the design process of the business process, the execution order of two or more task nodes in the business process is pre-configured. For example, after task node 1 is completed, task node 2 is executed, and then other task nodes are executed in turn. After the entire task node is completed, a business process is completed.

本申请提供的上述实施例可以对业务流程中的每个任务节点进行实时监控,并基于与每个任务节点对应的第一状态信息和第二状态信息,判断该任务节点是否出现故障,相对于相关技术中,只能对整个业务流程进行监控,本申请实施例中通过的上述方法可以有效地对每个业务流程中的每个任务节点的执行情况进行监控,有效地提高了业务流程引擎上运行的业务流程的监控效率。The above embodiments provided in this application can monitor each task node in the business process in real time, and determine whether the task node is faulty based on the first state information and the second state information corresponding to each task node. In the related art, only the entire business process can be monitored, and the above method adopted in the embodiment of the present application can effectively monitor the execution of each task node in each business process, effectively improving the performance of the business process engine. Monitoring efficiency of running business processes.

本申请提供的上述实施例,还可以通过对第一全局监听器进行复用来节省处理资源,当第一全局监听器监听的是业务流程的第一个任务节点上报的状态信息时,可以基于状态信息识别业务流程的流程开始时间,相对于相关技术中成对配置监听器,本申请提供的实施例可以有效地提高监听器的复用效率。In the above-mentioned embodiment provided in this application, processing resources can also be saved by multiplexing the first global listener. When the first global listener monitors the status information reported by the first task node of the business process, it can be based on The state information identifies the process start time of the business process. Compared with the paired configuration of the listeners in the related art, the embodiments provided by the present application can effectively improve the multiplexing efficiency of the listeners.

另外,本申请提供上述实施例还可以对故障任务节点进行提醒,进一步地提升了业务流程的维护效率。In addition, the above embodiments provided by the present application can also remind the faulty task node, which further improves the maintenance efficiency of the business process.

如图4所示,图4示出了本申请实施例中提供的业务流程的部署和监控过程的示意图,包括业务流程部署阶段和业务流程执行阶段,在业务流程部署阶段,可以通过业务流程图的定义协议请求调用业务终端中流程引擎提供的业务流程部署接口,将该业务流程图部署于该业务终端的业务系统中,并解析该业务流程图中与业务节点对应的节点配置信息和与业务流程对应的流程配置信息,将该节点配置信息和流程配置信息发送给服务器进行存储。As shown in FIG. 4, FIG. 4 shows a schematic diagram of the deployment and monitoring process of the business process provided in the embodiment of the present application, including a business process deployment stage and a business process execution stage. The definition protocol requests to call the business process deployment interface provided by the process engine in the business terminal, deploy the business flow chart in the business system of the business terminal, and parse the node configuration information corresponding to the business node in the business flow chart and the business process Process configuration information corresponding to the process, and send the node configuration information and process configuration information to the server for storage.

在业务流程执行阶段,配置在业务流程引擎中的第一全局监听器可以监听每个任务节点的开始执行事件,生成第一状态信息,通过调用服务器接口将该第一状态信息发送给服务器。In the business process execution stage, the first global listener configured in the business process engine can monitor the start execution event of each task node, generate first state information, and send the first state information to the server by calling the server interface.

第二全局监听器可以监听每个任务节点的结束执行事件,生成第二状态信息,通过调用服务器接口将该第二状态信息发送给服务器。The second global listener can monitor the end execution event of each task node, generate second state information, and send the second state information to the server by invoking the server interface.

服务器的逻辑计算层基于接收到的第一状态信息和第二状态信息判断发送第一状态信息和第二状态信息的任务节点是否出现执行超时故障,如果存在,则将故障诊断结果存储于数据库中。图4中示出的是对任务节点2的状态信息上报、超时故障诊断以及诊断结果记录过程。The logical computing layer of the server determines whether the task node sending the first state information and the second state information has an execution timeout fault based on the received first state information and the second state information, and if so, stores the fault diagnosis result in the database . FIG. 4 shows the process of reporting status information, diagnosing overtime faults, and recording the diagnosis results for the task node 2 .

进一步地,配置在业务流程引擎中的第三全局监听器,可以监听业务流程的结束执行事件,生成第三状态信息,通过调用服务器接口将该第三状态信息发送给服务器,利用在任务节点故障诊断过程中确定的业务流程的开始执行事件。Further, the third global listener configured in the business process engine can monitor the end execution event of the business process, generate third state information, send the third state information to the server by calling the server interface, and use the fault in the task node. The start execution event of the business process identified during the diagnostic process.

服务器的逻辑计算层通过业务节点上报的状态信息确定业务流程的流程开始时间,然后基于流程开始时间和第三状态信息判断该业务流程是否出现执行超时故障,并将故障诊断结果存储于数据库中。The logical computing layer of the server determines the process start time of the business process based on the state information reported by the business node, then judges whether the business process has an execution timeout fault based on the process start time and the third state information, and stores the fault diagnosis result in the database.

下面以企业管理系统应用在订单处理流程环境为例。针对不同的产品,订单处理流程可能不同。如图5所示,假设针对产品A的订单处理流程包括接收订单、用户账户检查、执行订单和提供发票四个任务节点。The following is an example of the application of the enterprise management system in the order processing process environment. The order processing process may be different for different products. As shown in Figure 5, it is assumed that the order processing flow for product A includes four task nodes: receiving orders, checking user accounts, executing orders, and providing invoices.

在业务流程设计阶段,针对产品A的订单处理流程的设计,可以利用BPMN2.0协议标准定义订单处理流程的流程标识B,定义接收订单任务节点的任务节点标识为c,定义用户账户检查任务节点的任务节点标识为d,定义执行订单任务节点的任务节点标识为e,定义提供发票任务节点的任务节点标识为f。In the business process design stage, for the design of the order processing process of product A, you can use the BPMN2.0 protocol standard to define the process ID B of the order processing process, define the task node ID of the receiving order task node as c, and define the user account check task node. The identifier of the task node is d, the identifier of the task node that defines the task node of executing orders is e, and the identifier of the task node that defines the task node of providing invoices is f.

定义产品A的订单处理流程的流程实例ID为B1,定义产品A的订单处理流程中接收订单任务节点的任务节点标识ID为c1,定义产品A的订单处理流程中的用户账户检查任务节点的任务节点标识ID为d1,定义产品A的订单处理流程中的执行原料订单任务的下单任务节点的任务节点标识ID为e1,定义产品A的订单处理流程中的提供原料订单任务的发票任务节点的任务节点标识ID为f1。Define the process instance ID of the order processing process of product A as B1, define the task node ID of the order receiving task node in the order processing process of product A as c1, define the task of the user account check task node in the order processing process of product A The node ID is d1, and the task node ID of the ordering task node that defines the raw material order task in the order processing flow of product A is e1, which defines the invoice task node that provides the raw material order task in the order processing flow of product A. The task node identification ID is f1.

进一步地,该将产品A的订单处理流程的属性信息设置在该BPMN2.0协议标准中,该产品A的订单处理流程的属性信息可以包括:流程实例B1的流程等级为L1,第二时限为4分钟,第二时间算法为自然时间算法;并将产品A的订单处理流程中每个任务节点的任务节点属性信息设置在该BPMN2.0协议标准中,其中,任务节点标识c1的任务节点等级为l3,第一时限为30秒,第一时间算法为自然时间算法;节点标识d1的任务节点等级为l2,第一时限为50秒,第一时间算法为自然时间算法;任务节点标识e1的任务节点等级为l1,第一时限为80秒,第一时间算法为自然时间算法;任务节点标识f1的任务节点等级为l6,第一时限为20秒,第一时间算法为自然时间算法。其中,任务节点等级或者业务流程的紧急程度随着数值的增大而减小。类似的,可以利用相同的方式设计其他产品的订单处理流程。同时,在支持该BPMN2.0协议标准的业务流程引擎中预先配置第一全局监听器、第二全局监听器和第三全局监听器。Further, the attribute information of the order processing process of product A is set in the BPMN2.0 protocol standard, and the attribute information of the order processing process of product A may include: the process level of process instance B1 is L1, and the second time limit is 4 minutes, the second time algorithm is the natural time algorithm; the task node attribute information of each task node in the order processing flow of product A is set in the BPMN2.0 protocol standard, wherein the task node identifies the task node level of c1 is l3, the first time limit is 30 seconds, and the first time algorithm is the natural time algorithm; the task node level of the node identification d1 is l2, the first time limit is 50 seconds, and the first time algorithm is the natural time algorithm; the task node identification e1 The task node level is l1, the first time limit is 80 seconds, and the first time algorithm is the natural time algorithm; the task node level of the task node identification f1 is l6, the first time limit is 20 seconds, and the first time algorithm is the natural time algorithm. Among them, the level of the task node or the urgency of the business process decreases as the value increases. Similarly, order processing for other products can be designed in the same way. At the same time, the first global listener, the second global listener and the third global listener are preconfigured in the business process engine supporting the BPMN2.0 protocol standard.

在业务流程的部署阶段,用于执行企业管理系统的业务流程引擎可以解析该扩展后的BPMN2.0协议中的多个产品的订单处理流程的属性信息,生成与每个产品的订单处理流程对应的属性信息,生成每个产品的订单处理流程中与每个任务节点对应的属性信息,业务终端将属性信息发送给服务器,服务器可以接收这些配置信息,将其存储在配置信息数据库。其中,与产品A的订单处理流程对应的流程配置信息包括:流程标识B,流程实例B1,流程等级L1,第二时限4分钟,第二时间算法自然时间算法。In the deployment stage of the business process, the business process engine used to execute the enterprise management system can parse the attribute information of the order processing processes of multiple products in the extended BPMN2.0 protocol, and generate order processing processes corresponding to each product. The attribute information corresponding to each task node in the order processing process of each product is generated, and the service terminal sends the attribute information to the server, and the server can receive the configuration information and store it in the configuration information database. The process configuration information corresponding to the order processing process of product A includes: process identifier B, process instance B1, process level L1, second time limit of 4 minutes, and second time algorithm natural time algorithm.

与产品A的订单处理流程中的接收订单任务节点对应的节点配置信息包括:流程标识B、流程实例B1和流程等级L1、节点标识c,任务节点ID c1,任务节点等级l3,第一时限30秒,第一时间算法自然时间算法。The node configuration information corresponding to the order receiving task node in the order processing flow of product A includes: process ID B, process instance B1 and process level L1, node ID c, task node ID c1, task node level l3, first time limit 30 Seconds, the first time algorithm natural time algorithm.

与产品A的订单处理流程中用户账户检查任务节点对应的节点配置信息包括:流程标识B、流程实例B1和流程等级L1、任务节点ID d1,任务节点等级l2,第一时限50秒,第一时间算法自然时间算法.The node configuration information corresponding to the user account check task node in the order processing process of product A includes: process identifier B, process instance B1 and process level L1, task node ID d1, task node level l2, first time limit 50 seconds, first Time Algorithm Natural Time Algorithm.

与产品A的订单处理流程中执行订单任务节点对应的节点配置信息包括:流程标识B、流程实例B1和流程等级L1、任务节点ID e1,任务节点等级为l1,第一时限80秒,第一时间算法自然时间算法。The node configuration information corresponding to the order execution task node in the order processing flow of product A includes: process ID B, process instance B1 and process level L1, task node ID e1, task node level is l1, first time limit is 80 seconds, first Time Algorithm Natural Time Algorithm.

与产品A的订单处理流程中提供发票任务节点对应的节点配置信息包括:流程标识B、流程实例B1和流程等级L1、任务节点ID f1,任务节点等级为l6,第一时限为20秒,第一时间算法自然时间算法。The node configuration information corresponding to the invoice task node provided in the order processing process of product A includes: process ID B, process instance B1 and process level L1, task node ID f1, task node level is l6, the first time limit is 20 seconds, and the first time limit is 20 seconds. One Time Algorithm Natural Time Algorithm.

在业务流程的执行阶段,假设业务终端g1接收到针对产品A的购买请求,开始执行订单处理流程,第一全局监听器监听到接收订单任务节点的开始执行事件,获取流程标识B、流程实例B1、任务节点标识c和任务节点c1、开始执行事件标识h1和开始时间2020年7月20日16时20分10秒,将这些信息确定为第一状态信息r1发送给服务器;服务器接收到第一状态信息r1后,读取该第一状态信息r1中的流程标识B和流程实例B1,根据流程标识B和流程实例B1在第一数据库中查找比对确定第一数据库中不存在与流程标识B和流程实例B1对应的状态信息,则确定任务节点c1为该流程实例B1中的第一个任务节点的第一状态信息,存储流程标识B、流程实例B1和业务流程(流程实例B1)的开始时间为2020年7月20日16时20分10秒之间的映射关系。In the execution stage of the business process, it is assumed that the business terminal g1 receives the purchase request for product A and starts to execute the order processing process. The first global listener listens to the start execution event of the task node receiving the order, and obtains the process identifier B and process instance B1. , task node identification c and task node c1, start execution event identification h1 and start time at 16:20:10 on July 20, 2020, determine these information as the first state information r1 and send it to the server; the server receives the first After the state information r1, read the process identifier B and the process instance B1 in the first state information r1, search and compare in the first database according to the process identifier B and the process instance B1, and determine that the first database does not exist with the process identifier B. The state information corresponding to the process instance B1, then determine that the task node c1 is the first state information of the first task node in the process instance B1, and store the process identifier B, the process instance B1 and the start of the business process (process instance B1). The time is the mapping relationship between 16:20:10 on July 20, 2020.

第二全局监听器监听到接收订单任务节点的结束执行事件,获取流程标识B、流程实例B1、任务节点标识c和任务节点c1、结束执行事件标识h2和结束时间2020年7月20日16时20分15秒,将这些信息确定为第二状态信息r2发送给服务器。The second global listener listens to the end execution event of the receiving order task node, and obtains the process ID B, process instance B1, task node ID c and task node c1, end execution event ID h2 and end time at 16:00 on July 20, 2020 At 20 minutes and 15 seconds, the information is determined as the second state information r2 and sent to the server.

进一步地,服务器读取第一状态信息r1中的流程标识B、流程实例B1、任务节点标识c和任务节点c1作为第一标识j1,读取第二状态信息r2中的流程标识B、流程实例B1、任务节点标识c和任务节点c1作为第一标识j2,由于第一标识j1和第一标识j2相等,可以确定第一状态信息r1和第二状态信息r2为:与第一标识对应的产品A的订单处理流程中接收订单任务节点的状态信息;并从状态信息中读取开始时间2020年7月20日16时20分10秒和结束时间2020年7月20日16时20分15秒,并利用第一标识在配置信息数据库中存储的配置信息中查找与第一标识对应的任务节点的配置信息为:任务节点等级l3,第一时限30秒,第一时间算法自然时间算法,则利用自然时间算法确定2020年7月20日16时20分15秒和2020年7月20日16时20分10秒之间的第一时间差值为5秒,第一时间差值5秒小于第一时限30秒,确定接收订单任务节点的执行过程未超时,将流程标识B、流程实例B1、任务节点标识c和任务节点c1、流程等级L1、任务节点等级l3、开始时间2020年7月20日16时20分10秒、结束时间2020年7月20日16时20分15秒、第一时间差值5秒、执行任务节点是未超时标识o1和/或业务终端g1,确定为故障诊断结果并存储于第二数据库中。Further, the server reads the process identifier B, the process instance B1, the task node identifier c and the task node c1 in the first state information r1 as the first identifier j1, and reads the process identifier B, the process instance in the second state information r2. B1. The task node identification c and the task node c1 are used as the first identification j2. Since the first identification j1 and the first identification j2 are equal, it can be determined that the first state information r1 and the second state information r2 are: products corresponding to the first identification In the order processing process of A, the status information of the order task node is received; and the start time at 16:20:10 on July 20, 2020 and the end time at 16:20:15 on July 20, 2020 are read from the status information , and use the first identification to find the configuration information of the task node corresponding to the first identification in the configuration information stored in the configuration information database as follows: task node level 13, first time limit 30 seconds, first time algorithm natural time algorithm, then Using the natural time algorithm to determine the first time difference between 16:20:15 on July 20, 2020 and 16:20:10 on July 20, 2020, the first time difference is 5 seconds, and the first time difference is less than 5 seconds The first time limit is 30 seconds. It is determined that the execution process of the task node receiving the order has not timed out, and the process ID B, process instance B1, task node ID c and task node c1, process level L1, task node level l3, start time July 2020 At 16:20:10 on the 20th, the end time is at 16:20:15 on July 20, 2020, the first time difference is 5 seconds, the task execution node is the non-timeout identifier o1 and/or the business terminal g1, and it is determined to be faulty The diagnosis results are stored in the second database.

业务终端和服务器可以以相同的方式继续处理针对产品A的订单处理流程至提供发票任务节点,第三全局监听器监控到提供发票任务节点结束执行事件,获取流程标识B、流程实例B1、第二结束执行事件标识h3和业务流程的结束时间2020年7月20日16时27分15秒,将这些信息确定第三状态信息,将该第三状态信息发送给服务器。服务器接收到该第三状态信息后,读取流程标识B、流程实例B1和业务流程的结束时间2020年7月20日16时27分15秒,将流程标识B、流程实例B1作为第二标识,利用该第二标识查找确定与该第二标识对应的业务流程的开始时间2020年7月20日16时20分10秒。The business terminal and the server can continue to process the order processing flow for product A in the same way to the providing invoice task node, and the third global listener monitors the end execution event of the providing invoice task node, and obtains the process identifier B, process instance B1, second End execution event identifier h3 and end time of the business process at 16:27:15 on July 20, 2020, determine the third state information from these information, and send the third state information to the server. After the server receives the third state information, it reads the process identifier B, the process instance B1 and the end time of the business process at 16:27:15 on July 20, 2020, and uses the process identifier B and the process instance B1 as the second identifier , and use the second identifier to search and determine the start time of the business process corresponding to the second identifier at 16:20:10 on July 20, 2020.

接着,根据该第二标识在在配置信息数据库查找与第二标识对应的与业务流程的流程配置信息,从该流程配置信息中读取与产品A订单处理流程对应的流程等级L1,第二时限4分钟,第二时间算法自然时间算法。然后,计算2020年7月20日16时27分15秒和2020年7月20日16时20分10秒的之间的第二时间差值为7分5秒,该第二时间差值7分5秒大于第二时限4分钟,确定产品A的订单处理流程超时。Next, according to the second identifier, the process configuration information corresponding to the business process is searched in the configuration information database, and the process level L1 corresponding to the order processing process of product A is read from the process configuration information, and the second time limit 4 minutes, second time algorithm natural time algorithm. Then, the second time difference between 16:27:15 on July 20, 2020 and 16:20:10 on July 20, 2020 is calculated as 7 minutes and 5 seconds, and the second time difference is 7 When 5 seconds is greater than the second time limit of 4 minutes, it is determined that the order processing process of product A has timed out.

将流程标识B、流程实例B1、流程等级L1,开始时间2020年7月20日16时20分10秒、结束时间2020年7月20日16时27分15秒、第二时间差值7分5秒,订单处理流程超时标识O2和/或业务终端g1,作为故障诊断结果并存储在第二数据库中。Set the process ID B, process instance B1, process level L1, start time at 16:20:10 on July 20, 2020, end time at 16:27:15 on July 20, 2020, and the second time difference of 7 minutes In 5 seconds, the order processing process timeout flag O2 and/or the service terminal g1 is stored in the second database as the fault diagnosis result.

本申请实施例提供的业务流程监控方法,可以接收业务流程中的任务节点上报的状态信息;基于状态信息和与任务节点对应的节点配置信息,确定任务节点是否出现超时故障。本申请实施例通过上述方式可以精确地确定出现故障的任务节点和/或业务流程,实现对业务流程处理过程中的每个任务节点进行实时监控,及时发现任务节点故障,提高业务流程中故障监控的精准度,确保精准高效的修复故障。The business process monitoring method provided by the embodiment of the present application can receive the status information reported by the task node in the business process, and determine whether the task node has a timeout fault based on the status information and the node configuration information corresponding to the task node. In the embodiment of the present application, the faulty task node and/or business process can be accurately determined in the above-mentioned manner, so as to realize real-time monitoring of each task node in the business process processing process, timely discover the fault of the task node, and improve the monitoring of faults in the business process. The highest accuracy ensures accurate and efficient repair of faults.

以及本申请实施例还可以获取业务流程的流程开始时间及流程结束时间;基于业务流程的流程结束时间、业务流程的流程开始时间及与业务流程对应的流程配置信息,确定业务流程是否出现超时故障。And the embodiment of the present application can also obtain the process start time and process end time of the business process; based on the process end time of the business process, the process start time of the business process and the process configuration information corresponding to the business process, it is determined whether a timeout fault occurs in the business process .

本申请实施例通过上精确地确定出现故障的业务流程,实现对业务流程进行实时监控,及时发现业务流程故障,提高业务流程中故障监控的精准度,确保精准高效的修复故障。In the embodiment of the present application, by accurately determining the faulty business process, the real-time monitoring of the business process is realized, the fault of the business process is detected in time, the accuracy of fault monitoring in the business process is improved, and the fault is repaired accurately and efficiently.

本申请实施例提供一种业务流程监控装置,如图6所示,该装置40,包括:An embodiment of the present application provides a business process monitoring device. As shown in FIG. 6 , the device 40 includes:

第一接收模块401,被配置为接收业务流程中的任务节点的状态信息,业务流程中包括至少两个任务节点接收业务流程引擎中预先创建的业务流程的各个任务节点上报的状态信息,该业务流程中包括至少两个任务节点,该状态信息至少包括每个任务节点上报的任务开始时间和任务结束时间;The first receiving module 401 is configured to receive status information of task nodes in the business process. The business process includes at least two task nodes that receive the state information reported by each task node of the pre-created business process in the business process engine. The process includes at least two task nodes, and the status information includes at least the task start time and task end time reported by each task node;

第一确定模块402,被配置为基于每个任务节点的状态信息和与每个任务节点对应的节点配置信息,确定每个任务节点是否出现超时故障,该节点配置信息是在业务流程引擎的流程定义时预先配置的。The first determination module 402 is configured to determine whether each task node has a timeout fault based on the state information of each task node and the node configuration information corresponding to each task node, and the node configuration information is the process of the business process engine. Preconfigured at definition time.

上述节点配置信息至少包括与每个任务节点对应的任务节点时限。The above-mentioned node configuration information at least includes a task node time limit corresponding to each task node.

可选的,如图7所示,该装置还包括:Optionally, as shown in Figure 7, the device further includes:

第二接收模块403,被配置为读取并存储节点配置信息和流程配置信息;节点配置信息和流程配置信息是在基于业务流程引擎创建流程定义时配置的基础配置数据;且在部署流程定义时对流程定义进行解析得到的。The second receiving module 403 is configured to read and store the node configuration information and the process configuration information; the node configuration information and the process configuration information are basic configuration data configured when the process definition is created based on the business process engine; and when the process definition is deployed Obtained by parsing the process definition.

可选的,第一接收模块401,被配置为:Optionally, the first receiving module 401 is configured to:

接收每个业务节点通过业务流程引擎的第一全局监听器上报的任务开始时间;Receive the task start time reported by each business node through the first global listener of the business process engine;

接收每个业务节点通过业务流程引擎的第二全局监听器上报的任务结束时间。The task end time reported by each business node through the second global listener of the business process engine is received.

可选的,第一确定模块402,被配置为:Optionally, the first determining module 402 is configured to:

基于任务开始时间与任务结束时间,确定与每个任务节点对应的第一时间差值;Determine the first time difference value corresponding to each task node based on the task start time and the task end time;

当第一时间差值大于与第一时间差值对应的任务节点时限时,确定第一时间差值对应的任务节点出现超时故障。When the first time difference value is greater than the time limit of the task node corresponding to the first time difference value, it is determined that the task node corresponding to the first time difference value has a timeout fault.

可选的,如图8所示,该装置还包括:Optionally, as shown in Figure 8, the device further includes:

读取模块404,被配置为接收业务流程的第一个任务节点通过业务流程引擎的第一监听器上报的业务流程对应的流程开始时间;接收业务流程的最后一个任务节点通过业务流程引擎的第三监听器上报的业务流程对应的流程结束时间;The reading module 404 is configured to receive the process start time corresponding to the business process reported by the first task node of the business process through the first listener of the business process engine; The process end time corresponding to the business process reported by the three listeners;

第二确定模块405,被配置为基于流程开始时间、流程结束时间和与业务流程对应的流程配置信息,确定业务流程是否出现超时故障,流程配置信息至少包括与业务流程对应的流程节点时限。The second determining module 405 is configured to determine whether a timeout failure occurs in the business process based on the process start time, process end time and process configuration information corresponding to the business process. The process configuration information at least includes the process node time limit corresponding to the business process.

可选地,该状态信息还包括任务节点标识,则获取模块404,被配置为:Optionally, the status information further includes the task node identifier, then the acquisition module 404 is configured as:

接收业务流程中任意一个任务节点的上报的状态信息;Receive the status information reported by any task node in the business process;

获取状态信息中的业务流程标识和当前任务节点标识;Obtain the business process ID and the current task node ID in the status information;

在确定业务流程标识下不存在其他的任务节点标识时,指示当前任务节点标识对应的任务节点为业务流程的第一任务节点;When it is determined that there is no other task node identification under the business process identification, indicating that the task node corresponding to the current task node identification is the first task node of the business process;

记录第一任务节点上报的任务开始时间为业务流程对应的流程开始时间。The task start time reported by the first task node is recorded as the process start time corresponding to the business process.

可选的,如图9所示,该装置还包括:Optionally, as shown in Figure 9, the device further includes:

发送模块406,当确定任务节点出现超时故障,或者当确定业务流程出现超时故障时,向业务终端发送提示信息。The sending module 406 sends prompt information to the service terminal when it is determined that the task node has a timeout failure, or when it is determined that the service process has a timeout failure.

综上所述,本申请实施例提供的业务流程监控装置,基于接收的任务节点上报的状态信息,确定任务节点是否出现超时故障,从而精确地确定出现故障的任务节点,实现对业务流程处理过程中的每个任务节点进行实时监控,提高业务处理流程中故障监控的精准度,确保精准高效的修复故障。To sum up, the business process monitoring device provided by the embodiment of the present application determines whether a task node has a timeout fault based on the received status information reported by a task node, so as to accurately determine the faulty task node and realize the process of processing the business process. Each task node in the system is monitored in real time to improve the accuracy of fault monitoring in the business processing process and ensure accurate and efficient fault repair.

本申请实施例提供一种业务流程监控系统,如图1所示,该系统包括:业务终端110和服务器120。An embodiment of the present application provides a business process monitoring system. As shown in FIG. 1 , the system includes: a business terminal 110 and a server 120 .

业务终端110,其包括在其上运行的业务流程引擎,用于将业务流程引擎中预先创建的业务流程的各个任务节点的状态信息上报给服务器,业务流程中包括至少两个任务节点,状态信息至少包括每个任务节点上报的任务开始时间和任务结束时间;The business terminal 110 includes a business process engine running on it, and is used to report the status information of each task node of the business process pre-created in the business process engine to the server, and the business process includes at least two task nodes, and the status information At least include the task start time and task end time reported by each task node;

服务器120,用于从业务终端接收状态信息,并基于每个任务节点的状态信息和与每个任务节点对应的节点配置信息,确定每个任务节点是否出现超时故障,该节点配置信息是在业务流程引擎的流程定义时预先配置的。The server 120 is configured to receive status information from the service terminal, and based on the status information of each task node and the node configuration information corresponding to each task node, determine whether each task node has a time-out fault, and the node configuration information is in the service The process engine's process definition is pre-configured.

该节点配置信息至少包括与每个任务节点对应的任务节点时限。The node configuration information includes at least a task node time limit corresponding to each task node.

可选地,该服务器110,还被配置为读取并存储节点配置信息和流程配置信息;节点配置信息和流程配置信息是在基于业务流程引擎创建流程定义时配置的基础配置数据;且在部署流程定义时对流程定义进行解析得到的。Optionally, the server 110 is further configured to read and store node configuration information and process configuration information; the node configuration information and process configuration information are basic configuration data configured when creating a process definition based on the business process engine; and when deploying It is obtained by parsing the process definition when the process is defined.

可选的,该状态信息可以包括任务节点的开始时间及结束时间,则该服务器110,还被配置为接收每个业务节点通过业务流程引擎的第一全局监听器上报的任务开始时间;Optionally, the status information may include the start time and end time of the task node, then the server 110 is further configured to receive the task start time reported by each business node through the first global listener of the business process engine;

接收每个业务节点通过业务流程引擎的第二全局监听器上报的任务结束时间;Receive the task end time reported by each business node through the second global listener of the business process engine;

基于任务开始时间与任务结束时间,确定与每个任务节点对应的第一时间差值;Determine the first time difference value corresponding to each task node based on the task start time and the task end time;

当第一时间差值大于与第一时间差值对应的任务节点时限时,确定第一时间差值对应的任务节点出现超时故障。When the first time difference value is greater than the time limit of the task node corresponding to the first time difference value, it is determined that the task node corresponding to the first time difference value has a timeout fault.

可选地,该服务器120,还用于接收业务流程的第一个任务节点通过业务流程引擎的第一监听器上报的业务流程对应的流程开始时间;Optionally, the server 120 is further configured to receive the process start time corresponding to the business process reported by the first task node of the business process through the first listener of the business process engine;

接收业务流程的最后一个任务节点通过业务流程引擎的第三监听器上报的业务流程对应的流程结束时间;receiving the process end time corresponding to the business process reported by the last task node of the business process through the third listener of the business process engine;

基于流程开始时间、流程结束时间和与业务流程对应的流程配置信息,确定业务流程是否出现超时故障,流程配置信息至少包括与业务流程对应的流程节点时限。Based on the process start time, the process end time and the process configuration information corresponding to the business process, it is determined whether a timeout failure occurs in the business process, and the process configuration information at least includes the process node time limit corresponding to the business process.

可选的,该状态信息还包括任务节点标识,该服务器110,还被配置为:接收业务流程中任意一个任务节点的上报的状态信息;获取状态信息中的业务流程标识和当前任务节点标识;在确定业务流程标识下不存在其他的任务节点标识时,指示当前任务节点标识对应的任务节点为业务流程的第一任务节点;记录第一任务节点上报的任务开始时间为业务流程对应的流程开始时间。Optionally, the state information further includes a task node identifier, and the server 110 is further configured to: receive the state information reported by any task node in the business process; obtain the business process identifier and the current task node identifier in the state information; When it is determined that there are no other task node identifiers under the business process identifier, indicate that the task node corresponding to the current task node identifier is the first task node of the business process; record the task start time reported by the first task node as the process start corresponding to the business process time.

可选的,该服务器120,还配置为:当确定任务节点出现超时故障,或者当确定业务流程出现超时故障时,向业务终端110发送提示信息。Optionally, the server 120 is further configured to send prompt information to the service terminal 110 when it is determined that the task node has a timeout failure, or when it is determined that the service process has a timeout failure.

综上所述,本申请实施例提供的业务流程的监控系统,基于业务终端内配置的业务节点上报的状态信息,确定任务节点是否出现超时故障,可以精确地确定出现故障的任务节点,实现对业务流程过程中的每个任务节点进行实时监控,提高业务流程中故障监控的精准度,确保精准高效的修复故障。To sum up, the monitoring system for the business process provided by the embodiment of the present application can determine whether a task node has a timeout failure based on the status information reported by the business node configured in the business terminal, and can accurately determine the failed task node. Each task node in the business process is monitored in real time to improve the accuracy of fault monitoring in the business process and ensure accurate and efficient fault repair.

下面参考图10,图10为本申请实施例的服务器的计算机系统的结构示意图。Referring to FIG. 10 below, FIG. 10 is a schematic structural diagram of a computer system of a server according to an embodiment of the present application.

如图10所示,计算机系统包括中央处理单元(CPU)501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储部分503加载到随机访问存储器(RAM)503中的程序而执行各种适当的动作和处理。在RAM 503中,还存储有系统500操作所需的各种程序和数据。CPU 501、ROM 502以及RAM 503通过总线504彼此相连。输入/输出(I/O)接口505也连接至总线504。As shown in FIG. 10 , the computer system includes a central processing unit (CPU) 501 which can be processed according to a program stored in a read only memory (ROM) 502 or a program loaded from a storage section 503 into a random access memory (RAM) 503 Various appropriate actions and processes are performed. In the RAM 503, various programs and data necessary for the operation of the system 500 are also stored. The CPU 501 , the ROM 502 , and the RAM 503 are connected to each other through a bus 504 . An input/output (I/O) interface 505 is also connected to bus 504 .

以下部件连接至I/O接口505:包括键盘、鼠标等的输入部分506;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分507;包括硬盘等的存储部分508;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分509。通信部分509经由诸如因特网的网络执行通信处理。驱动器510也根据需要连接至I/O接口505。可拆卸介质511,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器510上,以便于从其上读出的计算机程序根据需要被安装入存储部分508。The following components are connected to the I/O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc. ; and a communication section 509 including a network interface card such as a LAN card, a modem, and the like. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I/O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.

特别地,根据本申请的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本申请的实施例包括一种计算机程序产品,其包括承载在机器可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分503从网络上被下载和安装,和/或从可拆卸介质511被安装。在该计算机程序被中央处理单元(CPU)501执行时,执行本申请的系统中限定的上述功能。In particular, according to embodiments of the present application, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program carried on a machine-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 503 and/or installed from the removable medium 511 . When the computer program is executed by the central processing unit (CPU) 501, the above-described functions defined in the system of the present application are executed.

需要说明的是,本申请所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in this application may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this application, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,前述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more functions for implementing the specified logical function(s) executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.

描述于本申请实施例中所涉及到的单元或模块可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元或模块也可以设置在处理器中,例如,可以描述为:一种处理器,包括:第一接收模块和第一确定模块。其中,这些单元或模块的名称在某种情况下并不构成对该单元或模块本身的限定,例如,第一接收模块还可以被描述为“用于接收业务流程引擎中预先创建的业务流程的各个任务节点上报的状态信息的模块”。The units or modules involved in the embodiments of the present application may be implemented in a software manner, and may also be implemented in a hardware manner. The described unit or module may also be provided in the processor, for example, it may be described as: a processor including: a first receiving module and a first determining module. Wherein, the names of these units or modules do not constitute a limitation on the units or modules themselves under certain circumstances. For example, the first receiving module may also be described as "a device for receiving pre-created business processes in the business process engine. The module of status information reported by each task node".

作为另一方面,本申请还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中描述的电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中的。上述计算机可读存储介质存储有一个或者多个程序,当上述前述程序被一个或者一个以上的处理器用来执行描述于本申请的业务流程监控方法。As another aspect, the present application also provides a computer-readable storage medium. The computer-readable storage medium may be included in the electronic device described in the above-mentioned embodiments; in electronic equipment. The aforementioned computer-readable storage medium stores one or more programs, and when the aforementioned programs are used by one or more processors to execute the business process monitoring method described in this application.

以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离所述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an illustration of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solution formed by the specific combination of the above-mentioned technical features, and should also cover the above-mentioned technical features without departing from the inventive concept. Other technical solutions formed by any combination of its equivalent features. For example, a technical solution is formed by replacing the above-mentioned features with the technical features disclosed in this application (but not limited to) with similar functions.

Claims (11)

1. A business process monitoring method, performed by a server associated with a business process engine, the method comprising:
receiving state information reported by each task node of a pre-created business process in a business process engine, wherein the business process comprises at least two task nodes, and the state information at least comprises task starting time and task ending time reported by each task node;
and determining whether each task node has overtime faults or not based on the state information of each task node and node configuration information corresponding to each task node, wherein the node configuration information is configured in advance when the process of the business process engine is defined.
2. The business process monitoring method according to claim 1, wherein the business process engine includes a first global listener and a second global listener configured in advance, and the receiving of the status information reported by each task node of the business process created in advance in the business process engine includes:
receiving the task start time reported by each service node through a first global listener of the service process engine;
and receiving the task ending time reported by each service node through a second global listener of the service process engine.
3. The business process monitoring method of claim 2, wherein said determining whether said task node has failed comprises:
determining a first time difference value corresponding to each task node based on the task start time and the task end time;
and when the first time difference value is greater than the task node time limit corresponding to the first time difference value, determining that the task node corresponding to the first time difference value has an overtime fault.
4. The business process monitoring method of any one of claims 1-3, wherein the business process engine further comprises a third preconfigured global listener, the method comprising:
receiving a process starting time corresponding to the business process reported by a first task node of the business process through a first listener of the business process engine;
receiving a process end time corresponding to the business process reported by a last task node of the business process through a third listener of the business process engine;
and determining whether the business process has overtime faults or not based on the process starting time, the process ending time and process configuration information corresponding to the business process, wherein the process configuration information at least comprises process node time limit corresponding to the business process.
5. The business process monitoring method according to claim 4, wherein the status information further includes task node identifiers, and if the first task node that receives the business process reports the process start time corresponding to the business process through the first global listener of the business process engine, the method includes:
receiving reported state information of any task node in the business process;
acquiring a service flow identifier and a current task node identifier in the state information;
when determining that no other task node identifier exists under the service process identifier, indicating the task node corresponding to the current task node identifier as a first task node of the service process;
and recording the task starting time reported by the first task node as the process starting time corresponding to the service process.
6. The business process monitoring method according to claim 1, wherein before receiving the status information reported by each task node of the business process pre-created in the business process engine, the method further comprises:
reading and storing the node configuration information and the process configuration information; the node configuration information and the process configuration information are basic configuration data configured when a process definition is created based on the business process engine; and the flow definition is analyzed when the flow definition is deployed.
7. The business process monitoring method of claim 4, further comprising:
and when determining that the task node has overtime fault or when determining that the business process has overtime fault, sending prompt information.
8. A business process monitoring apparatus configured on a server associated with a business process engine, the apparatus comprising:
the first receiving module is configured to receive state information reported by each task node of a pre-created business process in a business process engine, wherein the business process comprises at least two task nodes, and the state information at least comprises task starting time and task ending time reported by each task node;
a first determining module configured to determine whether each task node has a timeout fault based on the state information of each task node and node configuration information corresponding to each task node, where the node configuration information is pre-configured when a process of the business process engine is defined.
9. A service process monitoring system is characterized in that the system comprises a service terminal and a server, and the system comprises:
the service terminal comprises a service process engine running on the service terminal and is configured to report state information of each task node of a service process pre-established in the service process engine to a server, wherein the service process comprises at least two task nodes, and the state information at least comprises task starting time and task ending time reported by each task node;
the server is configured to receive the state information from the service terminal, and determine whether each task node has a timeout fault based on the state information of each task node and node configuration information corresponding to each task node, where the node configuration information is configured in advance when a process of the service process engine is defined.
10. A computer device, characterized in that the computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, the processor being adapted to implement the method according to any of claims 1-7 when executing the program.
11. A computer-readable storage medium, characterized in that a computer program is stored thereon for implementing the method according to any one of claims 1-7.
CN202010996098.6A 2020-09-21 2020-09-21 Business process monitoring method, device, system, equipment and medium Pending CN112101803A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010996098.6A CN112101803A (en) 2020-09-21 2020-09-21 Business process monitoring method, device, system, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010996098.6A CN112101803A (en) 2020-09-21 2020-09-21 Business process monitoring method, device, system, equipment and medium

Publications (1)

Publication Number Publication Date
CN112101803A true CN112101803A (en) 2020-12-18

Family

ID=73754623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010996098.6A Pending CN112101803A (en) 2020-09-21 2020-09-21 Business process monitoring method, device, system, equipment and medium

Country Status (1)

Country Link
CN (1) CN112101803A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732370A (en) * 2020-12-31 2021-04-30 中国工商银行股份有限公司 Business process adjusting method and device
CN113064905A (en) * 2021-03-25 2021-07-02 北京京东乾石科技有限公司 Business process processing method and device, electronic equipment and computer readable medium
CN113110983A (en) * 2021-04-01 2021-07-13 深圳华锐金融技术股份有限公司 Transaction system time delay processing method and device, computer equipment and storage medium
CN113190334A (en) * 2021-04-21 2021-07-30 北京字跳网络技术有限公司 Control method and device of process engine, terminal and storage medium
CN113722173A (en) * 2020-12-29 2021-11-30 京东数字科技控股股份有限公司 Business process monitoring method, system, equipment and readable storage medium
CN114036250A (en) * 2021-11-11 2022-02-11 北京百度网讯科技有限公司 High-precision map task processing method and device, electronic equipment and medium
CN114118941A (en) * 2021-10-27 2022-03-01 东风柳州汽车有限公司 Vehicle type research and development task architecture diagram generation method, device, equipment and storage medium
CN114331782A (en) * 2021-12-01 2022-04-12 深圳市永兴元科技股份有限公司 Business process monitoring method, device, device and medium
CN114579401A (en) * 2022-02-28 2022-06-03 北京字节跳动网络技术有限公司 Task detection method and device, electronic equipment and storage medium
CN115396434A (en) * 2022-08-17 2022-11-25 北京京东拓先科技有限公司 Message processing method and device
CN116258461A (en) * 2023-02-20 2023-06-13 北京沃东天骏信息技术有限公司 A business process orchestration method, execution method and device
CN116450703A (en) * 2023-03-31 2023-07-18 阿里巴巴(中国)有限公司 Data processing, statistics, node determination and modeling method and electronic equipment
CN117076096A (en) * 2023-10-17 2023-11-17 腾讯科技(深圳)有限公司 Task flow execution method and device, computer readable medium and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760378A (en) * 2014-12-15 2016-07-13 阿里巴巴集团控股有限公司 Transaction state monitor method and device
CN105809299A (en) * 2014-12-27 2016-07-27 华为技术有限公司 Processing method of notification service of service flow management and service flow management engine
CN107784404A (en) * 2016-08-25 2018-03-09 腾讯科技(深圳)有限公司 Alarm method and device are carried out in business procession
CN108897854A (en) * 2018-06-29 2018-11-27 北京京东金融科技控股有限公司 A kind of monitoring method and device of overtime task
CN110377413A (en) * 2019-07-24 2019-10-25 上海金融期货信息技术有限公司 Based on the distributed task scheduling asynchronous schedule of BPMN standard and the system of monitoring
CN110942246A (en) * 2019-11-25 2020-03-31 维珍(深圳)数据技术有限公司 Work order monitoring method and equipment
CN111178696A (en) * 2019-12-13 2020-05-19 中国建设银行股份有限公司 Service processing time overtime early warning method and device
CN111208992A (en) * 2020-01-10 2020-05-29 深圳壹账通智能科技有限公司 System scheduling workflow generation method and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760378A (en) * 2014-12-15 2016-07-13 阿里巴巴集团控股有限公司 Transaction state monitor method and device
CN105809299A (en) * 2014-12-27 2016-07-27 华为技术有限公司 Processing method of notification service of service flow management and service flow management engine
CN107784404A (en) * 2016-08-25 2018-03-09 腾讯科技(深圳)有限公司 Alarm method and device are carried out in business procession
CN108897854A (en) * 2018-06-29 2018-11-27 北京京东金融科技控股有限公司 A kind of monitoring method and device of overtime task
CN110377413A (en) * 2019-07-24 2019-10-25 上海金融期货信息技术有限公司 Based on the distributed task scheduling asynchronous schedule of BPMN standard and the system of monitoring
CN110942246A (en) * 2019-11-25 2020-03-31 维珍(深圳)数据技术有限公司 Work order monitoring method and equipment
CN111178696A (en) * 2019-12-13 2020-05-19 中国建设银行股份有限公司 Service processing time overtime early warning method and device
CN111208992A (en) * 2020-01-10 2020-05-29 深圳壹账通智能科技有限公司 System scheduling workflow generation method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘清堂等: "数字化学习资源与活动整合应用研究", vol. 1, 31 December 2015, 华中师范大学出版社, pages: 119 - 123 *
清茶_: "Activiti6.0(八)监听器使用", Retrieved from the Internet <URL:https://blog.csdn.net/m0_38001814/article/details/104197670> *

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113722173A (en) * 2020-12-29 2021-11-30 京东数字科技控股股份有限公司 Business process monitoring method, system, equipment and readable storage medium
CN113722173B (en) * 2020-12-29 2024-12-24 京东科技控股股份有限公司 A business process monitoring method, system, device and readable storage medium
CN112732370A (en) * 2020-12-31 2021-04-30 中国工商银行股份有限公司 Business process adjusting method and device
CN112732370B (en) * 2020-12-31 2024-02-02 中国工商银行股份有限公司 Business process adjustment method and device
CN113064905A (en) * 2021-03-25 2021-07-02 北京京东乾石科技有限公司 Business process processing method and device, electronic equipment and computer readable medium
CN113064905B (en) * 2021-03-25 2024-04-16 北京京东乾石科技有限公司 Business process processing method, device, electronic equipment and computer readable medium
CN113110983B (en) * 2021-04-01 2023-04-11 深圳华锐分布式技术股份有限公司 Transaction system time delay processing method and device, computer equipment and storage medium
CN113110983A (en) * 2021-04-01 2021-07-13 深圳华锐金融技术股份有限公司 Transaction system time delay processing method and device, computer equipment and storage medium
CN113190334A (en) * 2021-04-21 2021-07-30 北京字跳网络技术有限公司 Control method and device of process engine, terminal and storage medium
CN114118941A (en) * 2021-10-27 2022-03-01 东风柳州汽车有限公司 Vehicle type research and development task architecture diagram generation method, device, equipment and storage medium
CN114036250A (en) * 2021-11-11 2022-02-11 北京百度网讯科技有限公司 High-precision map task processing method and device, electronic equipment and medium
CN114331782A (en) * 2021-12-01 2022-04-12 深圳市永兴元科技股份有限公司 Business process monitoring method, device, device and medium
CN114331782B (en) * 2021-12-01 2025-09-23 深圳市永兴元科技股份有限公司 Business process monitoring method, device, equipment and medium
CN114579401A (en) * 2022-02-28 2022-06-03 北京字节跳动网络技术有限公司 Task detection method and device, electronic equipment and storage medium
CN115396434A (en) * 2022-08-17 2022-11-25 北京京东拓先科技有限公司 Message processing method and device
CN116258461A (en) * 2023-02-20 2023-06-13 北京沃东天骏信息技术有限公司 A business process orchestration method, execution method and device
CN116450703A (en) * 2023-03-31 2023-07-18 阿里巴巴(中国)有限公司 Data processing, statistics, node determination and modeling method and electronic equipment
CN116450703B (en) * 2023-03-31 2024-03-01 阿里巴巴(中国)有限公司 Data processing, statistics, node determination and modeling method and electronic equipment
CN117076096A (en) * 2023-10-17 2023-11-17 腾讯科技(深圳)有限公司 Task flow execution method and device, computer readable medium and electronic equipment
CN117076096B (en) * 2023-10-17 2024-12-31 腾讯科技(深圳)有限公司 Task flow execution method and device, computer readable medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN112101803A (en) Business process monitoring method, device, system, equipment and medium
US8661125B2 (en) System comprising probe runner, monitor, and responder with associated databases for multi-level monitoring of a cloud service
CN108804215B (en) Task processing method and device and electronic equipment
CN111711623A (en) Method and device for data verification
CN114978883A (en) Network wake-up management method and device, electronic equipment and storage medium
CN113191889B (en) Wind control configuration method, configuration system, electronic equipment and readable storage medium
CN109783151A (en) The method and apparatus of rule change
CN114201508B (en) Data processing method, data processing device, electronic device and storage medium
CN113722141B (en) Method, device, electronic equipment and media for determining delay causes of data tasks
CN113656239B (en) Monitoring method, device and computer program product for middleware
CN116136801B (en) Cloud platform data processing method and device, electronic equipment and storage medium
CN115081651B (en) Automobile parts management method, system and computer-readable medium based on big data
CN116841902A (en) Health state checking method, device, equipment and storage medium
CN114510400A (en) Task execution method and device, electronic equipment and storage medium
CN113434382A (en) Database performance monitoring method and device, electronic equipment and computer readable medium
CN114064408A (en) Monitoring method, device, device and storage medium based on MD5 value verification
CN114356574A (en) Information technology operation and maintenance management platform, method and storage medium
CN112817573B (en) Methods, devices, computer systems and media for building streaming computing applications
CN113778350A (en) Log printing method and device
CN115048288B (en) Interface testing method, device, computing equipment and computer storage medium
US11023479B2 (en) Managing asynchronous analytics operation based on communication exchange
CN113568838B (en) Test data generation method, device, equipment, storage medium and program product
CN116450175A (en) State updating method, device and storage medium
CN116483566A (en) Resource processing method and device for server, electronic equipment and storage medium
CN118521359A (en) Billing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination