Method and device for quickly building system based on metadata
Technical Field
The invention relates to the technical field of software development, in particular to a method and a device for quickly building a system based on metadata.
Background
With the advancement of informatization construction of industries, informatization application and informatization degree of departments and industries are gradually increased, and professional software development engineers such as material Management (MRP), customer management (CRM), enterprise information management (ERP) and the like perform system development work in various languages and personal habits. The system has the advantages that the system basically has thousands of millions of codes, the development workload is large, the system is complex, once the development is completed, the system has large workload for adjusting the codes, the whole body of a pulling action is always generated, the system has the condition of non-uniform sources, if the bottom layer of the system supports service sources according to service scene changes, the service related service systems are required to be modified layer by layer from a data control layer, the unified metadata management support and the visual configuration management system support are required, the problems are solved, the labor force of quick release personnel is realized, the cost is saved, and the quick construction method based on the metadata system is provided.
Metadata is generally called as data of data, metadata is taken as key development data treatment, the enterprise can be helped to manage data resources better, relationships among the data are cleared, more accurate and efficient analysis and decision are achieved, the whole process from generation to extinction of the data is completed through source data, a data warehouse and data application, metadata can help data warehouse administrators and developers to find relationships of the data warehouse administrators and the data developers conveniently, and the metadata is used for guiding the enterprises to conduct data management and system development and provides working efficiency.
Along with the development of information technology and the continuous maturity of computer technology, key business application systems and high informatization systems are continuously emerging, and different informatization systems meet the diversified demands of users. In order to meet the needs of users, developers need to update and maintain the software system in time. When new functions or new services are required to be added, the traditional development mode is hard coding development aiming at each service, and hard coding is to directly write data into codes for compiling development, but the development mode has low efficiency, the modules can not be reused, the system error rate is high, and the system upgrade is easy to cause problems.
The invention provides a method and a device for quickly building a system based on metadata, aiming at solving the problems of low efficiency, non-multiplexing of modules, high system error rate, easy initiation of system upgrading and the like in the traditional mode.
Disclosure of Invention
The invention provides a simple and efficient method and device for quickly building a system based on metadata in order to make up the defects of the prior art.
The invention is realized by the following technical scheme:
a method for quickly building a system based on metadata is characterized by comprising the following steps:
Firstly, interfacing metadata modules in a data warehouse system, performing metadata conversion adaptation, and performing standardized output on metadata so as to cope with the requirements of metadata module metadata management of different products on external service change;
secondly, performing system construction according to a standardized structure in the system and a service related model, customizing a service system software man-machine interaction interface, and quickly constructing an application system;
Thirdly, carrying out service logic operation and analysis on a service logic model configured based on metadata to form a metadata model based on the metadata, and realizing the technical conversion of the system and the service model;
and fourthly, explaining a service model generated by the system according to a metadata model formed in the system, generating a standard service database language, interacting with an actual service center library management system, and meeting the requirements of related service systems.
In the first step, the service interface of the actual metadata system is also adjusted to reduce the adaptation complexity, realize standardized output of metadata, fault tolerance and enhance the robustness and adaptation of the system.
In the second step, the system service related model is combined with metadata, and the target service and the corresponding service metadata relationship are subjected to visual configuration to form the service operator logic.
In the second step, the specific implementation steps are as follows:
(1) Firstly, acquiring metadata information of a target service and service information of the target service;
(2) Then, according to the service related requirements of the target system, configuring the association relation between the service system and the service metadata to form a mapping logic mapping between the target system and the physical metadata, wherein the service metadata are associated with at least one physical metadata;
(3) And carrying out visual configuration on the target service and the corresponding service metadata relationship.
In the third step, the metadata model is utilized to provide service logic operation and metadata assembly functions for the inside and provide translation functions in the standard service model and metadata conversion process for the outside.
In the third step, the model in the service field is processed and converted, metadata is combined and arranged according to the actual requirement of the system service and the logic rules to form a logic service rule base related to the system service, and meanwhile, the standard of the metadata model and the technical expandability of an interface component are utilized to realize the standard, so that a public interpretation module is provided.
And in the fourth step, explaining the relation between the metadata and the service model output by the system and the metadata in the actual service database.
The device for quickly constructing the system based on the metadata is characterized by comprising a metadata integration module, a system visual configuration module, a system logic module and a metadata interpretation module;
the metadata integration module is used for interfacing metadata modules in the data warehouse system and performing metadata conversion adaptation so as to meet the requirements of metadata management of the metadata modules of different products on external service change;
the system visualization configuration module is responsible for carrying out system construction according to a standardized structure in the system and a service related model, combining the system service related model with metadata, designing and describing a service field data model, customizing a service system software man-machine interaction interface and quickly constructing an application system;
the system logic module is responsible for carrying out service logic operation and analysis on a service logic model configured based on metadata, realizing the technical conversion of a system and the service model, forming a logic service rule base related to the system service according to the actual requirement of the system service, realizing the standard expandability by utilizing the standardization of the metadata model and the interface component technology, and providing a public interpretation module;
The metadata interpretation module is responsible for interpreting a service model generated by the system according to a metadata model formed in the system, generating a standard service database language, interacting with an actual service center library management system, and meeting the requirements of related service systems.
The metadata-based method and device for quickly constructing the system have the advantages that the metadata system is used for constructing the system, the problems of low development efficiency and incapability of multiplexing of hard codes are solved, the coding amount is reduced, the development cost is reduced, the development efficiency is improved, meanwhile, the logic between the decoupling system and the database is reduced, the coupling degree is reduced, standardized output of the metadata is realized, the fault tolerance is quick, and the robustness and the quick adaptability of the system are enhanced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a method and apparatus for quickly building a system based on metadata according to the present invention.
FIG. 2 is a diagram illustrating a metadata integration method according to the present invention.
FIG. 3 is a schematic diagram of a system visual configuration method according to the present invention.
FIG. 4 is a schematic diagram of the business logic operation and analysis method of the present invention.
Fig. 5 is a schematic diagram of a metadata interpretation method of the present invention.
Detailed Description
In order to enable those skilled in the art to better understand the technical solution of the present invention, the following description will make clear and complete description of the technical solution of the present invention in combination with the embodiments of the present invention. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
First, the access logic to the actual business database field is independent of the base database instance. Because the metadata describing the service database is read in the information maintenance, when the service database changes, such as the increase of the field addition and deletion type field width, only the parameter data in the metadata module is required to be modified, and the unique coding information after the metadata is stored in the system is constructed without recompiling the code program. Second, the logical metadata structure is persisted, dynamically loaded, and not solidified in the program code. The visual interface configures the logic relation between the metadata and the service background, so that the system can be conveniently and quickly adjusted to adapt to the actual service demands of users.
The method for quickly building the system based on the metadata comprises the following steps:
Firstly, interfacing metadata modules in a data warehouse system, performing metadata conversion adaptation, and performing standardized output on metadata so as to cope with the requirements of metadata module metadata management of different products on external service change;
secondly, performing system construction according to a standardized structure in the system and a service related model, customizing a service system software man-machine interaction interface, and quickly constructing an application system;
Thirdly, carrying out service logic operation and analysis on a service logic model configured based on metadata to form a metadata model based on the metadata, and realizing the technical conversion of the system and the service model;
and fourthly, explaining a service model generated by the system according to a metadata model formed in the system, generating a standard service database language, interacting with an actual service center library management system, and meeting the requirements of related service systems.
In the first step, the service interface of the actual metadata system is also adjusted to reduce the adaptation complexity, realize standardized output of metadata, fault tolerance and enhance the robustness and adaptation of the system.
In the second step, the system service related model is combined with metadata, and the target service and the corresponding service metadata relationship are subjected to visual configuration to form the service operator logic.
In the second step, the specific implementation steps are as follows:
(1) Firstly, acquiring metadata information of a target service and service information of the target service;
(2) Then, according to the service related requirements of the target system, configuring the association relation between the service system and the service metadata to form a mapping logic mapping between the target system and the physical metadata, wherein the service metadata are associated with at least one physical metadata;
(3) And carrying out visual configuration on the target service and the corresponding service metadata relationship.
In the third step, the metadata model is utilized to provide service logic operation and metadata assembly functions for the inside and provide translation functions in the standard service model and metadata conversion process for the outside.
In the third step, the model in the service field is processed and converted, metadata is combined and arranged according to the actual requirement of the system service and the logic rules to form a logic service rule base related to the system service, and meanwhile, the standard of the metadata model and the technical expandability of an interface component are utilized to realize the standard, so that a public interpretation module is provided.
And in the fourth step, explaining the relation between the metadata and the service model output by the system and the metadata in the actual service database.
The device for quickly constructing the system based on the metadata comprises a metadata integration module, a system visual configuration module, a system logic module and a metadata interpretation module;
the metadata integration module is used for interfacing metadata modules in the data warehouse system and performing metadata conversion adaptation so as to meet the requirements of metadata management of the metadata modules of different products on external service change;
the system visualization configuration module is responsible for carrying out system construction according to a standardized structure in the system and a service related model, combining the system service related model with metadata, designing and describing a service field data model, customizing a service system software man-machine interaction interface and quickly constructing an application system;
the system logic module is responsible for carrying out service logic operation and analysis on a service logic model configured based on metadata, realizing the technical conversion of a system and the service model, forming a logic service rule base related to the system service according to the actual requirement of the system service, realizing the standard expandability by utilizing the standardization of the metadata model and the interface component technology, and providing a public interpretation module;
The metadata interpretation module is responsible for interpreting a service model generated by the system according to a metadata model formed in the system, generating a standard service database language, interacting with an actual service center library management system, and meeting the requirements of related service systems.
Compared with the prior art, the method and the device for quickly constructing the system based on the metadata have the following characteristics:
Firstly, the metadata is utilized to develop a service system, on one hand, the logic between the system and the database is decoupled, the coupling degree is reduced, and on the other hand, the management of the whole life cycle of the data is facilitated through the metadata management function.
Secondly, the method not only realizes effective supervision and integration of the data, but also can ensure high-quality seamless circulation of the data in each link and reduce creation of data islands, thereby not only realizing effective utilization of the data, but also effectively controlling unique sources of service data and ensuring monitoring efficiency of the data.
Thirdly, the application system can be developed by means of metadata ideas, so that the whole system can be more suitable for the current requirement of rapid informationized system development, and the expansibility and reusability of the system, the data uniformity after the system is upgraded and the data uniformity in the industry can be ensured.
The above examples are only one of the specific embodiments of the present invention, and the ordinary changes and substitutions made by those skilled in the art within the scope of the technical solution of the present invention should be included in the scope of the present invention.