A method and system for establishing BPMN process engine adaptation

The BPMN process engine file is constructed through JSON data structure, the JSON structured process designer is used to reduce the design complexity, and the integration of the business system and the BPMN system is simplified through ORM technology, which solves the problems of complex process designers, single file formats and high system coupling in the existing technology, and realizes the simplification of process design and the reduction of system integration.

CN114756273BActive Publication Date: 2025-04-15BEIJING CHINASOFT INT INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111420702.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-26
Publication Date
2025-04-15
Estimated Expiration
2041-11-26

AI Technical Summary

Technical Problem

The existing BPMN process designer has strong professional attributes and many unique nouns, which makes it difficult for non-professional personnel to learn; the BPMN process file is single in form and relies on the process engine processor, which has problems such as high coupling, high expansion difficulty and low business flexibility.

Method used

The process engine file is built through JSON data structure, the JSON structured process designer is used to reduce the design complexity, realize the persistent storage of process objects, and simplify the integration of business systems and BPMN systems based on ORM technology.

Benefits of technology

It reduces the complexity and entry threshold of process design, so that business personnel can focus on business process design; simplifies the integration of business systems and BPMN systems, and reduces integration costs and coupling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114756273B_ABST
    Figure CN114756273B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for establishing BPMN process engine adaptation, the method comprising: obtaining a process engine file defined by JSON structured data in an engine file designer; completing the association of the process engine file defined by JSON structured data and the general process engine file of a process engine processor based on a preset mapping rule through a JSON structured process engine file configurator; a JSON structured process engine file parser, based on the process engine file defined by the associated JSON structured data, generating a process object using a parsing algorithm of a preset rule; and a JSON structured process engine file validator, when the process object meets the preset protocol standard, storing the generated process object in the respective database tables of the process engine processor according to the ORM technology. The present invention removes the high coupling between the process engine processor and the process engine processor through the ORM technology, and improves the adaptability of the process engine.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of workflow technology, and in particular to a method and system for establishing a BPMN process engine adaptation. Background Art

[0002] At present, the Business Process Modeling Notation (BPMN) process designer has strong professional attributes and many special terms that are difficult to understand. Non-professionals or beginners need to spend too much energy to learn and familiarize themselves with these special professional technical points, and cannot focus their main energy on the design of business processes, and thus cannot maximize the performance of the process engine.

[0003] At the same time, the presentation format of BPMN process files is too simple. Currently, most of them are presented and stored in the form of (xml) files. With the complexity and diversification of business application systems, the single file format can no longer meet the requirements of various business application systems. The parsing of BPMN process files (xml) is overly dependent on the process engine processor, resulting in high coupling between the business system and the BPMN process engine, difficulty in expansion in specific business scenarios, and low business flexibility. Summary of the invention

[0004] Therefore, the present invention provides a method and system for establishing a BPMN process engine adaptation, which overcomes the problems in the prior art of low process engine efficiency, single file format, high coupling between the business system and the BPMN process engine, difficulty in expansion in specific business scenarios, and low business flexibility.

[0005] In order to achieve the above object, the present invention provides the following technical solutions:

[0006] In a first aspect, an embodiment of the present invention provides a method for establishing a BPMN process engine adaptation, comprising:

[0007] Get the process engine file defined by JSON structured data in the engine file designer;

[0008] Through the JSON structured process engine file configurator, based on the preset mapping rules, the association between the process engine file defined by the JSON structured data and the general process engine file of the process engine processor is completed;

[0009] Through the JSON structured process engine file parser, based on the process engine file defined by the associated JSON structured data, a process object is generated using a parsing algorithm with preset rules;

[0010] Through the JSON structured process engine file validator, when the process object meets the preset protocol standard, the generated process object is stored in the respective database tables of the process engine processor according to the ORM technology.

[0011] Optionally, it also includes:

[0012] When a process object does not meet the preset protocol standard, an error message and / or prompt message is generated for the element of the process object that does not meet the preset protocol standard.

[0013] Optionally, obtain the process engine file defined by the JSON structured data in the engine file designer, including:

[0014] The engine file designer interprets JSON structured process data through a preset template engine and generates a process engine file that meets the preset parsing requirements.

[0015] Optionally, the preset mapping rules include:

