CN114327601A - Business process control method, device, system and related equipment - Google Patents

Business process control method, device, system and related equipment Download PDF

Info

Publication number
CN114327601A
CN114327601A CN202111675833.4A CN202111675833A CN114327601A CN 114327601 A CN114327601 A CN 114327601A CN 202111675833 A CN202111675833 A CN 202111675833A CN 114327601 A CN114327601 A CN 114327601A
Authority
CN
China
Prior art keywords
node
business process
business
nodes
database
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
CN202111675833.4A
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.)
Shanghai Pinshun Information Technology Co ltd
Original Assignee
Shanghai Pinshun Information Technology 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 Shanghai Pinshun Information Technology Co ltd filed Critical Shanghai Pinshun Information Technology Co ltd
Priority to CN202111675833.4A priority Critical patent/CN114327601A/en
Publication of CN114327601A publication Critical patent/CN114327601A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本申请公开了一种业务流程控制方法、装置、系统及相关设备,该方法包括:判断数据库是否存在发生变动的第一业务流程;若是,利用变动后的第一业务流程更新内存中已存在的变动前的第一业务流程;当需要执行第二业务流程时,根据第二业务流程的流程编号,从内存中确定相应的第二业务流程,并将第二业务流程加载至流程引擎;其中,各业务流程由流程节点及流程节点间的连接关系构成,所述流程节点为经过预编译的流程节点。各业务流程由流程节点及流程节点间的连接关系构成,所述流程节点为经过预编译的流程节点,由所述流程节点构成的业务流程也无需重新编译即可被流程引擎执行,简化了业务流程的开发及部署过程,并增强了业务流程的可维护性。

Figure 202111675833

The present application discloses a business process control method, device, system and related equipment. The method includes: judging whether there is a changed first business process in a database; if so, using the changed first business process to update an existing in memory The first business process before the change; when the second business process needs to be executed, the corresponding second business process is determined from the memory according to the process number of the second business process, and the second business process is loaded into the process engine; wherein, Each business process is composed of process nodes and connection relationships between process nodes, and the process nodes are precompiled process nodes. Each business process is composed of process nodes and the connection relationship between the process nodes. The process nodes are precompiled process nodes, and the business processes formed by the process nodes can be executed by the process engine without recompilation, which simplifies the business process. Process development and deployment process, and enhance the maintainability of business processes.

Figure 202111675833

Description

一种业务流程控制方法、装置、系统及相关设备A business process control method, device, system and related equipment

技术领域technical field

本申请涉及流程控制技术领域,更具体地说,是涉及一种业务流程控制方法、装置、系统及相关设备。The present application relates to the technical field of process control, and more particularly, to a business process control method, apparatus, system and related equipment.

背景技术Background technique

Activiti是一种业务流程管理(Business Process Management,BPM)框架,它是覆盖了业务流程管理、工作流、服务协作等领域的一个开源的、灵活的、易扩展的可执行流程语言框架。Activiti可以用于开发工作流(Workflow)应用,旨在提供业务过程的部分或整体在计算机应用环境下的自动化的解决方案,通过在多个参与者之间按照某种预定义的规则传递文档、信息或任务的过程自动进行,从而实现某个预期的业务目标。Activiti is a business process management (BPM) framework, which is an open source, flexible, and easily extensible executable process language framework covering the fields of business process management, workflow, and service collaboration. Activiti can be used to develop workflow (Workflow) applications, aiming to provide automated solutions for part or the whole of business processes in a computer application environment, by transferring documents among multiple participants according to certain predefined rules, The process of automating information or tasks to achieve some desired business goal.

基于Activiti框架进行二次开发时,一般地可以采用XML的形式配置整个执行流程。其中,XML文件不仅用来描述流程执行步骤,还描述每个节点具体由哪个java类执行。具体地,这些节点包括开始、结束节点(start、end),并行节点(fork、join),分流节点(split)等。当需要修改流程执行特定逻辑的时候,每次都需要修改XML文件的配置,然后对项目重新部署,步骤繁琐并且缺乏灵活性。When secondary development is performed based on the Activiti framework, the entire execution process can generally be configured in the form of XML. Among them, the XML file is used not only to describe the process execution steps, but also to describe which java class each node is executed by. Specifically, these nodes include start and end nodes (start, end), parallel nodes (fork, join), split nodes (split), and the like. When you need to modify the process to execute specific logic, you need to modify the configuration of the XML file every time, and then redeploy the project, which is cumbersome and inflexible.

因此,如何简化业务流程的开发及部署,成为亟待解决的问题。Therefore, how to simplify the development and deployment of business processes has become an urgent problem to be solved.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本申请提供了一种业务流程控制方法、装置、系统及相关设备,以简化业务流程的开发及部署。In view of this, the present application provides a business process control method, apparatus, system and related equipment to simplify the development and deployment of business processes.

为实现上述目的,本申请第一方面提供了一种业务流程控制方法,包括:To achieve the above purpose, a first aspect of the present application provides a business process control method, including:

判断数据库是否存在发生变动的第一业务流程,所述数据库存储有至少一个业务流程;Judging whether there is a changed first business process in the database, where the database stores at least one business process;

若是,利用变动后的第一业务流程更新内存中已存在的变动前的第一业务流程,所述内存中预先从所述数据库中加载有各业务流程;If so, use the changed first business process to update the existing first business process before the change in the memory, and the memory is preloaded with each business process from the database;

当需要执行第二业务流程时,根据第二业务流程的流程编号,从内存中确定相应的第二业务流程,并将第二业务流程加载至流程引擎;When the second business process needs to be executed, the corresponding second business process is determined from the memory according to the process number of the second business process, and the second business process is loaded into the process engine;

其中,各业务流程由流程节点及流程节点间的连接关系构成,所述流程节点为经过预编译的流程节点。Wherein, each business process consists of process nodes and connection relationships between process nodes, and the process nodes are precompiled process nodes.

优选地,所述流程节点为继承于Activiti框架的类的实例化对象,所述流程节点包括:开始节点、结束节点、分流节点、数据节点、并行节点、聚合节点和策略节点。Preferably, the process node is an instantiated object of a class inherited from the Activiti framework, and the process node includes: a start node, an end node, a branch node, a data node, a parallel node, an aggregation node, and a strategy node.

优选地,所述业务流程构建的过程,包括:Preferably, the process of constructing the business process includes:

基于被选定的节点模板,以及对应于所述节点模板的配置信息,生成至少一个流程节点;generating at least one process node based on the selected node template and configuration information corresponding to the node template;

基于各流程节点的连接关系,生成业务流程。Based on the connection relationship of each process node, a business process is generated.

