Distributed intelligent cooperation method for cooperatively constructing BPMN model

The distributed intelligent collaboration method for BPMN models addresses the challenges of cross-enterprise process design by establishing collaboration groups, performing formal verification, and using AI for optimization, ensuring secure and efficient BPMN model construction.

CN119090465APending Publication Date: 2024-12-06ZHEJIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410933755.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

Existing technologies face challenges in efficiently collaboratively designing business process models across multiple enterprises while ensuring information security and process quality, as they require deep understanding of multi-party business logic, risk information leakage, and operational risks.

Method used

A distributed intelligent collaboration method for BPMN models that involves setting up collaboration groups, performing formal verification, parsing and merging BPMN models, and using artificial intelligence for optimization and legitimacy verification to ensure security and quality.

Benefits of technology

Enables secure and efficient collaboration among multiple enterprises by protecting enterprise processes and ensuring the legitimacy of multi-source constructed BPMN models, simplifying communication and development processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119090465A_ABST
    Figure CN119090465A_ABST
Patent Text Reader

Abstract

The invention discloses a distributed intelligent cooperation method for cooperatively constructing a BPMN model, and the method is characterized in that groups are set for multiple cooperation parties, each cooperation party needs to independently design an exclusive BPMN workflow model, and the exclusive BPMN workflow model mainly comprises a working process of the cooperation party and a process of exchanging information with the outside. And then, integrating and analyzing the dispersed models by the system, and automatically generating a BPMN model suitable for actual production. In the process, double guarantees of work flow verification and artificial intelligence are integrated, so that the legality of the BPMN model is ensured. The method has the core advantages that developers are liberated to a great extent through a unique decoupling strategy, the developers can be seamlessly connected with smart achievements of different teams while concentrating on the workflow of the developers, cross-team communication and cooperation are promoted, automatic model fusion and compliance check are achieved, and the method is suitable for large-scale popularization and application. The fluency and speed of the development process are remarkably improved, and a more efficient solution is provided for collaborative design of the BPMN model.
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 distributed intelligent collaboration method for collaboratively building a BPMN model. Background Art

[0002] With the continuous evolution of Internet technology, collaboration between enterprises has become a core strategy for improving efficiency and expanding product scale, which is crucial for adapting to the dynamic changes in market demand and enhancing competitiveness. There are various cooperation models, among which interoperability based on open RESTful API is particularly prominent. It allows enterprises to interact through standardized interfaces without in-depth insights into the implementation details of each other's business, effectively maintaining the privacy and security boundaries of enterprises. In addition, cross-border business process management (Business Process Management, BPM) as a high-level cooperation form focuses on multiple enterprises jointly designing and executing business processes across organizational boundaries, and has demonstrated rich application scenarios in practice.

[0003] In this context, Business Process Model and Notation (BPMN), as a standardized business process modeling language promoted by the Object Management Group (OMG), provides a unified framework for process description and visualization. Its latest standard BPMN 2.0 has been widely adopted. Enterprises use this standard to jointly develop process models and deepen the synergy effect. The collaborative development of business processes by multiple participants is also a research focus in the field of business process management. At the same time, there are many difficulties in the joint development of business process models by multiple collaborators: the first obstacle is to deeply understand the needs of multi-party business logic, which requires developers not only to be proficient in their own processes, but also to invest a lot of extra energy to master the business processes of partners, resulting in resource dispersion and difficulty in focusing on process innovation; secondly, although the improvement of process transparency promotes cooperation, it also hides the risk of information leakage and threatens enterprise information security; thirdly, process design defects in the collaborative process may imply operational risks and affect the actual operation effect. Therefore, how to efficiently collaboratively design processes while ensuring information security and process quality has become a key issue in current business process management research and practice. Summary of the invention

[0004] In order to solve the problem that the prior art cannot properly apply to multiple collaborators to jointly create collaboration diagrams and cannot guarantee the legitimacy of multi-source constructed collaboration diagrams, the present invention provides a method for multi-source collaborative construction of BPMN for BPMN models. On the basis of facilitating the process development of multiple collaborators, the present invention protects the security of enterprise processes and provides legitimacy protection for the constructed BPMN.

[0005] In order to achieve the above-mentioned purpose of the present invention, the technical scheme adopted is as follows:

[0006] A distributed intelligent collaboration method for collaboratively building a BPMN model includes the following specific steps:

