A business process construction method, system, electronic device and storage medium

By defining and generating process models, storing them in configuration tables and encapsulating business logic codes, and building business process instances using formal parameter parsing modules, the problems of complex business process customization and poor cross-system adaptability are solved, achieving rapid construction and efficient response.

CN120610689BActive Publication Date: 2025-10-03SUNWARD INTELLIGENT EQUIP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511123136.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-08-12
Publication Date
2025-10-03
Estimated Expiration
2045-08-12

AI Technical Summary

Technical Problem

The business processes in existing technologies are highly customized, complex to modify, have long R&D cycles, and poor cross-system adaptability, making it difficult to quickly respond to market changes and business needs.

Method used

A business process construction method is provided, which includes defining a business process instance, generating a process model, publishing it to a business process engine, storing it in a configuration table, encapsulating business logic code, using a parameter parsing module to query a data set and store it in a target object, and constructing a business process instance.

Benefits of technology

It enables rapid construction of business process instances, improves response speed and flexibility, reduces maintenance costs, shortens R&D and testing time, and improves development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120610689B_ABST
    Figure CN120610689B_ABST
Patent Text Reader

Abstract

The present application discloses a method, system, electronic device and storage medium for constructing a business process, and the technical field to which it belongs is software development technology. The method for constructing a business process includes: defining a business process instance and generating a process model corresponding to the business process instance; publishing the process model to a business process engine so that the process definition information in the process model is stored in a business flow template configuration table; storing the definition information of the business process instance in the business flow template configuration table; encapsulating the business logic code of the business process instance and transmitting the encapsulated code to a parameter parsing module; using the parameter parsing module to query the business flow template configuration table based on the process type attribute column to obtain a data set; storing the business-related field values ​​in the data set to a target object, and using the target object to construct a business process instance. The present application can improve the efficiency of constructing business process instances.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of software development technology, and in particular to a method, system, electronic device and storage medium for constructing a business process. Background Art

[0002] Scenarios involving multiple processes and approval steps in business systems such as IoT planning and automated office work require the development of corresponding business processes within these systems. Currently, these processes are highly customized, complex to modify, and have long development cycles. They are also targeted at single business scenarios, lack cross-system compatibility, and struggle to quickly respond to market changes and business needs.

[0003] Therefore, how to improve the efficiency of building business process instances is a technical problem that those skilled in the art currently need to solve. Summary of the Invention

[0004] The purpose of this application is to provide a business process construction method, system, electronic device and storage medium, which can improve the construction efficiency of business process instances.

[0005] To solve the above technical problems, this application provides a method for constructing a business process, including:

[0006] Define a business process instance and generate a process model corresponding to the business process instance;

[0007] Publishing the process model to a business process engine so as to store the process definition information in the process model into a business flow template configuration table;

[0008] Storing the definition information of the business process instance in the business flow template configuration table;

[0009] Encapsulate the business logic code of the business process instance and transmit the encapsulated code to the parameter parsing module;

[0010] Utilizing the parameter parsing module to query the business flow template configuration table based on the process type attribute column to obtain a data set;

[0011] The business-related field values ​​in the data set are stored in a target object, and the target object is used to construct the business process instance.

[0012] Optionally, defining a business process instance includes:

[0013] Receive a process creation instruction input by a user, and generate process classification information and process basic information according to the process creation instruction;

[0014] Defining the business process instance using the process classification information and the process basic information;

[0015] Among them, the process classification information includes any one or a combination of any one of the classification name, classification status, classification flag and classification sort; the process basic information includes any one or a combination of any one of the process name, identifier, process classification, process version and process description information.

[0016] Optionally, generating a process model corresponding to the business process instance includes:

[0017] Generate model information, process structure information, and process logic information based on user input; wherein the model information includes a process model identifier, a process model name, and a process model description; the process structure information is used to describe the number and type of process nodes; and the process logic information is used to describe the flow path and task allocation rules between process nodes;

[0018] The process model corresponding to the business process instance is generated based on the model information, the process structure information and the process logic information.

[0019] Optionally, before storing the definition information of the business process instance in the business flow template configuration table, the method further includes:

[0020] Creating the business flow template configuration table in a relational database and defining the table structure of the business flow template configuration table;

[0021] The fields of the business flow template configuration table include any one or a combination of any several of the following: primary key identifier, process type, entity class field name, sorting, parsing type, value obtaining method and status value.

[0022] Optionally, the parameter parsing module is used to query the business flow template configuration table based on the process type attribute column to obtain a data set, including:

[0023] Utilizing the parameter parsing module to query the business flow template configuration table based on the process type attribute column to obtain a first data set;

[0024] The parameter parsing module is used to query the business flow template configuration table based on the process type attribute column and the parsing type attribute column to obtain a second data set.

[0025] Optionally, the target object includes a process variable object and a reviewer mapping object;

[0026] Accordingly, storing the business-related field values ​​in the data set into the target object includes:

[0027] Traverse the first data set to obtain the parsing type and value method of each field;

