A method, device, equipment and storage medium for system application configuration migration

By determining the initial resource list, obtaining the reference resource list and generating data migration package, the problems of low degree of data migration automation and low dependency processing efficiency in the existing technology are solved, and the automation and efficiency of system application configuration migration are achieved.

CN114661439BActive Publication Date: 2025-03-25EVERSEC BEIJING TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210297838.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-24
Publication Date
2025-03-25
Estimated Expiration
2042-03-24

AI Technical Summary

Technical Problem

When facing complex business or system-level data migration, existing data migration technology is low in degree and cannot be processed concurrently. Data migration scripts with dependencies need to be processed manually, and once an error occurs during the migration process, it cannot be traced.

Method used

By determining the initial resource list selected by the user, obtain the reference resource list of the target resource, and update the initial resource list, form the target resource list, generate a data migration package, and realize the automatic export of the target resource and the reference resource.

Benefits of technology

It automatically handles the reference relationship between resources when system application configuration migration, simplifies the migration workload, improves the execution performance of system migration tasks, and avoids the problems of manual processing and error traceability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114661439B_ABST
    Figure CN114661439B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment and storage medium for system application configuration migration. The method includes: determining the initial resource list of this migration task according to the user's resource selection operation, wherein the initial resource list contains the resource identifiers of the target resources to be migrated selected by the user; determining the reference resource list corresponding to the target resources, and updating the initial resource list to obtain the target resource list, so that the target resource list covers the resource identifiers of the reference resources in the reference resource list; obtaining the corresponding resources according to the target resource list, and generating a first data migration package according to the obtained resources, wherein the first data migration package is used for the second device to import the target resources and reference resources. The technical solution of the embodiment of the present invention realizes the automatic processing of the reference relationship between resources during the data migration process, greatly simplifies the workload of system application configuration migration, and improves the execution performance of the system migration task.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, equipment and storage medium for migrating system application configuration. Background Art

[0002] With the continuous development of information technology, enterprises often have to replace old information systems with new ones. In order to ensure the continuity and traceability of business data, enterprises need to migrate the business data stored in the old system to the new system.

[0003] At present, the data migration process usually includes operations such as reading, changing, and inserting. First, the source data information must be read. If it is heterogeneous data migration, the data extracted from the source data must be modified to a data type that can be recognized by the system receiving the migrated data. If it is homogeneous data migration, there is no need to modify the source data, and it can be directly inserted into the system receiving the migrated data. When existing systems migrate data between systems, they usually use database scripts to perform data row-level operations.

[0004] However, this migration method cannot handle complex business or even system-level data migration concurrently. At the same time, data migration scripts with dependencies often require manual processing, and once an error occurs during the migration process, it cannot be traced back. It has the problems of low automation and low efficiency. Summary of the invention

[0005] The present invention provides a method, device, equipment and storage medium for system application configuration migration to solve the problems of low automation of data migration and low efficiency in analyzing dependencies between data.

[0006] In a first aspect, an embodiment of the present invention provides a method for migrating system application configuration, including:

[0007] Determine an initial resource list for this migration task according to the resource selection operation of the user, wherein the initial resource list includes resource identifiers of target resources to be migrated selected by the user;

[0008] Determine a reference resource list corresponding to the target resource, and update the initial resource list to obtain a target resource list, so that the target resource list covers the resource identifiers of the reference resources in the reference resource list;

[0009] Corresponding resources are acquired according to the target resource list, and a first data migration package is generated according to the acquired resources, wherein the first data migration package is used for the second device to import the target resources and reference the resources.

[0010] In a second aspect, an embodiment of the present invention provides a device for system application configuration migration, including:

[0011] An initial resource determination module, used to determine an initial resource list for this migration task according to a resource selection operation of a user, wherein the initial resource list includes resource identifiers of target resources to be migrated selected by the user;

[0012] A target resource determination module is used to determine a reference resource list corresponding to the target resource, and to update the initial resource list to obtain a target resource list, so that the target resource list covers the resource identifiers of the reference resources in the reference resource list;

[0013] The first data migration package generation module is used to obtain corresponding resources according to the target resource list, and generate a first data migration package according to the obtained resources, wherein the first data migration package is used for the second device to import the target resources and reference resources.