[0016] The metadata in the process engine file defined by the JSON structured data and / or the mapping rules of specific elements in the process processor are parsed through the JSON structured process engine file configurator.

[0017] Optionally, specific elements include: start element, service element, and sequence element.

[0018] Optionally, the parsing algorithm of the preset rule corresponds to the preset mapping rule.

[0019] Optionally, the preset protocol standard is the BPMN2.0 protocol standard.

[0020] In a second aspect, an embodiment of the present invention provides a system for establishing a BPMN process engine adaptation, including:

[0021] JSON process design module, used to obtain the process engine file defined by JSON structured data in the engine file designer;

[0022] JSON process file configuration module, used for JSON structured process engine file configurator, completes the association between the process engine file defined by JSON structured data and the general process engine file of the process engine processor through preset mapping rules;

[0023] The JSON process file parsing module is used to generate a process object by using a parsing algorithm with preset rules based on the process engine file defined by the associated JSON structured data through a JSON structured process engine file parser;

[0024] The JSON process file validation module is used to use the JSON structured process engine file validator. When the process object meets the preset protocol standard, the generated process object is stored in the respective database tables of the process engine processor according to the ORM technology.

[0025] In a third aspect, an embodiment of the present invention provides a terminal, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor executes the method for establishing the BPMN process engine adaptation described in the first aspect of the embodiment of the present invention.

[0026] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method for establishing the BPMN process engine adaptation described in the first aspect of the embodiment of the present invention.

[0027] The technical solution of the present invention has the following advantages:

[0028] The method and system for establishing BPMN process engine adaptation provided by the present invention construct respective data element attributes and extended attributes in JSON data structure to generate process engine files that meet preset parsing requirements. Through the JOSNized process designer, the complexity and entry threshold of process design are reduced, so that everyone can become a business process designer, allowing business personnel to focus more on their actual business processes.

[0029] 2. The method and system for establishing the BPMN process engine adaptation provided by the present invention dynamically parse the defined rules through the JSON structured process engine file parser, generate BPMN model objects according to the BPMN2.0 protocol specification, and directly persist the process objects based on ORM technology, thereby reducing the complexity and high coupling of the business system docking with the BPMN system, simplifying and making it compatible with the mainstream BPMN system, and reducing the integration cost between the business system and the BPMN system.

[0030] 3. The present invention provides a method for establishing a BPMN process engine adapter. The JSON process file rule configurator solidifies the process elements according to the BPMN2.0 protocol specification, and establishes the corresponding relationship between the attributes of each node in the JSON engine file through a visual configuration interface. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0032] Figure 1 A flowchart of a specific example of a method for establishing a BPMN process engine adaptation provided by an embodiment of the present invention;

[0033] Figure 2 A schematic diagram of a specific example of a JSON process designer overall architecture for a method for establishing a BPMN process engine adaptation provided by an embodiment of the present invention;

[0034] Figure 3 A schematic diagram of a specific example of a root node data structure of a method for establishing a BPMN process engine adaptation provided by an embodiment of the present invention;

[0035] Figure 4 A schematic diagram of a specific example of a leaf node process data structure of a BPMN process engine adaptation establishment method provided in an embodiment of the present invention;

[0036] Figure 5 A schematic diagram of a specific example of a custom node data structure of a method for establishing a BPMN process engine adaptation provided by an embodiment of the present invention;

[0037] FIG6 is a business flow chart of a process designer designing a BPMN process engine adaptation establishment method provided by an embodiment of the present invention;

[0038] Figure 7 A module composition diagram of a BPMN process engine adaptation establishment system provided in an embodiment of the present invention;

[0039] Figure 8 A composition diagram of a specific example of a terminal provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0040] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0042] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, it can also be the internal connection of two components, it can be a wireless connection, or it can be a wired connection. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0043] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other. Example

[0044] The embodiment of the present invention provides a method for establishing a BPMN process engine adaptation, such as Figure 1 As shown, the following steps are included:

[0045] Step S1: Obtain the process engine file defined by JSON structured data in the engine file designer.

[0046] In the embodiment of the present invention, the engine file designer interprets the JSON structured process data through a preset template engine to generate a process engine file that meets the preset parsing requirements. This is only an example and is not limited to this. In actual applications, the corresponding template engine and parsing requirements are selected according to actual needs.