[0028] If the parsing type is the first type, performing a corresponding business-related field value storage operation according to the value obtaining method;

[0029] If the parsing type is the second type, storing the file list in the first data set into the process variable object;

[0030] If the parsing type is the third type, storing the process identifier in the first data set into the process variable object;

[0031] If the parsing type is the fourth type, the values ​​of the multiple approver candidate lists in the first data set are stored in the reviewer mapping object.

[0032] Optionally, constructing the business process instance using the target object includes:

[0033] Writing the mapping information in the reviewer mapping object into the process instance creation request object;

[0034] Storing the interval rule field value in the second data set into the process variable object;

[0035] Create a request object and a process variable object based on the process instance, and call the process engine interface to build the business process instance.

[0036] This application also provides a business process construction system, which includes:

[0037] A model generation module is used to define a business process instance and generate a process model corresponding to the business process instance;

[0038] A model publishing module, configured to publish the process model to a business process engine so as to store the process definition information in the process model into a business flow template configuration table;

[0039] An information storage module, configured to store the definition information of the business process instance into the business flow template configuration table;

[0040] The encapsulation module is used to encapsulate the business logic code of the business process instance and transmit the encapsulated code to the parameter parsing module;

[0041] A data set construction module, configured to use the parameter parsing module to query the business flow template configuration table based on the process type attribute column to obtain a data set;

[0042] The instance creation module is used to store the business-related field values ​​in the data set into the target object and construct the business process instance using the target object.

[0043] The present application also provides a storage medium on which a computer program is stored. When the computer program is executed, the steps of the method for constructing the above-mentioned business process are implemented.

[0044] The present application also provides an electronic device including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of executing the above-mentioned business process construction method when calling the computer program in the memory.

[0045] The present application provides a method for constructing a business process, which defines a business process instance and generates a corresponding process model, publishes the process model to a business process engine, and then stores the process definition information in a business flow template configuration table, so as to provide necessary metadata for the creation and management of business process instances. The present application encapsulates the business logic code of the business process instance, and transfers the encapsulated code to a parameter parsing module, and uses the parameter parsing module to query the business flow template configuration table based on the process type attribute column to obtain a data set, so as to provide necessary data support for the construction of the process instance. The present application also stores the business-related field values ​​in the data set to a target object, and uses the target object to construct a business process instance. The above process realizes the rapid construction of business process instances, improves the response speed and flexibility of business processes, and thus improves the construction efficiency of business process instances. The present application also provides a business process construction system, a storage medium and an electronic device, which have the above-mentioned beneficial effects and are not repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0047] Figure 1 A flowchart of a method for constructing a business process provided in an embodiment of the present application;

[0048] Figure 2 A flowchart of a low-code business flow construction method provided in an embodiment of the present application;

[0049] Figure 3 A schematic diagram of multi-strategy parameter analysis provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0051] See below Figure 1 , Figure 1 This is a flowchart of a method for constructing a business process provided in an embodiment of the present application, and the specific steps may include the following steps.

[0052] S101: Define a business process instance and generate a process model corresponding to the business process instance.

[0053] The present embodiment can be applied to electronic devices with data processing capabilities. The business process construction method described in the present embodiment can be implemented based on the Yudao open source framework and is applicable to scenarios requiring efficient process customization, such as logistics networks.

[0054] The process of defining a business process instance includes: receiving a process creation instruction input by a user, generating process classification information and basic process information based on the process creation instruction; and defining the business process instance using the process classification information and basic process information. The process classification information includes any one or a combination of the following: category name, category status, category flag, and category order; and the basic process information includes any one or a combination of the following: process name, identifier, process category, process version, and process description information.

[0055] After defining a business process instance, this embodiment can generate a process model corresponding to the business process instance, that is, a flow chart containing nodes, flow rules, and paths designed according to business requirements. This process model defines the key nodes of the process and provides a basic framework for automated process execution.

[0056] Specifically, the process of generating a process model corresponding to a business process instance includes: generating model information, process structure information, and process logic information based on user input; and generating the process model corresponding to the business process instance based on the model information, process structure information, and process logic information. The model information includes a process model identifier, a process model name, and process model description information. The process structure information is used to describe the number and type of process nodes, and the process logic information is used to describe the flow path and task allocation rules between process nodes.

[0057] S102: publishing the process model to a business process engine so as to store the process definition information in the process model into a business flow template configuration table;

[0058] This step publishes the generated process model to the business process engine, allowing the process definition information (including process nodes, flow rules, etc.) to be loaded into the engine and made executable. After publishing the process model to the business process engine, the process definition information is stored in the business flow template configuration table (also known as the business flow template configuration table). As part of the database, the business flow template configuration table stores process metadata to facilitate the creation, management, and tracking of subsequent process instances. This process ensures that the process can be recognized and executed by the system, while also facilitating process version control and historical query.

[0059] S103: Encapsulating the business logic code of the business process instance and transmitting the encapsulated code to a parameter parsing module;