[0007] Step 1: Set up BPMN collaboration model groups for the developers involved in collaboration, and each collaborator communicates and develops their own BPMN collaboration model;

[0008] Step 2: Perform formal verification on the BPMN collaboration model developed by each collaborator. If the data flow is correct, parse the corresponding elements and record the key information and store it in the database. Otherwise, provide an error message prompt to the user.

[0009] Step 3: Compile and parse the BPMN collaboration models scattered within the group one by one, and generate a new BPMN collaboration model based on the dependency relationships between the models;

[0010] Step 4: Perform error detection on the combined BPMN model. After confirming that there are no errors, perform workflow legitimacy verification (including deadlock detection and implementation of information flow dependencies, etc.) and artificial intelligence verification and optimization on the model to ensure that the generated BPMN meets the actual production specifications.

[0011] Furthermore, the collaborators should establish groups at the beginning of the collaboration. Grouping is a process of business process collaboration, which should include the initiator and collaborators of the collaboration. The specific process includes:

[0012] The business process is initiated by the initiator (the initiator is a special collaborator), who selects the process collaborators through Web services and decides the name and purpose of the business project as well as the permissions of the collaborators. Developers within a group can view the BPMN models, documents and corresponding interface information of other developers within the group based on their permissions to clarify the formulation of the process.

[0013] Furthermore, the BPMN model corresponding to the business process of each collaborator involved in the business process formulation contains the following information:

[0014] Model = (Environment, BusinessSet, ContactFlowSet), where Environment does not have a specific business process, but is only an abstract carrier for displaying the interaction between business processes and other processes. The specific form of expression is the swimlane element in BPMN2.0; BusinessSet is one or more specific business processes formulated by the collaborating parties, which are also displayed in the form of swimlanes; ContactFlowSet indicates the interaction information between elements such as Task and Event in BusinessSet and Environment in the form of information flow objects.

[0015] The BPMN models developed by each collaborator should also be parsed and stored separately, mainly including:

[0016] Upload the BPMN model file to the backend service through the network. The backend service will read the BPMN file and convert it into the corresponding backend model BpmnModelInstance (including XML DomDocument, element instance information, etc.), including the verification of the legality of the BPMN model; traverse the ContactFlowSet between BusinessSet and Environment in the model, and record the instance information and ContactFlowSet to the search engine and database.

[0017] Converting BPMN to BpmnModelInstance includes legality verification, which mainly includes the following modules:

[0018] Module 1: XML legality check of BPMN model should ensure the uniformity and legality of XML header information and the consistency of BPMN version number;

[0019] Module 2: Verify the validity of Environment and BusinessSet in BPMN model;

[0020] Module 3: FlowId duplication judgment in ContactFlowSet.

[0021] ContactFlowSet contains four objects: From, To, FlowId and Func, where From is the start of the flow; To is the end of the flow; FlowId serves as an identifier. When merging BPMN models, only ContactFlowSets with the same FlowId can be merged; Func is the explanation information of the information flow, which is used to record the purpose of the information flow.

[0022] Furthermore, it should also include a front-end visualization module, where users use a graphical interface to generate BPMN and view the processes, interfaces and documentation of other collaborative models.

[0023] Furthermore, the conditions for determining whether the collaborative BPMN model is merged include:

[0024] Condition one:

[0025] Condition two:

[0026]

[0027] Condition three:

[0028] Furthermore, the process of merging BPMN models should include calculating the distribution of BPMN models and merging related information flows. The merged BPMN model should be converted into a Petri net and deadlock detection should be performed on it. The deadlocked part should be stored and displayed to the user on the front end.

[0029] According to the specific embodiments provided by the present invention, the beneficial technical effects of the present invention are as follows:

[0030] The present invention divides the collaboratively constructed BPMN model into the BPMN process models of the internal business of multiple collaborators and the interaction model of the environment, so that multiple collaborators can develop the BPMN model for cross-enterprise cooperation in parallel, thereby protecting the security of the collaborators' BPMN models to a certain extent; uses a database and a search engine to record the interactions between BPMN models, so that the BPMN collaboration can form a specification like calling an API; uses special algorithms to perform legality verification and model merging between models, simplifying the communication and development of the collaborative process; and provides security protection for the generated BPMN model through verification technology and artificial intelligence. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0032] Figure 1 It is a flow chart of a distributed intelligent collaboration method and apparatus for collaboratively building a BPMN model;