优选地,基于被选定的节点模板,以及对应于所述节点模板的配置信息,生成至少一个流程节点的过程,包括:Preferably, based on the selected node template and the configuration information corresponding to the node template, the process of generating at least one process node includes:

针对每一个被选定的节点模板:For each selected node template:

根据所述节点模板的配置信息,实例化所述节点模板,得到流程节点;According to the configuration information of the node template, instantiate the node template to obtain a process node;

其中,所述节点模板为继承于Activiti框架的类;所述节点模板的配置信息包含了待生成的流程节点的基本属性和字段属性,所述基本属性包括节点描述、类名和同步属性,所述字段属性包括所涉及的字段的属性。Wherein, the node template is a class inherited from the Activiti framework; the configuration information of the node template includes the basic attributes and field attributes of the process node to be generated, and the basic attributes include node description, class name and synchronization attribute. Field properties include the properties of the fields involved.

优选地,基于各流程节点的连接关系,生成业务流程的过程,包括:Preferably, based on the connection relationship of each process node, the process of generating the business process includes:

根据用户输入的各流程节点的连线信息,确定各流程节点的逻辑关系;Determine the logical relationship of each process node according to the connection information of each process node input by the user;

根据各流程节点以及各流程节点的逻辑关系,生成业务流程。According to each process node and the logical relationship of each process node, a business process is generated.

优选地,所述判断数据库是否存在发生变动的第一业务流程的过程,包括:Preferably, the process of judging whether there is a changed first business process in the database includes:

对Zookeeper节点进行监听,其中,所述Zookeeper节点存储有各流程节点的状态信息,当所述数据库中发生新增业务流程或修改业务流程操作时,所述新增的业务流程或修改的业务流程的状态会被同步到所述Zookeeper节点。Monitor the Zookeeper node, wherein the Zookeeper node stores the status information of each process node, and when an operation of adding a business process or modifying a business process occurs in the database, the new business process or the modified business process The state will be synced to the Zookeeper node.

本申请第二方面提供了一种业务流程控制装置,包括:A second aspect of the present application provides a business process control device, including:

判断单元,用于判断数据库是否存在发生变动的第一业务流程,所述数据库存储有至少一个业务流程;a judging unit for judging whether there is a changed first business process in the database, where the database stores at least one business process;

更新单元,用于当所述判断单元判断出数据库存在发生变动的第一业务流程时,利用变动后的第一业务流程更新内存中已存在的变动前的第一业务流程,所述内存中预先从所述数据库中加载有各业务流程;The updating unit is configured to use the changed first business process to update the existing first business process before the change in the memory when the judgment unit determines that there is a changed first business process in the database. Various business processes are loaded from the database;

加载单元,用于当需要执行第二业务流程时,根据第二业务流程的流程编号,从内存中确定相应的第二业务流程,并将第二业务流程加载至流程引擎;a loading unit, configured to determine the corresponding second business process from the memory according to the process number of the second business process when the second business process needs to be executed, and load the second business process into the process engine;

其中,各业务流程由流程节点及流程节点间的连接关系构成,所述流程节点为经过预编译的流程节点。Wherein, each business process consists of process nodes and connection relationships between process nodes, and the process nodes are precompiled process nodes.

本申请第三方面提供了一种业务流程控制设备,包括:存储器和处理器;A third aspect of the present application provides a business process control device, including: a memory and a processor;

所述存储器,用于存储程序;the memory for storing programs;

所述处理器,用于执行所述程序,实现如上述的业务流程控制方法的各个步骤。The processor is configured to execute the program to implement various steps of the above-mentioned business process control method.

本申请第四方面提供了一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,实现如上述的业务流程控制方法的各个步骤。A fourth aspect of the present application provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements each step of the above-mentioned business process control method.

本申请第五方面提供了一种业务流程控制系统,包括:A fifth aspect of the present application provides a business process control system, including:

流程编辑器,用于通过可视化操作界面对业务流程进行新建、删除或编辑,并将经过新建或编辑的业务流程存储到数据库中;Process editor, which is used to create, delete or edit business processes through a visual operation interface, and store the newly created or edited business processes in the database;

业务流程控制装置,用于实现如上述的业务流程控制方法的各个步骤;A business process control device, configured to implement each step of the above-mentioned business process control method;

流程引擎,用于执行业务流程。Process engine for executing business processes.

经由上述的技术方案可知,本申请首先通过对数据库进行监听,以判断是否存在发生变动的第一业务流程。其中,所述数据库存储有至少一个业务流程。当判断出存在发生变动的第一业务流程时,将第一业务流程更新至内存。其中,所述内存中预先从所述数据库中加载有各业务流程。通过将发生变动的业务流程准实时地从数据库加载到内存中,使得内存中的各业务流程保持为最新的版本。当需要执行第二业务流程时,根据第二业务流程的流程编号,从内存中确定相应的目标业务流程,并将所述目标业务流程加载至流程引擎。其中,各业务流程由流程节点及流程节点间的连接关系构成,所述流程节点为经过预编译的流程节点,由所述流程节点构成的业务流程也无需重新编译即可被流程引擎执行,简化了业务流程的开发及部署过程,并增强了业务流程的可维护性。It can be known from the above technical solutions that the present application first determines whether there is a changed first business process by monitoring the database. Wherein, the database stores at least one business process. When it is determined that there is a changed first business process, the first business process is updated to the memory. Wherein, each business process is preloaded from the database in the memory. By loading the changed business processes from the database into the memory in quasi-real time, each business process in the memory is kept the latest version. When the second business process needs to be executed, the corresponding target business process is determined from the memory according to the process number of the second business process, and the target business process is loaded into the process engine. Among them, each business process is composed of process nodes and the connection relationship between the process nodes, the process nodes are precompiled process nodes, and the business processes composed of the process nodes can be executed by the process engine without recompilation, simplifying the process. The development and deployment process of the business process is improved, and the maintainability of the business process is enhanced.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only It is an embodiment of the present application. For those of ordinary skill in the art, other drawings can also be obtained according to the provided drawings without any creative effort.

图1为本申请实施例公开的业务流程控制方法的示意图;1 is a schematic diagram of a business process control method disclosed in an embodiment of the present application;

图2为本申请实施例公开的业务流程控制系统的示意图;2 is a schematic diagram of a business process control system disclosed in an embodiment of the present application;

图3示例了本申请实施例公开的可视化操作界面的示意图;FIG. 3 illustrates a schematic diagram of a visual operation interface disclosed by an embodiment of the present application;

图4示例了本申请实施例公开的可视化操作界面的另一示意图;FIG. 4 illustrates another schematic diagram of the visual operation interface disclosed by the embodiment of the present application;

图5为本申请实施例公开的肢体图像识别装置的示意图;5 is a schematic diagram of a body image recognition device disclosed in an embodiment of the present application;

