Data migration method based on business rules
Through the data migration method based on business rules, the flexibility and data quality problems in the data conversion stage in the existing technology are solved, more efficient data migration and more accurate data import are achieved, communication and debugging time is reduced, and the system is enhanced. flexibility.
Patent Information
- Application Number
- CN202410558482.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2024-08-23
AI Technical Summary
Existing data migration technology lacks an independent rule engine and relational mapping during the data conversion phase, resulting in a lack of flexibility when migrating data from different sources, making it difficult to guarantee data quality, and requiring multiple iterations and modifications during the migration process to fix problems.
Adopt a data migration method based on business rules, build a data migration system process by defining Transaction ID Prefix Rule, Schema Match Rule and SAP CRM System Rule, use the rules engine to import and verify business rules, independently manage volatile business rules, and separate applications The logic layer and rule application layer implement data extraction, conversion and loading.
It improves the flexibility and stability of data migration, shortens the migration process time, improves the accuracy of data import, reduces communication and system debugging time, and enhances the flexibility of the software structure.
Smart Images

Figure CN118535625A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology, and in particular to a data migration method based on business rules. Background Art
[0002] The present invention relates to a data migration method based on business rules. Data migration is to migrate formatted data from a source data structure to a target data structure with the assistance of a tool. The source data structure and the target data structure are usually different in concept or physical level. As an important part of IT maintenance, many companies are faced with the problem of migrating a large amount of heterogeneous data. The data migration process is mainly divided into three stages: data extraction, data transformation and data loading, which are represented by Extract, Transform and Load respectively, referred to as ETL.
[0003] The main problem of data migration is in the data conversion stage. Traditional existing technologies lack independent rule engines and relationship mapping in data migration systems. All business rules are hard-coded in the program, which makes it inflexible when migrating different source data. The following problems exist in the data migration process: 1) Different source data systems usually have different data structures. Source data systems are usually generated by different data models or have different semantics. In order to migrate data, you need to have a full understanding of the source data: such as external or internal data constraints, correlations between different data sources, etc.
[0004] 2) The source data system usually has incorrect, incomplete, duplicate or inconsistent data, while the target system has new and different constraints on the data to be migrated, which makes it difficult to ensure the data quality after data migration.
[0005] 3) In data migration projects, many tasks such as data validation and data cleaning require multiple iterations, and project specifications may need to be modified multiple times to fix problems found during data migration. Summary of the invention
[0006] The main research contents of the present invention are focused on: the development and implementation of new data conversion functions for data migration. The present invention proposes a data migration method based on business rules to solve the above technical problems and improve work efficiency.
[0007] The present invention adopts the following technical solution: A data migration method based on business rules includes the following steps: S1: Business rule definition of data migration system: The syntax of the business rules of this data migration system is based on the syntax of describing rules in The Starburst Active Database Rule System. The rules of this data migration system are divided into three parts: Transaction ID Prefix Rule, Schema Match Rule and SAP CRM System Rule. The Transaction ID Prefix Rule specifies the naming rules of the ID of the merged data; the Schema MatchRule specifies the corresponding rules between the fields of the original system and the fields of the target system SAP CRM system; the SAP CRM System Rule indicates the rules of the target system; S2: Data migration system architecture design based on business rules: Build a system process architecture for data migration. Data migration includes three stages: data extraction, data conversion, and data loading. The data extraction stage is to filter the record ID prefix of the source data; The data conversion phase includes importing and verifying business rules when running the rule engine, converting source data, and returning conversion results and error information; The data loading phase includes the data migration system loading the transformed data from the buffer into the target database; S3: Data extraction function design: In the data extraction stage, the existing record ID is obtained from the source data. All information such as the source system name, data ID prefix name, Internal version number and External version number will be saved and maintained in a table. The primary key ID of the target system is generated during the data extraction process. S4: Data conversion function design: The rules of step S1 will be called in the functions of converting data and verifying data correctness, and data conversion and verification will be performed according to business rules. In the data conversion stage, two rule configuration files are required, corresponding to the conversion rules for converting source data into target data, and the relationship mapping rules for associated fields. The data conversion stage is provided with several functional modules to realize importing rule file path and data ID prefix, reading rule file, converting data according to rules, verifying data correctness, returning data import execution report and error information, and updating rule file path and primary key ID prefix.
[0008] Preferably, in step S1, Schema Match Rule consists of General Data Match Rule and Key Value Match Rule, General Data Match Rule defines the corresponding fields of the merged data to the corresponding fields of the target system and the default values, and Key Value Match Rule stipulates the corresponding relationship between the fields with key values in the target system and the values of the merged data fields.
[0009] Preferably, in step S2, the business process of data migration is as follows: 1. Data extraction stage: 1) The project leader provides the original system source data; 2) Business personnel complete the extraction of files based on the original system source data and data extraction rules; (II) Data conversion stage: 1) Business personnel define conversion rule configuration files and relationship mapping configuration files for Extract files; 2) The project leader determines the updated data source and data migration business rules; 3) Business personnel run the data migration system in a test environment and import Extract files, relationship mappings, and conversion rules; 4) The data migration system rule engine returns error information based on the imported Extract file, relationship mapping, and business rules; 5) Business personnel change relationship mapping and business rules based on erroneous information; 6) The project leader determines the updated source data; 7) When the data source is imported into the test system correctly, the business personnel run the data migration system in the production system, import the Extract file and configuration file, and store the converted data in the buffer, that is, the staging table; (III) Data loading phase: The data migration system loads the converted data from the buffer into the target database.
[0010] Preferably, in step S2: the data migration system splits the traditional software application layer, adds a business rule layer, and manages the changeable business rules independently; the application logic layer is divided into a rule application layer and an application object layer, the rule application layer corresponds to the business rule engine, which is responsible for all rule-related processing, and the application object layer corresponds to the layer responsible for calling the rule engine and executing system data import.
[0011] Preferably, in step S3, data extraction includes three types: data extraction of general data, data extraction of long text, and data extraction of attachments.
[0012] Preferably, in step S3, if during the data loading process, there is a piece of data that does not comply with the business rules, then a buffer for storing intermediate data is created in the database, and the structure of the buffer is completely consistent with the target table to which data needs to be imported. The data is transferred from the buffer to the target database only when and only when all data insertion operations are successfully executed; and when any operation fails, an error message is returned.
[0013] Preferably, in step S3, the data extraction stage obtains the existing record ID from the source data, and needs to have the following functions: provide a list of all prefix names whose first two digits are letters to avoid using repeated prefix names; determine the third digit according to the data type: uppercase I for internal users only, uppercase E for external and internal users; and add a version number for the data type that needs to be imported as an identification.
[0014] Preferably, in step S4, for cross-platform use, the two rule configuration files need to support Excel and plain text delimited files.
[0015] Compared with the prior art, the present invention has the following advantages and beneficial effects: 1. In the present invention, in response to business needs, a new data conversion module based on a configurable rule engine is proposed, and a development method based on business rules is adopted. This method is based on a development method for process-oriented programming, which separates business logic and programs into two parts to form business rules. The rule engine is triggered by business objects in actual applications to run the entire system. Combined with the existing data extraction and data import functions, a new, more flexible and stable data migration system is formed, which can greatly improve work efficiency.
[0016] 2. In the present invention, the data migration system cuts the traditional software application layer, adds a business rule layer, manages the changeable business rules independently, and no longer writes into the program. When the business rules change, there is no need to change the application layer. In addition, the application logic layer is divided into a rule application layer and an application object layer. The rule application layer corresponds to the business rule engine, which is responsible for all rule-related processing, while the application object layer corresponds to the one responsible for calling the rule engine and executing system data import. The data storage layer includes not only the database main table, but also Excel files such as rule configuration files and file storage for long text data and attachments. The software structure of this data migration system is an extension of the traditional three-tier software structure, so the flexibility of the new software structure is also enhanced.
[0017] 3. In the present invention, the data migration method based on business rules only requires business personnel to create a set of rules before the system can be started; the original system is changed, which not only requires business personnel to express their needs to developers and testers, but also requires development time for developers and testers for testing time. If there is a problem in the test, the developer needs to check and modify the code until the tester confirms that it has passed. The business personnel can start running the system, which significantly shortens the time of the whole process. For the actual system running time, there is not much difference between the original system and the present system when the data set is less than 1000, and the data processing time is not based on the size of the data volume, but mainly depends on the current system busyness. The amount of failed data returned after the execution of the program greatly improves the correctness of data import. The original system needs to manually repair the master data for the wrong data, which also takes a certain amount of time. It can be seen that the data migration system is far superior to modifying the original system mode in terms of time consumption, mainly because it saves a lot of communication and system debugging time based on business rules, and greatly improves the correctness of data import.
[0018] Fourth, in the present invention, a solution is proposed to separate relationship mapping and business rules from the code. Based on the needs of the existing data migration system, a new data migration system with a rule engine as the core is designed and implemented. The functions of data extraction, data conversion, and data loading modules in the new system are implemented, and the data conversion module is specifically designed and implemented. The data conversion module contains sub-modules such as import, read, conversion, verification, and report. Taking data conversion as an example, the application effect of the new data migration system is demonstrated, and the problems existing in the system and possible improvement directions are analyzed. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a flow chart of the data migration method based on business rules of the present invention.
[0020] Figure 2 It is the composition of the business rules of the data migration system in Example 1.
[0021] Figure 3 This is a system framework diagram of the business rule-based data migration system in Example 1.
[0022] Figure 4 This is a diagram of the long file data structure in Example 1.
[0023] Figure 5 This is the attachment data structure diagram in Example 1. DETAILED DESCRIPTION
[0024] The present invention is further described in detail below in conjunction with examples, but the embodiments of the present invention are not limited thereto.
[0025] Example 1 A data migration method based on business rules includes the following steps: Step 1: Definition of business rules for the data migration system: The syntax of the business rules of this data migration system is based on the syntax for describing rules in TheStarburst Active Database Rule System.
[0026] The rules of this system are divided into three parts: Transaction ID Prefix Rule to specify the naming rules of data ID, Schema Match Rule to specify the correspondence rules between the original system field and the target system field, and System Rule to represent the rules of the target system, such as the upper limit of the characters that the field can accept and the length of the data ID.
[0027] The Schema Match Rule consists of the General Data Match Rule and the KeyValue Match Rule. The former defines the corresponding fields of the merged data field to the corresponding fields of the target system and the default values, while the latter specifies the corresponding relationship between the fields with key values in the target system and the values of the merged data fields. Figure 2 , the syntax of the create rule command is as follows: create rule name on table when triggering-operations [if condition] then action-list [precedes rule-list] [follows rule-list].
[0028] Step 2: Data migration system architecture design based on business rules: After defining the above business rules, we can build a system process architecture for data migration. Data migration is mainly divided into three stages: data extraction, data conversion, and data loading.
[0029] This data migration system mainly processes the data conversion part, and its core is the rule engine. Therefore, the functional module design of this system is also centered around the function design of the rule engine. In the data extraction phase, the record ID prefix of the source data is filtered; when the rule engine is run in the data conversion phase, the business rules are imported and verified, the source data is converted, and the conversion results and error information are returned; in the data loading and checking phase, the converted data is loaded from the buffer to the target production system.
[0030] Based on the business process analysis above, we separate the business rule management module from the program code of the entire data migration system. Business personnel can use Excel to maintain business rules directly based on the business dictionary, and no longer need the participation of developers.
[0031] The data migration process is as follows: 1. Data extraction stage: 1) The project leader provides the original system source data.
[0032] 2) Business personnel complete the extraction file (Extract file) based on the original system source data and data extraction rules.
[0033] (II) Data conversion stage: 1) Business personnel define conversion rule configuration files and relationship mapping configuration files for Extract files.
[0034] 2) The project leader determines the updated data source and data migration business rules.
[0035] 3) Business personnel run the data migration system in a test environment and import Extract files and relationship mapping and conversion rules.
[0036] 4) The data migration system rule engine returns error information based on the imported Extract file, relationship mapping, and business rules.
[0037] 5) Business personnel change the relationship mapping and business rules based on the error information.
[0038] 6) The project leader determines the updated source data.
[0039] 7) If there is no problem importing the data source into the test system, the business personnel run the data migration system in the production system, import the Extract file and configuration file, and store the converted data in the buffer, that is, the staging table.
[0040] (III) Data loading phase: The data migration system loads the converted data from the buffer into the target database.
[0041] In this solution, step two includes: this data migration system splits the traditional software application layer, adds a new business rule layer, manages the changeable business rules independently, and no longer writes them into the program. When the business rules change, there is no need to change the application layer.
[0042] In addition, the application logic layer is divided into the rule application layer and the application object layer. The rule application layer corresponds to the business rule engine, which is responsible for all rule-related processing, while the application object layer corresponds to the call to the rule engine and the execution of system data import. The data storage layer includes not only the database master table, but also Excel files such as rule configuration files and file storage of long text data and attachments. The software structure of this data migration system is an extension of the traditional three-tier software structure, so the flexibility of the new software structure is also enhanced.
[0043] Step 3: Data extraction function design: After business rules and business execution process are defined, specific data extraction work can be carried out. In the data extraction stage, the existing record ID is obtained from the source data, and the following functions are required: provide a list of all prefix names whose first two digits are letters to avoid using duplicate prefix names; determine the third digit according to the data type: uppercase I for internal users only, and uppercase E for external and internal users; at the same time, add a version number for the data type that needs to be imported for identification.
[0044] All the above information such as source system name, data ID prefix name, Internal version number and External version number will be saved and maintained in a table, and the order ID of the target system will be generated during the data extraction process.
[0045] In this solution, the data extraction in step three includes three types of data extraction: data extraction of general data, data extraction of long text, and data extraction of attachments.
[0046] Insert the converted source data directly into the target database one by one. Since the target database does not originally have these records, the update of the existing records in the target database will not be affected. However, using this method, if the insert statement fails during the data loading process because one piece of data does not meet the business rules, the entire data import task will fail. In this case, the data imported before the insert statement fails will have been stored in the main table, resulting in incomplete data import.
[0047] The solution to this scheme is to create a buffer in the database to store intermediate data. The structure of the buffer is exactly the same as the target table to be imported. The data will be transferred from the buffer to the target database only when all data insertion operations are successfully executed; when any operation fails, an error message is returned, and the target table will not be affected in any way.
[0048] Step 4: Data conversion function design: The aforementioned rules will be called in the functions of converting data and verifying data correctness, and data conversion and verification will be performed according to business rules. In the data conversion stage, two rule configuration files are required, corresponding to the conversion rules for converting source data into target data, and the relationship mapping rules for associated fields.
[0049] In order to be used across platforms, these two files need to support Excel and plain text delimited files, and the delimited files can be of any type (CSV, tab delimited, etc.). The data conversion function includes multiple functional modules to implement the following functions: import rule file path and data ID prefix, read rule file, convert data according to rules, verify data correctness, return data import execution report and error information, and update rule file path and order ID prefix.
[0050] The ideal state of data migration should be that all data to be imported can be successfully inserted into the target database, or a data import failure message is returned and there is no change in the database main table.
[0051] In this solution, a buffer for storing intermediate data is created in the database to solve the problem: the structure of the buffer is exactly the same as the target table to which data needs to be imported. The data will be transferred from the buffer to the target database only when all data insertion operations are successfully executed; when any operation fails, an error message is returned and the target table will not be affected in any way.
[0052] For example, in this step: the converted source data is directly inserted into the target database one by one. Since these records do not exist in the target database originally, the update of the existing order records in the target database will not be affected. However, using this method, if the insert statement fails during the data loading process because one data does not meet the business rules, the entire data import task will fail. In this case, the data imported before the insert statement fails will have been stored in the main table, resulting in incomplete data import. The solution is to create a buffer in the database to store intermediate data. The structure of the buffer is exactly the same as the target table to be imported. The data will be transferred from the buffer to the target database only when all data insertion operations are successfully executed; when any operation fails, an error message is returned and the target table will not be affected.
[0053] To facilitate the public to understand the present solution, the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0054] Reference Figure 1 As shown, the present invention provides a data migration method based on business rules, comprising the following steps: Step 1: If Figure 2 As shown, Data Migration Rule contains three parts of rules: Transaction ID Prefix Rule, Schema Match Rule and System Rule. Among them, Transaction ID Prefix Rule has only one rule definition and is applicable to all source data migration projects. All rules of System Rule call the warning definitions for different modules in the original system, which have no independent storage mode and are not included in the scope of data and discussion. Only SchemaMatch Rule contains matching rules for each column and key value, so it is a rule set. Since Schema Match Rule is composed of General Data Match Rule and Key Value Match Rule, this rule set is also composed of the rule set corresponding to General Data MatchRule and the rule set corresponding to Key Value Match Rule. The definition of the data set is as follows: create rulesetname In this data migration system, the rule set corresponding to the General Data Match Rule is as follows: create rulesetConversion Rules create rulesetLong Text create rulesetAttachment Create rule sets for general data, long text data, and attachments separately.
[0055] In this data migration system, the rule set corresponding to the Key Value Match Rule is as follows: create rulesetData Mapping All rule sets are in the form of Excel or XML files and in designated folder directories. Therefore, the update and deletion of rule sets will be regarded as the update and deletion of the contents of the Excel or XML files storing the rule sets and the update of the files in the folder, and no further definition will be given.
[0056] Step 2: If Figure 3 As shown in the figure, the data migration system framework design based on business rules: (1) Business rule management module. Based on the analysis of business rules, we separated the variable business rules from the system program code. For data of general data types, we use Excel to define, modify and delete the corresponding business rules according to the corresponding business rule storage structure. Long text data and attachments are stored in designated folders and named according to business specifications. The advantage of this is that the business rules of all data are unified with one standard, which makes the business rules easy to understand and maintain. It also solves the problem that the data migration system code often needs to be modified and tested by developers due to the diversity of source data sources.
[0057] (2) Business execution module. The business rule engine is used to import and read relationship mapping and business rule files, verify the correctness of data according to business rules, return data import execution reports and error information, and finally import the converted data into the Staging Table. The business rule engine consists of two parts: cache and parser. The cache is used to store all data and configuration files required by the rule engine, such as rule files, while the parser consists of different methods and sub-methods, which are used to read rules, determine whether the data meets specific rules, whether to import the Staging Table or return error information.
[0058] (3) Application module. This module provides an interface, namely a GUI, for business personnel to input data information, and provides business personnel with the existing data ID information. It is responsible for calling the rule engine to execute data import into the Staging Table (temporary table).
[0059] (4) The order creation module is responsible for data loading. When all data is imported into the StagingTable without returning an error message, the form creation module is responsible for creating the data in the StagingTable into the main table of the production system and formally generating the form.
[0060] Step 3: Data extraction of source data is divided into the following three cases: (1) Extraction of general data. The source data manager and business personnel jointly decide which columns need to be migrated and which columns can be ignored, thus obtaining a data extraction file. The data extraction file contains all columns (fields) from the original system that need to be converted or retained, excluding long text and attachments. In addition, records that do not need to be migrated (usually records that have been inactive for several years) should be filtered out, but it is best to include any columns that may be needed.
[0061] (2) Extraction of long text data. Figure 4 As shown, by default, the long text file is written to the long text field Problem Description of the Internal Case or External Case. Long text data will usually be extracted from the original system by a process independent of the main extraction query or dump. This data must be Figure 4 The file storage structure described is organized so that it can be imported into the Internal Case or External Case using the data migration system.
[0062] (3) Extraction of attachment data. Figure 5 As shown, file attachment data will typically be extracted from the original system by a process separate from the main extraction query or dump. This data must be Figure 5 The file storage structure described is organized so that it can be imported into the Internal Case or External Case using the data migration system.
[0063] Step 4: The rule engine will be called in the functions of converting data and verifying data correctness to convert and verify data according to business rules.
[0064] (1) Import module. The import module needs to convert the file storage paths of the rule configuration file and the relationship mapping configuration file, and store the relevant file contents in the system cache.
[0065] (2) Reading module. The reading module needs to read the data extraction Extract file, long text file, attachment, conversion rule configuration file and relationship mapping configuration file, and traverse the content of the Extract file one by one to read the rule description corresponding to each field and the data value to be imported.
[0066] (3) Verification module. According to the business rules, the rule engine code is called to verify whether the columns with corresponding key values in the system can match the system key values. For example, the system Priority is divided into 4-Urgent, 3-High, 2-Medium and 1-Low. The Priority of a certain data to be merged is minor. The business rules define that minor corresponds to 1-Low. Then, according to the business rules, the Priority of the merged data can match the system key value. If the key value of the source data does not match the key value of the target data, an error is required.
[0067] (4) Conversion module. Based on the content of the Extract file, each field is mapped to the corresponding field in the relationship mapping table, and the rule engine is called to convert the corresponding value of the source data field into the key value of the target data field, and the object attributes corresponding to each field are set. For text fields, long text data and attachments, they are directly converted into the corresponding object field content.
[0068] The data migration method based on business rules of the present invention only requires business personnel to create a set of rules before the system can be started; the original system is changed so that not only business personnel need to express their needs to developers and testers, but also developers need development time, testers also need testing time, and if there is a problem in the test, developers need to check and modify the code until the tester confirms that it has passed, and the business personnel can start running the system. For the actual system running time, there is not much difference between the original system and the present system when the data set is less than 1000, and the data processing time is not based on the size of the data volume, but mainly depends on the current system busyness. The amount of failed data returned after the program is executed greatly improves the correctness of data import. The original system needs to manually repair the master data for the erroneous data, which also takes a certain amount of time. In summary, the data migration system is far superior to modifying the original system mode in terms of time consumption, mainly because it saves a lot of communication and system debugging time based on business rules, and greatly improves the correctness of data import.
[0069] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Any simple modification or equivalent change made to the above embodiment based on the technical essence of the present invention shall fall within the protection scope of the present invention.
Claims
1. A data migration method based on business rules, characterized in that: The following steps are involved: S1: Definition of business rules for data migration system: The syntax of the business rules of this data migration system is based on the syntax of the rules described in The Starburst Active Database RuleSystem. The rules of this data migration system are divided into three parts: Transaction ID Prefix Rule, Schema Match Rule and SAPCM System Rule. The Transaction ID Prefix Rule specifies the naming rules of the ID of the merged data; the Schema MatchRule specifies the corresponding rules between the fields of the original system and the fields of the target system SAP CRM system; the SAP CRM System Rule indicates the rules of the target system; S2: Data migration system architecture design based on business rules: Build a system process architecture for data migration. Data migration includes three stages: data extraction, data conversion, and data loading. The data extraction stage is to filter the record ID prefix of the source data; the data conversion stage includes importing and verifying business rules when running the rule engine, converting the source data, and returning the conversion results and error information; The data loading phase includes the data migration system loading the transformed data from the buffer into the target database; S3: Data extraction function design: In the data extraction stage, the existing record ID is obtained from the source data. All information is stored and maintained in a table. The primary key ID of the target system is generated during the data extraction process. S4: Data conversion function design: The rules of step S1 will be called in the functions of converting data and verifying data correctness, and data conversion and verification will be performed according to business rules. In the data conversion stage, two rule configuration files are required, corresponding to the conversion rules for converting source data into target data, and the relationship mapping rules for associated fields. The data conversion stage is provided with several functional modules to realize importing rule file path and data ID prefix, reading rule file, converting data according to rules, verifying data correctness, returning data import execution report and error information, and updating rule file path and primary key ID prefix.
2. The data migration method based on business rules according to claim 1, characterized in that: In step S1, Schema Match Rule is composed of General Data Match Rule and Key Value Match Rule. General Data Match Rule defines the correspondence between the merged data field and the corresponding field in the target system and the default value. Key Value Match Rule stipulates the correspondence between the field with key value in the target system and the value of the merged data field.
3. The data migration method based on business rules according to claim 1, characterized in that: In step S2, the business process of data migration is as follows:
1. Data extraction stage: 1) The project leader provides the original system source data; 2) Business personnel complete the extraction of files based on the original system source data and data extraction rules; (II) Data conversion stage: 1) Business personnel define conversion rule configuration files and relationship mapping configuration files for Extract files; 2) The project leader determines the updated data source and data migration business rules; 3) Business personnel run the data migration system in a test environment and import Extract files, relationship mappings, and conversion rules; 4) The data migration system rule engine returns error information based on the imported Extract file, relationship mapping, and business rules; 5) Business personnel change relationship mapping and business rules based on erroneous information; 6) The project leader determines the updated source data; 7) When the data source is imported into the test system correctly, the business personnel run the data migration system in the production system, import the Extract file and configuration file, and store the converted data in the buffer, that is, the staging table; (III) Data loading phase: The data migration system loads the converted data from the buffer into the target database.
4. The data migration method based on business rules according to claim 1, characterized in that: In step S2: the data migration system splits the traditional software application layer, adds a new business rule layer, and manages the changeable business rules independently; the application logic layer is divided into the rule application layer and the application object layer. The rule application layer corresponds to the business rule engine, which is responsible for all rule-related processing, and the application object layer corresponds to the one responsible for calling the rule engine and executing system data import.
5. The data migration method based on business rules according to claim 1, characterized in that: In step S3, data extraction includes three types: general data extraction, long text data extraction, and attachment data extraction.
6. The data migration method based on business rules according to claim 1, characterized in that: In step S3, if there is a piece of data that does not comply with the business rules during the data loading process, a buffer for storing intermediate data is created in the database. The structure of the buffer is completely consistent with the target table to which the data needs to be imported. The data is transferred from the buffer to the target database only when all data insertion operations are successfully executed; and when any operation fails, an error message is returned.
7. The data migration method based on business rules according to claim 1, characterized in that: In step S3, the data extraction stage obtains the existing record ID from the source data, which must have the following functions: provide a list of all prefix names whose first two digits are letters to avoid using repeated prefix names; determine the third digit based on the data type: uppercase I for internal users only and uppercase E for external and internal users; and add a version number for the data type that needs to be imported for identification.
8. The data migration method based on business rules according to claim 1, characterized in that: In step S4, in order to be used across platforms, the two rule configuration files need to support Excel and plain text delimited files.
Citation Information
Patent Citations
Method and device for data conversion and data migration
CN105335412A
Method and device for migrating data in database
CN111367886A
Data migration method and device, electronic equipment and storage medium
CN116775599A
Data verification method for data migration test among multiple systems
CN116881226A
Systems and methods for migrating data
EP1857946A2