[0047] In the embodiment of the present invention, the JSON process engine file structure uses the JSON data structure to construct respective data element attributes and extended attributes to generate a process engine file of the JSON structure.

[0048] In an embodiment of the present invention, the JSON structured process engine file designer is essentially different from the traditional BPMN.js process designer. The engine file designer uses a template engine to interpret process data in a JSON structure, and can quickly generate engine files that meet parsing requirements. The JSON structured process engine file designer does not have any difficult-to-understand technical terms, and completely defines the various nodes and node attributes of the business process diagram based on its own business scenarios, such as financial approval business, personnel performance business, etc. At the same time, custom plug-ins for specific scenarios can be customized to meet different business scenarios, allowing business personnel to focus more on the business itself.

[0049] In a specific embodiment, the designer is mainly used to quickly build a process design tool in JSON format. It uses the H5 drawing board technology to drag and drop, does not rely on backend service support, and can be run independently or quickly integrated into an existing business system as a plug-in file. Based on the design ideas of componentization, plug-inization and templateization, built-in commonly used business components and plug-ins can quickly adapt to common business scenarios and achieve the goal of out-of-the-box use.

[0050] In a specific embodiment, the overall architecture of the JSON process designer is as follows: Figure 2 As shown, the business process is designed with the help of the JSON process designer, and finally displayed and used with specific JSON structured data.

[0051] Among them, the JSON data structure is divided into three parts: the root node data structure, such as Figure 3 As shown, as the starting node of the entire process, it contains the basic information of the process data: unique identification, name, description, grouping, and custom expansion tree. This is only an example and is not limited to this. In actual applications, the basic information of the response is selected according to actual needs.

[0052] Leaf node process data structure, such as Figure 4 As shown in the figure, the business logic of the entire process, form attributes, branch nodes, and the relationship between parent and child nodes are described. Each leaf node has its own node type, unique identifier, name, parent node identifier, and next node identifier.

[0053] Custom node data structure, such as Figure 5 As shown, it is used to enhance the scalability of the business process structure and adapt to various business scenarios.

[0054] Step S2: Through the JSON structured process engine file configurator, based on the preset mapping rules, the association between the process engine file defined by the JSON structured data and the general process engine file of the process engine processor is completed.

[0055] In the embodiment of the present invention, the JSON structured process engine file configurator is a bridge between the process engine file defined by the JSON structured data and the general process engine file of the process engine processor. The configurator parses the mapping rules of the metadata in the JSON structured process file and the specific elements such as the start element, service element, and sequence element in the process processor, and associates the JSON structured process engine file with the general process engine file that the process processor can parse.

[0056] In the embodiment of the present invention, the preset mapping rules include: parsing the metadata in the process engine file defined by the JSON structured data through the JSON structured process engine file configurator, and / or the mapping rules of specific elements in the process processor. The specific elements include: start elements, service elements, and sequence elements, which are only examples and are not limited to this. In actual applications, the corresponding specific elements are selected according to actual needs.

[0057] In an embodiment of the present invention, a JSON process file rule configurator solidifies process elements according to the BPMN2.0 protocol specification, and establishes a corresponding relationship between attributes of each node in a JSON engine file through a visual configuration interface.

[0058] In the embodiment of the present invention, Figure 6 As shown, the business process diagram is designed through the process designer, and specific structured data is generated in the form of JSON structure data. The JSON structured data is mapped to the process elements of the BPMN protocol standard through the visual configuration interface to achieve matching with the process engine processor.

[0059] Step S3: Generate a process object by using a JSON structured process engine file parser based on the process engine file defined by the associated JSON structured data and a parsing algorithm with preset rules.

[0060] In an embodiment of the present invention, the parsing algorithm of the preset rule corresponds to the preset mapping rule. For example, when the preset protocol standard is the BPMN2.0 protocol standard, the JSON structured data is mapped into the process elements of the BPMN2.0 protocol standard by the configurator, and the file parser gradually generates flow object data (FlowObjects), connection object data (Connecting Objects), gateway object data (Gateway Objects) and data objects (Data Objects) according to the configuration rules.

