Low-code development method, device, electronic device and storage medium for industrial software
By parsing the domain model of industrial software and generating the data structure instance layer, the problem of insufficient applicability of the traditional low-code development model in industrial software development is solved, and more efficient low-code development is achieved, suitable for complex industrial environments and reducing the number of Duplicate code.
Patent Information
- Application Number
- CN202311147033.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-06
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-09-06
AI Technical Summary
The business granularity of the traditional low-code development model is large and cannot be applied to complex industrial software development. Especially in industrial scenarios, where the processing technology is complex, the environment is changeable, and the information is multi-sourced and time-scaled, it cannot give full play to its advantages.
By parsing the target domain model, the core subdomain and general subdomain are obtained, the attributes and business logic of the data object are parsed, the data structure instance layer is generated, and industrial software is generated based on this to achieve smaller granularity and more accurate data structure models. Driven low-code development.
It solves the problems of changing environments and complex parameters in industrial software development, reduces the amount of repeated code writing, improves development efficiency, has a wider scope of application, and does not require increased development costs.
Smart Images

Figure CN117348863B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of information processing technology, and in particular, relates to a low-code development method, device, electronic device and readable storage medium for industrial software. Background Art
[0002] Currently, in software engineering, the low-code development model is a development model that assembles basic code components and develops a small amount of special business code, thereby quickly building software applications by writing only a small amount of code.
[0003] The business granularity of components in the traditional low-code development model is relatively large, which results in fewer adaptable usage scenarios. It is not suitable for industrial software with complex application scenarios. The processing technology in industrial scenarios is complex, the relationship between different industrial environments and industrial parameters is complex and changeable, and the industrial software development field with multiple information sources and multiple time scales cannot give full play to the advantages of the traditional low-code development model. Summary of the invention
[0004] The embodiments of the present application provide a low-code development method, device, equipment and readable storage medium for industrial software, which can solve the problem that the traditional low-code development model cannot be applied to industrial software development.
[0005] In a first aspect, an embodiment of the present application provides a low-code development method for industrial software, the method comprising:
[0006] Parse the acquired target domain model to obtain multiple subdomains, including a core subdomain and multiple general subdomains;
[0007] Parse the subdomain to obtain the attributes and business logic of the data object;
[0008] Generate data structure instance layer based on attributes and business logic;
[0009] Generate industrial software based on the data structure instance layer.
[0010] In a second aspect, an embodiment of the present application provides a low-code development device for industrial software, the device comprising:
[0011] A first parsing module is used to parse the acquired target domain model to obtain multiple subdomains, where the subdomains include a core subdomain and multiple general subdomains;
[0012] The second parsing module is used to parse the subdomain to obtain the attributes of the data object and the business logic of the data object;
[0013] A first generation module is used to generate a data structure instance layer according to attributes and business logic;
[0014] The second generation module is used to generate industrial software based on the data structure instance layer.
[0015] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, it implements the method in the first aspect or any possible implementation of the first aspect.
[0016] In a fourth aspect, an embodiment of the present application provides a storage medium, on which computer-readable storage medium is stored computer program instructions, and when the computer program instructions are executed by a processor, the method in the first aspect or any possible implementation of the first aspect is implemented.
[0017] In the embodiment of the present application, by parsing the acquired target domain model, multiple subdomains are obtained, including core subdomains and multiple general subdomains; the subdomains are parsed to obtain the attributes of the data object and the business logic of the data object; here, the attributes and business logic of the data object applicable to the target domain model can be parsed; then, according to the attributes and business logic, a data structure instance layer is generated; based on the data structure instance layer, industrial software applicable to the target domain model is generated. As a result, it can be applied to the changeable use environment of industrial software and the complex parameter objects, and the amount of repeated code writing can be greatly reduced without increasing the development cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0019] Figure 1 It is a flowchart of a low-code development method for industrial software provided in an embodiment of the present application;
[0020] Figure 2 is a schematic diagram of a data structure model layer provided in an embodiment of the present application;
[0021] Figure 3 It is a schematic diagram of a process of model development provided by an embodiment of the present application;
[0022] Figure 4 It is a schematic diagram of the structure of a low-code development device for industrial software provided in an embodiment of the present application;
[0023] Figure 5 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present application and are not configured to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0025] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0026] First, the technical terms involved in the embodiments of the present application are introduced.
[0027] Domain refers to scope and boundaries. In the process of continuously subdividing business problems, when the subdivision reaches a certain level, boundaries can be formed, and within the boundaries, a domain model for solving corresponding business problems can be established. Domains are used to define the boundaries and scope of business.
[0028] By further subdividing the field, we can get subdomains, which are finer business boundaries and scopes within the field.
[0029] The core domain, common domain and supporting domain are all subdomains, but their respective importance and functional attributes are different.
[0030] Core domains refer to those subdomains that contain the core business and competitiveness of the enterprise.
[0031] General domain: refers to a subdomain with general functions. A general domain can be called by multiple subdomains at the same time, such as authentication, operation logs, etc.
[0032] Support domain: Subdomains other than the core domain and the general domain can be considered support domains, such as data dictionary, message notification, etc.
[0033] The low-code development method for industrial software provided in the embodiments of the present application can be applied to at least the following application scenarios, which are described below.
[0034] In software engineering, the low-code development model is a development model that assembles basic code components and develops a small amount of special business code, thereby quickly building software applications by writing only a small amount of code.
[0035] It has two obvious features. The first is to build the basic application model in a componentized manner, packaging common, general, and basic codes into general components so that developers can quickly build the basic application model by dragging and dropping. The second is that special business codes can be written into the basic application model according to business needs, so that the final delivered software application can meet business needs.
[0036] Low-code development is a visual application development. With low-code development, developers of different experience levels can create business models through a graphical user interface, using drag-and-drop components and model-driven logic.
[0037] Low-code development platforms reduce the pressure on non-technical developers and save them from code writing. At the same time, they also provide support for professional developers to help them abstract the tedious underlying architecture and infrastructure tasks in the application development process.
[0038] The business granularity of components in the traditional low-code development model is relatively large, which results in fewer adaptable usage scenarios. It is not suitable for industrial software with complex application scenarios. The processing technology in industrial scenarios is complex, the relationship between different industrial environments and industrial parameters is complex and changeable, and the industrial software development field with multiple information sources and multiple time scales cannot give full play to the advantages of the traditional low-code development model.
[0039] Therefore, designing a low-code development method for industrial software driven by a data structure model with smaller business granularity and more precise data is very critical to this field.
[0040] Based on the above application scenarios, the low-code development method of industrial software provided in the embodiments of the present application is described in detail below.
[0041] Figure 1 A flowchart of a low-code development method for industrial software provided in an embodiment of the present application.
[0042] like Figure 1 As shown, the low-code development method of industrial software may include steps 110 to 140, and the method is applied to a low-code development device of industrial software, as shown below:
[0043] Step 110, parsing the acquired target domain model to obtain multiple subdomains, where the subdomains include a core subdomain and multiple general subdomains;
[0044] Step 120, parsing the subdomain to obtain the attributes of the data object and the business logic of the data object;
[0045] Step 130, generating a data structure instance layer according to the attributes and business logic;
[0046] Step 140, generating industrial software based on the data structure instance layer.
[0047] In the low-code development method of industrial software provided by this application, by parsing the acquired target domain model, multiple subdomains are obtained, including core subdomains and multiple general subdomains; the subdomains are parsed to obtain the attributes of the data object and the business logic of the data object; here, the attributes and business logic of the data object applicable to the target domain model can be parsed; then, according to the attributes and business logic, the data structure instance layer is generated; based on the data structure instance layer, the industrial software applicable to the target domain model is generated. As a result, it can be applied to the changeable use environment of industrial software and the complex parameter objects, and the amount of repeated code writing can be greatly reduced without increasing the development cost.
[0048] The contents of step 110 to step 140 are described below respectively:
[0049] This involves step 110 .
[0050] Parse the acquired target domain model to obtain multiple subdomains, including a core subdomain and multiple general subdomains;
[0051] A domain model is a visual representation of conceptual classes in a domain or objects in the real world. It is also called a conceptual model, a domain object model, or an analysis object model. It focuses on analyzing the problem domain itself, discovering important business domain concepts, and establishing relationships between business domain concepts.
[0052] The target domain model refers to the industry domain model.
[0053] This involves step 120 .
[0054] Parse the subdomain to obtain the attributes and business logic of the data object;
[0055] In a possible embodiment, step 120 includes:
[0056] Decompose the data objects in each subdomain;
[0057] Parse the relationships between data objects to obtain the attributes of data objects and the business logic of data objects.
[0058] Analyze the relationship between data objects, including the analysis of the objects themselves and between objects; the relationship between objects, such as the relationship of transferring materials.
[0059] Among them, the above-mentioned attributes may be parameters;
[0060] This involves step 130 .
[0061] Generate data structure instance layer based on attributes and business logic;
[0062] The data structure instance layer represents industrial data objects distributed in different databases. As the bottom layer, it provides the upper layer with the required concrete data of industrial object components, such as attribute data such as machine tools and their models in industrial systems.
[0063] This involves step 140 .
[0064] Generate industrial software based on the data structure instance layer.
[0065] The data model code conversion process is divided into four levels, gradually abstracting from the most specific data structure instance layer to the data structure meta-metamodel layer, that is, the industrial software being constructed.
[0066] In a possible embodiment, step 140 includes:
[0067] Step 210, converting the data structure instance layer into the data structure model layer;
[0068] Step 220, converting the data structure model layer into a data meta model layer;
[0069] Step 230, generate industrial software from the data structure metamodel layer.
[0070] This involves step 210 .
[0071] The data structure model layer is an abstraction of the data structure instance layer. In this layer, visual code is generated by dragging components according to the disassembled business object components, and the objects are decomposed. That is, the objects defined in this layer are hierarchical structures, arrays are defined as multi-level vectors, and data sets are defined as multi-dimensional data sets. The component dragging visual code module describes the association relationship between objects.
[0072] like Figure 2 As shown, the hierarchical structure of the object is divided into four levels by units and represented by array multi-level vectors:
[0073] The first level is defined as the object itself, such as the object machine tool;
[0074] The second level is defined as the parameters contained in the object, such as machine size, machine power, machine speed, etc.;
[0075] The third level represents other objects that interact with this object, such as the object milling cutter;
[0076] The fourth level describes the properties of the interaction between the machine tool and the milling cutter, such as the installation method.
[0077] The multi-level vector of the array is the vector expression of the basic elements of the industrial domain, which is defined in the form of element name + subscript, that is, the basic element is designed as an element name with a subscript: element name j1, j2, j3, ... j k , where i represents the level of the element in the metastructure, and j i Indicates its position in level i;
[0078] The data set implements the multi-level vectors in the array from the three dimensions of time, personnel, and products in the database, and finally realizes the data-level expression of component drag-and-drop visualization code, realizes multi-dimensional slicing management of data, and completes the user-level steps for industrial software development.
[0079] In a possible embodiment, step 210 includes:
[0080] Generate object components corresponding to data objects based on attributes and business logic;
[0081] Generate a data structure model layer based on object components.
[0082] The data structure instance layer is used to instantiate the objects analyzed by the target domain model, describe the attributes (type, content, properties) of the industrial system database objects, describe the connections between objects, and represent the corresponding business logic. It is a collection of the described object types and a description of the static characteristics of the system. It uses the relevant information as the input of the next layer of components to build the object components of the data structure model layer.
[0083] The above-mentioned step of generating a data structure model layer according to the object component includes:
[0084] Generate visualization code, objects, arrays, and data sets based on object components;
[0085] Generate data structure model layers based on object components, visualization code, objects, arrays, and datasets.
[0086] The array is a multi-level vector. The first level of the object is defined as the object itself; the second level of the object is defined as the parameters contained in the object; the third level of the object represents other objects that interact with the object; the properties of the object are used to define the interaction between the fourth level objects;
[0087] The dataset implements the multi-level vectors in the array in the database based on time, personnel, and products, and finally realizes the data-level expression of the component drag-and-drop visualization code.
[0088] The data structure model layer is an abstraction of the data structure instance layer, expressed in the form of components. It is also a specific instance of the data structure metamodel layer.
[0089] In a possible embodiment, the data structure model layer includes objects, and step 220 includes:
[0090] Abstract the objects in the data structure model layer into meta-objects;
[0091] Generate a meta array based on the meta object, and the meta array is used to describe the constituent elements of the meta object;
[0092] Generate a metadata set according to the metadata array, and the metadata set is used to define the dimension of the multidimensional dataset;
[0093] Generate structured code based on metadata sets and business logic;
[0094] The data metamodel layer includes meta-objects, meta-arrays, meta-data sets and structured codes.
[0095] Abstracting the objects in the data structure model layer into meta-objects means extracting the common information of multiple objects and abstracting them into meta-objects based on the common information of multiple objects.
[0096] Exemplarily, the meta-object is a robot; correspondingly, the objects are robot 1, robot 2, robot 3, and so on.
[0097] The data structure metamodel layer is an abstraction of the data structure model layer. Its definition method is similar to that of the data structure model layer. It defines the meta-object structure of industrial software-related objects in the industrial domain, mathematical domain, and software domain. It is mainly responsible for providing the structural form of the meta-object type.
[0098] That is, the meta-object is defined as a tree-like hierarchical structure, which describes the industrial software-related objects as being decomposed into meta-arrays level by level, and then into the meta-data set to realize the underlying structured code;
[0099] The meta-array of the mathematical domain is a vector description of the basic components of the meta-object, that is, the basic elements are designed as element names with subscripts: object names j1, j2, j3, ... j k , where i represents the level of the element in the meta-object structure, and j i Indicates its position in level i;
[0100] The metadata set of the software domain is responsible for defining the dimensions of the multidimensional data set, and at the same time defines the data set management method based on the specific software development method and data body management system.
[0101] In a possible embodiment, step 230 includes:
[0102] Generate industrial software templates based on meta-objects, meta-arrays and meta-data sets in the data meta-model layer;
[0103] Generate industrial software based on structured codes and industrial software templates.
[0104] The data structure metamodel layer is an abstraction of the data structure model layer, expressed in the form of a metamodel. It is also a specific instance of the data structure metamodel layer.
[0105] The data structure meta-metamodel layer represents the entire industrial software and is responsible for defining the meta-objects, meta-arrays, and meta-data sets in the data structure meta-model layer. It is the most abstract level and the most essential description of industrial software objects.
[0106] Specifically, it is constructed by meta-objects, meta-arrays, meta-data sets and structured code modules of the data structure metamodel layer combined with a set of related elements, including classes, collaboration relationships, data types, constants and constraints.
[0107] Classes, collaborations, data types, constants, and constraints belong to software development methodologies.
[0108] Users create specific components from the data structure instance layer to the data structure model layer, including the relationships between components, internal attribute data relationships, and finally the data structure metamodel layer abstracts them into structured codes that can be recognized by machines, ultimately forming industrial software at the data structure meta-metamodel layer.
[0109] In summary, in the embodiments of the present application, by designing a data structure model-driven low-code development method for industrial software, the low-code development model, data structure model and component development technology are combined, which not only effectively improves the R&D efficiency of the enterprise; by decomposing the business into specific object components and superimposing them to realize system development, the development method is divided into a vertical data structure abstraction process and a horizontal data model code conversion process, so as to adapt to the changeable use environment of industrial software and the complex parameter objects, effectively solve the contradiction between usability and practicality, and greatly reduce the amount of repeated code writing without increasing the development cost. At the same time, each object module in the system can be customized, and the relationship between each object module can be freely combined by dragging and dropping components, so that the development software has a wider scope of application.
[0110] Based on the above Figure 1The low-code development method of industrial software shown in the present application also provides a method for implementing data processing, such as Figure 3 As shown:
[0111] From a horizontal perspective, the implementation scheme of the horizontal data model code conversion process proposed by the present invention is:
[0112] The present invention divides the horizontal data model code conversion process into a calculation-independent model in the industrial domain, a software-independent model in the mathematical domain, a software-dependent model in the software domain, and a final code implementation model.
[0113] In the computing-independent model under the industrial domain, objects and meta-objects are represented as a tree hierarchy. The industrial software domain objects are managed hierarchically from left to right. The industrial software-related objects and all their sub-objects are regarded as an entity. These entities together constitute the topological structure of the entire industrial software object.
[0114] The industrial software related objects in the mathematical domain shown are converted into array representation in the form of hierarchical vectors. The basic elements are designed as element names with subscripts, and the subscripts are defined as j1, j2, j3, ...j k , where k represents the level of the multi-level vector in which the element is located, and j i Indicates its position in level i. This definition makes it easier to find elements accurately and establish topological relationships.
[0115] The software-related model of the software domain shown converts the array element array in the software-independent model into a multidimensional dataset structure, which involves specific software implementation and needs to consider development tools and database management systems. Combining the characteristics of industrial systems that focus on technology, strong professionalism, and product-centricity, the user-level component drag-and-drop visualization code module and the structured code module at the data structure metamodel layer are realized.
[0116] In summary, in the embodiment of the present application, by parsing the acquired target domain model, multiple subdomains are obtained, including core subdomains and multiple general subdomains; the subdomains are parsed to obtain the attributes of the data object and the business logic of the data object; here, the attributes and business logic of the data object applicable to the target domain model can be parsed; then, according to the attributes and business logic, the data structure instance layer is generated; based on the data structure instance layer, the industrial software applicable to the target domain model is generated. As a result, it can be applied to the changeable use environment of industrial software and the complex parameter objects, and the amount of repeated code writing can be greatly reduced without increasing the development cost.
[0117] Based on the above Figure 1 The low-code development method of industrial software shown in the embodiment of the present application also provides a data processing device, such as Figure 4As shown, the apparatus 400 may include:
[0118] A first parsing module 410 is used to parse the acquired target domain model to obtain multiple subdomains, where the subdomains include a core subdomain and multiple common subdomains;
[0119] The second parsing module 420 is used to parse the subdomain to obtain the attributes of the data object and the business logic of the data object;
[0120] A first generating module 430, configured to generate a data structure instance layer according to the attributes and the business logic;
[0121] The second generating module 440 is used to generate industrial software based on the data structure instance layer.
[0122] In a possible implementation, the second generating module 440 includes:
[0123] A first conversion module, used for converting the data structure instance layer into a data structure model layer;
[0124] A second conversion module, used for converting the data structure model layer into a data meta model layer;
[0125] The third generation module is used to generate industrial software from the data structure metamodel layer.
[0126] In a possible embodiment, the first conversion module is specifically configured to:
[0127] Generate an object component corresponding to the data object according to the attribute and the business logic;
[0128] The data structure model layer is generated according to the object components.
[0129] In a possible embodiment, the first conversion module is specifically configured to:
[0130] Generate visualization code, objects, arrays and data sets according to the object components;
[0131] The data structure model layer is generated based on the object component, the visualization code, the object, the array and the data set.
[0132] In a possible embodiment, the second conversion module is specifically configured to:
[0133] Abstracting the objects in the data structure model layer into meta-objects;
[0134] Generate a meta array according to the meta object, wherein the meta array is used to describe constituent elements of the meta object;
[0135] Generate a metadata set according to the metadata array, wherein the metadata set is used to define the dimension of the multidimensional dataset;
[0136] Generate structured code according to the metadata set and the business logic;
[0137] The data metamodel layer includes the meta-object, the meta-array, the meta-data set and the structured code.
[0138] In a possible embodiment, the third generating module is specifically used to:
[0139] Generate an industrial software template according to the meta-object, the meta-array and the meta-data set in the data meta-model layer;
[0140] The industrial software is generated according to the structured code and the industrial software template.
[0141] In a possible embodiment, the second parsing module 420 is specifically configured to:
[0142] Decomposing the data objects in each of the subdomains;
[0143] The data objects and the relationships between the data objects are analyzed to obtain the attributes of the data objects and the business logic of the data objects.
[0144] In summary, in the embodiment of the present application, by parsing the acquired target domain model, multiple subdomains are obtained, including core subdomains and multiple general subdomains; the subdomains are parsed to obtain the attributes of the data object and the business logic of the data object; here, the attributes and business logic of the data object applicable to the target domain model can be parsed; then, according to the attributes and business logic, the data structure instance layer is generated; based on the data structure instance layer, the industrial software applicable to the target domain model is generated. As a result, it can be applied to the changeable use environment of industrial software and the complex parameter objects, and the amount of repeated code writing can be greatly reduced without increasing the development cost.
[0145] Figure 5 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.
[0146] The electronic device may include a processor 501 and a memory 502 storing computer program instructions.
[0147] Specifically, the processor 501 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0148] The memory 502 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 502 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 502 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 502 is a non-volatile solid-state memory. In a specific embodiment, the memory 502 includes a read-only memory (ROM). In appropriate cases, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.
[0149] The processor 501 reads and executes computer program instructions stored in the memory 502 to implement any low-code development method for industrial software in the embodiments shown in the figure.
[0150] In one example, the electronic device may further include a communication interface 503 and a bus 510. Figure 5 As shown, the processor 501, the memory 502, and the communication interface 503 are connected via a bus 510 and communicate with each other.
[0151] The communication interface 503 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0152] Bus 510 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 510 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0153] The electronic device can execute the low-code development method of industrial software in the embodiment of the present application, thereby realizing the combination of Figures 1 to 3 Describes a low-code development approach for industrial software.
[0154] In addition, in combination with the low-code development method for industrial software in the above-mentioned embodiment, the embodiment of the present application can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, the Figures 1 to 3 A low-code development approach for industrial software in .
[0155] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0156] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0157] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0158] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A low-code development method for industrial software, characterized in that: The method comprises: Parsing the acquired target domain model to obtain multiple subdomains, wherein the subdomains include a core subdomain and multiple general subdomains; Parsing the subdomain to obtain attributes of the data object and the business logic of the data object; Generate a data structure instance layer according to the attributes and the business logic; Converting the data structure instance layer into a data structure model layer; Converting the data structure model layer into a data meta model layer; Generate industrial software from the data structure metamodel layer; The data structure model layer includes objects, and converting the data structure model layer into a data meta-model layer includes: Abstracting the objects in the data structure model layer into meta-objects; Generate a meta array according to the meta object, wherein the meta array is used to describe constituent elements of the meta object; Generate a metadata set according to the metadata array, wherein the metadata set is used to define the dimension of the multidimensional dataset; Generate structured code according to the metadata set and the business logic; Wherein, the data metamodel layer includes the meta-object, the meta-array, the meta-data set and the structured code; The step of generating industrial software from the data structure metamodel layer includes: Generate an industrial software template according to the meta-object, the meta-array and the meta-data set in the data meta-model layer; The industrial software is generated according to the structured code and the industrial software template.
2. The method according to claim 1, characterized in that The step of converting the data structure instance layer into a data structure model layer includes: Generate an object component corresponding to the data object according to the attribute and the business logic; The data structure model layer is generated according to the object components.
3. The method according to claim 2, characterized in that Generating the data structure model layer according to the object component includes: Generate visualization code, objects, arrays and data sets according to the object components; The data structure model layer is generated based on the object component, the visualization code, the object, the array and the data set.
4. The method according to claim 1, characterized in that The parsing of the subdomain to obtain the attributes of the data object and the business logic of the data object includes: Decomposing the data objects in each of the subdomains; The data objects and the relationships between the data objects are analyzed to obtain the attributes of the data objects and the business logic of the data objects.
5. A low-code development device for industrial software, characterized in that: The device comprises: A first parsing module is used to parse the acquired target domain model to obtain multiple subdomains, wherein the subdomains include a core subdomain and multiple general subdomains; A second parsing module, used to parse the subdomain to obtain the attributes of the data object and the business logic of the data object; A first generating module, used for generating a data structure instance layer according to the attributes and the business logic; A first conversion module, used for converting the data structure instance layer into a data structure model layer; A second conversion module, used for converting the data structure model layer into a data meta model layer; A third generation module is used to generate industrial software from the data structure metamodel layer; The data structure model layer includes objects, and the second conversion module is specifically used for: Abstracting the objects in the data structure model layer into meta-objects; generating meta-arrays according to the meta-objects, the meta-arrays being used to describe the constituent elements of the meta-objects; generating meta-data sets according to the meta-arrays, the meta-data sets being used to define the dimensions of a multi-dimensional data set; generating structured codes according to the meta-data sets and the business logic; wherein the data meta-model layer includes the meta-objects, the meta-arrays, the meta-data sets and the structured codes; The third generation module is specifically used for: An industrial software template is generated according to the meta-object, the meta-array and the meta-data set in the data meta-model layer; and the industrial software is generated according to the structured code and the industrial software template.
6. An electronic device, characterized in that: The device includes: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the low-code development method for industrial software as described in any one of claims 1 to 4 is implemented.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement the low-code development method for industrial software as described in any one of claims 1 to 4.