[0060] Among them, the business logic code input by the user can be obtained before this step. This embodiment can encapsulate the business logic code and transmit the encapsulated code to the parameter parsing module. The parameter parsing module is used to parse and execute these encapsulated codes in response to specific events or conditions in the process. In this way, the business logic can be separated from the process control logic, which improves the maintainability of the code and the flexibility of the process. In addition, encapsulation ensures the security and independence of the business logic, facilitates management and updating, and enables the process instance to dynamically adapt to changes in business needs.

[0061] S104: Utilizing the parameter parsing module to query the business flow template configuration table based on the process type attribute column to obtain a data set;

[0062] The encapsulated code provides the parameter parsing module with the business logic required to execute the process. Based on the instructions or conditions in the encapsulated code, the parameter parsing module can query the process type attribute column in the business flow template configuration table and use the query results as the dataset. This allows the process instance to access the correct configuration data and execute correctly according to the established business rules and process logic.

[0063] S105: Store the business-related field values ​​in the data set into a target object, and use the target object to construct the business process instance.

[0064] This embodiment stores the business-related field values ​​in the dataset into a target object, extracting data directly related to the business process from the query results and organizing it into a structured target object. This target object contains the information required for the process instance, so a business process instance can be constructed using the target object. After obtaining the business process instance, it can be passed as input to the process engine to start and execute the process. This process ensures that the process instance accurately reflects business needs, simplifies the creation and management of process instances, and improves the automation and flexibility of business processes.

[0065] This embodiment defines a business process instance and generates a corresponding process model, publishes the process model to the business process engine, and then stores the process definition information in the business flow template configuration table, so as to provide necessary metadata for the creation and management of the business process instance. This embodiment encapsulates the business logic code of the business process instance, and transfers the encapsulated code to the parameter parsing module, and uses the parameter parsing module to query the business flow template configuration table based on the process type attribute column to obtain a data set, so as to provide necessary data support for the construction of the process instance. This embodiment also stores the business-related field values ​​in the data set to the target object, and uses the target object to construct the business process instance. The above process realizes the rapid construction of the business process instance, improves the response speed and flexibility of the business process, and thus improves the construction efficiency of the business process instance.

[0066] As for Figure 1 Further introduction to the corresponding embodiment: before storing the definition information of the business process instance in the business flow template configuration table, the business flow template configuration table can also be created in a relational database, and the table structure of the business flow template configuration table can be defined; wherein, the fields of the business flow template configuration table include any one or a combination of any several of the primary key identifier, process type, entity class field name, sorting, parsing type, value acquisition method and status value.

[0067] The above-mentioned relational database can be an open source relational database management system MySQL, an open source object-relational database PostgreSQL, etc.

[0068] As for Figure 1 Further introduction to the corresponding embodiment, the process of using the formal parameter parsing module to query the business flow template configuration table based on the process type attribute column to obtain a data set includes: using the formal parameter parsing module to query the business flow template configuration table based on the process type attribute column to obtain a first data set; using the formal parameter parsing module to query the business flow template configuration table based on the process type attribute column and the parsing type attribute column to obtain a second data set.

[0069] The process type attribute column is used to identify the category or type of the process, and the resolution type attribute column is used to specify how to handle specific fields or tasks in the process.

[0070] Furthermore, the target objects may include process variable objects and reviewer mapping objects;

[0071] Accordingly, this embodiment can store the business-related field values ​​in the first data set and the second data set to the target object in the following manner: traverse the first data set to obtain the parsing type and value-taking method of each field. The parsing type generally refers to the role or processing method of the field in the business process, while the value-taking method defines the data format or source of the field value. If the parsing type is the first type, the corresponding business-related field value storage operation is performed according to the value-taking method; if the parsing type is the second type, the file list in the first data set is stored in the process variable object; if the parsing type is the third type, the process identifier in the first data set is stored in the process variable object; if the parsing type is the fourth type, the values ​​of the multiple approver candidate lists in the first data set are stored in the reviewer mapping object.

[0072] Furthermore, after storing the information in the first dataset into the process variable object and the reviewer mapping object, the business process instance can be constructed by: writing the mapping information in the reviewer mapping object into a process instance creation request object; storing the interval rule field value in the second dataset into the process variable object; and, based on the process instance creation request object and process variable object, calling the process engine interface to construct the business process instance. The process instance creation request object is a data object that encapsulates all parameters and configuration information required to create a process instance; the process variable object is used to store variable data that needs to be used or modified during process execution.

[0073] After a business process is established, if users encounter problems during use, they must provide feedback to staff before adjustments can be made. This process is lengthy and the feedback cycle is slow, which can lead to inefficiencies and reduced user satisfaction. To address this issue, this embodiment provides a solution as follows: User behavior data within the business process is collected. Based on this behavior data, normal user behavior (such as approval, modification, and pause) and abnormal user behavior (such as repeated submissions, incorrect operations, and process interruptions) within the process are identified. Process nodes associated with abnormal behavior are marked as nodes to be modified. User interaction data at these nodes is analyzed to identify the causes of the abnormal behavior, and the business process is adjusted accordingly.

[0074] The process described in the above embodiment is explained below through an embodiment in actual application.