[0061] In an embodiment of the present invention, the rule parser dynamically parses the defined rules, creates a process engine processor that can recognize the parsed event objects, task objects and sequence flow objects, and generates BPMN model objects in accordance with the BPMN2.0 protocol specification, relying on ORM technology to directly persist the element objects involved in the business process diagram.

[0062] Step S4: Through the JSON structured process engine file validator, when the process object meets the preset protocol standard, the generated process object is stored in the respective database tables of the process engine processor according to the ORM technology.

[0063] In the embodiment of the present invention, each generated process object is verified according to the standard BPMN2.0 protocol elements, and error information and prompt information are given for objects and attributes that do not meet the protocol standards. The form of the error information and prompt information is not limited here, and they are obtained accordingly according to actual needs. After verification, the generated process object data is directly persisted to the database table of each process engine processor based on ORM technology.

[0064] In an embodiment of the present invention, a JSON structured process engine file validator is used. The main purpose of the validator is to check whether the process engine object generated by the JSON engine file meets the BPMN2.0 protocol standard, and to provide prompts and modification plans for object elements that do not meet the standard, so as to facilitate the adjustment of mapping rules.

[0065] The method for establishing the BPMN process engine adaptation provided in the embodiment of the present invention, wherein the present application reduces the complexity and entry threshold of process design through the JOSNized process designer, so that everyone can become a business process designer, allowing business personnel to focus more on their actual business processes. The complexity and high coupling of the business system docking with the BPMN system are reduced through the rule matcher, process parser and process object persistence, and the integration cost between the business system and the BPMN system is reduced. Example

[0066] The embodiment of the present invention provides a system for establishing a BPMN process engine adaptation, such as Figure 7 As shown, including:

[0067] The JSON process design module 1 is used to obtain the process engine file defined by the JSON structured data in the engine file designer; this module executes the method described in step S1 in Example 1, which will not be repeated here.

[0068] JSON process file configuration module 2 is used for JSON structured process engine file configurator, which completes the association between the process engine file defined by JSON structured data and the general process engine file of the process engine processor through preset mapping rules; this module executes the method described in step S2 in Example 1, which will not be repeated here.

[0069] The JSON process file parsing module 3 is used to generate a process object through a JSON structured process engine file parser based on the process engine file defined by the associated JSON structured data, using a parsing algorithm with preset rules; this module executes the method described in step S3 of Example 1, which will not be repeated here.

[0070] The JSON process file verification module 4 is used to use the JSON structured process engine file validator. When the process object meets the preset protocol standard, the generated process object is stored in the respective database tables of the process engine processor according to the ORM technology; this module executes the method described in step S4 in Example 1, which will not be repeated here.

[0071] The embodiment of the present invention provides a system for establishing a BPMN process engine adaptation. The JSON structured data constructs the BPMN process engine adaptation system. Through the JOSNized process designer, the complexity and entry threshold of process design are reduced, so that everyone can become a business process designer, allowing business personnel to focus more on their actual business processes. Through the configurator, parser and validator, the process object is made persistent, which reduces the complexity and high coupling of the business system docking with the BPMN system. The mainstream BPMN system is simplified and compatible, reducing the integration cost between the business system and the BPMN system. Example

[0072] An embodiment of the present invention provides a terminal, such as Figure 8As shown, it includes: at least one processor 401, such as a CPU (Central Processing Unit), at least one communication interface 403, a memory 404, and at least one communication bus 402. Among them, the communication bus 402 is used to realize the connection and communication between these components. Among them, the communication interface 403 may include a display screen (Display), a keyboard (Keyboard), and the optional communication interface 403 may also include a standard wired interface and a wireless interface. The memory 404 may be a high-speed RAM memory (Random Access Memory, volatile random access memory) or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 404 may also be at least one storage device located away from the aforementioned processor 401. Among them, the processor 401 can execute the BPMN process engine adaptation establishment method in Example 1. A set of program codes are stored in the memory 404, and the processor 401 calls the program code stored in the memory 404 to execute the BPMN process engine adaptation establishment method in Example 1. The communication bus 402 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The communication bus 402 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one line is used to represent it, but it does not mean that there is only one bus or one type of bus. Among them, the memory 404 may include a volatile memory (English: volatile memory), such as a random access memory (English: random-access memory, abbreviated: RAM); the memory may also include a non-volatile memory (English: non-volatile memory), such as a flash memory (English: flash memory), a hard disk drive (English: hard disk drive, abbreviated: HDD) or a solid-state drive (English: solid-state drive, abbreviated: SSD); the memory 404 may also include a combination of the above types of memory. Among them, the processor 401 may be a central processing unit (English: central processing unit, abbreviated: CPU), a network processor (English: network processor, abbreviated: NP) or a combination of CPU and NP.