[0033] Figure 2 It is an overall framework diagram of the distributed intelligent collaboration method and device for collaboratively building a BPMN model;

[0034] Figure 3 It is a BPMN collaboration model template. DETAILED DESCRIPTION

[0035] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. 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.

[0036] Business process management can optimize business operations, improve production efficiency, and ensure the consistency of tasks and workflows within an organization. Inter-enterprise business process cooperation is crucial in the modern business ecosystem, enabling organizations to leverage each other's strengths, resources, and expertise to achieve common goals.

[0037] The purpose of the present invention is to provide a distributed intelligent collaboration method and device for collaboratively building a BPMN model. By dividing business processes, forming document specifications, and merging business processes, the present invention solves problems such as the security of business processes when collaboratively building a BPMN model, the difficulty in maintaining process dependencies, and errors in BPMN model construction.

[0038] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0039] Embodiment 1

[0040] Embodiment 1 of the present invention provides a distributed intelligent collaboration method and device for collaboratively building a BPMN model, such as Figure 1 As shown, the method comprises the following steps:

[0041] Step 1: Set up projects and groups for the process business that requires collaboration. The specific project should include the project name, purpose, collaborators, and the selected workflow engine and version. The group setting should invite the required collaborators and set permissions for the collaborators to ensure the security of process collaboration.

[0042] The permission setting is designed using ABAC (attribute-based access control), which should specifically include permissions to view, operate, version control, and submit and merge other workflows; invited collaborators can view specific project workbenches and information about other collaborators, and collaborators can communicate and collaborate with each other.

[0043] Step 2: Each collaborator develops its own BPMN collaboration model based on its business needs. The front end uses bpmn.js, and the collaborator creates a BPMN model through a graphical interface on the web page. All elements of the business process model are prefixed with the business name to avoid conflicts in process merging.

[0044] The general template of the model is as follows Figure 3As shown, each BPMN model should contain the following information: Model = (Environment, BusinessSet, ContactFlowSet), where Environment does not have a specific business process, but is only an abstract carrier for displaying the interaction between business processes and other processes, and its specific form is the swimlane element in BPMN2.0; BusinessSet is one or more specific business processes formulated by the collaborating parties, which are also displayed in the form of swimlanes; ContactFlowSet indicates the interaction information between elements such as Task and Event in BusinessSet and Environment in the form of information flow objects.

[0045] The BPMN model file is uploaded to the backend service through the network. The backend service selects the appropriate parser according to the version selected by the BPMN process engine to read the BPMN file and convert it into the corresponding backend model BpmnModelInstance (including XML DomDocument, element instance information, and corresponding ContactFlow, etc.), including the verification of the legality of the BPMN model. The conversion of BPMN to BpmnModelInstance includes legality verification, which mainly includes the following modules:

[0046] Module 1: XML legality check of BPMN model should ensure the uniformity and legality of XML header information and the consistency of BPMN version number;

[0047] Module 2: Verify the validity of Environment and BusinessSet in BPMN model;

[0048] Module 3: FlowId duplication judgment in ContactFlowSet.

[0049] ContactFlowSet contains four objects: From, To, FlowId and Func, where From is the start of the flow; To is the end of the flow; FlowId serves as an identifier. When merging BPMN models, only ContactFlowSets with the same FlowId can merge the process; Func is the explanation information of the information flow, which is used to record the purpose of the information flow. The parsed ContactFlowSet stores the above elements in the ElasticSearch storage engine, so that other collaborators can search for information flows when formulating the process.

[0050] After the BpmnModelInstance is successfully verified, its information is physically stored in the database.

[0051] Step 3: If all the business processes of the collaborating parties have been completed, when preparing to initiate a merge request, you need to determine whether the merge requirements are met based on the following three conditions:

[0052] Condition one:

[0053]

[0054] Condition two:

[0055] Condition three:

[0056] If the above requirements are met, a BPMN process merge can be initiated. In this embodiment, the algorithm for process merging is as follows:

[0057]

[0058] First, initialize a structure or environment BPMNPanel for accommodating and processing all BPMN diagrams. For each BPMN model in the BPMN file list transmitted from the front end, enter parsing and conversion: read the BPMN file content, parse its structure, and convert it into a data structure that can be operated within the program.