[0075] In traditional IoT systems, business processes are highly customized, resulting in complex modifications and long development cycles, typically requiring 30 to 35 working days. Most mainstream approaches currently available are only applicable to single business scenarios, lack cross-system adaptability, and result in system migration costs exceeding 40%. Furthermore, these systems are overly dependent on front-end and back-end R&D personnel, leading to high maintenance costs, with labor costs accounting for as much as 65%.

[0076] To address the technical issues inherent in the aforementioned related technologies, this embodiment provides a method for intelligently constructing low-code business processes. This method can provide efficient and convenient business process customization solutions for scenarios involving multiple processes and approval links within business systems. This solution is implemented through a configuration-based approach, reducing maintenance costs, significantly lowering development difficulty and R&D costs, and accelerating project implementation.

[0077] This embodiment provides a hybrid form architecture, integrating the process control capabilities of process forms with the data linkage features of business forms, enabling short-term process rollouts. This embodiment supports multiple parsing types (e.g., direct access, transcoding, file, and approver), adapting to over 85% of business scenarios and enabling multi-policy parameter parsing. This embodiment's extensible event mechanism provides multiple standard event interfaces, enabling seamless integration with third-party systems.

[0078] Furthermore, the automation and standardization of business flows (i.e., business processes) not only improves the traceability and controllability of the processes but also enhances the team's ability to manage and oversee each project link. However, in actual applications, traditional business flows suffer from cumbersome R&D processes, large code changes, and excessive reliance on front-end developers for maintenance and testing, making it difficult to quickly build new business flows. Therefore, this embodiment, through improved methods, enables the rapid development of business processes, significantly saving R&D and testing personnel time and improving development efficiency. Furthermore, this embodiment offers the advantages of convenience, strong encapsulation, and good integrity.

[0079] This embodiment proposes an improved low-code business flow construction solution based on the Yudao open source framework. This solution combines the advantages and disadvantages of process forms and business forms, and improves a set of methods for quickly building business flows based on actual business needs. The method set described includes several data items, as well as data attributes, data types, and code value meanings.

[0080] This solution is based on the business flow configuration module, data storage module, method embedding and calling module. Figure 2 , Figure 2A flowchart of a low-code business flow construction method provided by an embodiment of the present application. In the business configuration module, the administrator defines the process for the process model, and after the process model is published (deployed), the process definition is performed to create a process instance. In the data storage module, this embodiment can store the configuration of the process instance to the server, and load balancing can be performed between servers. After the process instance is called to the Internet of Things system platform, SMS notification can be sent.

[0081] The business configuration module can achieve deep process control, approval automation, rapid construction, data linkage, multi-scenario applicability, low-code development, etc. through business configuration.

[0082] This embodiment, based on the advantages and disadvantages of process forms and business forms in the Yudao open source architecture, uses a visual process designer that supports the BPMN (Business Process Modeling Notation) 2.0 standard and includes five basic nodes: start, user task, gateway, service task, and end. On this basis, a basic table for business flow template configuration (i.e., business flow template configuration table) is introduced. This configuration combines the deep process control, approval automation, and data linkage features of process forms with business forms, achieving advantages such as low-code configuration, visual management, and easy scalability. In addition, this embodiment also supports interaction with hardware such as mobile phones to ensure that process links can notify relevant personnel in a timely manner. Therefore, this embodiment is suitable for various software environments that require the addition of business processes.

[0083] Defining a business process is a visual process management process based on the Flowable (a lightweight open source business process engine) workflow engine, which mainly involves the following steps A1, A2 and A3.

[0084] Step A1: Create a new business process.

[0085] Administrators create new business process instances in the system, which usually include the following operations: (1) User sets process classification: Adds new process classification information, including classification name, classification status, classification flag, and classification sort; (2) User sets process form: Taking business scenarios such as device authorization approval and terminal communication approval as examples, set the following basic process information: process name, identifier key, process classification (such as device authorization, terminal communication, etc.), process version, process description information and other metadata.

[0086] Step A2: Design process model.

[0087] In this step, the user sets the process including: creating a new process model identifier, process model name, and process model description. In this step, the user designs the process including: designing the process after the user has created the new process. The key nodes include the following: (1) Start node: the starting point of the process, usually triggered automatically; (2) User task: the approval node, such as "department manager approval". In this embodiment, the task allocation rules can be configured, such as specifying roles and dynamically selecting approvers; (3) Gateway: an exclusive gateway for implementing conditional branches, and a parallel gateway that supports multi-branch parallel approval; (4) Service task; (5) End node: the process terminates and can trigger a callback.

[0088] This embodiment can also set process flow rules and connections to define the flow path between nodes. The above task allocation rules can set fixed approvers to directly specify users or roles.

[0089] The process model corresponding to the business process instance can be generated in the above manner.

[0090] Step A3: Release process.

[0091] The user publishing process is as follows: After the process design is completed and the process model is designed, it needs to be published to the Flowable engine to generate an executable process.