[0014] In a third aspect, an embodiment of the present invention provides an electronic device, wherein the system application configuration migration device includes:

[0015] at least one processor;

[0016] and a memory communicatively coupled to the at least one processor;

[0017] The memory stores a computer program executable by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute the method for system application configuration migration of the first aspect.

[0018] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer instructions, which are used to enable a processor to implement the method of system application configuration migration of the first aspect when executed.

[0019] The system application configuration migration scheme provided by the embodiment of the present invention determines the initial resource list of this migration task according to the resource selection operation of the user, wherein the initial resource list contains the resource identifier of the target resource to be migrated selected by the user, determines the reference resource list corresponding to the target resource, and updates the initial resource list to obtain the target resource list so that the target resource list covers the resource identifier of the reference resource in the reference resource list, obtains the corresponding resource according to the target resource list, and generates a first data migration package according to the obtained resource, wherein the first data migration package is used for the second device to import the target resource and the reference resource. By adopting the above technical scheme, the target resource to be migrated in this migration task is determined according to the user's selection, and the initial resource list is formed, and then the reference resource list corresponding to the target resource is determined and the initial resource list is updated, the target resource list is obtained and the first data migration package is generated, thereby realizing that when the system application configuration is migrated, the reference relationship between resources can be automatically processed, and the target resource that the user wants to migrate and the reference resource of the target resource are exported together, which can greatly simplify the workload of system application configuration migration and improve the execution performance of system migration tasks.

[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 is a flowchart of a method for system application configuration migration provided according to Embodiment 1 of the present invention;

[0023] Figure 2 This is a reference relationship traversal flow chart in the first embodiment of the present invention;

[0024] Figure 3 is a flowchart of a method for system application configuration migration provided according to Embodiment 2 of the present invention;

[0025] Figure 4 is a structural diagram of a system application configuration migration device provided according to Embodiment 3 of the present invention;

[0026] Figure 5 It is a structural diagram of an electronic device for implementing the method for migrating system application configuration according to the fourth embodiment of the present invention. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "first", "second", "initial", "target", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] Embodiment 1

[0030] Figure 1 A flowchart of a method for system application configuration migration is provided for the first embodiment of the present invention. This embodiment is applicable to the case of system application configuration migration between different devices. The method can be executed by a system application configuration migration device. The system application configuration migration device can be implemented in the form of hardware and / or software. The system application configuration migration device can be configured in an electronic device. The electronic device can be composed of two or more physical entities or one physical entity. In the embodiment of the present invention, the electronic device is recorded as the first device. Figure 1 As shown, the method includes:

[0031] S101. Determine an initial resource list for this migration task according to a user's resource selection operation.

[0032] The initial resource list includes resource identifiers of target resources to be migrated selected by the user.

[0033] In this embodiment, the user can determine the target resource of this migration task by selecting in the resource list, and generate a corresponding initial resource list, which contains the resource identifier of the target resource. The selection operation that the user can perform includes, for example, checking or specifying according to the query conditions. The resource identifier includes, for example, at least one of: resource type, resource number, resource size, and resource title.

[0034] Specifically, the types of resources to be migrated include, for example, dashboards, data sets, data sources, and custom components. A dashboard can be a collection of several charts, and the dashboard will be updated with the latest available data in the data source; a data set can contain information about dimensions and measures, and the process of establishing a data set is to modify the alias of the data in the data source, set dimensions, measures, and filters, etc.; a data source can contain information about how to connect to the data, such as the database server name and server login information; a custom component can be a page display component written through secondary development.

[0035] S102: Determine a reference resource list corresponding to the target resource, and update the initial resource list to obtain a target resource list, so that the target resource list covers the resource identifiers of the reference resources in the reference resource list.