图6为本申请实施例公开的肢体图像识别装置的另一示意图;FIG. 6 is another schematic diagram of a body image recognition device disclosed in an embodiment of the present application;

图7为本申请实施例公开的肢体图像识别设备的示意图。FIG. 7 is a schematic diagram of a body image recognition device disclosed in an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

下面介绍本申请实施例提供的业务流程控制方法。请参阅图1,本申请实施例提供的业务流程控制方法可以包括如下步骤:The following describes the business process control method provided by the embodiments of the present application. Referring to FIG. 1, the business process control method provided by the embodiment of the present application may include the following steps:

步骤S101,判断数据库是否存在发生变动的第一业务流程。若是,则执行步骤S102。Step S101, it is judged whether there is a first business process that changes in the database. If yes, step S102 is executed.

其中,该数据库存储有至少一个业务流程。此外,除了通过数据库存储各业务流程,还可以通过Redis(远程字典服务)对各业务流程进行存储。Wherein, the database stores at least one business process. In addition, in addition to storing each business process through the database, each business process can also be stored through Redis (remote dictionary service).

步骤S102,利用变动后的第一业务流程更新内存中已存在的变动前的第一业务流程。Step S102, using the changed first business process to update the existing first business process before the change in the memory.

其中,内存中预先从步骤S101提及的数据库中加载有各业务流程。Wherein, each business process is loaded in the memory in advance from the database mentioned in step S101.

步骤S103,当需要执行第二业务流程时,将内存中的第二业务流程加载至流程引擎。Step S103, when the second business process needs to be executed, the second business process in the memory is loaded into the process engine.

具体地,根据第二业务流程的流程编号,从内存中确定相应的第二业务流程,然后将第二业务流程加载至流程引擎,之后由流程引擎执行该业务流程。Specifically, according to the process number of the second business process, the corresponding second business process is determined from the memory, and then the second business process is loaded into the process engine, and then the process engine executes the business process.

其中,各业务流程由流程节点及流程节点间的连接关系构成,这些流程节点为经过预编译的流程节点。可以理解的是,步骤S101中所检测出的业务流程的变动,包括该业务流程配置参数上的变动、业务流程上部分流程节点的顺序的改变、部分流程节点的删除中的一种或多种操作,发生这些变动的业务流程无需经过重新编译就可以被流程引擎执行。Wherein, each business process consists of process nodes and connection relationships between process nodes, and these process nodes are precompiled process nodes. It can be understood that the change of the business process detected in step S101 includes one or more of changes in the configuration parameters of the business process, changes in the order of some process nodes on the business process, and deletion of some process nodes. operations, the business process with these changes can be executed by the process engine without recompilation.

可以理解的是,步骤S103为独立于步骤S101及步骤S102的步骤,其执行由条件触发,具体地,当检测到需要执行第二业务流程时,执行步骤S103。It can be understood that step S103 is a step independent of step S101 and step S102, and its execution is triggered by a condition. Specifically, when it is detected that the second business process needs to be executed, step S103 is executed.

本申请首先通过对数据库进行监听,以判断是否存在发生变动的第一业务流程。其中,所述数据库存储有至少一个业务流程。当判断出存在发生变动的第一业务流程时,将第一业务流程更新至内存。其中,所述内存中预先从所述数据库中加载有各业务流程。通过将发生变动的业务流程准实时地从数据库加载到内存中,使得内存中的各业务流程保持为最新的版本。当需要执行第二业务流程时,根据第二业务流程的流程编号,从内存中确定相应的目标业务流程,并将所述目标业务流程加载至流程引擎。其中,各业务流程由流程节点及流程节点间的连接关系构成,所述流程节点为经过预编译的流程节点,由所述流程节点构成的业务流程也无需重新编译即可被流程引擎执行,简化了业务流程的开发及部署过程,并增强了业务流程的可维护性。The present application first determines whether there is a changed first business process by monitoring the database. Wherein, the database stores at least one business process. When it is determined that there is a changed first business process, the first business process is updated to the memory. Wherein, each business process is preloaded from the database in the memory. By loading the changed business processes from the database into the memory in quasi-real time, each business process in the memory is kept the latest version. When the second business process needs to be executed, the corresponding target business process is determined from the memory according to the process number of the second business process, and the target business process is loaded into the process engine. Among them, each business process is composed of process nodes and the connection relationship between the process nodes, the process nodes are precompiled process nodes, and the business processes composed of the process nodes can be executed by the process engine without recompilation, simplifying the process. The development and deployment process of the business process is improved, and the maintainability of the business process is enhanced.

在本申请的一些实施例中,上面所提及的流程节点为继承于Activiti框架的类的实例化对象。具体地,这些流程节点的生成的过程,可以包括:In some embodiments of the present application, the above-mentioned process nodes are instantiated objects of classes inherited from the Activiti framework. Specifically, the process of generating these process nodes may include:

结合业务特点,抽象出通用节点,通过这些通用节点实现公用逻辑。不同的业务场景,只需要继承通用节点的模板类,通过不同通用节点的组合来实现业务需求。Combined with business characteristics, general nodes are abstracted, and common logic is realized through these general nodes. Different business scenarios only need to inherit the template class of common nodes, and realize business requirements through the combination of different common nodes.

具体地,这些通用节点为抽象出来的Activity的各个执行类,例如对于业务流程的入口节点,可以继承自StartActivity,对于实现分流的节点,可以继承自SplitActivity。Specifically, these general nodes are the various execution classes of the abstracted Activity. For example, the entry node of the business process can be inherited from StartActivity, and the node that implements the splitting can be inherited from SplitActivity.

其中,Activity主要负责节点前后的流程和逻辑控制,每个Activity又包含了一个具体执行流程的Delegate抽象,Delegate的核心为execute方法,负责抽象类的具体实现。Among them, Activity is mainly responsible for the process and logic control before and after the node, and each Activity contains a Delegate abstraction of a specific execution process. The core of the Delegate is the execute method, which is responsible for the concrete implementation of the abstract class.

在本申请的一些实施例中,上面所提及的流程节点可以包括:开始节点、结束节点、分流节点、数据节点、并行节点、聚合节点和策略节点。In some embodiments of the present application, the above-mentioned process nodes may include: a start node, an end node, a branch node, a data node, a parallel node, an aggregation node, and a policy node.

其中,开始节点代表流程的执行入口,是流程开启执行的起点。其中,开始节点可以继承自StartActivity,其接受会话上下文的Flow Execution,触发OutgoingTransition的Activity节点的执行。Among them, the start node represents the execution entry of the process and is the starting point for the process to start and execute. The start node may inherit from StartActivity, which accepts the Flow Execution of the session context and triggers the execution of the Activity node of OutgoingTransition.