[0092] After the process is published, the processDefinition (process definition information) ID (primary key identifier) ​​and key value obtained from designing the process model in Step A2 are stored in the business flow template configuration basic table (i.e., the business flow template configuration table). The obtained processDefinition key value is written to the type (process type) attribute column, the name (meaning) attribute column and j_value (Java entity class field name) are written to the processDefinition ID, and the obtained processDefinition ID value is written to the key attribute column.

[0093] Create a new process based on step A1 to obtain the field value field and title value of fields and store them in the basic table of business flow template configuration. Write the title value obtained from fields into the name attribute column, write the field value obtained from fields into the key attribute column, and write the key value of processDefinition obtained from designing the process model in step A2 into the type attribute column.

[0094] Determine whether the approver exists with the "Initiator Self-Selected" rule type. If so, obtain the approver's ID value based on the process model designed in step A2. Write the key value of the processDefinition obtained in step A2 to the "type" attribute column. The data in the "name" attribute column can be customized. Write the approver's ID value obtained in step A2 to the "key" attribute column. Write 4 to the "value_type" attribute column. If not, no action is required.

[0095] Through the above operations, the process model can be published to the business process engine, so that the process definition information in the process model can be stored in the business flow template configuration table.

[0096] The data storage module is used to persistently store the key parameters of a business flow method, preventing the risk of data loss in the event of a system crash. For example, in this embodiment, the data storage medium could be a MySQL database, assuming a device authorization requirement change occurs. This allows the business process instance definition information to be stored in the business flow template configuration table.

[0097] The Mysql database defines the table structure of the basic table for the business flow template configuration. The data attribute configuration includes id (primary key identifier, expressed as a large integer type), type (process type, expressed as a variable character type), process type (varchar), name (meaning, expressed as a variable character type), j_key (key value, expressed as a variable character type), j_value (Java entity class field name, expressed as a variable character type), sort (sort, expressed as a large integer type), analysis_type (analysis type, expressed as a large integer type), value_type (value retrieval method, 0 indicates direct retrieval, 1 indicates transcoding), status_value (status value), deleted (whether to delete, expressed as a large integer type), and java indicates an object-oriented programming language.

[0098] After writing the business logic code, the method embedding and calling module can encapsulate the business logic, encapsulate the information to be processed into parameters, and pass the values ​​to the key parameter method control module. This method can encapsulate the business logic code of the business process instance and transmit the encapsulated code to the parameter parsing module.

[0099] The formal parameters of the method control module have the following meanings: userId represents the user ID that initiates the process; processKey represents the process definition key, which is used to identify the type of process to be started; obj represents the business object associated with the process instance; fileList represents the list of process attachment files, which contains file data transmission objects; startUserSelectLists is a variable parameter, which represents the user ID of the approver selected when the process starts (there may be multiple ones).

[0100] The key parameter method control module processes as follows: The value of the process type attribute column is passed in as the parameter, and the business flow template configuration basic table is queried to obtain dataset A (i.e., the first dataset). The value of the process type attribute column and the analysis_type attribute column (5) are passed in as the parameter, and the business flow template configuration basic table is queried to obtain dataset B (i.e., the second dataset). A temporary key-value pair data structure, variables (process variable object), and startUserMaps (reviewer mapping object), are defined. A process instance, BpmProcessInstanceCreateReqDTO, processInstanceCreateReqDTO = newBpmProcessInstanceCreateReqDTO(), is created, and a temporary array object, interval (the length of which is the number of instances in dataset B), is defined. BpmProcessInstanceCreateReqDTO represents a business process instance creation request data transfer object, processInstanceCreateReqDTO represents a process instance creation request data transfer object, and newBpmProcessInstanceCreateReqDTO() represents a new business process instance creation request data transfer object instance. The parameter parsing module queries the business flow template configuration basic table based on the process type attribute column in the aforementioned manner to obtain the dataset.

[0101] When the parsing type is 1, it represents a Java entity; when the parsing type is 2, it represents a value; when the parsing type is 3, it represents a key; when the parsing type is 4, it represents a custom reviewer; when the parsing type is 5, it represents an interval.

[0102] Traverse data set A and perform different processing according to the analysis type analysis_type: judge different analysis types analysis_type using different strategy logic; if analysis_type is equal to 1 (that is, the analysis type is the first type), enter the execution code body to perform the corresponding business-related field value storage operation according to the value acquisition method.

[0103] When value_type == 0 (that is, the value acquisition method is the first method), the field value corresponding to valueName (business object field value) is extracted from obj using reflection based on Formula 1 and stored in a temporary key-value pair data structure variable.

[0104] See Equation 1: ; Formula 1 describes a function f that accepts an object obj and a value name vn as parameters. If there is a field f in all fields of object obj, whose name name(f) is equal to vn and whose value value(f) is equal to v, then the function returns v, otherwise it returns null.

[0105] f(obj, vn) means function f acts on object obj and value name vn; v represents the value to be found or returned; if represents a conditional statement; x represents a variable; Indicates existence; fields(obj) indicates the fields of object obj; such that indicates a statement used to introduce a condition; name(f) indicates the name of the field f; vn indicates the value name; and indicates and; value(f) indicates the value of the field f; Represents an empty string; null represents a null value.