[0036] In this embodiment, there is a reference relationship between resources, and the reference relationship can be expressed as: when entering one type of data, it is often necessary to reference another type of data. Figure 2 1 is a reference relationship traversal flow chart in an embodiment of the present invention, wherein the dictionary can be a series of key-value pairs, each key is associated with a value, and the value associated with it is accessed through the key. Figure 2 As shown, when the system application configuration needs to be migrated, the reference relationship between resources needs to be traversed. For example, the reference relationship is: when defining a dashboard, it is necessary to reference the data set information, when defining a data set, it is necessary to reference the data source information, and when defining a data source, it is necessary to reference a custom component. Through the reference relationship corresponding to the target resource obtained, the corresponding reference resource list can be generated, and the initial resource list can be updated according to the table, so as to obtain a target resource list covering the reference resources in the reference resource list.

[0037] Exemplarily, the method of obtaining the reference resource list corresponding to the target resource may include: calling an analysis function for each target resource in the initial resource list, obtaining an analysis result and generating a corresponding reference resource list, thereby obtaining the target resource list. The function of the analysis function may include: analyzing the reference dependency relationship between resources or determining the relationship between reference resources.

[0038] Exemplarily, when the initial resource list is updated, the resource identifiers of the referenced resources in the referenced resource list may be added to the initial resource list; the referenced resource list may also be merged into the initial resource list, and the merging method may be a union method, etc. Optionally, when the initial resource list is updated, the reference relationship information between the resource identifier of the target resource and the resource identifier of the referenced resource may be added; if there is a reference relationship between different referenced resources in the referenced resource list, the reference relationship information between the resource identifiers of different referenced resources may also be retained when the initial resource list is updated.

[0039] S103: Acquire corresponding resources according to the target resource list, and generate a first data migration package according to the acquired resources.

[0040] The first data migration package is used for the second device to import the target resource and reference the resource. The second device is generally a device different from the first device.

[0041] In this embodiment, after obtaining the target resource list, that is, obtaining all the resources required to be exported for this migration task, the target resources to be migrated can be obtained according to the target resource list, and a first data migration package can be generated. This data package (also referred to as an export package) can be imported into the second device that applies the method for migrating the system application configuration. For example, the first data migration package is transmitted to the second device through a network transmission or by means of a storage medium, and the second device can implement the import of the above-mentioned target resources and referenced resources in the first device by parsing the first data migration package.

[0042] The method for system application configuration migration provided by the embodiment of the present invention determines the initial resource list of this migration task according to the resource selection operation of the user, wherein the initial resource list contains the resource identifier of the target resource to be migrated selected by the user, determines the reference resource list corresponding to the target resource, and updates the initial resource list to obtain the target resource list so that the target resource list covers the resource identifier of the reference resource in the reference resource list, obtains the corresponding resource according to the target resource list, and generates a first data migration package according to the obtained resource, wherein the first data migration package is used for the second device to import the target resource and the reference resource. The technical solution of the embodiment of the present invention determines the target resource to be migrated in this migration task according to the user's selection, and forms an initial resource list, then determines the reference resource list corresponding to the target resource and updates the initial resource list, obtains the target resource list and generates the first data migration package, realizes parallel processing of data migration, and can automatically process the reference relationship between resources when migrating the system application configuration, which can greatly simplify the workload of system application configuration migration and improve the execution performance of system migration tasks.

[0043] Embodiment 2

[0044] Figure 3 This is a flow chart of a method for system application configuration migration provided in the second embodiment of the present invention. The technical solution of the embodiment of the present invention is further optimized on the basis of the above-mentioned optional technical solutions, and a specific method for determining the target resource list is given.

[0045] Specifically, for each target resource in the initial resource list, the reference resource list corresponding to the current target resource is obtained by recursively calling the reference resource analysis function corresponding to the current target resource and / or the reference resource of the current target resource, and the obtained reference resource list is merged into the initial resource list, wherein the reference resource analysis function is defined in the resource type interface corresponding to the resource to which it belongs, and after merging the reference resource list corresponding to the last target resource into the initial resource list, the target resource list is obtained. The advantage of this setting is that the reference relationship between resources can be automatically queried, and the problem of mutual dependence between resources is handled.

[0046] like Figure 3 As shown, the method includes:

[0047] S201. Determine an initial resource list for this migration task according to a user's resource selection operation.

[0048] The initial resource list includes resource identifiers of target resources to be migrated selected by the user;

[0049] It should be noted that the relevant contents of step S201 have been explained in the first embodiment of the present invention and will not be described in detail here.