[0059] Each parsed BPMN information is then added to the BpmnPanel created in the first step to accumulate all process information. Then the initializingEnvironment(bpmnPanel) function is called to prepare the final merged BPMN template, including setting the most basic structure. Then the confirmSize(bpmnPanel) function is used to ensure that the size of the final BPMN model is appropriate and to determine the layout position of each participant to ensure that the merged flowchart is neat and readable. Finally, the handleParticipantAndMessageFlow(bpmnPanel) function is used to handle the information of all participants and their direct message flows, which is the core of the merging process and ensures that the interactions between different processes are correctly expressed.

[0060] After completing the above operations, the merged single BPMN file mergedBpmn is output, its information is recorded, and a corresponding BPMN model that complies with the Bpmn workflow engine is created and stored in the database for subsequent release.

[0061] The initialization step of the merge algorithm involves parsing and encapsulating the BPMN structure into a container called BpmnInfoHolder. In this container, each "Participant" essentially represents an independent business process unit, and its core task is to analyze and determine the distribution characteristics of these units. Subsequently, with the help of "flowId" as a link, the algorithm effectively bridges the various interacting Participants and connects them to each other through information flow. This strategy systematically eliminates the dependence on "Environment", thereby promoting the construction of a more refined and integrated BPMN model.

[0062] In this embodiment, the preprocessing algorithm for each Bpmn model is as follows:

[0063]

[0064]

[0065] The process begins with a deep analysis of the BPMN file, first extracting the core document information entity, and then converting the file into a modelInstance model rich in element details and flow information. This model is carefully encapsulated in a structure called bpmnInfoHolder, which serves as the basis for all subsequent processing. Next, the information flows that interact with the environment are systematically identified and extracted, and these key flow data are efficiently organized into a Map data structure using messageId as an index for fast location and reuse. After that, the Environment part of the BPMN model is removed to focus on the core business logic. On this basis, through careful calculation, not only the information layout distribution of each branch model in the original XML file is revealed, but also the coordinate position of the new element is accurately calculated to ensure the accuracy of the visual presentation. Finally, the algorithm intelligently bridges the BPMN branch models with the help of the previously established messageFlow information Map, and seamlessly integrates them according to the information flow logic. This series of operations eventually condenses into a new BPMN model with optimized structure and coherent logic.

[0066] Step 4: Error detection is performed on the merged BPMN collaboration model, mainly including whether the flow information is satisfied, whether the business is correct, and whether the BPMN model is converted into a Petri net according to the mapping relationship between BPMN elements and Petri net elements, and semantic analysis and deadlock detection of BPMN are performed according to library locks and transitions. Then it is optimized through the interface provided by the artificial intelligence platform. Finally, the BPMN business model is published to the workflow engine according to the workflow engine specified by the current project to launch the entire workflow.

[0067] For published business processes, you can directly use the system front end to view the specific status of the business process execution, and you can view the execution status of part or all of the business process based on the configured permissions.

[0068] Embodiment 2

[0069] In order to execute the method corresponding to the above embodiment 1 to achieve the corresponding functions and technical effects, a distributed intelligent collaboration system for building a BPMN model is provided below, and its system architecture is as follows: Figure 2 shown.

[0070] The system includes:

[0071] The front-end display module uses Bpmn.js with the front-end framework to provide users with a Bpmn operation workbench, displaying Bpmn tools in the form of web pages and allowing users to configure Bpmn models through the web front-end. The front-end integrates the visualization of business processes into the platform display by calling the storage engine interface called by the back-end, thereby avoiding excessive reliance on the visualization of the workflow engine platform and the inflexibility of business processes. The system uses a visual interface to count the success or exception of business process execution and the number of calls.

[0072] The gateway module is used to share the pressure of network requests and realize distributed network requests.

[0073] The core computing module and backend module mainly include BPMN parsing, formal verification and storage of core information. ElasticSearch is used to store the direct interaction information of the BPMN model, and Redis and MySQL are used to solve the storage problem.

[0074] The workflow engine module is responsible for the final operation of workflow management. It is compatible with the current mainstream workflow engines such as Camunda, Activiti and Flowable. According to the version selected by the project, the backend uses different methods to parse and build the BPMN model, as well as call the workflow engine interface, and finally pushes it to the specified workflow engine.

[0075] The artificial intelligence platform module calls the artificial intelligence platform interface to handle the optimization problems of the BPMN model.