[0106] When value_type == 1 (the value acquisition method is the second method), the field value is extracted from obj based on Formula 2, the value conversion operation is performed, and the result of the value conversion is stored. See Formula 2: ;

[0107] trantValue(str, value) means that the function trantValue receives the string str and the value value as parameters; Indicates the value returned when a matching key-value pair is found; Represents the key after string parsing and the corresponding values , 1≤i≤n; Pairs(str) represents the set of key-value pairs obtained by parsing the string str. Formula 2 describes a search and conversion process, which searches for a key-value pair whose key equals the function argument value in the set of key-value pairs obtained by parsing the string str. If found, the corresponding value is returned; otherwise, a null value is returned.

[0108] Where Pairs(str) is a set of key-value pairs after parsing the rule string.

[0109] .

[0110] The parsing process is as follows: , split means split, str means string, Indicates the index and the colon indicates the split key.

[0111] When analysis_type==2 (that is, the analysis type is the second type), the fileList value is directly stored in variables.

[0112] When analysis_type==3 (i.e., the analysis type is the third type), set the process definition processKey value to store in variables.

[0113] When analysis_type==4 (i.e. the analysis type is the fourth type), custom reviewer: traverse the value of the variable-length parameter startUserSelectLists (multiple approver candidate lists) and store it in startUserMaps, matching the j_Key of the current model in order. <long>) is stored in startUserMaps with the key j_Key. Each time a model with analysis_type=4 is processed, the index is incremented to ensure that the subsequent model matches the next candidate list. List <long>Represents a list of generic classes.

[0114] In the above manner, the business-related field values ​​in the data set can be stored in the target object, and the target object can be used to construct the business process instance.

[0115] See Figure 3 , Figure 3 A schematic diagram of multi-strategy parameter parsing provided in an embodiment of the present application. After starting the traversal, determine the parsing type analysis_type. If the value of the parsing type analysis_type is 1 (i.e., the type is 1), determine whether the value-taking method value_type is 0. If it is 0, convert the value and store the result. If it is not 0, directly take the value and store the result. If the value of the parsing type analysis_type is 2 (i.e., the type is 2), perform file processing and store the result. If the value of the parsing type analysis_type is 3 (i.e., the type is 3), perform process definition and store the result. If the value of the parsing type analysis_type is 4 (i.e., the type is 4), perform approver mapping and store the result. After storing the result, the result can be returned.

[0116] processInstanceCreateReqDTO.setStartUserSelectAssignees(startUserMaps); processInstanceCreateReqDTO represents the process instance creation request object, setStartUserSelectAssignees represents setting the starting user selection assignment, and startUserMaps represents the reviewer mapping object.

[0117] The interval data extraction process is as follows: extract the field value corresponding to j_value from the intervalProcessModelDOS (interval process model data object storage) and store it in the interval array. The implementation rules refer to Formula 1. Variable storage: store the interval data in the variables map, keyed by the last j_key. The temporary variables used for data storage are written to the processInstanceCreateReqDTO.setVariables method. Process instance creation: set the business key and variables, and call the API (application programming interface) to create the process instance.

[0118] The business flow approval process mainly involves three aspects: business flow configuration, data storage, method embedding and calling. First, due to the high degree of customization, complex modifications, and high R&D cycle and cost of the business flow of traditional IoT systems, the existing business flow methods on the market are usually targeted at a single business system scenario and cannot be adapted to other scenarios. In this embodiment, a configurable approach can be used to quickly respond to the needs of various customized business scenarios. Secondly, with the increasing demand of modern enterprises for high scalability, high maintainability and reliability, low-code and no-code development are innovative methods that have emerged in recent years. They are mainly aimed at developers and can quickly build business processes and applications through simple methods such as dragging and dropping and configuration. Finally, developers develop applications through graphical interfaces, configurations and a small amount of code to quickly build prototypes or automate business processes. Through automated integration and delivery processes, teams can ensure the quality, reusability and efficiency of development and reduce repetitive work for developers.

[0119] This embodiment proposes an improved low-code business flow construction method and device based on the Yudao open source framework, the purpose of which is to solve the problem of time-consuming and inefficient R&D work caused by the respective advantages and disadvantages of process forms and business forms in the Yudao framework. Improve the efficiency and quality of developers. Since different business processes have certain similarities, this method can provide a general, basic low-code solution for the construction of related business flows, which can improve development efficiency to a certain extent, reduce the repetitive work of developers, and ensure the quality, reusability and efficiency of development.

