Data processing method, device and computer equipment based on configuration management system
By constructing a relational architecture for the configuration management system and determining the relationships based on object coding, the problem of high data management difficulty in the configuration management system is solved, and data management is simplified and efficiency is improved.
Patent Information
- Application Number
- CN202110808791.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-16
- Publication Date
- 2026-02-03
- Estimated Expiration
- 2041-07-16
AI Technical Summary
Existing configuration management systems have many types of resources with different attributes, which means that adding or modifying configuration attributes requires version releases, increasing the workload of R&D and operations, and making data management difficult.
By acquiring the object model, attribute model, and relationship model from the configuration management system, determining the relationships between the models based on object coding, constructing a relationship architecture, and responding to data processing operations for data management.
It simplifies data management in the configuration management system, reduces the need for version releases, and improves the efficiency and accuracy of data processing.
Smart Images

Figure CN115617774B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computers, in particular to a data processing method and device based on a configuration management system, a computer device and a storage medium. BACKGROUND
[0002] With the continuous development of cloud technology, more and more enterprise-level applications choose a suitable CMDB (Configuration Management Database) for themselves to support chassis data and provide efficient and accurate basic data for operation and maintenance personnel.
[0003] However, the current configuration management system method has many types of managed resources with different attributes, often requires adding or modifying configuration attributes, and the page field display or form needs to be updated through version release, which increases the workload of research and development and operation and maintenance, and makes data management difficult. SUMMARY
[0004] Therefore, it is necessary to provide a data processing method and device based on a configuration management system, a computer device and a storage medium, which can simplify the data management of the configuration management system.
[0005] A data processing method based on a configuration management system, the method comprising:
[0006] obtaining an object model, an attribute model and a relationship model in a configuration management system;
[0007] determining a first association relationship between the object model and the attribute model and a second association relationship between the object model and the relationship model based on an object code corresponding to each object;
[0008] constructing a relationship architecture of the configuration management system based on the first association relationship and the second association relationship;
[0009] performing data processing on the configuration management system based on data processing parameters corresponding to a data processing operation and the relationship architecture in response to the data processing operation.
[0010] A data processing device based on a configuration management system, the device comprising:
[0011] a model obtaining module configured to obtain an object model, an attribute model and a relationship model in a configuration management system;
[0012] an association relationship determining module configured to determine a first association relationship between the object model and the attribute model and a second association relationship between the object model and the relationship model based on an object code corresponding to each object;
[0013] a relationship architecture constructing module, configured to construct a relationship architecture of the configuration management system based on the first association relationship and the second association relationship;
[0014] a data processing module, configured to perform data processing on the configuration management system based on a data processing parameter corresponding to a data processing operation and the relationship architecture in response to the data processing operation.
[0015] A computer device, comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:
[0016] acquiring an object model, an attribute model and a relationship model in a configuration management system;
[0017] determining a first association relationship between the object model and the attribute model and a second association relationship between the object model and the relationship model based on an object code corresponding to each object;
[0018] constructing a relationship architecture of the configuration management system based on the first association relationship and the second association relationship;
[0019] performing data processing on the configuration management system based on a data processing parameter corresponding to a data processing operation and the relationship architecture in response to the data processing operation.
[0020] A computer readable storage medium, storing a computer program, the computer program being executed by a processor to implement the following steps:
[0021] acquiring an object model, an attribute model and a relationship model in a configuration management system;
[0022] determining a first association relationship between the object model and the attribute model and a second association relationship between the object model and the relationship model based on an object code corresponding to each object;
[0023] constructing a relationship architecture of the configuration management system based on the first association relationship and the second association relationship;
[0024] performing data processing on the configuration management system based on a data processing parameter corresponding to a data processing operation and the relationship architecture in response to the data processing operation.
[0025] The data processing method, device, computer device and storage medium based on the configuration management system, by obtaining the object model, attribute model and relationship model in the configuration management system, the data management of different data is facilitated by model separation, the first association relationship between the object model and the attribute model and the second association relationship between the object model and the relationship model are determined based on the object code corresponding to each object, the relationship architecture of the configuration management system is constructed based on the first association relationship and the second association relationship, the association of each module is realized, the data processing operation is responded, the data processing of the configuration management system is performed based on the data processing parameter corresponding to the data processing operation and the relationship architecture, the data management based on the data processing operation is directly performed, and the simplification of the data management of the configuration management system is realized. BRIEF DESCRIPTION OF DRAWINGS
[0026] Figure 1 An application environment diagram of the data processing method based on the configuration management system in one embodiment;
[0027] Figure 2 A flowchart of the data processing method based on the configuration management system in one embodiment;
[0028] Figure 3 A flowchart of the data processing method based on the configuration management system in another embodiment;
[0029] Figure 4 A flowchart of the data processing method based on the configuration management system in still another embodiment;
[0030] Figure 5 A flowchart of the data processing method based on the configuration management system in yet another embodiment;
[0031] Figure 6 A flowchart of the data processing method based on the configuration management system in still another embodiment;
[0032] Figure 7 A flowchart of the data processing method based on the configuration management system in yet another embodiment;
[0033] Figure 8 A flowchart of the data processing method based on the configuration management system in still another embodiment;
[0034] Figure 9 A structural block diagram of the data processing device based on the configuration management system in one embodiment;
[0035] Figure 10 An internal structure diagram of the computer device in one embodiment. DETAILED DESCRIPTION
[0036] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and not intended to limit the present application.
[0037] The data processing method based on the configuration management system provided by the present application can be applied in an application environment as shown in Figure 1 The present embodiment takes the method applied in a server corresponding to the configuration management system as an example. The server 102 acquires an object model, an attribute model and a relationship model in the configuration management system; determines a first association relationship between the object model and the attribute model and a second association relationship between the object model and the relationship model based on an object code corresponding to each object; constructs a relationship architecture of the configuration management system based on the first association relationship and the second association relationship; and performs data processing on the configuration management system based on a data processing parameter corresponding to a data processing operation and the relationship architecture in response to the data processing operation. The server 102 can be implemented by an independent server or a server cluster composed of multiple servers.
[0038] It can be understood that the method can also be applied in a terminal corresponding to the configuration management system and can also be applied in a configuration management system including a terminal and a server and implemented through the interaction of the terminal and the server. The terminal can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices.
[0039] In one embodiment, as shown in Figure 2 , a data processing method based on a configuration management system is provided. The method is taken as an example to be applied in a server in Figure 1 , and includes the following steps:
[0040] Step 202, acquiring an object model, an attribute model and a relationship model in the configuration management system.
[0041] The configuration management system (CMDB) is a logical database containing the information of the whole life cycle of the configuration item and the relationship between the configuration items, including physical relationship, real-time communication relationship, non-real-time communication relationship and dependency relationship.
[0042] An object model is a model that contains information about various entity objects in a configuration management system. An entity object can be a general term for a class of items, or it can correspond to a specific class of items. For example, a firewall, a switch, and a router are three different entity objects. Objects and entities can have a one-to-one or one-to-many relationship, with an entity corresponding to a specific item, such as routers A, B, and C. An attribute model records the specific configuration attributes of the entity object model, such as the IP address, port, model, and brand of a switch. A relational model records the relationships between object models; for example, a switch is typically placed in a server rack, and there is a "placed" or similar relationship between them.
[0043] Furthermore, the configuration management system pre-constructs object models, attribute models, and relational models according to data types. Based on different data types, the data in the configuration management system is classified, which can decouple various data in the configuration management system and facilitate the management of various data information in the configuration management system.
[0044] Step 204: Based on the object code corresponding to each object, determine the first association between the object model and the attribute model, and the second association between the object model and the relation model.
[0045] The object model includes information about each object, including a unique object code corresponding to that object. The attribute model includes attributes for each object, and each attribute also corresponds to a unique object code. Based on the object codes, the correspondence between objects in the object model and attributes in the attribute model can be determined, thus establishing an accurate and reliable association between the objects in the object model and the attributes in the attribute model, thereby obtaining the primary association between the object model and the attribute model.
[0046] Similarly, the relational model includes relationships between multiple objects. Each object is identified by a unique object code. By associating objects with corresponding relationships in the relational model and objects in the object model based on object codes, a second association relationship is established between the object model and the relational model.
[0047] Step 206: Based on the first and second association relationships, construct the relationship architecture of the configuration management system.
[0048] Relational architecture refers to the underlying data relationship architecture of the configuration management model. Through relational architecture, object models, attribute models and relationship models are mirrored and associated. During data processing, related data can be searched and obtained based on the relational architecture of the configuration management system, and data fusion is achieved on the basis of module decoupling.
[0049] Furthermore, based on the objects and attributes corresponding to each object code in the first association relationship, and the objects and related objects corresponding to each object code in the second association relationship, the server constructs a relational architecture for the configuration management system using object codes as a bridge, thereby enabling the interconnection of relationships among objects, object attributes, and relationships between objects.
[0050] In one embodiment, such as Figure 3 The diagram illustrates a relational architecture for a configuration management system. Specifically, driven by the object model, an object model table is defined. Each object has its own attributes (an attribute model table), and relationships exist between objects (a relational model table). Based on the object and attribute models, a table structure is constructed to store specific resource data. A unique key, a value uniquely identifiable within the entire CMDB, is also created to establish data associations between parties. For each changed resource data entry, a history table records its lifecycle. The relational model constructs direct relationships between objects. It's worth noting that the relational model supports user-defined relational tables.
[0051] Step 208: Respond to the data processing operation and perform data processing on the configuration management system based on the data processing parameters and relational architecture corresponding to the data processing operation.
[0052] Data processing operations refer to the operations performed by users to process one or more pieces of data in the configuration management system as needed. Specifically, data processing operations can include data query operations, data write operations, and operations performed on data in any of the object model, attribute model, or relational model.
[0053] Furthermore, data processing operations can be performed by users on the display interface of the configuration management system. The display interface can show multiple pages, each corresponding to a specific data processing operation. For example, users can perform data query operations through the query page, data writing operations through the data writing page, and data management operations for corresponding modules through sub-pages such as object management, attribute management, and relationship management within the module management page.
[0054] Specifically, the server responds to the user's data processing operations on the display page, obtains the data input on the display page, gets the data processing parameters corresponding to the data processing operation, and performs data processing on the configuration management system based on the data processing parameters and relational architecture.
[0055] The aforementioned data processing method based on the configuration management system obtains the object model, attribute model, and relation model from the configuration management system. By separating the models, it facilitates the management of different types of data. Based on the object code corresponding to each object, it determines the first association between the object model and the attribute model, and the second association between the object model and the relation model. Based on the first and second associations, it constructs the relational architecture of the configuration management system, realizes the association of various modules, responds to data processing operations, and performs data processing on the configuration management system based on the data processing parameters and relational architecture corresponding to the data processing operations. This simplifies the data management of the configuration management system by enabling direct data management based on data processing operations.
[0056] In one embodiment, such as Figure 4 As shown, the data processing operations include data query operations. In response to the data processing operations, based on the corresponding data processing parameters and relational architecture, data processing is performed on the configuration management system, including steps 402 to 408.
[0057] Step 402: In response to the selection operation of candidate query fields in the query page of the configuration management system, determine the target object code corresponding to the selected target query field based on the object information in the object model.
[0058] Step 404: Based on the first association relationship, obtain the target object attributes corresponding to the target object code, and display the parameter input area corresponding to the target object attributes on the query page.
[0059] Step 406: Assemble an executable query statement based on the query parameters entered in the parameter input area.
[0060] Step 408: Based on the second association relationship, execute the executable query statement to obtain the business data query results, and display the business data query results on the query page.
[0061] The query page refers to the page displayed in the configuration management system's interface for data retrieval. The configuration management system's interface can be the server's own interface or the interface on a terminal connected to the server.
[0062] Furthermore, the query page displays multiple candidate query fields, each corresponding to a specific object. For example, candidate query fields could include firewalls, switches, routers, etc., and each query field is displayed through a field label showing its name.
[0063] Specifically, when a user clicks on a field label corresponding to a candidate query field on the query page, the server marks the selected field label as selected and finds the target object to which the selected field label belongs from the object information in the object model. Then, the object code of the target object is used as the target object code corresponding to the selected target query field.
[0064] Based on the first association between the object model and the attribute model, the server determines the target object attribute in the attribute model that corresponds to the target object code, and displays the parameter input area corresponding to the target object attribute on the query page.
[0065] The target object can have multiple attributes, and correspondingly, there can be multiple parameter input areas, each corresponding to one target object attribute. The display position of the parameter input areas corresponds to the target object attributes. For example, if multiple attributes of the target object are arranged sequentially, then the multiple parameter input areas will also be arranged sequentially. For instance, multiple attributes can be displayed in order on the left side of the query page, with the corresponding parameter input area displayed to the right of each attribute for user input.
[0066] The server assembles an executable query statement based on the query parameters entered in the parameter input area. An executable query statement is a computer code statement that carries query parameters and can be executed to obtain query results corresponding to the query parameters.
[0067] Specifically, if there is only one query parameter entered in the parameter input area (e.g., only one parameter input area has a query parameter entered in multiple parameter input areas), then the query statement can carry only one query parameter. If there are multiple query parameters entered in the parameter input area (e.g., multiple parameter input areas have multiple query parameters entered in multiple parameter input areas), then the query statement can carry multiple query parameters.
[0068] The server executes an executable query statement, which can determine the object code of the target object corresponding to the query parameters in the executable query statement. Then, based on the second association relationship and the object code of the target object, it determines the object that has a relationship with the target object, and uses the data corresponding to that object as the business data query result. After obtaining the business data query result, the server displays the business data query result on the query page, realizing convenient and fast data query for users.
[0069] Furthermore, the data query process is as follows: Figure 5As shown, the server creates a list header and query controls. Based on the object code, it retrieves the object table name and attribute list from the database. Using the object table name and attribute list, it assembles dynamic columns for the list query. Based on the attribute Chinese names, sorting order, attribute names, attribute types, and extended attribute values returned from the backend, it returns the results to the frontend for rendering. The query parameters are then combined with the user-input query parameters and the object table name and attribute list to form an executable query statement. This statement is used to query the data, and the results are displayed on the frontend. The query parameters include the object code and the input values in each query control.
[0070] In this embodiment, based on the decoupled configuration management system, the user can conveniently and quickly query data by entering query parameters in the parameter input area through the displayed query page and assembling an executable query statement.
[0071] In one embodiment, such as Figure 6 As shown, based on the first association relationship, the target object attributes corresponding to the target object code are obtained, and the parameter input area corresponding to the target object attributes is displayed on the query page, including:
[0072] Step 602: Based on the object information in the object model, obtain the target object table name corresponding to the target object code.
[0073] Step 604: Based on the first association relationship, obtain the list of target attributes corresponding to the target object encoding.
[0074] Step 606: Generate dynamic columns for list queries based on the target object table name and the target attribute list.
[0075] Step 608: Render the dynamic columns of the list query to the query page and display the parameter input area corresponding to the dynamic columns of the list query.
[0076] The target object table name refers to the object table name in the object information of the target object. The object table name is the name of the object table, which is a data structure used to store object data. The server can retrieve relevant data about the object through the object table name.
[0077] The attribute list is a list built based on the attributes corresponding to the object. The server retrieves the target object table name and the target attribute list corresponding to the target object code from the database based on the object information in the object model and the primary association.
[0078] The server generates dynamic columns for list queries based on the target object table name and the target attribute list. Dynamic columns refer to data representation that is dynamically combined and arranged in a list format. This dynamic arrangement allows for efficient and appropriate rendering on the query page, facilitating the accurate and logical display of the parameter input areas corresponding to the dynamic columns.
[0079] In one embodiment, the data processing operation includes a data write operation. For example... Figure 7 As shown, in response to data processing operations, based on the data processing parameters and relational architecture corresponding to the data processing operations, data processing is performed on the configuration management system, including steps 702 to 710.
[0080] Step 702: In response to the field selection operation on the write page of the configuration management system, determine the target object code corresponding to the selected target field based on the object information in the object model.
[0081] Step 704: Based on the first association relationship, obtain the target object attribute corresponding to the target object code, and display the data input area corresponding to the target object attribute on the writing page.
[0082] Step 706: Validate the data entered in the data input area based on the attribute validation conditions corresponding to the target object's attributes.
[0083] Step 708: When the data verification result is successful, assemble an executable write statement based on the input data.
[0084] Step 710: Execute the executable write statement to write the data to the preset database.
[0085] The write page refers to the page displayed in the configuration management system's interface used for writing data. Furthermore, on the write page, for each object, multiple candidate write fields are displayed, each indicated by a field label displaying its name.
[0086] Specifically, when a user clicks on a field label corresponding to a candidate write field on the write page, the server marks the selected field label as selected and finds the target object to which the selected field label belongs from the object information in the object model. Then, the object code of the target object is used as the target object code corresponding to the selected target write field.
[0087] Based on the initial association between the object model and the attribute model, the server determines the target object attribute in the attribute model corresponding to the target object's code, and displays the data input area corresponding to the target object attribute on the write page. There can be multiple attribute information for the target object, and correspondingly, there can also be multiple data input areas, each corresponding to one target object attribute. The display position of the data input area corresponds to the target object attribute. For example, if multiple attribute information of the target object is arranged sequentially, then the multiple data input areas are also arranged sequentially. For instance, multiple attribute information is displayed in order on the left side of the write page, and the corresponding data input area is displayed to the right of each attribute information, so that the user can accurately input data.
[0088] The server validates the data input into the data input area based on the attribute validation conditions corresponding to the target object's attributes. Attribute validation conditions are a type of object attribute information that can be set during the object's attribute configuration process. When the input data meets the attribute validation conditions, an executable write statement is assembled. An executable write statement is a computer code statement that carries the input data and can write it to the corresponding database. By executing the executable write statement, the server can determine the object code of the target object corresponding to the input data in the executable write statement. Then, based on the second association relationship and the target object's object code, it determines the object that has a relationship with the target object, thereby writing the input data corresponding to that object to the corresponding database, achieving convenient and fast data writing.
[0089] Furthermore, the data writing process is as follows: Figure 8 As shown, the server creates a form, retrieves a list of attributes from the database based on the object code corresponding to the form, generates form controls based on the attribute list, and displays them on the write page. The form controls include attribute types, attribute names, sorting order, validation methods, etc. The server then retrieves the data entered by the user into the form controls on the write page and validates the entered data against the attribute validation conditions of the corresponding object. When the input data meets the attribute validation conditions, an executable write statement is assembled based on the object's table name, attribute list, and input data. Executing this executable write statement writes the input data into the database, completing the data writing process.
[0090] In this embodiment, based on a decoupled configuration management system, data can be written quickly and easily by inputting data in the parameter input area through the displayed write page and assembling executable write statements based on the input data.
[0091] In one embodiment, the data processing operation includes an attribute configuration operation. In response to the data processing operation, based on the data processing parameters and relational architecture corresponding to the data processing operation, data processing is performed on the configuration management system, including:
[0092] In response to attribute configuration operations on the attribute configuration page, the attribute configuration is performed based on the attribute information corresponding to the attribute configuration operation and according to the object code corresponding to the attribute information.
[0093] The attribute information includes at least one of the following: attribute name, attribute code, attribute type, attribute length, attribute validation conditions, sorting order, display position, and attribute visibility range.
[0094] The attribute name includes both Chinese and English names. Attribute encoding refers to the unique and readable encoding within the same object, such as `name`. Attribute type includes types like date, text, integer, enumeration, employee ID, and department, which can be used for advanced search or automatically generating add / modify forms. Attribute length refers to the length of the resource attribute value. Attribute validation conditions include: required fields, custom regular expressions, custom JavaScript methods, and HTTP methods. The sorting order refers to the order in which attributes are displayed within the same object, used for dynamically displaying columns and sorting forms. The display position configures where the attribute appears, such as in lists, forms, advanced search, and full-text search. Attribute visibility controls whether the attribute is displayed or encrypted.
[0095] The server can search for object attributes by responding to user actions such as clicking the "Enter object code" or "Enter attribute-related information query" controls on the attribute configuration page. Then, it can process the data configuration of the found attributes, which solves the problem of needing to adjust the page and backend logic to modify the configuration attributes. It allows for online editing, takes effect immediately, and requires no development or maintenance, enabling convenient processing of object attributes.
[0096] In one embodiment, the data processing operation includes an object configuration operation. Data processing parameters include input object information. In response to the data processing operation, based on the data processing parameters and relational structure corresponding to the data processing operation, data processing is performed on the configuration management system, including: responding to the object configuration operation on the object configuration page, and configuring the object based on the object corresponding to the input object information. The object information includes at least one of the following: object code, domain code, inherited object, object type, object table name, display fields, and object visibility scope.
[0097] Among them, object encoding is used to represent unique objects, distinguishing different objects and ensuring readability and uniqueness. For example, `CVMInstance`. Domain encoding refers to the object's domain, used for object classification and management. Inherited object refers to the parent object encoding, reflecting inheritance between objects, used in attributes, inheriting all attributes from the parent. Object types include entities (generating entity data tables) and views (generating views). Object table name refers to the entity table or view name, such as `t_res_cvm_instance`; display fields are combined personalized attribute display names, improving resource readability. Visibility scope refers to the object display management configuration.
[0098] The server can add or search for objects by responding to user actions such as clicking "Add Object" or "Enter Object-Related Information to Query" on the object configuration page. It can then process the data configuration of the newly added or found objects, solving the problem of needing to adjust the page and backend logic when modifying object information. It allows for online editing with immediate effect, requiring no development or maintenance, and enables convenient management of objects.
[0099] In one embodiment, the data processing operation includes a relationship configuration operation. Responding to the data processing operation, based on the data processing parameters and relationship architecture corresponding to the data processing operation, data processing is performed on the configuration management system, including: responding to the relationship configuration operation on the relationship configuration page, and configuring relationships between objects based on the associated object information corresponding to the relationship configuration parameters. The associated object information includes at least one of the following: relationship code, source object code, source object attribute, destination object code, destination object attribute, relationship type, and relationship table name.
[0100] The relation encoding refers to the encoding within a relation, possessing readability and uniqueness. For example: CVMInstance-CVMBMSHost. The source object encoding records the originating source object of the relation. Source object attributes are the source attributes used to establish the association. The target object encoding records the target object of the relation. Target object attributes are the target attributes used to establish the association. Relationship type: used to represent the relationship between objects, such as 1:1, 1:N, N:1, N:N. Relationship table name: defaults to a common relationship table; a specific object can be specified if needed.
[0101] The server can add or search for relationships by responding to user actions such as clicking "Add Relationship" or "Enter Relationship-Related Information to Query" on the relationship configuration page. It can then process the data configuration of the newly added or found relationships, solving the problem of needing to adjust the page and backend logic when modifying relationships between objects. It allows for online editing with immediate effect, requiring no development or maintenance, and enables convenient management of relationships between objects.
[0102] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps.
[0103] In one embodiment, such as Figure 9 As shown, a data processing device based on a configuration management system is provided, including: a model acquisition module 902, a relationship determination module 904, a relationship architecture construction module 906, and a data processing module 908, wherein:
[0104] Model acquisition module 902 is used to acquire the object model, attribute model and relation model in the configuration management system;
[0105] The association determination module 904 is used to determine the first association between the object model and the attribute model, and the second association between the object model and the relationship model, based on the object code corresponding to each object.
[0106] The relational architecture building module 906 is used to build the relational architecture of the configuration management system based on the first association relationship and the second association relationship;
[0107] The data processing module 908 is used to respond to data processing operations and to process data in the configuration management system based on the data processing parameters and relational architecture corresponding to the data processing operations.
[0108] In one embodiment, the data processing operation includes a data query operation; the data processing module 908 is further configured to respond to the selection operation of candidate query fields in the query page of the configuration management system, determine the target object code corresponding to the selected target query field based on the object information in the object model; obtain the target object attribute corresponding to the target object code based on the first association relationship, and display the parameter input area corresponding to the target object attribute on the query page; assemble an executable query statement based on the query parameters entered in the parameter input area; execute the executable query statement based on the second association relationship to obtain the business data query result, and display the business data query result on the query page.
[0109] In one embodiment, based on the first association relationship, the data processing module 908 is further configured to: obtain the target object table name corresponding to the target object code based on the object information in the object model; obtain the target attribute list corresponding to the target object code based on the first association relationship; generate a dynamic column for list query based on the target object table name and the target attribute list; and render the dynamic column for list query to the query page to display the parameter input area corresponding to the dynamic column for list query.
[0110] In one embodiment, the data processing operation includes a data writing operation; the data processing module 908 is further configured to respond to a field selection operation on the write page of the configuration management system, determine the target object code corresponding to the selected target field based on object information in the object model; obtain the target object attribute corresponding to the target object code based on a first association relationship, and display the data input area corresponding to the target object attribute on the write page; validate the data input in the data input area based on the attribute validation conditions corresponding to the target object attribute; when the data validation result is valid, assemble an executable write statement based on the input data; execute the executable write statement to write the data to a preset database.
[0111] In one embodiment, the data processing operation includes an attribute configuration operation; the data processing module 908 is further configured to respond to the attribute configuration operation on the attribute configuration page, and perform attribute configuration based on the attribute information corresponding to the attribute configuration operation and according to the object code corresponding to the attribute information; wherein, the attribute information includes at least one of attribute name, attribute code, attribute type, attribute length, attribute validation conditions, sorting order, display position, and attribute visibility range.
[0112] In one embodiment, the data processing operation includes an object configuration operation; the data processing parameters include input object information; the data processing module 908 is further configured to respond to the object configuration operation on the object configuration page and perform object configuration based on the object corresponding to the input object information; wherein, the object information includes at least one of object code, domain code, inherited object, object type, object table name, display fields, and object visibility scope.
[0113] In one embodiment, the data processing operation includes a relationship configuration operation; the data processing module 908 is further configured to respond to the relationship configuration operation on the relationship configuration page and configure the relationship between objects based on the associated object information corresponding to the relationship configuration parameters; wherein, the associated object information includes at least one of the following: relationship code, source object code, source object attribute, destination object code, destination object attribute, relationship type, and relationship table name.
[0114] The aforementioned data processing device based on the configuration management system acquires the object model, attribute model, and relation model from the configuration management system. By separating the models, it facilitates data management of different data. Based on the object code corresponding to each object, it determines the first association between the object model and the attribute model, and the second association between the object model and the relation model. Based on the first and second associations, it constructs the relational architecture of the configuration management system, realizes the association of various modules, responds to data processing operations, and performs data processing on the configuration management system based on the data processing parameters and relational architecture corresponding to the data processing operations. This simplifies the data management of the configuration management system by enabling direct data management based on data processing operations.
[0115] For specific embodiments of the data processing device based on the configuration management system, please refer to the embodiments of the data processing method based on the configuration management system described above, which will not be repeated here. Each module in the aforementioned data processing device based on the configuration management system can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0116] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 10 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores data processed by the configuration management system. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements a data processing method based on the configuration management system.
[0117] Those skilled in the art will understand that Figure 10 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0118] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0119] Obtain the object model, attribute model, and relation model from the configuration management system; based on the object code corresponding to each object, determine the first association between the object model and the attribute model, and the second association between the object model and the relation model; based on the first and second associations, construct the relational architecture of the configuration management system; respond to data processing operations, and perform data processing on the configuration management system based on the data processing parameters and relational architecture corresponding to the data processing operations.
[0120] In one embodiment, the data processing operation includes a data query operation; the processor, when executing the computer program, also performs the following steps:
[0121] In response to the selection of candidate query fields on the query page of the configuration management system, the system determines the target object code corresponding to the selected target query field based on the object information in the object model; based on the first association relationship, it obtains the target object attribute corresponding to the target object code and displays the parameter input area corresponding to the target object attribute on the query page; based on the query parameters entered in the parameter input area, it assembles an executable query statement; based on the second association relationship, it executes the executable query statement to obtain the business data query results and displays the business data query results on the query page.
[0122] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0123] Based on the object information in the object model, obtain the target object table name corresponding to the target object code; based on the first association relationship, obtain the target attribute list corresponding to the target object code; based on the target object table name and the target attribute list, generate a dynamic column for list query; render the dynamic column for list query to the query page and display the parameter input area corresponding to the dynamic column for list query.
[0124] In one embodiment, the data processing operation includes a data write operation; the processor, when executing the computer program, also performs the following steps:
[0125] In response to a field selection operation on the write page of the configuration management system, the system determines the target object code corresponding to the selected target field based on the object information in the object model; based on the first association relationship, it obtains the target object attribute corresponding to the target object code and displays the data input area corresponding to the target object attribute on the write page; based on the attribute validation conditions corresponding to the target object attribute, it validates the data entered in the data input area; when the data validation result is successful, it assembles an executable write statement based on the input data; and executes the executable write statement to write the data to the preset database.
[0126] In one embodiment, the data processing operation includes an attribute configuration operation; the processor also performs the following steps when executing the computer program:
[0127] In response to attribute configuration operations on the attribute configuration page, the attribute configuration is performed based on the attribute information corresponding to the attribute configuration operation and according to the object code corresponding to the attribute information; wherein, the attribute information includes at least one of the following: attribute name, attribute code, attribute type, attribute length, attribute validation conditions, sorting order, display position, and attribute visibility range.
[0128] In one embodiment, the data processing operation includes an object configuration operation; the data processing parameters include input object information; and the processor, when executing the computer program, further implements the following steps:
[0129] In response to object configuration operations on the object configuration page, the object configuration is performed based on the object corresponding to the input object information; wherein, the object information includes at least one of the following: object code, domain code, inherited object, object type, object table name, display fields, and object visibility scope.
[0130] In one embodiment, the data processing operation includes a relation configuration operation; the processor, when executing the computer program, also performs the following steps:
[0131] In response to relationship configuration operations on the relationship configuration page, the relationship between objects is configured based on the associated object information corresponding to the relationship configuration parameters; wherein, the associated object information includes at least one of the following: relationship code, source object code, source object attribute, destination object code, destination object attribute, relationship type, and relationship table name.
[0132] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0133] Obtain the object model, attribute model, and relation model from the configuration management system; based on the object code corresponding to each object, determine the first association between the object model and the attribute model, and the second association between the object model and the relation model; based on the first and second associations, construct the relational architecture of the configuration management system; respond to data processing operations, and perform data processing on the configuration management system based on the data processing parameters and relational architecture corresponding to the data processing operations.
[0134] In one embodiment, the data processing operation includes a data query operation; when the computer program is executed by the processor, it also performs the following steps:
[0135] In response to the selection of candidate query fields on the query page of the configuration management system, the system determines the target object code corresponding to the selected target query field based on the object information in the object model; based on the first association relationship, it obtains the target object attribute corresponding to the target object code and displays the parameter input area corresponding to the target object attribute on the query page; based on the query parameters entered in the parameter input area, it assembles an executable query statement; based on the second association relationship, it executes the executable query statement to obtain the business data query results and displays the business data query results on the query page.
[0136] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:
[0137] Based on the object information in the object model, obtain the target object table name corresponding to the target object code; based on the first association relationship, obtain the target attribute list corresponding to the target object code; based on the target object table name and the target attribute list, generate a dynamic column for list query; render the dynamic column for list query to the query page and display the parameter input area corresponding to the dynamic column for list query.
[0138] In one embodiment, the data processing operation includes a data writing operation; when the computer program is executed by the processor, it also performs the following steps:
[0139] In response to a field selection operation on the write page of the configuration management system, the system determines the target object code corresponding to the selected target field based on the object information in the object model; based on the first association relationship, it obtains the target object attribute corresponding to the target object code and displays the data input area corresponding to the target object attribute on the write page; based on the attribute validation conditions corresponding to the target object attribute, it validates the data entered in the data input area; when the data validation result is successful, it assembles an executable write statement based on the input data; and executes the executable write statement to write the data to the preset database.
[0140] In one embodiment, the data processing operation includes an attribute configuration operation; when the computer program is executed by a processor, it also performs the following steps:
[0141] In response to attribute configuration operations on the attribute configuration page, the attribute configuration is performed based on the attribute information corresponding to the attribute configuration operation and according to the object code corresponding to the attribute information; wherein, the attribute information includes at least one of the following: attribute name, attribute code, attribute type, attribute length, attribute validation conditions, sorting order, display position, and attribute visibility range.
[0142] In one embodiment, the data processing operation includes an object configuration operation; the data processing parameters include input object information; and the computer program, when executed by a processor, further implements the following steps:
[0143] In response to object configuration operations on the object configuration page, the object configuration is performed based on the object corresponding to the input object information; wherein, the object information includes at least one of the following: object code, domain code, inherited object, object type, object table name, display fields, and object visibility scope.
[0144] In one embodiment, the data processing operation includes a relation configuration operation; the computer program, when executed by a processor, also performs the following steps:
[0145] In response to relationship configuration operations on the relationship configuration page, the relationship between objects is configured based on the associated object information corresponding to the relationship configuration parameters; wherein, the associated object information includes at least one of the following: relationship code, source object code, source object attribute, destination object code, destination object attribute, relationship type, and relationship table name.
[0146] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0147] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0148] The above embodiments merely illustrate several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A data processing method based on a configuration management system, characterized in that, The method includes: Retrieve the object model, attribute model, and relation model from the configuration management system; Based on the object code corresponding to each object, a first association relationship between the object model and the attribute model, and a second association relationship between the object model and the relationship model are determined; Based on the first association relationship and the second association relationship, construct the relationship architecture of the configuration management system; In response to data processing operations, the configuration management system performs data processing based on the data processing parameters corresponding to the data processing operations and the relational architecture; the data processing operations include data query operations. The response data processing operation, based on the data processing parameters corresponding to the data processing operation and the relational architecture, performs data processing on the configuration management system, including: In response to the selection operation of candidate query fields in the query page of the configuration management system, the target object code corresponding to the selected target query field is determined based on the object information in the object model; Based on the object information in the object model, obtain the target object table name corresponding to the target object code; Based on the first association relationship, obtain a list of target attributes corresponding to the target object encoding; Based on the target object table name and the target attribute list, a dynamic column for list query is generated; the dynamic column for list query refers to a data representation format that is dynamically combined and arranged in a list form. The dynamic column of the list query is rendered onto the query page, and the parameter input area corresponding to the dynamic column of the list query is displayed. Based on the query parameters entered in the parameter input area, an executable query statement is assembled; Based on the second association, the executable query statement is executed to obtain business data query results, and the business data query results are displayed on the query page.
2. The method according to claim 1, characterized in that, The data processing operation includes a data writing operation; the response data processing operation, based on the data processing parameters corresponding to the data processing operation and the relational architecture, performs data processing on the configuration management system, including: In response to a field selection operation on the write page of the configuration management system, the target object code corresponding to the selected target field is determined based on the object information in the object model. Based on the first association relationship, the target object attribute corresponding to the target object code is obtained, and the data input area corresponding to the target object attribute is displayed on the writing page; Based on the attribute validation conditions corresponding to the target object's attributes, the data entered in the data input area is validated. When the data verification result is successful, an executable write statement is assembled based on the input data; The executable write statement is executed to write the data into a preset database.
3. The method according to claim 1, characterized in that, The data processing operation includes attribute configuration operation; the response data processing operation, based on the data processing parameters corresponding to the data processing operation and the relational architecture, performs data processing on the configuration management system, including: In response to the attribute configuration operation on the attribute configuration page, the attribute is configured according to the object code corresponding to the attribute information based on the attribute configuration operation. The attribute information includes at least one of the following: attribute name, attribute code, attribute type, attribute length, attribute validation conditions, sorting order, display position, and attribute visibility range.
4. The method according to claim 1, characterized in that, The data processing operation includes an object configuration operation; the data processing parameters include the input object information. The response data processing operation, based on the data processing parameters corresponding to the data processing operation and the relational architecture, performs data processing on the configuration management system, including: Responding to object configuration operations on the object configuration page, the system configures the object based on the object information entered. The object information includes at least one of the following: object code, domain code, inherited object, object type, object table name, display fields, and object visibility scope.
5. The method according to claim 1, characterized in that, The data processing operation includes a relationship configuration operation; the response data processing operation, based on the data processing parameters corresponding to the data processing operation and the relationship architecture, performs data processing on the configuration management system, including: Responding to relationship configuration operations on the relationship configuration page, it configures relationships between objects based on the associated object information corresponding to the relationship configuration parameters; The associated object information includes at least one of the following: relation code, source object code, source object attribute, destination object code, destination object attribute, relation type, and relation table name.
6. A data processing device based on a configuration management system, characterized in that, The device includes: The model acquisition module is used to acquire the object model, attribute model, and relation model in the configuration management system. The association relationship determination module is used to determine a first association relationship between the object model and the attribute model, and a second association relationship between the object model and the relationship model, based on the object code corresponding to each object. A relationship architecture construction module is used to construct the relationship architecture of the configuration management system based on the first association relationship and the second association relationship; The data processing module is used to respond to data processing operations and perform data processing on the configuration management system based on the data processing parameters corresponding to the data processing operations and the relational architecture; the data processing operations include data query operations; The data processing module is also used to: respond to the selection operation of candidate query fields in the query page of the configuration management system, and determine the target object code corresponding to the selected target query field based on the object information in the object model; Based on the object information in the object model, obtain the target object table name corresponding to the target object code; Based on the first association relationship, obtain a list of target attributes corresponding to the target object encoding; Based on the target object table name and the target attribute list, a dynamic column for list query is generated; the dynamic column for list query refers to a data representation format that is dynamically combined and arranged in a list form. The dynamic column of the list query is rendered onto the query page, and the parameter input area corresponding to the dynamic column of the list query is displayed. Based on the query parameters entered in the parameter input area, an executable query statement is assembled; Based on the second association, the executable query statement is executed to obtain business data query results, and the business data query results are displayed on the query page.
7. The apparatus according to claim 6, characterized in that, The data processing operation includes a data writing operation; the data processing module is also used for: In response to a field selection operation on the write page of the configuration management system, the target object code corresponding to the selected target field is determined based on the object information in the object model. Based on the first association relationship, the target object attribute corresponding to the target object code is obtained, and the data input area corresponding to the target object attribute is displayed on the writing page; Based on the attribute validation conditions corresponding to the target object's attributes, the data entered in the data input area is validated. When the data verification result is successful, an executable write statement is assembled based on the input data; The executable write statement is executed to write the data into a preset database.
8. The apparatus according to claim 6, characterized in that, The data processing operation includes attribute configuration operation; the data processing module is also used for: In response to the attribute configuration operation on the attribute configuration page, the attribute is configured according to the object code corresponding to the attribute information based on the attribute configuration operation. The attribute information includes at least one of the following: attribute name, attribute code, attribute type, attribute length, attribute validation conditions, sorting order, display position, and attribute visibility range.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Adaptive service construction system and method, and computer readable medium
CN111061817A