[0050] S202. For each target resource in the initial resource list, obtain a reference resource list corresponding to the current target resource by recursively calling a reference resource analysis function corresponding to the current target resource and / or the reference resource of the current target resource, and merge the obtained reference resource list into the initial resource list.

[0051] Among them, the reference resource analysis function is defined in the resource type interface corresponding to the resource to which it belongs, and after merging the reference resource list corresponding to the last target resource into the initial resource list, the target resource list is obtained.

[0052] Exemplarily, the current target resource can be understood as any target resource whose resource identifier is included in the initial resource list and whose reference resource list needs to be obtained. Assuming that the initial resource list contains three target resources, which are respectively recorded as A1, A2 and A3, and the current target resource is A1, the reference resource analysis function defined in the resource type interface corresponding to the target resource A1 is called to analyze the resources directly referenced by the target resource A1, that is, the reference resources, to simplify the implementation of the interface. For the reference resources of the target resource A1, there may be a situation of referencing other resources. Assuming that for the reference resource B1, the reference resource analysis function defined in the resource type interface corresponding to the reference resource B1 can be continued to be called to analyze the resources directly referenced by the reference resource B1, and so on, until all reference resources that have a direct reference or indirect reference relationship with the target resource A1 are found, forming a reference resource list corresponding to the target resource A1. After obtaining the reference resource list corresponding to the target resource A1, it is merged into the initial resource list. Subsequently, the above operation is repeated for the target resources A2 and A3 to obtain the final target resource list.

[0053] Optionally, the reference resource list corresponding to the current target resource is obtained by recursively calling the reference resource analysis function corresponding to the current target resource and / or the reference resource of the current target resource, including: querying whether the reference resource list corresponding to the current target resource exists in the resource reference cache, and if not, obtaining the reference resource list corresponding to the current target resource by recursively calling the reference resource analysis function corresponding to the current target resource and / or the reference resource of the current target resource, and adding the reference resource list corresponding to the current target resource to the resource reference cache. After querying whether the reference resource list corresponding to the current target resource exists in the resource reference cache, it also includes: if it exists, obtaining the reference resource list corresponding to the current target resource from the resource reference cache. The advantage of this setting is that when analyzing reference resources, the analyzed reference relationships are cached, thereby improving the performance of the analysis.

[0054] Further, it is determined whether the resource identifier of the current resource already exists in the current initial resource list or the current reference resource list, wherein the current resource includes the current target resource and / or the reference resource of the current target resource; if it exists, calling the reference resource analysis function corresponding to the current resource is prohibited. Optionally, if it does not exist, calling the reference resource analysis function corresponding to the current resource is allowed.

[0055] Exemplarily, when the reference resource analysis function corresponding to the current target resource and / or the reference resource of the current target resource is recursively called, the reference resource identifier corresponding to the current target resource is added to the parent resource list, the reference resource list corresponding to the current target resource is traversed, and it is determined whether the parent resource list contains the resource identifier in the reference resource list corresponding to the current target resource. If so, calling the reference resource analysis function corresponding to the current resource is prohibited, the current loop is exited, and the next recursive call loop is executed, thereby avoiding an infinite loop when cyclically analyzing the reference resource relationship.

[0056] S203: Acquire corresponding resources according to the target resource list, and generate a first data migration package according to the acquired resources.

[0057] The first data migration package is used for the second device to import target resources and reference resources.

[0058] Optionally, while generating the first data migration package according to the acquired resources, the method further includes: generating a first verification file matching the first data migration package, wherein the first verification file is used for the second device to verify the first data migration package before importing the target resources and referencing the resources. Optionally, the first verification file may include, for example, the size of the first data migration package, information-digest algorithm information, and information of the current server, and the first verification file may be an encrypted file.

[0059] Exemplarily, after the migration task starts, that is, after the initial resource list of this migration task is determined, this migration task is first divided into several stages to determine the specific process ratio of the migration task, wherein the several stages include: resource reference analysis, resource validity verification, resource migration, generating metadata files, packaging files, and exporting at least one of the file packages. The weight of each of the above stages is different, and the total value is 100. The above stages can also be further divided into smaller stages, but the sum of the weights of the smaller stages of each stage corresponds to the weight of the stage.