结束节点代表整个流程执行完毕。The end node represents the completion of the entire process.

分流节点用来处理逻辑分支。在业务流程执行到某个节点的时候,可能出现分叉口(即不同条件走不同的路线),这个时候就需要分流节点,分流节点有一个入口,但是可以有多个出口用来指向不同逻辑分支。Branch nodes are used to handle logical branches. When the business process is executed to a certain node, a fork may appear (that is, different routes are taken under different conditions). At this time, a branch node is required. The branch node has one entry, but there can be multiple exits to point to different logics. branch.

数据节点用于提供流程执行过程中相关数据加载。例如,业务流程运行过程中需要用户手机号,那么可以在该节点前放置一个数据节点,加载好数据之后,供后续节点使用。其中,数据节点可以继承自JavaActivity,为Java任务节点,其属性包含一个Java委托对象和对应的临时输入变量。当Java任务节点被执行时,会先调用Java委托对象进行任务执行,当任务执行结束后再触发Outgoing Transition的Activity节点的执行。Data nodes are used to provide related data loading during process execution. For example, if the user's mobile phone number is required during the operation of the business process, a data node can be placed in front of the node, and after the data is loaded, it can be used by subsequent nodes. Among them, the data node can be inherited from JavaActivity, which is a Java task node, and its properties include a Java delegate object and a corresponding temporary input variable. When the Java task node is executed, the Java delegate object will be called first to execute the task, and then the execution of the Activity node of the Outgoing Transition is triggered after the task execution ends.

并行节点类似于分流节点,并行节点和分流节点最大的区别在于,分流节点最终只会选择一个逻辑分支执行,而并行节点通过多线程的形式,并行执行所有逻辑分支,并在所有逻辑分支执行完后汇总结果,因此,所以并行节点一定和聚合节点搭配使用。其中,并行节点可以继承自ForkActivity,并行节点支持各个Outgoing Transition上的Activity的异步并行执行。The parallel node is similar to the branch node. The biggest difference between the parallel node and the branch node is that the branch node will only choose one logical branch to execute, while the parallel node executes all the logical branches in parallel through multi-threading. The results are aggregated later, so parallel nodes must be used in conjunction with aggregation nodes. Among them, the parallel node can inherit from ForkActivity, and the parallel node supports asynchronous parallel execution of activities on each Outgoing Transition.

聚合节点用于和上面提及的并行节点进行搭配使用,并行节点的多个逻辑分支结果,最终汇总到聚合节点。其中,聚合节点可以继承自JoinActivity,当聚合节点的所有Incoming Transition都执行完毕,才开始执行Outgoing Transition的Activity。The aggregation node is used in conjunction with the parallel nodes mentioned above, and the results of multiple logical branches of the parallel nodes are finally aggregated to the aggregation node. Among them, the aggregation node can inherit from JoinActivity. When all the Incoming Transitions of the aggregation node are executed, the Activity of Outgoing Transition starts to be executed.

策略节点为开发人员定义的一个相对通用的规则执行策略节点,相当于提供一个执行模板,该模板已经包含了基础逻辑操作,开发人员只需要少量配置自定义参数即可。The strategy node is a relatively general rule execution strategy node defined by developers, which is equivalent to providing an execution template, which already contains basic logic operations, and developers only need to configure a few custom parameters.

此外,流程节点还可以包括自定义节点,自定义节点用来针对特殊场景的非通用逻辑,开发人员可以根据需要自定义。In addition, process nodes can also include custom nodes, which are used for non-generic logic for special scenarios, and developers can customize as needed.

本申请涉及的流程节点种类不多,但是不同流程节点之间的组合搭配能够很好的促成复杂逻辑的实现,而这些流程节点均是预编译的,从而简化了业务流程的开发过程,提高了开发及部署的效率。There are not many types of process nodes involved in this application, but the combination of different process nodes can facilitate the realization of complex logic, and these process nodes are all precompiled, which simplifies the development process of business processes and improves the efficiency of business process development. Development and deployment efficiency.

在本申请的一些实施例中,上面所提及的业务流程的构建的过程,可以包括:In some embodiments of the present application, the process of constructing the business process mentioned above may include:

S1,基于被选定的节点模板,以及对应于该节点模板的配置信息,生成至少一个流程节点。S1, based on the selected node template and configuration information corresponding to the node template, generate at least one process node.

S2,基于各流程节点的连接关系,生成业务流程。S2, a business process is generated based on the connection relationship of each process node.

通常地,一个业务流程会包含多个流程节点,在构建业务流程时,需要先构建流程节点,然后为各个流程节点赋予逻辑关系,最后生成业务流程。Generally, a business process will contain multiple process nodes. When building a business process, you need to build process nodes first, then assign logical relationships to each process node, and finally generate a business process.

在本申请的一些实施例中,上述S1基于被选定的节点模板,以及对应于所述节点模板的配置信息,生成至少一个流程节点的过程,可以包括:In some embodiments of the present application, the process of generating at least one process node in S1 based on the selected node template and the configuration information corresponding to the node template may include:

针对每一个被选定的节点模板:For each selected node template:

根据所述节点模板的配置信息,实例化所述节点模板,得到流程节点;According to the configuration information of the node template, instantiate the node template to obtain a process node;

其中,所述节点模板为继承于Activiti框架的类;所述节点模板的配置信息包含了待生成的流程节点的基本属性和字段属性,所述基本属性包括节点描述、类名和同步属性,所述字段属性包括所涉及的字段的属性。Wherein, the node template is a class inherited from the Activiti framework; the configuration information of the node template includes the basic attributes and field attributes of the process node to be generated, and the basic attributes include node description, class name and synchronization attribute. Field properties include the properties of the fields involved.

在本申请的一些实施例中,上述S2基于各流程节点的连接关系,生成业务流程的过程,可以包括:In some embodiments of the present application, the process of generating a business process in S2 based on the connection relationship of each process node may include:

S21,根据用户输入的各流程节点的连线信息,确定各流程节点的逻辑关系。S21: Determine the logical relationship of each process node according to the connection information of each process node input by the user.

S22,根据各流程节点以及各流程节点的逻辑关系,生成业务流程。S22: Generate a business process according to each process node and the logical relationship of each process node.

其中,可以通过可视化操作界面,以拖曳的方式增加流程节点,对流程节点的属性编辑完成后,再通过为各流程节点添加相应的带流向的连线来描述流程节点之间的逻辑关系。Among them, process nodes can be added by dragging through the visual operation interface. After editing the attributes of the process nodes, the logical relationship between the process nodes can be described by adding corresponding connections with flow directions for each process node.

