A tracing method and system for low-code platform modules
By defining module information on low-code platforms, analyzing design data and building directed graphs, the display and management of module dependencies is solved, the problem of module traceability on low-code platforms is improved, development transparency and efficiency are improved, and costs are reduced.
Patent Information
- Application Number
- CN202410808438.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-21
AI Technical Summary
In the development process of low-code platforms, module traceability and management are difficult to implement, and traditional code traceability methods are not applicable, and a module traceability algorithm suitable for low-code platforms is needed.
By defining the module information of the low-code platform, analyzing the design data of pages, entities, business logic, workflows and events, building a directed graph data structure, displaying module dependencies, and deleting relevant information according to the module number to achieve comprehensive traceability of the module and management.
It improves the transparency and controllability of the development process, helps developers better understand and manage modules, improves the development efficiency and quality of low-code platforms, and reduces development and maintenance costs.
Smart Images

Figure CN118394405B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and more specifically, to a tracing method and system for a low-code platform module. Background Art
[0002] With the rapid development of low-code platforms, more and more companies and developers are beginning to adopt low-code technologies to quickly build and deploy applications; however, in the development process of low-code platforms, module tracing and management has become an important issue; traditional code tracing methods are difficult to directly apply to low-code platforms, so a module tracing algorithm suitable for low-code platforms is needed. Summary of the invention
[0003] The purpose of the present invention is to provide a tracing method and system for low-code platform modules, which can realize comprehensive tracing of modules in the low-code platform and improve the transparency and controllability of the development process.
[0004] A first aspect of the present invention provides a tracing method for a low-code platform module, comprising:
[0005] Define the module information of the low-code platform based on the preset module definition;
[0006] According to the module definition, in the current low-code platform, when designing and defining pages, entities, business logic, workflows, and events, module information is extracted and dependencies are constructed by parsing the definition data;
[0007] The module information and dependency associations extracted from the parsed definition data are stored in a directed graph data structure;
[0008] Extract the module number, build and display all dependency graphs related to the module according to the module number, and display them through charts;
[0009] Delete the module information and related dependent module record information according to the module number.
[0010] In this solution, the steps of defining the module information of the low-code platform specifically include:
[0011] Obtain materials used in the design software process of the low-code platform;
[0012] The material is set as a module, wherein when there is only one material in the module, it is set as an atomic module; when there are two or more materials in the module, it is set as a combined module;
[0013] Based on the preset identifier, identify each material to obtain the module identifier;
[0014] Based on the preset classification and numbering standards, the modules are numbered and classified to obtain module numbers and module types.
[0015] In this solution, the parsed definition data is specifically: parsed json data of page design, parsed json data of business logic design, parsed json data of entity definition, parsed json data of event definition, and parsed json data of workflow definition.
[0016] In this solution, the step of parsing the json data of the page design specifically includes:
[0017] Extract page parameters, page variable module information and record them;
[0018] Extract the page’s imported data source module information and record it;
[0019] Extract and record the module information used by each component of the page. The module information includes variables, expressions, functions, action flows, data sources, and business logic.
[0020] Extract the page action flow and the module information used in the action flow and record them;
[0021] Extract the number, title and module type of the current page;
[0022] The number, title, and module type of the current page are recorded in the corresponding module information table, and are dependently associated with the recorded page data.
[0023] In this solution, the step of parsing the json data designed by the business logic specifically includes:
[0024] Extract business logic input module information and record it;
[0025] Extract business logic and introduce data source module information and record it;
[0026] Extract and record the information of each node module of the business logic, and extract and record the information of the business logic output parameter module;
[0027] The number, name and module type of the current business logic are extracted and recorded in the corresponding module information table, and are dependently associated with the recorded business logic data.
[0028] In this solution, the step of parsing the JSON data defined by the entity specifically includes:
[0029] Extract the entity's field module information and record it;
[0030] Extract the current entity's ID, entity name and module type;
[0031] The number, entity name and module type of the current entity are recorded in the corresponding module information table, and are dependently associated with the recorded entity data.
[0032] In this solution, the step of parsing the JSON data of the event definition specifically includes:
[0033] Extract the attribute module information of the event and record it;
[0034] Extract the subscribed business logic module information and record it;
[0035] Extract the current event number, event name and module type;
[0036] The number, event name and module type of the current event are recorded in the corresponding module information table, and are dependently associated with the recorded event data.
[0037] In this solution, the step of parsing the JSON data defined by the workflow specifically includes:
[0038] Extract work flow parameter module information and record it;
[0039] Extract and record the information of each node module in the workflow;
[0040] Extract the current workflow number, workflow name and module type;
[0041] The number, name and module type of the current workflow are recorded in the corresponding module information table, and are dependently associated with the recorded workflow data.
[0042] This plan also includes:
[0043] Extract the elements in the module, parse and record the elements in the module, and obtain the recorded element data;
[0044] Extract the module number, module name and module type;
[0045] The module number, module name and module type are recorded in the corresponding module information table, and the module dependency information is constructed with the corresponding recorded element data.
[0046] A second aspect of the present invention provides a traceability system for a low-code platform module, including: a definition module, an extraction module, a recording module, a traceability module, and a management module;
[0047] The definition module is used to define modules for all materials used in the low-code platform;
[0048] The extraction module is used to parse the current low-code platform to obtain modules and module definition lists;
[0049] The recording module is used to store the parsed module information;
[0050] The tracing module is used to construct a dependency association graph of the module according to the module number, module type and module name, and determine the dependency relationship of each module according to the dependency association graph;
[0051] The management module is used to manage the modules.
[0052] The present invention discloses a tracing method and system for low-code platform modules. The present invention displays the dependency relationship between modules through a directed graph, realizes comprehensive tracing of modules in the low-code platform, and improves the transparency and controllability of the development process; by recording the detailed information and dependency relationships of the modules, it helps developers to better understand and manage the modules; improves the development efficiency and quality of the low-code platform, and reduces development and maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 A flow chart of a tracing method of a low-code platform module of the present invention is shown;
[0054] Figure 2 A block diagram of a tracing system of a low-code platform module of the present invention is shown. DETAILED DESCRIPTION
[0055] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0056] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0057] Figure 1 A flow chart of a tracing method for a low-code platform module of the present invention is shown.
[0058] like Figure 1 As shown, the present invention discloses a tracing method of a low-code platform module, including:
[0059] S101, defining module information of the low-code platform based on a preset module definition;
[0060] S102, according to the module definition, in the process of designing and defining pages, entities, business logic, workflows, and events on the current low-code platform, extracting module information and building dependencies by parsing definition data;
[0061] S103, storing the module information and dependency association extracted from the parsed definition data in a directed graph data structure;
[0062] S104, extracting the module number, constructing and displaying all dependency association graphs related to the module according to the module number, and displaying them through a chart;
[0063] S105, deleting the module information and the related dependent module record information according to the module number.
[0064] According to an embodiment of the present invention, all material pages, entities, business logic, events, workflows used in the low-code platform, as well as elements used in the page, business logic, entity and event design process, including components, parameters, expressions, functions, action flows, data sources, entity fields, image materials, files, events and other attributes are defined as modules and classified according to different types; the dependent module record information related thereto is the module record information of all modules that have a dependency relationship with the corresponding deleted module. For example, if the module number is a, the dependency association graph related to the module number a is extracted. For example, if module b has a dependency association with module a, when module a is deleted, module b is also deleted at the same time; all dependency association graphs related to the module are all dependency association graphs of the module. For example, if the dependency association graph contains module a, module b and module c, the corresponding dependency association graph is related to module a, module b and module c.
[0065] According to an embodiment of the present invention, the step of defining module information of the low-code platform specifically includes:
[0066] Obtain materials used in the design software process of the low-code platform;
[0067] The material is set as a module, wherein when there is only one material in the module, it is set as an atomic module; when there are two or more materials in the module, it is set as a combined module;
[0068] Based on the preset identifier, identify each material to obtain the module identifier;
[0069] Based on the preset classification and numbering standards, the modules are numbered and classified to obtain module numbers and module types.
[0070] It should be noted that the materials used in the design software process of the low-code platform are marked as modules. Materials are divided into two types: atomic materials and composite materials. Atomic materials include entity tables, fields in entity tables, business logic, data sources introduced by business logic, input parameters, variables, output parameters, expressions, nodes, events, event attributes, pages, page data sources, page input parameters, page action flows, action inflow parameters, action outflow parameters, expressions, action flow nodes, page components, picture materials, video materials, file materials, workflows, etc.; composite materials are designed by combining ancestral materials according to certain business needs, such as login modules, etc. Each module has a unique identifier.
[0071] According to an embodiment of the present invention, the parsed definition data is specifically: parsed json data of page design, parsed json data of business logic design, parsed json data of entity definition, parsed json data of event definition, and parsed json data of workflow definition.
[0072] It should be noted that by parsing the definition data, module extraction and marking the dependencies between modules are completed, starting from the atomic module, gradually analyzing the combined modules, and recording the dependencies one by one.
[0073] According to an embodiment of the present invention, the step of parsing the JSON data of the page design specifically includes:
[0074] Extract page parameters, page variable module information and record them;
[0075] Extract the page’s imported data source module information and record it;
[0076] Extract and record the module information used by each component of the page. The module information includes variables, expressions, functions, action flows, data sources, and business logic.
[0077] Extract the page action flow and the module information used in the action flow and record them;
[0078] Extract the number, title and module type of the current page;
[0079] The number, title, and module type of the current page are recorded in the corresponding module information table, and are dependently associated with the recorded page data.
[0080] It should be noted that the recorded page data includes page parameters, page variable module information, page imported data source module information, module information used by each component of the page, page action flow and module information used in the action flow.
[0081] According to an embodiment of the present invention, the step of parsing the JSON data of the business logic design specifically includes:
[0082] Extract business logic input module information and record it;
[0083] Extract business logic and introduce data source module information and record it;
[0084] Extract and record the information of each node module of the business logic, and extract and record the information of the business logic output parameter module;
[0085] The number, name and module type of the current business logic are extracted and recorded in the corresponding module information table, and are dependently associated with the recorded business logic data.
[0086] It should be noted that the recorded business logic data includes business logic input parameter module information, business logic data source module information, business logic each node module information, and business logic output parameter module information.
[0087] According to an embodiment of the present invention, the step of parsing the JSON data defined by the entity specifically includes:
[0088] Extract the entity's field module information and record it;
[0089] Extract the current entity's ID, entity name and module type;
[0090] The number, entity name and module type of the current entity are recorded in the corresponding module information table, and are dependently associated with the recorded entity data.
[0091] It should be noted that the recorded entity data includes the field module information of the entity.
[0092] According to an embodiment of the present invention, the step of parsing the JSON data of the event definition specifically includes:
[0093] Extract the attribute module information of the event and record it;
[0094] Extract the subscribed business logic module information and record it;
[0095] Extract the current event number, event name and module type;
[0096] The number, event name and module type of the current event are recorded in the corresponding module information table, and are dependently associated with the recorded event data.
[0097] It should be noted that the recorded event data includes the attribute module information of the event and the subscribed business logic module information.
[0098] According to an embodiment of the present invention, the step of parsing the JSON data of the workflow definition specifically includes:
[0099] Extract work flow parameter module information and record it;
[0100] Extract and record the information of each node module in the workflow;
[0101] Extract the current workflow number, workflow name and module type;
[0102] The number, name and module type of the current workflow are recorded in the corresponding module information table, and are dependently associated with the recorded workflow data.
[0103] According to an embodiment of the present invention, the recorded workflow data includes workflow parameter module information and workflow each node module information.
[0104] According to an embodiment of the present invention, it also includes:
[0105] Extract the elements in the module, parse and record the elements in the module, and obtain the recorded element data;
[0106] Extract the module number, module name and module type;
[0107] The module number, module name and module type are recorded in the corresponding module information table, and the module dependency information is constructed with the corresponding recorded element data.
[0108] It should be noted that the elements in the module include entities, business logic, workflow, events and page information, and the recorded element data includes recorded entity data, recorded business logic data, recorded workflow data, etc.
[0109] According to an embodiment of the present invention, the step of building a dependency relationship specifically includes:
[0110] Run the modules one by one. If module a can only run after module b is finished running, then module a and module b are set to have a dependency relationship, and module a depends on module b.
[0111] According to an embodiment of the present invention, it also includes:
[0112] Extract the directed graph of dependency relationships;
[0113] Determine the dependency relationship between modules based on the directed graph of dependency associations;
[0114] If there is mutual dependence or closed-loop dependence between the dependencies between modules, a warning message will be generated.
[0115] It should be noted that if module a depends on module b, and module b depends on module a, then it means that module a and module b are mutually dependent on each other; if module a depends on module b, module b depends on module c, and module c depends on module a, then it means that module a, module b and module c have a closed-loop dependency. The pairwise mutual dependency or closed-loop dependency is not allowed to exist. Therefore, a warning message is generated to prompt the user end that there is an error in the corresponding directed graph.
[0116] According to an embodiment of the present invention, it also includes:
[0117] When there is no dependency relationship between a module in the directed graph and other modules, the corresponding module is marked to obtain a marked module;
[0118] After deleting the marked modules one by one, run the low-code platform without the marked modules to obtain the running test results. If the running test results are normal, the corresponding marked modules are redundant modules.
[0119] If the running test result is abnormal, the corresponding marked module is not a redundant module.
[0120] It should be noted that the low-code platform is a platform that can run normally. When a module has no dependency relationship with other modules, it means that the corresponding module is a separately run module. If the corresponding marked module is deleted and the low-code platform without the marked module can run normally, it means that the corresponding marked module is a redundant module, and deleting the corresponding marked module is the correct operation. If the running test result is abnormal, the corresponding marked module will be restored.
[0121] According to an embodiment of the present invention, it also includes: when parsing the module information and dependency associations extracted from the definition data for graph data structure storage, modules without dependency associations are inserted for storage first, and modules with dependency associations are inserted for storage after the modules they depend on are inserted for storage.
[0122] It should be noted that, for example, if module a depends on module b, module b is inserted into the storage first, and then module a is inserted into the storage, and module b points to module a through a directed arrow to indicate that module a depends on module b.
[0123] Figure 2 A block diagram of a tracing system of a low-code platform module of the present invention is shown.
[0124] like Figure 2 As shown, the second aspect of the present invention provides a traceability system for a low-code platform module, including: a definition module, an extraction module, a recording module, a traceability module, and a management module;
[0125] The definition module is used to define modules for all materials used in the low-code platform;
[0126] The extraction module is used to parse the current low-code platform to obtain modules and module definition lists;
[0127] The recording module is used to store the parsed module information;
[0128] The tracing module is used to construct a dependency association graph of the module according to the module number, module type and module name, and determine the dependency relationship of each module according to the dependency association graph;
[0129] The management module is used to manage the modules.
[0130] According to an embodiment of the present invention, module definition is performed for all materials used in the low-code platform by defining modules, and then the defined module information is extracted. Through a preset parsing algorithm, each attribute in the corresponding json data is gradually parsed, and module data is automatically constructed according to the defined module classification. These data include module unique identifier, module name, module type, associated module number, creation event, creator, etc., which constitute the definition content of the module. After the json data is parsed, a parsed module definition list is obtained, and various module information is listed in the module definition list in sequence; the recording module contains a repository to store the parsed module information, and the storage method adopts a directed graph-based storage method to facilitate data tracing and association query; according to the module number, module type, and module name, the dependency association graph of the module can be quickly constructed, and it can be quickly and efficiently displayed in the form of a dependency association graph to quickly clarify the dependency relationship of each module; the management module includes a deletion unit and an update unit, and the deletion unit is used to delete the module and simultaneously delete the module dependency relationship and module record data; the update unit is used to update the module version and update the module dependency association graph at the same time.
[0131] The present invention discloses a tracing method and system for low-code platform modules. The present invention displays the dependency relationship between modules through a directed graph, realizes comprehensive tracing of modules in the low-code platform, and improves the transparency and controllability of the development process; by recording the detailed information and dependency relationships of the modules, it helps developers to better understand and manage the modules; improves the development efficiency and quality of the low-code platform, and reduces development and maintenance costs.
[0132] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0133] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0134] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0135] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0136] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
Claims
1. A tracing method for a low-code platform module, characterized in that: include: Define the module information of the low-code platform based on the preset module definition; According to the module definition, in the current low-code platform, when designing and defining pages, entities, business logic, workflows, and events, module information is extracted and dependencies are constructed by parsing the definition data; The module information and dependency associations extracted from the parsed definition data are stored in a directed graph data structure; Extract the module number, build and display all dependency graphs related to the module according to the module number, and display them through charts; Delete the module information and related dependent module record information according to the module number; The step of defining the module information of the low-code platform specifically includes: Obtain materials used in the design software process of the low-code platform; The material is set as a module, wherein when there is only one material in the module, it is set as an atomic module; when there are two or more materials in the module, it is set as a combined module; Based on the preset identifier, identify each material to obtain the module identifier; Based on the preset classification and numbering standards, the modules are numbered and classified to obtain module numbers and module types; The parsing definition data specifically includes: parsing the json data of page design, parsing the json data of business logic design, parsing the json data of entity definition, parsing the json data of event definition, and parsing the json data of workflow definition.
2. A tracing method for a low-code platform module according to claim 1, characterized in that: The step of parsing the JSON data of the page design specifically includes: Extract page parameters, page variable module information and record them; Extract the page’s imported data source module information and record it; Extract and record the module information used by each component of the page. The module information includes variables, expressions, functions, action flows, data sources, and business logic. Extract the page action flow and the module information used in the action flow and record them; Extract the number, title and module type of the current page; The number, title, and module type of the current page are recorded in the corresponding module information table, and are dependently associated with the recorded page data.
3. According to the tracing method of a low-code platform module according to claim 1, it is characterized in that: The step of parsing the JSON data designed by the business logic specifically includes: Extract business logic input module information and record it; Extract business logic and introduce data source module information and record it; Extract and record the information of each node module of the business logic, and extract and record the information of the business logic output parameter module; The number, name and module type of the current business logic are extracted and recorded in the corresponding module information table, and are dependently associated with the recorded business logic data.
4. A tracing method for a low-code platform module according to claim 1, characterized in that: The step of parsing the JSON data defined by the entity specifically includes: Extract the entity's field module information and record it; Extract the current entity's ID, entity name and module type; The number, entity name and module type of the current entity are recorded in the corresponding module information table, and are dependently associated with the recorded entity data.
5. According to a low-code platform module tracing method according to claim 1, it is characterized in that: The step of parsing the JSON data of the event definition specifically includes: Extract the attribute module information of the event and record it; Extract the subscribed business logic module information and record it; Extract the current event number, event name and module type; The number, event name and module type of the current event are recorded in the corresponding module information table, and are dependently associated with the recorded event data.
6. A tracing method for a low-code platform module according to claim 1, characterized in that: The step of parsing the JSON data defined by the workflow specifically includes: Extract work flow parameter module information and record it; Extract and record the information of each node module in the workflow; Extract the current workflow number, workflow name and module type; The number, name and module type of the current workflow are recorded in the corresponding module information table, and are dependently associated with the recorded workflow data.
7. A tracing method for a low-code platform module according to claim 1, characterized in that: Also includes: Extract the elements in the module, parse and record the elements in the module, and obtain the recorded element data; Extract the module number, module name and module type; The module number, module name and module type are recorded in the corresponding module information table, and the module dependency information is constructed with the corresponding recorded element data.
8. A traceability system for a low-code platform module, characterized in that: include: Definition module, extraction module, recording module, tracing module and management module; A program for implementing a tracing method of a low-code platform module as described in any one of claims 1 to 7; The definition module is used to define modules for all materials used in the low-code platform; The extraction module is used to parse the current low-code platform to obtain modules and module definition lists; The recording module is used to store the parsed module information; The tracing module is used to construct a dependency association graph of the module according to the module number, module type and module name, and determine the dependency relationship of each module according to the dependency association graph; The management module is used to manage the modules.