[0060] Furthermore, during the execution of the migration task, log information can be output, and when an exception occurs during the import or export of resources, a corresponding exception stack can be output, wherein the output log information can include information such as the execution time, corresponding resources, task status, and execution duration.

[0061] Optionally, it may also include: displaying execution progress information and / or log information. The user can obtain the execution progress information and / or log information of this migration task according to preset query operations, asynchronously query the task execution progress and execution output log, and understand the execution status of the current task.

[0062] Based on the above embodiment, the method may further include: displaying preset prompt information when detecting that there are unavailable reference resources in the target resource list. The preset prompt information is used to prompt the user whether to continue to execute the migration task in the absence of the reference resource; and in response to the user's preset confirmation operation, continue to execute the migration task.

[0063] Exemplarily, the user can cancel or pause the migration task being executed, and an option is provided to ignore missing reference resources, thereby allowing the migration task to be executed normally even if some reference resources are lost.

[0064] The method for system application configuration migration provided by an embodiment of the present invention first determines the initial resource list of this migration task according to the user's resource selection operation, then obtains the reference resource list corresponding to the current target resource by recursively calling the reference resource analysis function corresponding to the current target resource and / or the reference resource of the current target resource, and updates the initial resource list to obtain the target resource list, and finally obtains the corresponding resources according to the target resource list, and generates a first data migration package to complete the migration, automatically queries the reference relationship between resources, handles the problem of mutual dependence between resources, and provides the function of querying the execution progress and log information for the user to backtrack the migration task, and provides the option of whether to ignore the missing reference resources, which is suitable for the export requirements of different scenarios.

[0065] Based on the above embodiment, the method may further include: obtaining a second data migration package, wherein the second data migration package is generated by a third device; and importing the target resources and reference resources contained in the second data migration package into the first device. The advantage of such a setting is that the same device can have both import and export functions. The third device is generally different from the first device.

[0066] Exemplarily, when importing the target resources and reference resources contained in the second data migration package into the first device, it is first necessary to decrypt the contents of the verification file to obtain the contents in the verification file, and verify the size of the exported file package, information-digest algorithm information, and server information. If the verification fails, the import is not allowed.

[0067] Optionally, the data migration package may include configuration information and resource file data packets, and the configuration information may include resource types and resource numbers in the current data migration package. In the process of importing the target resources and referenced resources contained in the second data migration package into the first device, the resource types and resource numbers in the configuration information may be traversed to read the corresponding resource files one by one for import.

[0068] Optionally, during the import process, you can choose whether to overwrite the original application configuration in the system (multiple overwriting strategies can be provided), whether to cancel the import task being executed, and display the execution progress and log information of the import task, etc. according to the operation input by the user.

[0069] On the basis of the above embodiment, when executing the migration task, the first device may use thread pool technology to concurrently execute the import and export tasks, thereby improving the execution performance of the system migration task.

[0070] Embodiment 3

[0071] Figure 4 This is a schematic diagram of the structure of a system application configuration migration device provided in Embodiment 3 of the present invention. Figure 4 As shown, the device comprises:

[0072] The initial resource determination module 301 is used to determine the initial resource list of this migration task according to the resource selection operation of the user, wherein the initial resource list includes the resource identifier of the target resource to be migrated selected by the user.

[0073] The target resource determination module 302 is used to determine a reference resource list corresponding to the target resource, and update the initial resource list to obtain a target resource list, so that the target resource list covers the resource identifiers of the reference resources in the reference resource list.

[0074] The first data migration package generation module 303 is used to obtain corresponding resources according to the target resource list, and generate a first data migration package according to the obtained resources, wherein the first data migration package is used for the second device to import the target resources and reference resources.

[0075] The device for system application configuration migration provided by the embodiment of the present invention determines the target resources to be migrated in this migration task according to the user's selection, and forms an initial resource list, then determines the reference resource list corresponding to the target resources and updates the initial resource list, obtains the target resource list and generates a first data migration package, realizes the migration of system application configuration, can automatically handle the reference relationship between resources, can greatly simplify the workload of system application configuration migration, and improves the execution performance of system migration tasks.

[0076] Optionally, the target resource determination module 302 includes:

[0077] A reference resource list determination unit is used to obtain a reference resource list corresponding to the current target resource by recursively calling a reference resource analysis function corresponding to the current target resource and / or a reference resource of the current target resource for each target resource in the initial resource list in turn;

[0078] The target resource list determination unit is used to merge the obtained reference resource list into the initial resource list, wherein the reference resource analysis function is defined in the resource type interface corresponding to the corresponding resource, and after merging the reference resource list corresponding to the last target resource into the initial resource list, the target resource list is obtained.

[0079] Optionally, the reference resource list determination unit includes:

[0080] The reference cache query subunit is used to query whether there is a reference resource list corresponding to the current target resource in the resource reference cache;

[0081] The reference resource list determination subunit is used to obtain the reference resource list corresponding to the current target resource by recursively calling the reference resource analysis function corresponding to the current target resource and / or the reference resource of the current target resource when the reference resource list corresponding to the current target resource does not exist in the resource reference cache, and add the reference resource list corresponding to the current target resource to the resource reference cache;

[0082] The reference resource list acquisition subunit is used to acquire the reference resource list corresponding to the current target resource from the resource reference cache when the reference resource list corresponding to the current target resource exists in the resource reference cache.

[0083] Optionally, the reference resource list determination unit further includes:

[0084] A resource identification judgment subunit, used to judge whether the resource identification of the current resource already exists in the current initial resource list or the current reference resource list, wherein the current resource includes the current target resource and / or the reference resource of the current target resource;

[0085] The function prohibition calling subunit is used to prohibit calling the reference resource analysis function corresponding to the current resource when the resource identifier of the current resource already exists in the current initial resource list or the current reference resource list.

[0086] Optionally, the device further comprises:

[0087] The first verification file generation module is used to generate a first verification file matching the first data migration package, wherein the first verification file is used for the second device to verify the first data migration package before importing the target resource and referencing the resource.

[0088] Optionally, the device further includes:

[0089] Migration task determination module: used to display preset prompt information when it is detected that there are unavailable reference resources in the target resource list, wherein the preset prompt information is used to prompt the user whether to continue executing the current migration task in the absence of reference resources; in response to the user's preset confirmation operation, continue executing the current migration task.

[0090] The second data migration package importing module is used to obtain a second data migration package, where the second data migration package is generated by a third device; and import the target resources and referenced resources included in the second data migration package into the first device.

[0091] The device for system application configuration migration provided in the embodiment of the present invention can execute the method for system application configuration migration provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0092] Embodiment 4

[0093] Figure 5 A schematic diagram of the structure of an electronic device 40 for implementing an embodiment of the present invention. The electronic device 40 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0094] like Figure 5 As shown, the electronic device 40 includes at least one processor 41, and a memory connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 to the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.

[0095] A number of components in the electronic device 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0096] The processor 41 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 41 executes the various methods and processes described above, such as a method for system application configuration migration.

[0097] The charging control device provided in the embodiment of the present invention can execute the charging control method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0098] Embodiment 5

[0099] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 foregoing.

[0100] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0101] The charging control device provided in the embodiment of the present invention can execute the charging control method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0102] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0103] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for system application configuration migration, characterized in that: Applied to a first device, comprising: Determine the initial resource list of this migration task according to the resource selection operation of the user, wherein the initial resource list includes the resource identifier of the target resource to be migrated selected by the user; the resource identifier includes: at least one of: resource type, resource number, resource size and resource title, and the resource type to be migrated includes: dashboard, data set, data source and custom component; Determine a reference resource list corresponding to the target resource, and update the initial resource list to obtain a target resource list, so that the target resource list covers the resource identifiers of the reference resources in the reference resource list; Acquire corresponding resources according to the target resource list, and generate a first data migration package according to the acquired resources, wherein the first data migration package is used for the second device to import the target resources and the referenced resources; The determining of the reference resource list corresponding to the target resource and updating the initial resource list to obtain the target resource list includes: For each target resource in the initial resource list, obtain the reference resource list corresponding to the current target resource by recursively calling the reference resource analysis function corresponding to the current target resource and / or the reference resource of the current target resource, and merge the obtained reference resource list into the initial resource list, wherein the reference resource analysis function is defined in the resource type interface corresponding to the resource to which it belongs, and after merging the reference resource list corresponding to the last target resource into the initial resource list, obtain the target resource list; The step of obtaining a reference resource list corresponding to the current target resource by recursively calling a reference resource analysis function corresponding to the current target resource and / or a reference resource of the current target resource comprises: Query whether there is a reference resource list corresponding to the current target resource in the resource reference cache. If not, obtain the reference resource list corresponding to the current target resource by recursively calling the reference resource analysis function corresponding to the current target resource and / or the reference resource of the current target resource, and add the reference resource list corresponding to the current target resource to the resource reference cache; Wherein, after querying whether there is a reference resource list corresponding to the current target resource in the resource reference cache, the method further includes: If so, a reference resource list corresponding to the current target resource is obtained from the resource reference cache.