[0120] This embodiment provides a method for rapidly constructing business flows and accurately generates the structured data required for business flows, significantly saving time for R&D and testers and improving development efficiency. This invention achieves significant technical improvements through the following innovative designs. This embodiment provides a hybrid form architecture. Combining the advantages of process forms and business forms, it reduces the traditional development cycle from two person-hours to one person-hour (a 50% reduction), supporting a three-day process rollout. This embodiment utilizes multi-strategy parameter parsing, adapting to over 85% of business scenarios and reducing parameter configuration workload by 60%, thereby improving development efficiency. This embodiment integrates multi-channel notifications through a standardized interface design, reducing third-party system access time from three days to four hours and enhancing system scalability. In this embodiment, technicians can complete process modifications and low-code development through a graphical interface, reducing maintenance labor costs by 50%, enabling visual process modeling and reducing maintenance costs. This embodiment provides dynamic value conversion rules that support field value mapping in complex business scenarios, reducing cross-system adaptation costs by 70%, and improving business adaptability.

[0121] The hybrid form architecture provided in this embodiment integrates the advantages of process forms and business forms to achieve deep coupling of process control and data management, which is different from the traditional single form architecture. The multi-strategy parameter parsing of this embodiment supports 4 types of parsing and dynamic value conversion rules, which solves the parameter adaptation problem in complex business scenarios and significantly improves the flexibility of the system. The transaction compensation mechanism provided in this embodiment ensures the atomicity of process execution through predefined compensation logic, avoids data inconsistency problems, and enhances system reliability. This embodiment provides multi-channel notification integration: standardized notification interface design supports rapid access to third-party systems to form a complete business closed loop.

[0122] The present application also provides a business process construction system, which may include:

[0123] A model generation module is used to define a business process instance and generate a process model corresponding to the business process instance;

[0124] A model publishing module, configured to publish the process model to a business process engine so as to store the process definition information in the process model into a business flow template configuration table;

[0125] An information storage module, configured to store the definition information of the business process instance into the business flow template configuration table;

[0126] The encapsulation module is used to encapsulate the business logic code of the business process instance and transmit the encapsulated code to the parameter parsing module;

[0127] A data set construction module, configured to use the parameter parsing module to query the business flow template configuration table based on the process type attribute column to obtain a data set;

[0128] The instance creation module is used to store the business-related field values ​​in the data set into the target object and construct the business process instance using the target object.

[0129] This embodiment defines a business process instance and generates a corresponding process model, publishes the process model to the business process engine, and then stores the process definition information in the business flow template configuration table, so as to provide necessary metadata for the creation and management of the business process instance. This embodiment encapsulates the business logic code of the business process instance, and transfers the encapsulated code to the parameter parsing module, and uses the parameter parsing module to query the business flow template configuration table based on the process type attribute column to obtain a data set, so as to provide necessary data support for the construction of the process instance. This embodiment also stores the business-related field values ​​in the data set to the target object, and uses the target object to construct the business process instance. The above process realizes the rapid construction of the business process instance, improves the response speed and flexibility of the business process, and thus improves the construction efficiency of the business process instance.

[0130] Furthermore, the process of defining the business process instance by the model generation module includes: receiving a process creation instruction input by a user, and generating process classification information and process basic information according to the process creation instruction; defining the business process instance using the process classification information and process basic information;

[0131] Among them, the process classification information includes any one or a combination of any one of the classification name, classification status, classification flag and classification sort; the process basic information includes any one or a combination of any one of the process name, identifier, process classification, process version and process description information.

[0132] Furthermore, the process of the model generation module generating the process model corresponding to the business process instance includes: generating model information, process structure information and process logic information according to user input; wherein, the model information includes a process model identifier, a process model name and a process model description information, the process structure information is used to describe the number and type of process nodes, and the process logic information is used to describe the flow path and task allocation rules between process nodes; based on the model information, the process structure information and the process logic information, the process model corresponding to the business process instance is generated.

[0133] Furthermore, it also includes:

[0134] A configuration table creation module is used to create the business flow template configuration table in a relational database and define the table structure of the business flow template configuration table before storing the definition information of the business process instance in the business flow template configuration table;

[0135] The fields of the business flow template configuration table include any one or a combination of any several of the following: primary key identifier, process type, entity class field name, sorting, parsing type, value obtaining method and status value.

[0136] Furthermore, the data set construction module uses the formal parameter parsing module to query the business flow template configuration table based on the process type attribute column, and the process of obtaining the data set includes: using the formal parameter parsing module to query the business flow template configuration table based on the process type attribute column to obtain the first data set; using the formal parameter parsing module to query the business flow template configuration table based on the process type attribute column and the parsing type attribute column to obtain the second data set.

[0137] Furthermore, the target object includes a process variable object and an auditor mapping object;

[0138] Correspondingly, the process of the instance creation module storing the business-related field values ​​in the data set to the target object includes: traversing the first data set to obtain the parsing type and value-taking method of each field; if the parsing type is the first type, performing the corresponding business-related field value storage operation according to the value-taking method; if the parsing type is the second type, storing the file list in the first data set to the process variable object; if the parsing type is the third type, storing the process identifier in the first data set to the process variable object; if the parsing type is the fourth type, storing the values ​​of multiple approver candidate lists in the first data set to the reviewer mapping object.

