Data management method and device, equipment and storage medium
By obtaining data types and executing corresponding governance workflow instances, the data governance process is dynamically adjusted, which solves the problem of insufficient flexibility of data governance solutions in existing technologies and achieves improvements in flexibility and efficiency.
Patent Information
- Application Number
- CN202410974559.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-10-11
AI Technical Summary
The fixed model of existing data governance solutions limits the flexibility of the governance process, resulting in unnecessary process redundancy and the inability to meet the individual needs of the business or users.
By obtaining the type of data to be governed, the corresponding governance workflow configuration information is obtained, and targeted governance workflow instances are executed based on this information, and the governance process is dynamically adjusted to meet specific needs.
It achieves the flexibility of the data governance process, avoids process redundancy, meets the personalized needs of business and users, and improves the efficiency and adaptability of data governance.
Smart Images

Figure CN118761618A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data governance method, apparatus, device and storage medium. Background Art
[0002] With the rapid development of big data technology, more and more companies have begun to pay attention to their own data problems and use certain means to control data in enterprise data management and data planning to achieve big data governance and obtain governance results. Relevant users can perform relevant data optimization and adjustment operations based on the governance results.
[0003] In existing technologies, data governance often follows established and relatively rigid quality management business processes. Although this model has its stability, it limits the flexibility of the governance process. Summary of the invention
[0004] The main purpose of this application is to provide a data governance method, apparatus, device and storage medium, aiming to solve the limitations of existing fixed data governance solutions on the flexibility of the governance process.
[0005] To achieve the above objectives, the present application provides a data governance method, which includes:
[0006] Acquire the data to be managed, and determine the data type of the data to be managed;
[0007] Obtaining governance workflow configuration information corresponding to the data type;
[0008] Based on the governance workflow configuration information, a governance workflow instance for the data to be governed is executed to obtain a data governance result.
[0009] In one embodiment, the step of executing the governance workflow instance for the data to be governed based on the governance workflow configuration information to obtain the data governance result includes:
[0010] Parsing the governance workflow configuration information to obtain a sub-process flow rule and a plurality of sub-processes defined by the governance workflow, wherein the sub-process flow rule is used to characterize the association relationship between the plurality of sub-processes;
[0011] Execute a governance workflow instance for the data to be governed based on the sub-process flow rules and multiple sub-processes defined in the governance workflow;
[0012] In the process of executing the governance workflow instance, the governance workflow instance is gradually transferred to the corresponding sub-process for data processing based on the sub-process flow rule to obtain a data governance result.
[0013] In one embodiment, the sub-process includes at least one processing node and a node routing rule corresponding to each processing node, each processing node is configured with corresponding data processing logic, and in the process of executing the governance workflow instance, the governance workflow instance is gradually transferred to the corresponding sub-process for data processing based on the sub-process transfer rule, and the step of obtaining the data governance result includes:
[0014] Based on the sub-process transfer rule, determine the sub-process to which the governance workflow instance is currently transferred, and the sub-process to which it is currently transferred is the current sub-process;
[0015] Execute the current sub-process, transfer the governance workflow instance to the corresponding processing node based on the node routing rules corresponding to each processing node in the current sub-process, and perform data processing through the data processing logic corresponding to the corresponding processing node to obtain the execution result of the corresponding processing node;
[0016] Determine whether there is a post-processing node for the corresponding processing node based on the execution result of the corresponding processing node and the node routing rule corresponding to the corresponding processing node;
[0017] When it is determined that there is a post-processing node, if it is determined that the post-processing node corresponding to the corresponding processing node is the starting processing node corresponding to the next sub-process, the governance workflow instance is transferred to the next sub-process, and the step of executing the current sub-process is returned until there is no post-processing node for the corresponding processing node, and the data governance result is output.
[0018] In one embodiment, the method further comprises:
[0019] In the case that the governance workflow instance currently transfers to a plurality of sub-processes, each of the sub-processes is assigned to a different thread for processing.
[0020] In one embodiment, the method further comprises:
[0021] In the case that the governance workflow instance currently flows to a plurality of processing nodes, each of the processing nodes is respectively assigned to a different thread for processing.
[0022] In one embodiment, the at least one processing node includes an inspection processing node and at least one cleaning processing node corresponding to the inspection processing node, the inspection processing node is bound to a corresponding inspection engine identifier, and the cleaning processing node is bound to a corresponding cleaning engine identifier. The step of performing data processing by a data processing logic corresponding to the corresponding processing node to obtain an execution result of the corresponding processing node includes:
[0023] In the case where the corresponding processing node to which the governance workflow instance currently flows is an inspection processing node, based on the inspection engine identifier bound to the inspection processing node, an inspection engine corresponding to the inspection engine identifier is obtained from a preset inspection engine library, and data processing is performed through a data processing logic predefined by the inspection engine to obtain an execution result of the corresponding processing node;
[0024] In the case that the corresponding processing node to which the governance workflow instance currently flows is a cleaning processing node, based on checking the cleaning engine identifier bound to the processing node, the cleaning engine corresponding to the cleaning engine identifier is obtained from the preset cleaning engine library, and data processing is performed through the data processing logic predefined by the cleaning engine to obtain the execution result of the corresponding processing node.
[0025] In one embodiment, before the step of obtaining the data to be managed and determining the data type of the data to be managed, the step further includes:
[0026] In response to a governance workflow creation request for data of a corresponding data type, obtaining workflow orchestration information configured through a visual operation page;
[0027] Governance workflow configuration information is generated and stored based on the workflow orchestration information.
[0028] In addition, to achieve the above objectives, the present application also provides a data management device, the data management device comprising:
[0029] A determination module, configured to determine the data type of the data to be governed in response to the data to be governed transmitted by the upstream system;
[0030] An acquisition module, used to acquire governance workflow configuration information corresponding to the data type;
[0031] The processing module is used to execute the governance workflow instance for the data to be governed based on the governance workflow configuration information to obtain the data governance result.
[0032] In addition, to achieve the above-mentioned purpose, the present application also provides a data governance device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the data governance method as described above.
[0033] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium, and a program for implementing the data governance method is stored on the computer-readable storage medium. The program for implementing the data governance method is executed by a processor to implement the steps of the data governance method as described above.
[0034] The present application provides a data governance method, apparatus, device and storage medium, which obtains the data to be governed and determines the data type of the data to be governed, obtains the governance workflow configuration information corresponding to the data type; based on the governance workflow configuration information, executes the governance workflow instance for the data to be governed to obtain the data governance result. By pre-configuring corresponding governance workflows for data of different data types, the corresponding governance process can be flexibly adjusted in combination with the data type of the data to be governed, which can meet the actual business needs or user needs, and can avoid the process redundancy that may be caused by the unified workflow template. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0037] Figure 1 A workflow diagram provided for the first embodiment of the data governance method of this application;
[0038] Figure 2 A schematic diagram of the governance workflow involved in the data governance method of this application;
[0039] Figure 3 An exemplary flowchart for the execution of a governance workflow instance involved in the data governance method of this application;
[0040] Figure 4 This is a schematic diagram of the module structure of the data management device according to an embodiment of the present application;
[0041] Figure 5 This is a structural diagram of the hardware environment involved in the data governance method in the embodiment of the present application.
[0042] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0043] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0044] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0045] The main solution of this application is: obtain the data to be governed and determine the data type of the data to be governed; obtain the governance workflow configuration information corresponding to the data type; based on the governance workflow configuration information, execute the governance workflow instance for the data to be governed to obtain the data governance result.
[0046] Currently, data governance often follows established and relatively rigid quality management workflows. Although this model has its stability, it may also lead to unnecessary process redundancy and limit the flexibility of the governance process.
[0047] The present application pre-configures data governance workflows for different data types, thereby being able to adopt an adaptive governance workflow for data governance based on the data type of the data to be governed, thereby meeting actual business needs or user needs and avoiding workflow redundancy that may be caused by the same workflow template.
[0048] It should be noted that the execution subject of this embodiment may be a data management device, or a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a data management device capable of realizing the above functions, etc., and this embodiment does not specifically limit this. The following takes the data management device as the execution subject as an example to illustrate this embodiment and the following embodiments.
[0049] Based on this, this application proposes a data governance method of the first embodiment, please refer to Figure 1 The data governance method of this embodiment includes steps S10 to S30:
[0050] Step S10, obtaining the data to be managed and determining the data type of the data to be managed.
[0051] This embodiment can be applied to the financial market risk measurement data governance scenario, and the data to be governed can be the financial market risk measurement data. It should be noted that there are many types of financial market risk measurement data, and the processing logic required to be executed for data governance of different data types may be different, or the user's expected governance effects for data of different data types may be different. For example, the user expects that the data of data type A can achieve the first type of effect after governance, and the first type of effect needs to be achieved by executing processing business process 1; the user expects that the data of data type B can achieve the second type of effect after governance, and the second type of effect needs to be achieved by executing business process 2. At this time, if the data is processed according to the traditional established data governance management workflow, for example, according to business process 1 and business process 2 in sequence, it will lead to unnecessary process redundancy.
[0052] Based on this, this embodiment configures the governance workflow of data of different data types, so that data can be governed based on user personalized needs or actual business scenario needs, which increases the flexibility of the data governance process and avoids unnecessary process redundancy.
[0053] Specifically, the data governance device can be pre-configured with data collection tasks for each data type. The data collection task defines the key collection elements such as the data source, data type, collection time, collection server address and load script of the corresponding data type. Among them, the data source refers to the institution that collects data, such as the public websites of Reuters, Bloomberg, Foreign Exchange Trading Center, China Bond and other institutions; the collection time refers to the collection time set corresponding to the data collection task, for example, data collection can be performed every 7 days; the collection server address refers to the server address of the original data; the load script refers to the storage in the form of a load file after collection, and the script of the load data file can be freely configured.
[0054] After collecting the data to be managed, the data management device determines the data type of the data to be managed based on the type of the data collection task.
[0055] Step S20, obtaining governance workflow configuration information corresponding to the data type.
[0056] After determining the data type of the data to be managed, the data management device obtains the management workflow configuration information corresponding to the data type from the local storage module or the cloud storage. The management workflow configuration information defines the description information of the corresponding management workflow, which describes the business logic of the management workflow, and the business logic can be implemented through one or more sub-processes.
[0057] It should be noted that the above-mentioned governance workflow configuration information can be generated based on the workflow orchestration information by obtaining the workflow orchestration information configured through the visual operation page in response to the governance workflow creation request for data of the corresponding data type. The generated governance workflow configuration information is usually stored in a database. Specifically, the user can perform the orchestration operation of the governance workflow to be generated through the visual operation interface provided by the workflow design application, and generate a governance workflow creation request after clicking the Generate button or the Save button.
[0058] Step S30: Based on the governance workflow configuration information, execute the governance workflow instance for the data to be governed to obtain the data governance result.
[0059] It should be noted that workflow is a theoretical model or framework that defines the structure, rules and activities (or tasks, links) of a business process. It does not directly involve the execution of specific business processes, but provides guidance and specifications for the execution of business processes. Workflow instance is a core concept in a workflow management system, which represents a specific execution process of a process definition. In this process, each processing node (also called activity, task or link) is executed step by step according to the predefined logic and sequence until the process ends. A workflow instance is a specific implementation of a workflow definition in a specific environment. It contains all dynamic information during the process runtime, such as task status, processing personnel, execution time, etc. It is an actual case in the execution of a business process, which is dynamic and unique. That is, a governance workflow can have multiple governance workflow instances.
[0060] In this embodiment, the data governance device can process the data to be governed according to the workflow description information defined in the governance workflow configuration information, that is, execute the governance workflow instance corresponding to the data to be governed to obtain the data governance result.
[0061] This embodiment uses the above scheme to obtain the data to be governed and determine the data type of the data to be governed, and obtain the governance workflow configuration information corresponding to the data type; based on the governance workflow configuration information, the governance workflow instance for the data to be governed is executed to obtain the data governance result. By pre-configuring the corresponding governance workflow for data of different data types, the corresponding governance process can be flexibly adjusted in combination with the data type of the data to be governed, which can meet the actual business needs or user needs and avoid the process redundancy that may be caused by the unified workflow template.
[0062] In a feasible implementation manner, the above step S20 may include steps S201 to S203:
[0063] Step S201, parse the governance workflow configuration information to obtain the sub-process flow rules and multiple sub-processes defined by the governance workflow, where the sub-process flow rules are used to characterize the association relationship between the multiple sub-processes.
[0064] Specifically, the data governance device can parse the governance workflow configuration information to obtain the description information of the pre-configured governance workflow. The description information may include one sub-process or multiple (in this application, multiple refers to two or more) sub-processes. In the case where there are multiple sub-processes, the description information may also include sub-process flow rules, and the sub-process flow rules can be used to characterize the association relationship between multiple sub-processes. The association relationship may include a serial combination relationship and a parallel combination relationship between different sub-processes. In the case where there is a serial combination relationship between sub-processes, these multiple sub-processes are executed sequentially, and there is a dependency relationship between the multiple sub-processes. For example, sub-process 2 needs to wait for sub-process 1 to be executed before it can be executed. In the case where there is a parallel combination relationship between sub-processes, there is no dependency relationship between these multiple sub-processes and they can be executed in parallel.
[0065] Step S202: executing a governance workflow instance for the data to be governed based on the sub-process flow rules and multiple sub-processes defined in the governance workflow.
[0066] Specifically, after the governance workflow configuration information is parsed, the governance workflow instance for the data to be governed is started, and then each sub-process in the governance workflow instance is circulated according to the sub-process flow rules to obtain the data governance result.
[0067] Step S203, during the execution of the governance workflow instance, the governance workflow instance is gradually transferred to the corresponding sub-process for data processing based on the sub-process transfer rules to obtain the data governance result.
[0068] Specifically, among the multiple sub-processes included in the governance workflow instance, there may be a serial combination relationship between some sub-processes, a parallel combination relationship between other sub-processes, or a serial combination relationship between all sub-processes, or a parallel combination relationship between all sub-processes. During implementation, each time a sub-process flows, it can flow to one or more corresponding sub-processes for processing, and combine the results of multiple sub-process outputs to obtain data governance results. For example, assuming that sub-process 1 and sub-process 2 are in a parallel combination relationship, sub-process 1 and sub-process 3 are in a serial combination relationship, and sub-process 3 depends on sub-process 1, then sub-process 1 and sub-process 2 can be executed concurrently, and sub-process 3 can be executed after sub-process 1 is executed.
[0069] More specifically, the above sub-process may include at least one processing node and node routing rules corresponding to each processing node. In addition, it may also include a start node and an end node set between at least one processing node. The start node and the end node do not perform any data processing and are only used to mark the governance workflow instance entering the start state and the end state. The node routing rules are used to characterize the next processing node or the end node to which the processing node is routed when outputting different execution results. For example, after processing node 1 outputs execution result A, the flow is transferred to processing node 2. After processing node 2 outputs execution result B, the flow is transferred to the end node.
[0070] Accordingly, the above step S203 may include steps S2031 to S2034:
[0071] Step S2031, based on the sub-process transfer rule, determine the sub-process to which the governance workflow instance is currently transferred, and the sub-process to which it is currently transferred is the current sub-process.
[0072] Among them, if the sub-process to which the governance workflow instance is currently transferred is determined based on the sub-process transfer rules, including multiple sub-processes, then the multiple sub-processes are assigned to different threads for processing to achieve asynchronous processing, thereby improving the efficiency of data processing as a whole.
[0073] Step S2032, execute the current sub-process, transfer the governance workflow instance to the corresponding processing node based on the node routing rules corresponding to each processing node in the current sub-process, and perform data processing through the data processing logic corresponding to the corresponding processing node to obtain the execution result of the corresponding processing node.
[0074] Specifically, when there are multiple corresponding processing nodes to which the governance workflow instance is currently transferred, each corresponding processing node is assigned to a different thread for processing to achieve asynchronous processing, thereby improving data processing efficiency as a whole.
[0075] Step S2033 , determining whether there is a post-processing node for the corresponding processing node based on the execution result of the corresponding processing node and the node routing rule corresponding to the corresponding processing node.
[0076] Step S2034, when it is determined that there is a post-processing node, if it is determined that the post-processing node corresponding to the corresponding processing node is the starting processing node corresponding to the next sub-process, the governance workflow instance will be transferred to the next sub-process, and the steps of executing the current sub-process will be returned until there is no post-processing node for the corresponding processing node, and the data governance result will be output.
[0077] If it is determined that the current processing node has at least two post-processing nodes, each post-processing node is respectively assigned to a different thread for processing to achieve asynchronous processing, thereby improving the efficiency of data processing as a whole.
[0078] In other cases, if the current processing node does not have a post-processing node, that is, the next node routed to the current processing node is the end node, the governance workflow instance is determined to be finished, and the data governance result is generated based on the execution result output by the current processing node.
[0079] In the above-mentioned embodiment scheme, through clear node routing rules and execution logic, the data processing flow and results can be accurately controlled to ensure that each step meets the standards and requirements of data governance. At the same time, the governance workflow splits the complex data governance process into multiple sub-processes and processing nodes, so that each part can be independently developed, tested and maintained, enhancing the scalability and maintainability of the system. In addition, through multi-threaded asynchronous processing, task load balancing can be achieved to avoid system performance bottlenecks or resource exhaustion problems caused by excessive processing time of a single task.
[0080] In a feasible implementation, the above method may also include: after each processing node outputs the corresponding execution result, verifying whether the execution result meets the preset conditions, and if the preset conditions are met, saving the execution result of the processing node. Wherein, the preset condition is: the execution result does not contain abnormal information or warning information. Also, monitoring the running status of the governance workflow instance, and in the event of an abnormal closure of the governance workflow instance, determining the target processing node to jump to when the governance workflow instance is restarted; the target processing node is the last processing node that saved the execution result before the governance workflow instance was abnormally closed. When restarting the governance workflow instance, start from the target processing node and execute the workflow based on the execution result of the target processing node.
[0081] Specifically, there are many reasons for the abnormal closure of the governance workflow instance due to network reasons, for example, it may be a network reason or resource overload, or a processing node abnormality. If it is due to network reasons or resource overload, restarting the governance workflow may be able to execute smoothly when the network environment is good or after reducing the resource load. If it can be executed smoothly, it can be determined that it is not caused by the node abnormality. At the same time, in order to reduce resource consumption, this embodiment starts the execution flow from the target processing node when the governance workflow instance is restarted. The target node is the last processing node that saves the execution result before the governance workflow instance is abnormally closed, rather than the first starting processing node of the governance workflow instance. There is no need to re-execute part of the process that has been executed before the governance workflow instance is abnormally closed, therefore, it can reduce additional resource consumption.
[0082] In a feasible implementation, at least one processing node includes an inspection processing node and at least one cleaning processing node corresponding to the inspection processing node, the inspection processing node is bound to a corresponding inspection engine identifier, and the cleaning processing node is bound to a corresponding cleaning engine identifier, and the step of performing data processing through the data processing logic corresponding to the corresponding processing node to obtain the execution result of the corresponding processing node includes:
[0083] In the case that the processing node to which the governance workflow instance is currently transferred is an inspection processing node, based on the inspection engine identifier bound to the inspection processing node, the inspection engine corresponding to the inspection engine identifier is obtained from the preset inspection engine library, and data processing is performed through the data processing logic predefined by the inspection engine to obtain the execution result of the corresponding processing node;
[0084] When the processing node to which the governance workflow instance currently flows is a cleaning processing node, based on checking the cleaning engine identifier bound to the processing node, the cleaning engine corresponding to the cleaning engine identifier is obtained from the preset cleaning engine library, and data processing is performed through the data processing logic predefined by the cleaning engine to obtain the execution result of the corresponding processing node.
[0085] That is, in this embodiment, each sub-process includes an inspection processing node and at least one cleaning processing node corresponding to the inspection processing node, a node routing rule corresponding to the inspection processing node, and a node routing rule corresponding to the cleaning processing node. When the governance workflow instance flows to the inspection processing node, based on the inspection engine identifier bound to the inspection processing node, the inspection engine corresponding to the inspection engine identifier is obtained from the preset inspection engine library, and data processing is performed through the data processing logic predefined by the inspection engine to obtain the execution result of the corresponding processing node; when the governance workflow instance flows to the inspection processing node, based on the inspection engine identifier bound to the inspection processing node, the inspection engine corresponding to the inspection engine identifier is obtained from the preset inspection engine library, and data processing is performed through the data processing logic predefined by the inspection engine to obtain the execution result of the corresponding processing node.
[0086] Specifically, the inspection engine and the cleaning engine are pre-developed and stored in the corresponding inspection engine library and the cleaning engine library in the form of plug-ins.
[0087] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be repeated in the following. On this basis, before the above step S20, obtaining the governance workflow configuration information corresponding to the data type, the data governance method also includes steps S01 to S02:
[0088] Step S01, in response to a request for creating a governance workflow for data of a corresponding data type, obtain workflow orchestration information configured through a visual operation page.
[0089] The user can design a governance workflow model through the visual operation interface provided by the workflow application, and then set the data type corresponding to the governance workflow model, and then click the Generate button or Save button to trigger the creation of a governance workflow request and push it to the data governance device. The data governance device receives the governance workflow creation request and parses the workflow orchestration information carried in the governance workflow creation request. The workflow orchestration information may include the configuration information of each processing node included in the governance workflow, and the association relationship between each processing node. The configuration information of the processing node may include the engine identifier bound to the processing node.
[0090] Step S02: Generate governance workflow configuration information based on the workflow orchestration information.
[0091] The data governance device can generate governance workflow configuration information based on the configuration information of each processing node and the association relationship between each processing node.
[0092] In this embodiment, through the visual operation interface, users can intuitively define and configure data governance workflows without having to write complex configuration files or scripts, which greatly reduces the operation threshold and improves work efficiency. At the same time, the visual interface allows users to flexibly adjust each link in the workflow according to actual needs, including adding, deleting or modifying tasks, and adjusting the dependencies between tasks, etc., which enhances the flexibility and adaptability of the workflow.
[0093] Based on the embodiments provided above, a specific application embodiment of the embodiments of the present application is given.
[0094] First, the data management device obtains the workflow arrangement information of the management workflow configured by the user through the visual operation interface. Figure 2 As shown, Figure 2 An example diagram of a governance workflow is shown. The configured governance workflow may include multiple sub-processes, each of which includes an inspection processing node and at least one cleaning processing node corresponding to the inspection processing node, at least one cleaning node forms a cleaning chain connected to the corresponding inspection processing node, and multiple inspection processing nodes form an inspection chain. Each cleaning node is configured with a post-node, and the post-node may be: (1) the inspection node corresponding to the current cleaning chain; (2) the next inspection node of the inspection node corresponding to the current cleaning chain; (3) the end node.
[0095] The workflow arrangement information may include the cleaning engine identifier / inspection engine identifier bound to each processing node and the association relationship between each processing node. Then the data governance device determines each inspection processing node contained in the governance workflow and at least one cleaning processing node corresponding to each inspection node. The inspection processing node is a processing node bound to the inspection engine identifier, and the cleaning processing node is a processing node bound to the cleaning engine identifier. Then, based on at least one cleaning processing node corresponding to each inspection node, a cleaning chain is assembled and attached to the corresponding inspection processing node to obtain each sub-process, and based on the association relationship between each inspection processing node, the sub-process flow rules between multiple sub-processes are determined, and the governance workflow configuration information is generated based on the configuration information of each sub-process and the sub-process flow rules and stored in the local storage module or cloud storage.
[0096] Then, the data management device configures the corresponding data collection task for each data type. The configuration information of the data collection task includes the following key information: data source, data type, data batch, collection time, server address, etc. The data collected by the data collection task is saved in the download table, and then the original data in the download table is obtained for preliminary cleaning and processing to obtain the data to be managed. The data to be managed is saved in the processing table, which can realize data management more conveniently.
[0097] When receiving a governance request for the data to be governed of the corresponding data type, the data governance device obtains the governance workflow configuration information corresponding to the data type from the local storage module or cloud storage, and then executes the governance workflow instance for the data to be governed based on the governance workflow configuration information to obtain the data governance result.
[0098] Specifically, Figure 3 As shown, Figure 3 An exemplary flowchart of the execution of a governance workflow instance is shown. When executing a governance workflow instance, the data governance device enters from the start node, and executes each inspection processing node in sequence according to the sub-process flow rules and the node routing rules defined in each sub-process; when the execution result output of the inspection execution processing result is that there is data that fails the inspection, the relevant data is submitted to the cleaning chain corresponding to the inspection processing node for data cleaning; then, based on the routing rules of each node, the data governance device executes each cleaning processing node on the cleaning chain in sequence, and each cleaning processing node generates a corresponding execution result after execution, and determines the corresponding post-node based on the execution result.
[0099] If the post-node is the next cleaning processing node, the governance workflow instance will be transferred to the next cleaning processing node corresponding to the current cleaning processing node for cleaning; if the post-node is the current inspection processing node, the data will be submitted to the current inspection processing node for re-inspection, and the data that fails the re-inspection needs to be submitted to the cleaning chain for cleaning again; if the post-node is the next inspection processing node of the current inspection processing node, the data will be submitted to the next inspection processing node for inspection; if the post-node is the end node, the data will be submitted to the end node, and the data state will be set to the final state, and the final state data will no longer participate in subsequent inspections and cleaning. Among them, each cleaning node needs to set a threshold for the number of cleaning times to prevent the cleaned data from failing the inspection and falling into an infinite loop.
[0100] The present application also provides a data management device, please refer to Figure 4 , the data management device comprises:
[0101] A determination module 10 is used to obtain the data to be managed and determine the data type of the data to be managed;
[0102] An acquisition module 20, used to acquire governance workflow configuration information corresponding to the data type;
[0103] The processing module 30 is used to execute the governance workflow instance for the data to be governed based on the governance workflow configuration information to obtain the data governance result.
[0104] Optionally, the processing module 30 is further used for:
[0105] Parsing the governance workflow configuration information to obtain sub-process flow rules defined by the governance workflow, wherein the sub-process flow rules are used to characterize the association relationship between multiple sub-processes;
[0106] Execute a governance workflow instance for the data to be governed based on the sub-process flow rules and multiple sub-processes defined in the governance workflow;
[0107] In the process of executing the governance workflow instance, the governance workflow instance is gradually transferred to the corresponding sub-process for data processing based on the sub-process flow rule to obtain a data governance result.
[0108] Optionally, the processing module 30 is further used for:
[0109] Based on the sub-process transfer rule, determine the sub-process to which the governance workflow instance is currently transferred, and the sub-process to which it is currently transferred is the current sub-process;
[0110] Execute the current sub-process, transfer the governance workflow instance to the corresponding processing node based on the node routing rules corresponding to each processing node in the current sub-process, and perform data processing through the data processing logic corresponding to the corresponding processing node to obtain the execution result of the corresponding processing node;
[0111] Determine whether there is a post-processing node for the corresponding processing node based on the execution result of the corresponding processing node and the node routing rule corresponding to the corresponding processing node;
[0112] When it is determined that there is a post-processing node, if it is determined that the post-processing node corresponding to the corresponding processing node is the starting processing node corresponding to the next sub-process, the governance workflow instance is transferred to the next sub-process, and the step of executing the current sub-process is returned until there is no post-processing node for the corresponding processing node, and the data governance result is output.
[0113] Optionally, the processing module 30 is further used for:
[0114] In the case that the governance workflow instance currently transfers to a plurality of sub-processes, each of the sub-processes is assigned to a different thread for processing.
[0115] Optionally, the processing module 30 is further used for:
[0116] In the case that the governance workflow instance currently flows to a plurality of processing nodes, each of the processing nodes is respectively assigned to a different thread for processing.
[0117] Optionally, the processing module 30 is further used for:
[0118] In the case where the corresponding processing node to which the governance workflow instance currently flows is an inspection processing node, based on the inspection engine identifier bound to the inspection processing node, an inspection engine corresponding to the inspection engine identifier is obtained from a preset inspection engine library, and data processing is performed through a data processing logic predefined by the inspection engine to obtain an execution result of the corresponding processing node;
[0119] In the case that the corresponding processing node to which the governance workflow instance currently flows is a cleaning processing node, based on checking the cleaning engine identifier bound to the processing node, the cleaning engine corresponding to the cleaning engine identifier is obtained from the preset cleaning engine library, and data processing is performed through the data processing logic predefined by the cleaning engine to obtain the execution result of the corresponding processing node.
[0120] Optionally, the data management device is also used for:
[0121] In response to a governance workflow creation request for data of a corresponding data type, obtaining workflow orchestration information configured through a visual operation page;
[0122] Governance workflow configuration information is generated and stored based on the workflow orchestration information.
[0123] The data governance device provided in the embodiment of the present application adopts the data governance method in the above embodiment, which can solve the technical problem that the existing fixed data governance scheme limits the flexibility of the governance process. Compared with the prior art, the beneficial effects of the data governance device provided in the embodiment of the present application are the same as the beneficial effects of the data governance method provided in the above embodiment, and the other technical features in the data governance device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0124] The present application provides a data governance device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the data governance method in the above-mentioned embodiment one.
[0125] Reference below Figure 5 , which shows a schematic diagram of the structure of a data management device suitable for implementing the embodiment of the present application. The data management device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The data governance device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0126] like Figure 5As shown, the data management device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the data management device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the data management device to communicate with other devices wirelessly or wired to exchange data. Although the figure shows a data management device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.
[0127] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the workflow diagram can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the workflow diagram. In such an embodiment, the computer program can be downloaded and installed from the network through a communication device, or installed from the storage device 1003, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0128] The data governance device provided by the present application adopts the data governance method in the above embodiment, which can solve the technical problem that the existing fixed data governance scheme limits the flexibility of the governance process. Compared with the prior art, the beneficial effects of the data governance device provided by the present application are the same as the beneficial effects of the data governance method provided by the above embodiment, and the other technical features in the data governance device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0129] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0130] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0131] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the data governance method in the above-mentioned embodiment.
[0132] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0133] The computer-readable storage medium may be included in the data management device; or it may exist independently without being installed in the data management device.
[0134] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the data governance device, the data governance device: obtains the data to be governed, determines the data type of the data to be governed, obtains the governance workflow configuration information corresponding to the data type; based on the governance workflow configuration information, executes the governance workflow instance for the data to be governed, and obtains the data governance result. The present application configures corresponding governance workflows for data of different data types in advance, so that the corresponding governance process can be flexibly adjusted in combination with the data type of the data to be governed, which can meet the actual business needs or user needs, and can avoid the process redundancy that may be caused by the unified workflow template.
[0135] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0136] The workflow diagram and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the workflow diagram or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or workflow diagram, and the combination of the boxes in the block diagram and / or workflow diagram can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0137] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0138] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned data governance method, and can solve the technical problem that the existing fixed data governance scheme limits the flexibility of the governance process. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the data governance method provided by the above-mentioned embodiment, and will not be repeated here.
[0139] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent workflow transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. A data governance method, characterized in that: The method comprises: Acquire the data to be managed, and determine the data type of the data to be managed; Obtaining governance workflow configuration information corresponding to the data type; Based on the governance workflow configuration information, a governance workflow instance for the data to be governed is executed to obtain a data governance result.
2. The method according to claim 1, characterized in that The step of executing the governance workflow instance for the data to be governed based on the governance workflow configuration information to obtain the data governance result comprises: Parsing the governance workflow configuration information to obtain a sub-process flow rule and a plurality of sub-processes defined by the governance workflow, wherein the sub-process flow rule is used to characterize the association relationship between the plurality of sub-processes; Execute a governance workflow instance for the data to be governed based on the sub-process flow rules and multiple sub-processes defined in the governance workflow; In the process of executing the governance workflow instance, the governance workflow instance is gradually transferred to the corresponding sub-process for data processing based on the sub-process flow rule to obtain a data governance result.
3. The method according to claim 2, characterized in that The sub-process includes at least one processing node and a node routing rule corresponding to each processing node, each processing node is configured with corresponding data processing logic, and in the process of executing the governance workflow instance, the governance workflow instance is gradually transferred to the corresponding sub-process for data processing based on the sub-process transfer rule, and the step of obtaining the data governance result includes: Based on the sub-process transfer rule, determine the sub-process to which the governance workflow instance is currently transferred, and the sub-process to which it is currently transferred is the current sub-process; Execute the current sub-process, transfer the governance workflow instance to the corresponding processing node based on the node routing rules corresponding to each processing node in the current sub-process, and perform data processing through the data processing logic corresponding to the corresponding processing node to obtain the execution result of the corresponding processing node; Determine whether there is a post-processing node for the corresponding processing node based on the execution result of the corresponding processing node and the node routing rule corresponding to the corresponding processing node; When it is determined that there is a post-processing node, if it is determined that the post-processing node corresponding to the corresponding processing node is the starting processing node corresponding to the next sub-process, the governance workflow instance is transferred to the next sub-process, and the step of executing the current sub-process is returned until there is no post-processing node for the corresponding processing node, and the data governance result is output.
4. The method according to claim 3, characterized in that The method further comprises: In the case that the governance workflow instance currently transfers to a plurality of sub-processes, each of the sub-processes is assigned to a different thread for processing.
5. The method according to claim 3, characterized in that The method further comprises: In the case that the governance workflow instance currently flows to a plurality of processing nodes, each of the processing nodes is respectively assigned to a different thread for processing.
6. The method according to claim 3, characterized in that The at least one processing node includes an inspection processing node and at least one cleaning processing node corresponding to the inspection processing node, the inspection processing node is bound to a corresponding inspection engine identifier, and the cleaning processing node is bound to a corresponding cleaning engine identifier. The step of performing data processing by a data processing logic corresponding to the corresponding processing node to obtain an execution result of the corresponding processing node includes: In the case where the corresponding processing node to which the governance workflow instance currently flows is an inspection processing node, based on the inspection engine identifier bound to the inspection processing node, an inspection engine corresponding to the inspection engine identifier is obtained from a preset inspection engine library, and data processing is performed through a data processing logic predefined by the inspection engine to obtain an execution result of the corresponding processing node; In the case that the corresponding processing node to which the governance workflow instance currently flows is a cleaning processing node, based on checking the cleaning engine identifier bound to the processing node, the cleaning engine corresponding to the cleaning engine identifier is obtained from the preset cleaning engine library, and data processing is performed through the data processing logic predefined by the cleaning engine to obtain the execution result of the corresponding processing node.
7. The method according to claim 1, characterized in that Before the step of obtaining the data to be managed and determining the data type of the data to be managed, the method further includes: In response to a governance workflow creation request for data of a corresponding data type, obtaining workflow orchestration information configured through a visual operation page; The governance workflow configuration information is generated and stored based on the workflow orchestration information.
8. A data management device, characterized in that: include: A determination module, configured to determine the data type of the data to be governed in response to the data to be governed transmitted by the upstream system; An acquisition module, used to acquire governance workflow configuration information corresponding to the data type; The processing module is used to execute the governance workflow instance for the data to be governed based on the governance workflow configuration information to obtain the data governance result.
9. A data management device, characterized in that: The data governance device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data governance method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data governance method as described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Self-adaptive data management method and system
CN120763141A