2. The method according to claim 1, characterized in that The process of obtaining a reference resource list corresponding to the current target resource by recursively calling a reference resource analysis function corresponding to the current target resource and / or a reference resource of the current target resource also includes: Determine whether the resource identifier of the current resource already exists in the current initial resource list or the current reference resource list, wherein the current resource includes the current target resource and / or the reference resource of the current target resource; If it exists, calling the reference resource analysis function corresponding to the current resource is prohibited.

3. The method according to claim 1, characterized in that While generating the first data migration package according to the acquired resources, the method further includes: A first verification file matching the first data migration package is generated, wherein the first verification file is used for the second device to verify the first data migration package before importing the target resource and the reference resource.

4. The method according to claim 1, characterized in that: Also includes: In the case where it is detected that there are unobtainable reference resources in the target resource list, a preset prompt message is displayed, wherein the preset prompt message is used to prompt the user whether to continue to execute the current migration task in the case of missing reference resources; In response to the preset confirmation operation of the user, continue to execute the current migration task.

5. The method according to claim 1, characterized in that Also includes: obtaining a second data migration package, wherein the second data migration package is generated by a third device; Import the target resources and referenced resources included in the second data migration package into the first device.

6. A device for system application configuration migration, characterized in that: include: An initial resource determination module is used to determine the initial resource list of this migration task according to the user's resource selection operation, wherein the initial resource list contains the resource identifier of the target resource to be migrated selected by the user; the resource identifier includes: at least one of: resource type, resource number, resource size and resource title, and the resource types to be migrated include: dashboard, data set, data source and custom component; A target resource determination module, used to determine a reference resource list corresponding to the target resource, and update the initial resource list to obtain a target resource list, so that the target resource list covers the resource identifiers of the reference resources in the reference resource list; a first data migration package generating module, configured to obtain corresponding resources according to the target resource list, and generate a first data migration package according to the obtained resources, wherein the first data migration package is used for the second device to import the target resources and the referenced resources; The target resource determination module includes: A reference resource list determination unit is used to obtain a reference resource list corresponding to the current target resource by recursively calling a reference resource analysis function corresponding to the current target resource and / or a reference resource of the current target resource for each target resource in the initial resource list in turn; A target resource list determination unit is used to merge the obtained reference resource list into the initial resource list, wherein the reference resource analysis function is defined in the resource type interface corresponding to the resource to which it belongs, and after merging the reference resource list corresponding to the last target resource into the initial resource list, the target resource list is obtained; The reference resource list determination unit includes: The reference cache query subunit is used to query whether there is a reference resource list corresponding to the current target resource in the resource reference cache; A reference resource list determination subunit is used to obtain the reference resource list corresponding to the current target resource by recursively calling the reference resource analysis function corresponding to the current target resource and / or the reference resource of the current target resource when the reference resource list corresponding to the current target resource does not exist in the resource reference cache, and add the reference resource list corresponding to the current target resource to the resource reference cache; The reference resource list acquisition subunit is used to acquire the reference resource list corresponding to the current target resource from the resource reference cache when the reference resource list corresponding to the current target resource exists in the query resource reference cache.

7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for system application configuration migration described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for migrating system application configuration according to any one of claims 1 to 5 when executed.

Citation Information

Patent Citations

  • Data sheet migration method based on sheet relation analysis

    CN102831211A