Secondary development method and system of MES (Manufacturing Execution System)
By developing added model configuration packages in the MES system and integrating the original model configuration packages, the problem of the existing MES system secondary development platform having a great impact on product functions is solved, efficient and easy-to-use secondary development is achieved, and compatibility of product upgrades is ensured.
Patent Information
- Application Number
- CN202411919382.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-05-23
AI Technical Summary
The existing MES system secondary development platform is difficult to avoid the impact on the product's own functions, and it is difficult for users to quickly and effectively develop customized requirements.
By developing an added model configuration package on the basis that the model configuration package of the original MES system product remains unchanged, and integrating the original model configuration package and incremental model configuration package in the bean configuration at Springboot startup to form a set of model configuration data, and loading new independent model configuration data.
The secondary development of the MES system has been realized, which reduces the impact on the product's own functions, improves the user's secondary development efficiency and ease of use, and ensures that product upgrades do not affect the secondary development functions.
Smart Images

Figure CN120029592A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of secondary development of MES systems, and more specifically, to a secondary development method and system of MES systems. Background Art
[0002] Secondary development is a prominent technical requirement for the application of MES systems in the manufacturing industry, but secondary development faces two core problems: ① Secondary development often has a great impact on the product's own functions. How to avoid or reduce the impact on the product itself to ensure that the product can be normally iterated for customer upgrades is the pain point and difficulty faced by existing secondary development platforms.
[0003] ② The ease of use of secondary development. As a non-professional software development team, how can the user quickly and effectively meet some customized requirements based on the secondary development platform? This is also a pain point and difficulty faced by the secondary development platform. Summary of the invention
[0004] In view of the technical problems existing in the prior art, the present invention provides a secondary development method and system for an MES system, which overcomes the pain points and difficulties faced by the existing secondary development platform.
[0005] According to a first aspect of the present invention, a secondary development method of an MES system is provided, comprising: On the basis of keeping the model configuration package of the original MES system product unchanged, developing an additional model configuration package on the secondary development platform, wherein the additional model configuration package includes an incremental model configuration package and a newly added independent model configuration package; Based on the Bean configuration when Springboot is started, before the original MES system loads the model configuration package, the additional model configuration package of the secondary development is integrated, wherein the original model configuration package and the incremental model configuration package are integrated into a set of model configuration data, and the newly added independent model configuration package is an independent set of model configuration data; Load two sets of model configuration data to realize secondary development of the MES system.
[0006] Based on the above technical solution, the present invention can also make the following improvements.
[0007] Optionally, the model configuration package includes a business model configuration package, a page model configuration package and a function model configuration package.
[0008] Optionally, the model configuration package added by developing on the secondary development platform includes: Through XML, the business model is abstracted into table model, field model and relationship model, so as to add tables, fields and table relationships to the business model. Develop each EL expression in the business model on the secondary development platform and convert the EL expression into a flowchart; Embed the EL expression into the page model.
[0009] Optionally, each EL expression includes multiple nodes, each node is used for a logical implementation, the nodes include logical nodes and general component nodes, the logical nodes include boolean judgment nodes, iterator nodes, while loop nodes and conditional selection nodes, and the general component nodes include SQL nodes, script nodes and HTTP nodes.
[0010] Optionally, the development of each EL expression in the business model on the secondary development platform includes: Register each node into the Springboot context through Springboot and assign a unique Springboot context beanid to each node; Through the development rule call technology, anti-parse the EL expression to obtain the EL expression logic chain, and call the nodes in the EL expression logic chain through the logic code; According to the node beanid, obtain the example method corresponding to the node beanid in the Springboot context; Among them, during the call of the EL expression logic chain, a shared context parameter is bound to the EL expression logic chain through Theadlocal, and each node in the EL expression can share the context parameter.
[0011] Optionally, converting the EL expression into a flowchart includes: Through the SVG online drawing technology, convert the anti-parsed EL expression into a flowchart, and perform visual arrangement on the EL expression so that logical loops, judgment rules, and SQL, script nodes and HTTP nodes can be added to the flowchart.
[0012] Optionally, embedding the EL expression into the page model includes: Modify the page model through JSON Schema configuration, abstract the page into a component structure, CSS style and JavaScript logic, and adjust the structure, style and interaction logic of the existing page by modifying JSON Schema; Add a trigger in the page model, link to the EL expression through the trigger, and the trigger includes a button and a hook function; When adding a new function to the existing page, trigger the corresponding EL expression through the hook function as a trigger; When a new independent page model is added, a button is used as a trigger to trigger the link to the new page model.
[0013] According to a second aspect of the present invention, there is provided a secondary development system of an MES system, comprising: A secondary development module is used to develop additional model configuration packages on the secondary development platform on the basis of keeping the model configuration packages of the original MES system products unchanged, wherein the additional model configuration packages include incremental model configuration packages and newly added independent model configuration packages; A fusion module is used to fuse the additional model configuration package of secondary development based on the Bean configuration when Springboot is started, before the original MES system loads the model configuration package, wherein the original model configuration package and the incremental model configuration package are fused into a set of model configuration data, and the newly added independent model configuration package is an independent set of model configuration data; The loading module is used to load two sets of model configuration data to realize the secondary development of the MES system.
[0014] According to a third aspect of the present invention, there is provided an electronic device, comprising a memory and a processor, wherein the processor is configured to implement the steps of a secondary development method of an MES system when executing a computer management program stored in the memory.
[0015] According to a fourth aspect of the present invention, there is provided a computer-readable storage medium on which a computer management program is stored, and when the computer management program is executed by a processor, the steps of the secondary development method of the MES system are implemented.
[0016] The present invention provides a secondary development method and system for an MES system, which transforms the framework of the MES system and is embedded in the secondary development scenario: it is possible to add new business logic, re-encapsulate the parameters of existing functions, trigger the secondary development logic after the existing functions are completed, call the secondary development statement after the database data is persisted, and automatically call the next round of secondary development logic after the product logic is completed. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A flow chart of a secondary development method of an MES system provided by the present invention; Figure 2 It is a schematic diagram of different nodes in EL expression; Figure 3 It is an interactive diagram of the secondary development method of the MES system; Figure 4 A schematic diagram of the structure of a secondary development system of an MES system provided by the present invention; Figure 5Schematic diagram of the hardware structure of a possible electronic device provided by the present invention; Figure 6 Schematic diagram of the hardware structure of a possible computer-readable storage medium provided by the present invention. Specific embodiments
[0018] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention. In addition, the technical features in each embodiment or a single embodiment provided by the present invention can be combined with each other arbitrarily to form a feasible technical solution. Such combination is not restricted by the order of steps and / or the pattern of structural composition, but must be based on the fact that those of ordinary skill in the art can implement it. When the combination of technical solutions conflicts with each other or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the protection scope required by the present invention.
[0019] The present invention is mainly aimed at the application of the MES system in discrete manufacturing. In the case of prominent enterprise personalized scenarios and high customization requirements, it can perform secondary development based on the MES product. At the same time, the secondary development can reduce the technical requirements of enterprise IT, improve the efficiency and usability of enterprise secondary development, and after the enterprise's customized secondary development, the upgrade of the product does not affect the functions of the secondary development.
[0020] The present invention involves the configuration of business models and the realization of business function development through a visual method of rule engine orchestration. The visual second development ability can be implanted into the product functions by encapsulating the interfaces / interceptions of the architecture of the MES product, while ensuring the decoupling of the secondary development and the MES product.
[0021] Figure 1 Flowchart of a method for secondary development of an MES system provided by the present invention, as Figure 1 shown, the method includes: Step 1, on the basis of keeping the model configuration package of the original MES system product unchanged, develop an additional model configuration package on the secondary development platform, where the additional model configuration package includes an incremental model configuration package and a newly added independent model configuration package.
[0022] Among them, on the premise of ensuring the unchanged logic of the existing MES system product, the framework of the MES system is encapsulated using Springboot ecological technology.
[0023] Specifically, the model configuration package of the existing MES system product is kept unchanged, and a new model configuration package is developed on the secondary development platform. The new model configuration package developed on the secondary development platform includes an incremental model configuration package developed on the basis of the original model configuration package and a completely new independent model configuration package. The new independent model configuration package is not included in the original model configuration package.
[0024] Among them, the original model configuration packages of MES system products include business model configuration packages, page model configuration packages and function model configuration packages, and the newly added business model configuration packages, page model configuration packages and function model configuration packages for secondary development. The enhanced parts of the product model configuration in the secondary development platform are stored independently as increments, and the newly added functions in the secondary development platform are complete configuration files.
[0025] The secondary development of the model configuration package is described in detail below. The present invention mainly develops through configuration + visual arrangement + multi-language script adaptation to reduce the development difficulty, improve the development efficiency, and enhance the ease of development.
[0026] In a possible implementation of the present invention, developing an additional model configuration package on a secondary development platform includes: Step 11, abstract the business model into a table model, a field model and a relationship model through XML, and realize adding tables, adding fields and adding table associations to the business model.
[0027] It is understandable that for the business model configuration package, the business model configuration package is abstracted into a table model, a field model, and a relationship model through XML. The addition of fields to the existing business model of the product is described by XML configuration. The effect of adding tables, adding fields, and adding table associations is achieved by adding a complete model configuration.
[0028] Step 12: Develop each EL expression in the business model on the secondary development platform and convert the EL expression into a flow chart.
[0029] Among them, a business model includes multiple EL expressions, and an EL expression includes multiple nodes. The EL expression is actually composed of multiple nodes through certain logical judgments.
[0030] See also Figure 2Each node is equivalent to a logical implementation. Nodes can be divided into logic nodes and general component nodes. Logic nodes include Boolean judgment nodes, iterator nodes, while loop nodes and conditional selection nodes. General component nodes include SQL nodes (only focusing on writing SQL), script nodes (js / java / python, supporting sharing context variables with business) and HTTP nodes (configured calling of third-party APIs).
[0031] First, develop the nodes, register each node to the Springboot context through Springboot, and assign a unique Springboot context beanid to each node. The logical flow of multiple nodes constitutes an EL expression.
[0032] By developing rule calling technology, the EL expression is reversed and the EL expression logic chain is obtained. The nodes in the EL expression logic chain are called through logic code; according to the node beanid, the sample method corresponding to the node beanid is obtained in the Springboot context. In the process of calling the EL expression logic chain, a shared context parameter is bound to the EL expression logic chain through Theadlocal, and each node in the EL expression can share the context parameter.
[0033] After developing the EL expression, the de-parsed EL expression is converted into a flowchart through SVG online drawing technology. Users can intuitively add logical loops, judgment rules, SQL / script nodes, and HTTP nodes to the flowchart. This visual arrangement method enables users to flexibly modify and optimize business rules. Ultimately, the flowchart will be parsed into an EL expression that can be executed in the background, thereby achieving efficient business rule management and adjustment.
[0034] Step 13: embed the EL expression into the page model to form a model configuration package.
[0035] It is understandable that after the EL expression of the business model is developed in step 12, the developed EL expression is embedded into the page model, specifically including: Modify the page model through JSON Schema configuration, abstract the page into component structure, CSS style and JavaScript logic, and adjust the structure, style and interaction logic of the existing page by modifying JSON Schema. Add triggers to the page model, link the triggers to EL expressions, and execute the logic flow of EL expressions. Triggers include buttons and hook functions.
[0036] When adding new functions to an existing page, the corresponding EL expression is triggered through the hook function as a trigger; when adding an independent page model, the link to the new page model is triggered through the button as a trigger. The new page model and configuration menu can also be added. Users can also quickly add new routing pages in the configuration menu to add new page models, thereby expanding product functions.
[0037] Among them, the hook function can be understood as a trigger, and the interception / hook function can be pre-buried in the logic execution process during the operation of the system, which serves as a trigger to trigger the execution of logical operations.
[0038] Step 2: Based on the Bean configuration when Springboot is started, before the original MES system loads the model configuration package, the model configuration package added by the secondary development is integrated, wherein the original model configuration package and the incremental model configuration package are integrated into a set of model configuration data, and the newly added independent model configuration package is an independent set of model configuration data.
[0039] It is understandable that after the new model configuration package is developed on the secondary development platform, it is integrated and loaded with the original model configuration package.
[0040] Among them, the Bean configuration when Springboot is started is used to integrate the model configuration package in the secondary development before the original EMS system loads the model configuration package. The incremental part is integrated with the original model configuration of the system into a set of model configuration data, and the newly added complete configuration file is loaded as an independent set of model configuration data, so that the running system does not need to distinguish between secondary development functions and existing product functions, and the user is unaware.
[0041] Step 3: Load two sets of model configuration data to realize the secondary development of the MES system.
[0042] Among them, the two sets of model configuration data are integrated and loaded to realize the secondary development of MES system products, which is helpful to improve the MES system products.
[0043] See also Figure 3 , which is a schematic diagram of the entire secondary development of the MES system. The MES system container is started, the original product configuration is read, and the product configuration is written into Map1. The secondary development incremental configuration is read, and for the incremental configuration, it is updated to Map1 according to the product model ID. The secondary development independent configuration is read, and the independent configuration is written into Map1. The fusion model is registered in the model factory, and the model configuration in the model factory is read. By comparison, it is determined whether the model configuration has been upgraded, and the upgraded part is updated.
[0044] See also Figure 4 , provides a secondary development system of a MES system of the present invention, the system comprising: The secondary development module 401 is used to develop an additional model configuration package on the secondary development platform on the basis of keeping the model configuration package of the original MES system product unchanged, wherein the additional model configuration package includes an incremental model configuration package and a newly added independent model configuration package; A fusion module 402 is used to fuse the additional model configuration package of secondary development based on the Bean configuration when Springboot is started, before the original MES system loads the model configuration package, wherein the original model configuration package and the incremental model configuration package are fused into a set of model configuration data, and the newly added independent model configuration package is an independent set of model configuration data; The loading module 404 is used to load two sets of model configuration data to realize the secondary development of the MES system.
[0045] It can be understood that the secondary development system of an MES system provided by the present invention corresponds to the secondary development method of the MES system provided by the aforementioned embodiments. The relevant technical features of the secondary development system of the MES system can refer to the relevant technical features of the secondary development method of the MES system, which will not be repeated here.
[0046] See also Figure 5 , Figure 5 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 5 As shown, an embodiment of the present invention provides an electronic device 500, including a memory 510, a processor 520, and a computer program 511 stored in the memory 510 and executable on the processor 520. When the processor 520 executes the computer program 511, the following steps are implemented: on the basis of keeping the model configuration package of the original MES system product unchanged, an additional model configuration package is developed on the secondary development platform, wherein the additional model configuration package includes an incremental model configuration package and a newly added independent model configuration package; based on the Bean configuration when Springboot is started, before the original MES system loads the model configuration package, the additional model configuration package of the secondary development is integrated, wherein the original model configuration package and the incremental model configuration package are integrated into a set of model configuration data, and the newly added independent model configuration package is a set of independent model configuration data; two sets of model configuration data are loaded to realize the secondary development of the MES system.
[0047] See also Figure 6 , Figure 6 Schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. Figure 6As shown, this embodiment provides a computer-readable storage medium 600, on which a computer program 611 is stored. When the computer program 611 is executed by a processor, the following steps are implemented: on the basis of keeping the model configuration package of the original MES system product unchanged, an additional model configuration package is developed on the secondary development platform, wherein the added model configuration package includes an incremental model configuration package and a newly added independent model configuration package; based on the Bean configuration when Springboot is started, before the original MES system loads the model configuration package, the additional model configuration package of the secondary development is integrated, wherein the original model configuration package and the incremental model configuration package are integrated into a set of model configuration data, and the newly added independent model configuration package is a set of independent model configuration data; two sets of model configuration data are loaded to realize the secondary development of the MES system.
[0048] The secondary development method and system of an MES system provided by the embodiment of the present invention have the following beneficial effects: (1) Modify the framework of the MES system and embed it in the secondary development scenario: it is hoped that new business logic can be added, the parameters of existing functions can be repackaged, the secondary development logic can be triggered after the existing functions are completed, the secondary development statements can be called after the database data is persisted, and the next round of secondary development logic can be automatically called after the product logic is completed.
[0049] (2) Develop a low-code secondary development platform to meet the needs of enterprise users to conduct secondary development, build metadata, build ER relationships, and enhance page functions through a visual low-code approach.
[0050] (3) The MES system is divided into startup and runtime. The startup is divided into two domain modules, namely the model configuration of the MES product and the model configuration of secondary development. By integrating the model configurations of the two domains at startup, a set of logic is used at runtime to allow the secondary development functions to be well integrated into the operation of the product without being perceived by the users of the MES.
[0051] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0052] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0053] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0054] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0055] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0056] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0057] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A secondary development method of an MES system, characterized in that: include: On the basis of keeping the model configuration package of the original MES system product unchanged, developing an additional model configuration package on the secondary development platform, wherein the additional model configuration package includes an incremental model configuration package and a newly added independent model configuration package; Based on the Bean configuration when Springboot is started, before the original MES system loads the model configuration package, the model configuration package added by the secondary development is integrated, wherein the original model configuration package and the incremental model configuration package are integrated into a set of model configuration data, and the newly added independent model configuration package is an independent set of model configuration data; Load two sets of model configuration data to realize secondary development of the MES system.
2. The secondary development method of the MES system according to claim 1, characterized in that: The model configuration package includes a business model configuration package, a page model configuration package and a function model configuration package.
3. The secondary development method of the MES system according to claim 2, characterized in that: The model configuration package added by developing on the secondary development platform includes: Through XML, the business model is abstracted into table model, field model and relationship model, so as to add tables, fields and table relationships to the business model. Develop each EL expression in the business model on the secondary development platform and convert the EL expression into a flow chart; The EL expression is embedded into the page model to form a model configuration package.
4. The secondary development method of the MES system according to claim 3, characterized in that: Each of the EL expressions includes multiple nodes, each of which is used for a logic implementation. The nodes include logic nodes and general component nodes. The logic nodes include Boolean judgment nodes, iterator nodes, while loop nodes and conditional selection nodes. The general component nodes include SQL nodes, script nodes and HTTP nodes.
5. The secondary development method of the MES system according to claim 4, characterized in that: The development of each EL expression in the business model on the secondary development platform includes: Register each node to the Springboot context through Springboot, and assign a unique Springboot context beanid to each node; By developing rule calling technology, the EL expression is reversed and the EL expression logic chain is obtained. The nodes in the EL expression logic chain are called through logic code. According to the node beanid, get the example method corresponding to the node beanid in the Springboot context; In the process of calling the EL expression logic chain, a shared context parameter is bound to the EL expression logic chain through Theadlocal, and each node in the EL expression can share the context parameter.
6. The secondary development method of the MES system according to claim 3, characterized in that: Convert the EL expression into a flowchart, including: Through SVG online drawing technology, the EL expression obtained by de-analysis is converted into a flowchart, and the EL expression is visually arranged so that logical loops, judgment rules, SQL, script nodes and HTTP nodes can be added to the flowchart.
7. The secondary development method of the MES system according to claim 3, characterized in that: Embed the EL expression into the page model, including: Modify the page model through JSON Schema configuration, abstract the page into component structure, CSS style and JavaScript logic, and adjust the structure, style and interaction logic of the existing page by modifying JSON Schema; Add a trigger to the page model and link it to the EL expression through the trigger. The trigger includes a button and a hook function. When adding new features to an existing page, the corresponding EL expression is triggered through the hook function as a trigger; When a new independent page model is added, a button is used as a trigger to trigger the link to the new page model.
8. A secondary development system of an MES system, characterized in that: include: A secondary development module is used to develop additional model configuration packages on the secondary development platform on the basis of keeping the model configuration packages of the original MES system products unchanged, wherein the additional model configuration packages include incremental model configuration packages and newly added independent model configuration packages; A fusion module is used to fuse the additional model configuration package of secondary development based on the Bean configuration when Springboot is started, before the original MES system loads the model configuration package, wherein the original model configuration package and the incremental model configuration package are fused into a set of model configuration data, and the newly added independent model configuration package is an independent set of model configuration data; The loading module is used to load two sets of model configuration data to realize the secondary development of the MES system.
9. An electronic device, characterized in that: It comprises a memory and a processor, wherein the processor is used to implement the steps of the secondary development method of the MES system as described in any one of claims 1 to 7 when executing the computer management program stored in the memory.
10. A computer-readable storage medium, characterized in that: A computer management program is stored thereon, and when the computer management program is executed by a processor, the steps of the secondary development method of the MES system as described in any one of claims 1 to 7 are implemented.