[0139] Furthermore, the process of the instance creation module using the target object to construct the business process instance includes: writing the mapping information in the reviewer mapping object into the process instance creation request object; storing the interval rule field value in the second data set to the process variable object; based on the process instance creation request object and process variable object, calling the process engine interface to construct the business process instance.

[0140] Since the embodiments of the system part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the system part, and will not be repeated here.

[0141] This application also provides a storage medium having a computer program stored thereon. When executed, the computer program can implement the steps provided in the above embodiments. The storage medium may include: a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disk, or other medium capable of storing program code.

[0142] The present application also provides an electronic device that may include a memory and a processor, wherein the memory stores a computer program, and when the processor calls the computer program in the memory, the steps provided in the above embodiment can be implemented. Of course, the electronic device may also include various network interfaces, a power supply, and other components.

[0143] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various 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 description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to this application, and these improvements and modifications also fall within the scope of protection of this application.

[0144] It should also be noted that, in this specification, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.< / long> < / long>

Claims

1. A method for constructing a business process, characterized in that: include: Define a business process instance and generate a process model corresponding to the business process instance; Publishing the process model to a business process engine so as to store the process definition information in the process model into a business flow template configuration table; Storing the definition information of the business process instance in the business flow template configuration table; Encapsulate the business logic code of the business process instance and transmit the encapsulated code to the parameter parsing module; Utilizing the parameter parsing module to query the business flow template configuration table based on the process type attribute column to obtain a data set; The business-related field values ​​in the data set are stored in a target object, and the target object is used to construct the business process instance.

2. The method for constructing a business process according to claim 1, characterized in that: Defining a business process instance includes: Receive a process creation instruction input by a user, and generate process classification information and process basic information according to the process creation instruction; Defining the business process instance using the process classification information and the process basic information; Among them, the process classification information includes any one or a combination of any one of the classification name, classification status, classification flag and classification sort; the process basic information includes any one or a combination of any one of the process name, identifier, process classification, process version and process description information.

3. The method for constructing a business process according to claim 1, characterized in that: Generating a process model corresponding to the business process instance includes: Generate model information, process structure information, and process logic information based on user input; wherein the model information includes a process model identifier, a process model name, and a process model description; the process structure information is used to describe the number and type of process nodes; and the process logic information is used to describe the flow path and task allocation rules between process nodes; The process model corresponding to the business process instance is generated based on the model information, the process structure information and the process logic information.

4. The method for constructing a business process according to claim 1, characterized in that: Before storing the definition information of the business process instance in the business flow template configuration table, the method further includes: Creating the business flow template configuration table in a relational database and defining the table structure of the business flow template configuration table; The fields of the business flow template configuration table include any one or a combination of any several of the following: primary key identifier, process type, entity class field name, sorting, parsing type, value obtaining method and status value.

5. The method for constructing a business process according to claim 1, characterized in that: The parameter parsing module is used to query the business flow template configuration table based on the process type attribute column to obtain a data set including: Utilizing the parameter parsing module to query the business flow template configuration table based on the process type attribute column to obtain a first data set; The parameter parsing module is used to query the business flow template configuration table based on the process type attribute column and the parsing type attribute column to obtain a second data set.

6. The method for constructing a business process according to claim 5, characterized in that: The target objects include process variable objects and reviewer mapping objects; Accordingly, storing the business-related field values ​​in the data set into the target object includes: Traverse the first data set to obtain the parsing type and value method of each field; If the parsing type is the first type, performing a corresponding business-related field value storage operation according to the value obtaining method; If the parsing type is the second type, storing the file list in the first data set into the process variable object; If the parsing type is the third type, storing the process identifier in the first data set into the process variable object; If the parsing type is the fourth type, the values ​​of the multiple approver candidate lists in the first data set are stored in the reviewer mapping object.

7. The method for constructing a business process according to claim 6, characterized in that: Constructing the business process instance using the target object includes: Writing the mapping information in the reviewer mapping object into the process instance creation request object; Storing the interval rule field value in the second data set into the process variable object; Create a request object and a process variable object based on the process instance, and call the process engine interface to build the business process instance.

8. A business process construction system, characterized in that: include: A model generation module is used to define a business process instance and generate a process model corresponding to the business process instance; A model publishing module, configured to publish the process model to a business process engine so as to store the process definition information in the process model into a business flow template configuration table; An information storage module, configured to store the definition information of the business process instance into the business flow template configuration table; The encapsulation module is used to encapsulate the business logic code of the business process instance and transmit the encapsulated code to the parameter parsing module; A data set construction module, configured to use the parameter parsing module to query the business flow template configuration table based on the process type attribute column to obtain a data set; The instance creation module is used to store the business-related field values ​​in the data set into the target object and construct the business process instance using the target object.

9. An electronic device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, the steps of the method for constructing a business process according to any one of claims 1 to 7 are implemented.

10. A storage medium, characterized in that: The storage medium stores computer-executable instructions, which, when loaded and executed by a processor, implement the steps of the method for constructing a business process according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and device for constructing business process template and business process management system

    CN109670686A

  • Business process processing method and device, computer equipment, readable storage medium and program product

    CN119671506A