[0073] Among them, the memory 404 may include a volatile memory (English: volatile memory), such as a random access memory (English: random-access memory, abbreviated: RAM); the memory may also include a non-volatile memory (English: non-volatile memory), such as a flash memory (English: flash memory), a hard disk drive (English: hard disk drive, abbreviated: HDD) or a solid-state drive (English: solid-state drive, abbreviated: SSD); the memory 404 may also include a combination of the above types of memory.

[0074] The processor 401 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and a NP.

[0075] The processor 401 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0076] Optionally, the memory 404 is also used to store program instructions. The processor 401 can call the program instructions to implement the method for establishing the BPMN process engine adaptation in the implementation example 1 of the present application.

[0077] The embodiment of the present invention further provides a computer-readable storage medium, on which computer-executable instructions are stored, and the computer-executable instructions can execute the method for establishing the BPMN process engine adaptation in Embodiment 1. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.

[0078] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from these are still within the scope of protection of the invention.

Claims

1. A method for establishing a BPMN process engine adaptation, characterized in that: include: Get the process engine file defined by JSON structured data in the engine file designer; The engine file designer uses a preset template engine to interpret JSON structured process data and generate a process engine file that meets the preset parsing requirements; Through the JSON structured process engine file configurator, based on the preset mapping rules, the association between the process engine file defined by the JSON structured data and the general process engine file of the process engine processor is completed; The preset mapping rules include: parsing the metadata in the process engine file defined by the JSON structured data through the JSON structured process engine file configurator, and / or the mapping rules of specific elements in the process processor; specific elements include: start elements, service elements, and sequence elements; solidifying the process elements according to the BPMN2.0 protocol specification through the JSON process file rule configurator, and establishing the corresponding relationship between the attributes of each node in the JSON engine file through the visual configuration interface; mapping the JSON structured data to the process elements of the BPMN protocol standard through the visual configuration interface to achieve matching with the process engine processor; Through the JSON structured process engine file parser, based on the process engine file defined by the associated JSON structured data, the process object is generated using the parsing algorithm with preset rules; the file parser gradually generates flow object data, connection object data, gateway object data and data objects according to the configuration rules; Through the JSON structured process engine file validator, when the process object meets the preset protocol standard, the generated process object is stored in the respective database tables of the process engine processor according to the ORM technology.

2. The method for establishing a BPMN process engine adaptation according to claim 1, characterized in that: Also includes: When a process object does not meet the preset protocol standard, an error message and / or prompt message is generated for the element of the process object that does not meet the preset protocol standard.

3. The method for establishing a BPMN process engine adaptation according to claim 1, characterized in that: The parsing algorithm of the preset rule corresponds to the preset mapping rule.

4. The method for establishing a BPMN process engine adaptation according to claim 1, characterized in that: The preset protocol standard is the BPMN2.0 protocol standard.

5. A system for establishing a BPMN process engine adaptation, characterized in that: include: JSON process design module, used to obtain the process engine file defined by JSON structured data in the engine file designer; JSON process file configuration module, used for JSON structured process engine file configurator, completes the association between the process engine file defined by JSON structured data and the general process engine file of the process engine processor through preset mapping rules; The JSON process file parsing module is used to generate a process object by using a parsing algorithm with preset rules based on the process engine file defined by the associated JSON structured data through a JSON structured process engine file parser; The JSON process file validation module is used to use the JSON structured process engine file validator. When the process object meets the preset protocol standard, the generated process object is stored in the respective database tables of the process engine processor according to the ORM technology.

6. A terminal, characterized in that: include: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor executes the method for establishing a BPMN process engine adapter as described in any one of claims 1-4.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method for establishing the BPMN process engine adaptation according to any one of claims 1-4.

Citation Information

Patent Citations

  • Establishment method and system supporting adaptation of workflow client and workflow engine

    CN112101895A