[0076] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0077] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A distributed intelligent collaboration method for collaboratively building a BPMN model, characterized by: The specific steps include: Step 1: Set up BPMN collaboration model groups for the developers involved in collaboration, and each collaborator communicates and develops their own BPMN collaboration model; Step 2: Perform formal verification on the BPMN collaboration model developed by each collaborator. If the data flow is correct, parse the corresponding elements and record the key information and store it in the database. Otherwise, provide an error message prompt to the user. Step 3: Compile and parse the scattered BPMN collaboration models in the group one by one, and merge them to generate a new BPMN collaboration model based on the dependency relationship between the models; Step 4: Perform error detection on the merged BPMN model. After confirming that there are no errors, perform workflow legitimacy verification, artificial intelligence verification and optimization on the model to ensure that the generated BPMN meets the actual production specifications.

2. A distributed intelligent collaboration method for collaboratively building a BPMN model according to claim 1, characterized in that: Grouping is a process of business process collaboration, which should include the initiator and collaborator of the collaboration. The specific process includes: The business process is initiated by the initiator, who selects the process collaborators through Web services. The initiator decides the name and purpose of the business project and the permissions of the collaborators. Developers within a group can view the BPMN models, documents and corresponding interface information of other developers in the group based on their permissions to clarify the formulation of the process.

3. The distributed intelligent collaboration method for collaboratively building a BPMN model according to claim 1, characterized in that: The BPMN model corresponding to the business process of each collaborator involved in the formulation of the business process should contain the following information: Model = (Environment, BusinessSet, ContactFlowSet), where Environment does not have a specific business process, but is only an abstract carrier for displaying the interaction between business processes and other processes. The specific form of expression is the swimlane element in BPMN2.0; BusinessSet is one or more specific business processes formulated by the collaborators, which are also displayed in the form of swimlanes; ContactFlowSet indicates the interaction information between elements such as Task and Event in BusinessSet and Environment in the form of information flow objects.

4. The distributed intelligent collaboration method for collaboratively building a BPMN model according to claim 2, characterized in that: The BPMN models developed by each collaborating party should be parsed and stored separately in the group, including: uploading the BPMN model file to the backend service through the network. The backend service will read the BPMN file and convert it into the corresponding backend model BpmnModelInstance, which includes the verification of the legitimacy of the BPMN model; traversing the ContactFlowSet between BusinessSet and Environment in the model, and recording the instance information and ContactFlowSet to the search engine and database.

5. A distributed intelligent collaboration method for collaboratively building a BPMN model according to claim 4, characterized in that: The legality check of converting BPMN model to BpmnModelInstance includes the following modules: Module 1: XML legality check of BPMN model should ensure the uniformity and legality of XML header information and the consistency of BPMN version number; Module 2: Verify the validity of Environment and BusinessSet in BPMN model; Module 3: FlowId duplication judgment in ContactFlowSet.

6. The distributed intelligent collaboration method for collaboratively building a BPMN model according to claim 3, characterized in that: ContactFlowSet contains four objects: From, To, FlowId and Func, where From is the start of the flow; To is the end of the flow; FlowId serves as an identifier, and only ContactFlowSets with the same FlowId can merge flows; Func is the interpretation information of the information flow, which is used to record the purpose of the information flow.

7. The distributed intelligent collaboration method for collaboratively building a BPMN model according to claim 3, characterized in that: The customization and merging of processes include a front-end visualization module, where users use a graphical interface to generate BPMN and view the processes, interfaces, and documentation of other collaborative models.

8. The distributed intelligent collaboration method for collaboratively building a BPMN model according to claim 1, characterized in that: The conditions for determining whether the collaborative BPMN model is merged include: Condition 1: Where FlowId Indicates the FlowId corresponding to ContactFlow; Condition 2: By formula Determine whether all ContactFlowSets of the BPMN collaboration diagram are matched; Condition 3:

9. The distributed intelligent collaboration method for collaboratively building a BPMN model according to claim 1, characterized in that: The process of merging BPMN models in step 3 includes calculating the distribution of BPMN models and merging related information flows.

10. A distributed intelligent collaboration method for collaboratively building a BPMN model according to claim 1, characterized in that: The merged BPMN model is converted into a Petri net and deadlock detection is performed on it. The deadlocked part is stored and displayed to the user on the front end.