在本申请的一些实施例中,上述步骤S101判断数据库是否存在发生变动的第一业务流程的过程,可以包括:In some embodiments of the present application, the process of determining whether there is a first business process that has changed in the database in the above step S101 may include:

对Zookeeper节点进行监听。Monitor Zookeeper nodes.

其中,Zookeeper节点存储有各流程节点的状态信息,当数据库中发生新增业务流程或修改业务流程操作时,该新增的业务流程或修改的业务流程的状态会被同步到所述Zookeeper节点。通过对Zookeeper节点的监听,可以获知业务流程的变动情况。The Zookeeper node stores state information of each process node. When an operation of adding a business process or modifying a business process occurs in the database, the state of the newly added or modified business process will be synchronized to the Zookeeper node. By monitoring Zookeeper nodes, you can learn about changes in business processes.

下面对本申请实施例提供的业务流程控制系统进行描述。请参见图2,本申请实施例提供的业务流程控制系统,可以包括:The business process control system provided by the embodiments of the present application is described below. Referring to FIG. 2, the business process control system provided by the embodiment of the present application may include:

流程编辑器10,用于通过可视化操作界面对业务流程进行新建、删除或编辑,并将经过新建或编辑的业务流程存储到数据库中;The process editor 10 is used to create, delete or edit a business process through a visual operation interface, and store the newly created or edited business process in a database;

业务流程控制装置20,用于实现如上述各实施例中的业务流程控制方法的各个步骤;A business process control device 20, configured to implement various steps of the business process control methods in the above embodiments;

流程引擎40,用于执行业务流程。The process engine 40 is used for executing the business process.

其中,通过流程编辑器10,用户可以通过可视化操作界面,以鼠标拖拽的方式构建业务流程。图3及图4示例了本申请实施例的流程编辑器10中的可视化操作界面,其中,图3示例了流程节点的选择界面,图4示例了对流程节点的属性进行编辑的界面。如图4所示,流程节点代表通用java处理类,用户仅需要按照特定场景调整个别参数就可实现流程节点的个性化配置。流程编辑器10中可视化、拖曳式的操作模式使得业务流程的创建比较人性化,且效率高,十分便于快速迭代。Wherein, through the process editor 10, the user can construct the business process by dragging and dropping the mouse through the visual operation interface. 3 and 4 illustrate a visual operation interface in the process editor 10 according to an embodiment of the present application, wherein FIG. 3 illustrates an interface for selecting a process node, and FIG. 4 illustrates an interface for editing attributes of a process node. As shown in Figure 4, the process node represents a general java processing class, and the user only needs to adjust individual parameters according to a specific scenario to realize the personalized configuration of the process node. The visual and drag-and-drop operation mode in the process editor 10 makes the creation of business processes more user-friendly and efficient, which is very convenient for rapid iteration.

通过流程编辑器10来构建各个流程节点之间的逻辑关系以及执行顺序,流程节点之间连线不仅使得操作更直观,还在分流节点中起到了至关重要的作用。分流节点后面跟着的连线,不仅可以通过EL(Expression Language)表达式的形式来配置分流决策,还可以调整不同流向的顺序,起到自定义优先级的作用。The process editor 10 is used to construct the logical relationship and execution sequence between each process node, and the connection between the process nodes not only makes the operation more intuitive, but also plays a crucial role in the distribution of nodes. The connections that follow the shunt node can not only configure the shunt decision in the form of EL (Expression Language) expressions, but also adjust the order of different flow directions to customize the priority.

每个完整流程图都有版本号的区分,如果流程图有大的调整,只需要基于原流程图复制一个新的版本,新版本调整完毕后根据需要可随时上线。Each complete flowchart has a version number. If there is a major adjustment to the flowchart, you only need to copy a new version based on the original flowchart. After the adjustment, the new version can be launched at any time as needed.

业务流程控制装置20中所涉及的各个流程节点具有通用性,只需要修改个别节点参数即可,修改后的流程图,持久化到数据库,并且同步更新服务内存,实时生效。能够为开发人员带来极大的便利性,并显著增强系统可维护性。Each process node involved in the business process control device 20 is universal, and only needs to modify individual node parameters. The modified flowchart is persisted to the database, and the service memory is updated synchronously to take effect in real time. It can bring great convenience to developers and significantly enhance system maintainability.

当业务流程调整后,首先会持久化到数据库,然后通过事件推送、监听的方式,实时更新到内存。业务流程控制装置20每次获取到需要执行的流程编码后,从系统内存加载最新上线版本流程配置,然后由流程引擎40按照各流程节点的顺序依次执行整个流程。When the business process is adjusted, it will be persisted to the database first, and then updated to the memory in real time through event push and monitoring. Each time the business process control device 20 acquires the process code to be executed, it loads the latest online version process configuration from the system memory, and then the process engine 40 executes the entire process in sequence according to the sequence of each process node.

下面对本申请实施例提供的业务流程控制装置20进行描述,下文描述的业务流程控制装置20与上文描述的业务流程控制方法可相互对应参照。The following describes the business process control apparatus 20 provided by the embodiments of the present application. The business process control apparatus 20 described below and the business process control method described above may refer to each other correspondingly.

请参见图5,本申请实施例提供的业务流程控制装置,可以包括:Referring to FIG. 5, the business process control device provided by the embodiment of the present application may include:

判断单元21,用于判断数据库是否存在发生变动的第一业务流程,所述数据库存储有至少一个业务流程;The judgment unit 21 is used for judging whether there is a changed first business process in the database, and the database stores at least one business process;

更新单元22,用于当所述判断单元判断出数据库存在发生变动的第一业务流程时,利用变动后的第一业务流程更新内存中已存在的变动前的第一业务流程,所述内存中预先从所述数据库中加载有各业务流程;The updating unit 22 is configured to use the changed first business process to update the existing first business process before the change in the memory when the judgment unit determines that the database has a changed first business process. Each business process is loaded from the database in advance;

加载单元23,用于当需要执行第二业务流程时,根据第二业务流程的流程编号,从内存中确定相应的第二业务流程,并将第二业务流程加载至流程引擎;The loading unit 23 is configured to, when the second business process needs to be executed, determine the corresponding second business process from the memory according to the process number of the second business process, and load the second business process into the process engine;

其中,各业务流程由流程节点及流程节点间的连接关系构成,所述流程节点为经过预编译的流程节点。Wherein, each business process consists of process nodes and connection relationships between process nodes, and the process nodes are precompiled process nodes.

在本申请的一些实施例中,请参阅图6,上述的业务流程控制装置还包括流程构建单元24,所述流程构建单元用于构建业务流程,所述流程构建单元24对业务流程进行构建的过程,可以包括:In some embodiments of the present application, please refer to FIG. 6, the above-mentioned business process control device further includes a process construction unit 24, the process construction unit is used to construct a business process, and the process construction unit 24 constructs the business process. process, which can include:

基于被选定的节点模板,以及对应于所述节点模板的配置信息,生成至少一个流程节点;generating at least one process node based on the selected node template and configuration information corresponding to the node template;

基于各流程节点的连接关系,生成业务流程。Based on the connection relationship of each process node, a business process is generated.

在本申请的一些实施例中,流程构建单元24基于被选定的节点模板,以及对应于所述节点模板的配置信息,生成至少一个流程节点的过程,可以包括:In some embodiments of the present application, the process of generating at least one process node by the process construction unit 24 based on the selected node template and the configuration information corresponding to the node template may include:

针对每一个被选定的节点模板:For each selected node template:

根据所述节点模板的配置信息,实例化所述节点模板,得到流程节点;According to the configuration information of the node template, instantiate the node template to obtain a process node;

其中,所述节点模板为继承于Activiti框架的类;所述节点模板的配置信息包含了待生成的流程节点的基本属性和字段属性,所述基本属性包括节点描述、类名和同步属性,所述字段属性包括所涉及的字段的属性。Wherein, the node template is a class inherited from the Activiti framework; the configuration information of the node template includes the basic attributes and field attributes of the process node to be generated, and the basic attributes include node description, class name and synchronization attribute. Field properties include the properties of the fields involved.

在本申请的一些实施例中,流程构建单元24基于各流程节点的连接关系,生成业务流程的过程,可以包括:In some embodiments of the present application, the process of generating the business process by the process construction unit 24 based on the connection relationship of each process node may include:

根据用户输入的各流程节点的连线信息,确定各流程节点的逻辑关系;Determine the logical relationship of each process node according to the connection information of each process node input by the user;

根据各流程节点以及各流程节点的逻辑关系,生成业务流程。According to each process node and the logical relationship of each process node, a business process is generated.

在本申请的一些实施例中,判断单元21判断数据库是否存在发生变动的第一业务流程的过程,可以包括:In some embodiments of the present application, the process of determining whether the database has a changed first business process by the determining unit 21 may include:

对Zookeeper节点进行监听,其中,所述Zookeeper节点存储有各流程节点的状态信息,当所述数据库中发生新增业务流程或修改业务流程操作时,所述新增的业务流程或修改的业务流程的状态会被同步到所述Zookeeper节点。Monitor the Zookeeper node, wherein the Zookeeper node stores the status information of each process node, and when an operation of adding a business process or modifying a business process occurs in the database, the new business process or the modified business process The state will be synced to the Zookeeper node.

本申请实施例提供的业务流程控制装置可应用于业务流程控制设备,如计算机等。可选的,图7示出了业务流程控制设备的硬件结构框图,参照图7,业务流程控制设备的硬件结构可以包括:至少一个处理器31,至少一个通信接口32,至少一个存储器33和至少一个通信总线34。The business process control apparatus provided in the embodiment of the present application can be applied to a business process control device, such as a computer. Optionally, FIG. 7 shows a block diagram of the hardware structure of the business process control device. Referring to FIG. 7, the hardware structure of the business process control device may include: at least one processor 31, at least one communication interface 32, at least one memory 33 and at least one A communication bus 34 .

在本申请实施例中,处理器31、通信接口32、存储器33、通信总线34的数量为至少一个,且处理器31、通信接口32、存储器33通过通信总线34完成相互间的通信;In the embodiment of the present application, the number of the processor 31, the communication interface 32, the memory 33, and the communication bus 34 is at least one, and the processor 31, the communication interface 32, and the memory 33 complete the communication with each other through the communication bus 34;

处理器31可能是一个中央处理器CPU,或者是特定集成电路ASIC(ApplicationSpecific Integrated Circuit),或者是被配置成实施本申请实施例的一个或多个集成电路等;The processor 31 may be a central processing unit (CPU), or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application, etc.;

存储器32可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatilememory)等,例如至少一个磁盘存储器;The memory 32 may include high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), etc., such as at least one disk memory;

其中,存储器33存储有程序,处理器31可调用存储器33存储的程序,所述程序用于:Wherein, the memory 33 stores a program, and the processor 31 can call the program stored in the memory 33, and the program is used for:

判断数据库是否存在发生变动的第一业务流程,所述数据库存储有至少一个业务流程;Judging whether there is a changed first business process in the database, where the database stores at least one business process;

若是,利用变动后的第一业务流程更新内存中已存在的变动前的第一业务流程,所述内存中预先从所述数据库中加载有各业务流程;If so, use the changed first business process to update the existing first business process before the change in the memory, and the memory is preloaded with each business process from the database;

当需要执行第二业务流程时,根据第二业务流程的流程编号,从内存中确定相应的第二业务流程,并将第二业务流程加载至流程引擎;When the second business process needs to be executed, the corresponding second business process is determined from the memory according to the process number of the second business process, and the second business process is loaded into the process engine;

其中,各业务流程由流程节点及流程节点间的连接关系构成,所述流程节点为经过预编译的流程节点。Wherein, each business process consists of process nodes and connection relationships between process nodes, and the process nodes are precompiled process nodes.

可选的,所述程序的细化功能和扩展功能可参照上文描述。Optionally, the refinement function and extension function of the program may refer to the above description.

本申请实施例还提供一种存储介质,该存储介质可存储有适于处理器执行的程序,所述程序用于:An embodiment of the present application further provides a storage medium, where the storage medium can store a program suitable for the processor to execute, and the program is used for:

判断数据库是否存在发生变动的第一业务流程,所述数据库存储有至少一个业务流程;Judging whether there is a changed first business process in the database, where the database stores at least one business process;

若是,利用变动后的第一业务流程更新内存中已存在的变动前的第一业务流程,所述内存中预先从所述数据库中加载有各业务流程;If so, use the changed first business process to update the existing first business process before the change in the memory, and the memory is preloaded with each business process from the database;

当需要执行第二业务流程时,根据第二业务流程的流程编号,从内存中确定相应的第二业务流程,并将第二业务流程加载至流程引擎;When the second business process needs to be executed, according to the process number of the second business process, the corresponding second business process is determined from the memory, and the second business process is loaded into the process engine;

其中,各业务流程由流程节点及流程节点间的连接关系构成,所述流程节点为经过预编译的流程节点。Wherein, each business process consists of process nodes and connection relationships between process nodes, and the process nodes are precompiled process nodes.

可选的,所述程序的细化功能和扩展功能可参照上文描述。Optionally, the refinement function and extension function of the program may refer to the above description.

综上所述:In summary:

本申请首先通过对数据库进行监听,以判断是否存在发生变动的第一业务流程。其中,所述数据库存储有至少一个业务流程。当判断出存在发生变动的第一业务流程时,将第一业务流程更新至内存。其中,所述内存中预先从所述数据库中加载有各业务流程。通过将发生变动的业务流程准实时地从数据库加载到内存中,使得内存中的各业务流程保持为最新的版本。当需要执行第二业务流程时,根据第二业务流程的流程编号,从内存中确定相应的目标业务流程,并将所述目标业务流程加载至流程引擎。其中,各业务流程由流程节点及流程节点间的连接关系构成,所述流程节点为经过预编译的流程节点,由所述流程节点构成的业务流程也无需重新编译即可被流程引擎执行,简化了业务流程的开发及部署过程,并增强了业务流程的可维护性。The present application first determines whether there is a changed first business process by monitoring the database. Wherein, the database stores at least one business process. When it is determined that there is a changed first business process, the first business process is updated to the memory. Wherein, each business process is preloaded from the database in the memory. By loading the changed business processes from the database into the memory in quasi-real time, each business process in the memory is kept the latest version. When the second business process needs to be executed, the corresponding target business process is determined from the memory according to the process number of the second business process, and the target business process is loaded into the process engine. Among them, each business process is composed of process nodes and the connection relationship between the process nodes, the process nodes are precompiled process nodes, and the business processes composed of the process nodes can be executed by the process engine without recompilation, simplifying the process. The development and deployment process of the business process is improved, and the maintainability of the business process is enhanced.

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this document, relational terms such as first and second are used only to distinguish one entity or operation from another, and do not necessarily require or imply these entities or that there is any such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion such that a process, method, article or device comprising a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间可以根据需要进行组合,且相同相似部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as required, and the same and similar parts can be referred to each other. .

对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, this application is not intended to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1.一种业务流程控制方法,其特征在于,包括:1. a business process control method, is characterized in that, comprises: 判断数据库是否存在发生变动的第一业务流程,所述数据库存储有至少一个业务流程;Judging whether there is a changed first business process in the database, where the database stores at least one business process; 若是,利用变动后的第一业务流程更新内存中已存在的变动前的第一业务流程,所述内存中预先从所述数据库中加载有各业务流程;If so, use the changed first business process to update the existing first business process before the change in the memory, and the memory is preloaded with each business process from the database; 当需要执行第二业务流程时,根据第二业务流程的流程编号,从内存中确定相应的第二业务流程,并将第二业务流程加载至流程引擎;When the second business process needs to be executed, according to the process number of the second business process, the corresponding second business process is determined from the memory, and the second business process is loaded into the process engine; 其中,各业务流程由流程节点及流程节点间的连接关系构成,所述流程节点为经过预编译的流程节点。Wherein, each business process consists of process nodes and connection relationships between process nodes, and the process nodes are precompiled process nodes. 2.根据权利要求1所述的方法,其特征在于,所述流程节点为继承于Activiti框架的类的实例化对象,所述流程节点包括:开始节点、结束节点、分流节点、数据节点、并行节点、聚合节点和策略节点。2. The method according to claim 1, wherein the process node is an instantiated object of a class inherited from the Activiti framework, and the process node comprises: a start node, an end node, a branch node, a data node, a parallel Nodes, Aggregation Nodes, and Policy Nodes. 3.根据权利要求1所述的方法,其特征在于,所述业务流程构建的过程,包括:3. The method according to claim 1, wherein the process of constructing the business process comprises: 基于被选定的节点模板,以及对应于所述节点模板的配置信息,生成至少一个流程节点;generating at least one process node based on the selected node template and configuration information corresponding to the node template; 基于各流程节点的连接关系,生成业务流程。Based on the connection relationship of each process node, a business process is generated. 4.根据权利要求3所述的方法,其特征在于,基于被选定的节点模板,以及对应于所述节点模板的配置信息,生成至少一个流程节点的过程,包括:4. The method according to claim 3, wherein, based on the selected node template and the configuration information corresponding to the node template, the process of generating at least one process node comprises: 针对每一个被选定的节点模板:For each selected node template: 根据所述节点模板的配置信息,实例化所述节点模板,得到流程节点;According to the configuration information of the node template, instantiate the node template to obtain a process node; 其中,所述节点模板为继承于Activiti框架的类;所述节点模板的配置信息包含了待生成的流程节点的基本属性和字段属性,所述基本属性包括节点描述、类名和同步属性,所述字段属性包括所涉及的字段的属性。Wherein, the node template is a class inherited from the Activiti framework; the configuration information of the node template includes the basic attributes and field attributes of the process node to be generated, and the basic attributes include node description, class name and synchronization attribute. Field properties include the properties of the fields involved. 5.根据权利要求3所述的方法,其特征在于,基于各流程节点的连接关系,生成业务流程的过程,包括:5. The method according to claim 3, wherein, based on the connection relationship of each process node, the process of generating the business process comprises: 根据用户输入的各流程节点的连线信息,确定各流程节点的逻辑关系;Determine the logical relationship of each process node according to the connection information of each process node input by the user; 根据各流程节点以及各流程节点的逻辑关系,生成业务流程。According to each process node and the logical relationship of each process node, a business process is generated. 6.根据权利要求1~5任一项所述的方法,其特征在于,所述判断数据库是否存在发生变动的第一业务流程的过程,包括:6. The method according to any one of claims 1 to 5, wherein the process of judging whether there is a changed first business process in the database comprises: 对Zookeeper节点进行监听,其中,所述Zookeeper节点存储有各流程节点的状态信息,当所述数据库中发生新增业务流程或修改业务流程操作时,所述新增的业务流程或修改的业务流程的状态会被同步到所述Zookeeper节点。Monitor the Zookeeper node, wherein the Zookeeper node stores the status information of each process node, and when an operation of adding a new business process or modifying a business process occurs in the database, the new business process or the modified business process The state will be synced to the Zookeeper node. 7.一种业务流程控制装置,其特征在于,包括:7. A business process control device, comprising: 判断单元,用于判断数据库是否存在发生变动的第一业务流程,所述数据库存储有至少一个业务流程;a judging unit for judging whether there is a changed first business process in the database, where the database stores at least one business process; 更新单元,用于当所述判断单元判断出数据库存在发生变动的第一业务流程时,利用变动后的第一业务流程更新内存中已存在的变动前的第一业务流程,所述内存中预先从所述数据库中加载有各业务流程;The updating unit is configured to use the changed first business process to update the existing first business process before the change in the memory when the judgment unit judges that there is a changed first business process in the database. Various business processes are loaded from the database; 加载单元,用于当需要执行第二业务流程时,根据第二业务流程的流程编号,从内存中确定相应的第二业务流程,并将第二业务流程加载至流程引擎;a loading unit, configured to determine the corresponding second business process from the memory according to the process number of the second business process when the second business process needs to be executed, and load the second business process into the process engine; 其中,各业务流程由流程节点及流程节点间的连接关系构成,所述流程节点为经过预编译的流程节点。Wherein, each business process consists of process nodes and connection relationships between process nodes, and the process nodes are precompiled process nodes. 8.一种业务流程控制设备,其特征在于,包括:存储器和处理器;8. A business process control device, comprising: a memory and a processor; 所述存储器,用于存储程序;the memory for storing programs; 所述处理器,用于执行所述程序,实现如权利要求1~6中任一项所述的业务流程控制方法的各个步骤。The processor is configured to execute the program to implement each step of the business process control method according to any one of claims 1 to 6. 9.一种存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时,实现如权利要求1~6中任一项所述的业务流程控制方法的各个步骤。9 . A storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, each step of the business process control method according to any one of claims 1 to 6 is implemented. 10 . 10.一种业务流程控制系统,其特征在于,包括:10. A business process control system, comprising: 流程编辑器,用于通过可视化操作界面对业务流程进行新建、删除或编辑,并将经过新建或编辑的业务流程存储到数据库中;Process editor, which is used to create, delete or edit business processes through a visual operation interface, and store the newly created or edited business processes in the database; 业务流程控制装置,用于实现如权利要求1~6中任一项所述的业务流程控制方法的各个步骤;a business process control device, configured to implement each step of the business process control method according to any one of claims 1 to 6; 流程引擎,用于执行业务流程。Process engine for executing business processes.
CN202111675833.4A 2021-12-31 2021-12-31 Business process control method, device, system and related equipment Pending CN114327601A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111675833.4A CN114327601A (en) 2021-12-31 2021-12-31 Business process control method, device, system and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111675833.4A CN114327601A (en) 2021-12-31 2021-12-31 Business process control method, device, system and related equipment

Publications (1)

Publication Number Publication Date
CN114327601A true CN114327601A (en) 2022-04-12

Family

ID=81023449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111675833.4A Pending CN114327601A (en) 2021-12-31 2021-12-31 Business process control method, device, system and related equipment

Country Status (1)

Country Link
CN (1) CN114327601A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114926143A (en) * 2022-05-16 2022-08-19 三峡高科信息技术有限责任公司 Method and platform for configuring enterprise workflow based on business components and process engine
CN115291856A (en) * 2022-07-19 2022-11-04 中电金信软件有限公司 Flow establishing method and device and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105740324A (en) * 2016-01-21 2016-07-06 中科院成都信息技术股份有限公司 Cross-platform and efficient visual workflow engine
WO2017045473A1 (en) * 2015-09-15 2017-03-23 华为技术有限公司 Business process operation method and apparatus
CN107423028A (en) * 2016-05-23 2017-12-01 何铭 A kind of parallel scheduling method of extensive flow
CN108228754A (en) * 2017-12-21 2018-06-29 深圳市融讯科技有限公司 flow generation method and terminal device
CN110851159A (en) * 2019-10-31 2020-02-28 浙江大搜车软件技术有限公司 Business rule updating method and device, computer equipment and storage medium
CN111695827A (en) * 2020-06-17 2020-09-22 北京同邦卓益科技有限公司 Business process management method and device, electronic equipment and storage medium
CN112732370A (en) * 2020-12-31 2021-04-30 中国工商银行股份有限公司 Business process adjusting method and device
CN112732564A (en) * 2020-12-30 2021-04-30 武汉海昌信息技术有限公司 Method and device for realizing process engine of business system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017045473A1 (en) * 2015-09-15 2017-03-23 华为技术有限公司 Business process operation method and apparatus
CN105740324A (en) * 2016-01-21 2016-07-06 中科院成都信息技术股份有限公司 Cross-platform and efficient visual workflow engine
CN107423028A (en) * 2016-05-23 2017-12-01 何铭 A kind of parallel scheduling method of extensive flow
CN108228754A (en) * 2017-12-21 2018-06-29 深圳市融讯科技有限公司 flow generation method and terminal device
CN110851159A (en) * 2019-10-31 2020-02-28 浙江大搜车软件技术有限公司 Business rule updating method and device, computer equipment and storage medium
CN111695827A (en) * 2020-06-17 2020-09-22 北京同邦卓益科技有限公司 Business process management method and device, electronic equipment and storage medium
CN112732564A (en) * 2020-12-30 2021-04-30 武汉海昌信息技术有限公司 Method and device for realizing process engine of business system
CN112732370A (en) * 2020-12-31 2021-04-30 中国工商银行股份有限公司 Business process adjusting method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114926143A (en) * 2022-05-16 2022-08-19 三峡高科信息技术有限责任公司 Method and platform for configuring enterprise workflow based on business components and process engine
CN114926143B (en) * 2022-05-16 2022-11-08 三峡高科信息技术有限责任公司 Method and platform for configuring enterprise workflow based on business components and process engine
CN115291856A (en) * 2022-07-19 2022-11-04 中电金信软件有限公司 Flow establishing method and device and electronic equipment
CN115291856B (en) * 2022-07-19 2023-09-22 中电金信软件有限公司 Flow establishing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US10176440B2 (en) Workflow sharing
US9674292B2 (en) Service bus workflow templates
CN109684057B (en) Task processing method, device and storage medium
US8762187B2 (en) Easy process modeling platform
US8140373B2 (en) Data driven dynamic workflow
US11093242B2 (en) Automatically mapping data while designing process flows
US20200202273A1 (en) Task derivation for workflows
CN110708202B (en) Configuration method, device, equipment and storage medium of plug-in node
WO2018036342A1 (en) Csar-based template design visualization method and device
JP2007515016A (en) Automated workflow service system and method for providing the service
US8495566B2 (en) Widget combos: a widget programming model
CN114327601A (en) Business process control method, device, system and related equipment
US11381449B1 (en) Dynamic application configuration techniques
WO2023093486A1 (en) Method and apparatus for generating project flow, electronic device, and storage medium
KR102397494B1 (en) Low code web development and operating system, and service method using of it
JP4336363B2 (en) Business process execution method, business process execution system, and program
CN112558968B (en) Method, device, equipment and storage medium for generating resource tree view
CN106164854B (en) User interface controls and communications
US9425988B2 (en) Device for communicating in multiple modes using multi-mode applications
CN111061723B (en) Workflow realization method and device
CN116244301A (en) A Service Chain Orchestration Method for Spatial-Temporal Process Mechanism Model Based on Directed Acyclic Graph
CN111124386B (en) Animation event processing method, device, equipment and storage medium based on Unity
CN115617333A (en) Data updating method and device, electronic equipment and storage medium
CN113806327A (en) Database design method and device and related equipment
US20130031116A1 (en) Modeled business object data import

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