CN113835727A - Configuration version upgrading method and device - Google Patents

Configuration version upgrading method and device Download PDF

Info

Publication number
CN113835727A
CN113835727A CN202111011508.8A CN202111011508A CN113835727A CN 113835727 A CN113835727 A CN 113835727A CN 202111011508 A CN202111011508 A CN 202111011508A CN 113835727 A CN113835727 A CN 113835727A
Authority
CN
China
Prior art keywords
node
type
information
flow
configuration version
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111011508.8A
Other languages
Chinese (zh)
Inventor
刘金玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beike Technology Co Ltd
Original Assignee
Beike Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beike Technology Co Ltd filed Critical Beike Technology Co Ltd
Priority to CN202111011508.8A priority Critical patent/CN113835727A/en
Publication of CN113835727A publication Critical patent/CN113835727A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method and a device for compatibility of configuration versions. For the target service which is started to be executed according to the first flow before the configuration version is upgraded, the target service can be smoothly executed according to the second flow, so that the service is ensured to be smoothly executed until the service is normally finished, and the user experience is improved.

Description

Configuration version upgrading method and device
Technical Field
The invention relates to the technical field of computer software, in particular to a configuration version upgrading method and device.
Background
At present, for the same type of services in different regions and different scenes, a large difference may be generated. Taking the real estate transaction business as an example, the real estate transaction is a complex flow which involves many departments such as an evaluation institution, a bank, a government and the like and is influenced by local policies. Because the local policies of various cities are inconsistent, the house property transaction flow of each city is different, and each city also has different loan modes such as public accumulation fund, business loan, full money, combined loan and the like and corresponding loan flows.
The house property transaction flow of city a is different from that of city b, and even if the same link in the house property transaction flow is adopted, different cities are different. For example, the house property transaction processes of city a and city b both include a credit link, but the credit link process of city a is as shown in fig. 1, and includes statement audit-registration data sending to bank-registration surface sign result-registration credit result, while the credit link process of city b is as shown in fig. 2, after statement audit, it is necessary to simultaneously perform file check, register supervision result, register network sign result, after register network sign result, register surface sign result, and finally register credit result.
Therefore, it is necessary to configure and implement personalized services for each region, and the service system at this time is a configuration system, and the service system is configured according to the specific situation of each region and each scene, so as to ensure personalization. Furthermore, when the business process in the business system is modified, the configuration version can be directly upgraded. However, the new and old configuration versions may have a problem of incompatibility, which may cause that the service generated before the configuration version is upgraded cannot be completed continuously, thereby affecting the user experience.
Disclosure of Invention
The invention provides a configuration version upgrading method and device, which are used for overcoming the defects in the prior art.
The invention provides a configuration version upgrading method, which comprises the following steps:
determining a first process of a target service before the upgrade of the configuration version and a second process of the target service after the upgrade of the configuration version;
determining starting information and circulation information of a first type process node in the first process based on first type configuration information of the target service before the configuration version is upgraded;
determining starting information and circulation information of a second type process node in the second process based on second type configuration information of the target service after the configuration version is upgraded;
and establishing a communication relation between the first process and the second process based on the starting information and the circulation information of the first process node and the starting information and the circulation information of the second process node, so that the first process node is circulated to the second process node based on the communication relation.
According to the configuration version compatibility method provided by the invention, the starting information of the first type process node is used for indicating the starting node of the first type process node, and the circulation information of the first type process node is used for indicating the circulation node of the first type process node;
the starting information of the second type process node is used for indicating the starting node of the second type process node, and the circulation information of the second type process node is used for indicating the circulation node of the second type process node.
According to the configuration version compatibility method provided by the present invention, establishing a communication relationship between the first process and the second process based on the start information and the flow information of the first type of process node and the start information and the flow information of the second type of process node specifically includes:
determining a target first-class process node in the first process, wherein a second-class process node which is the same as the target first-class process node does not exist in the second process;
determining a target second type process node in the second process, wherein the starting node of the target second type process node is the same as the starting node of the target first type process node;
and updating the circulation node of the target first-class process node into the target second-class process node.
According to the configuration version compatibility method provided by the invention, the second flow has the same second type flow node as the circulation node of the target first type flow node.
According to the compatible method of the configuration version provided by the invention, before the configuration version is upgraded, the method further comprises the following steps:
constructing initial test data based on the service information of the target service;
taking the initial test data as the entry test data of the first process, and executing the first process to obtain a first type test result corresponding to the first type process node;
and constructing a full test set based on the test data corresponding to the first type of process nodes and the first type of test results.
According to the compatible method for the configuration version provided by the present invention, after the configuration version is upgraded, or after the connection relationship between the first process and the second process is established based on the start information and the flow information of the first type of process node and the start information and the flow information of the second type of process node, the method further comprises:
executing the second process based on the test data corresponding to any first type of process node in the full test set;
if the second process is abnormally ended, adding the test data corresponding to any first type of process node into an abnormally ended set;
and if the abnormal ending set is not empty after the test data in the full test set is used for executing the second process, determining that the configuration version is incompatible before and after upgrading.
According to a configuration version compatibility method provided by the present invention, if the test data corresponding to any of the first type of process nodes in the full test set is based on, the second process is executed, and then the method further comprises:
determining a second type test result corresponding to a second type process node which is positioned at the same node position as any one first type process node in the second process;
and if the first type test result corresponding to any first type process node is inconsistent with the second type test result, adding the test data corresponding to any first type process node into a change data set.
According to the configuration version compatibility method provided by the invention, the determining that the configuration version is incompatible before and after upgrading further comprises:
adjusting the second process based on the test data in the change dataset.
The invention also provides an electronic device, comprising a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the steps of any one of the configuration version compatibility methods.
The invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any of the configuration version compatible methods described above.
The invention provides a method and a device for compatible configuration versions, wherein the method comprises the steps of firstly determining a first process of a target service before the upgrade of the configuration version and a second process of the target service after the upgrade of the configuration version; then, based on the first type configuration information of the target service before the configuration version is upgraded, determining the starting information and the circulation information of the first type process node in the first process; determining starting information and circulation information of a second type process node in the second process based on second type configuration information of the target service after the configuration version is upgraded; and finally, establishing a communication relation between the first process and the second process based on the starting information and the circulation information of the first type of process nodes and the starting information and the circulation information of the second type of process nodes. By introducing the starting information and the circulation information of the process nodes, the communication relation between the first process and the second process can be established, and finally the compatibility of the configuration version before and after upgrading is realized. For the target service which is started to be executed according to the first flow before the configuration version is upgraded, the target service can be smoothly executed according to the second flow, so that the service is ensured to be smoothly executed until the service is normally finished, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart of a commercial loan segment in a city;
FIG. 2 is a schematic flow chart of the business loan segment in city b;
FIG. 3 is a flow chart illustrating a configuration version compatibility method provided by the present invention;
FIG. 4 is a schematic structural diagram of a configuration version compatible device provided in the present invention;
fig. 5 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, personalized services of each region need to be realized in a configuration mode so as to reduce the workload of developers. Namely, the service system is used as a configuration system, and the service system is configured according to the specific conditions of each region and each scene, so as to ensure individuation. When the business process in the business system is modified, the configuration version can be directly upgraded. However, the problem that the new configuration version after the upgrade may not be compatible with the old configuration version before the upgrade may exist, which may cause that the service that has started to be executed before the upgrade of the configuration version may not be continuously executed after the upgrade of the configuration version, which may cause the failure of the service execution. For example, taking the loan service of city a as an example, the first flow of the loan service before the configuration version upgrade includes four nodes A-B-C-D in sequence. And after the loan service is executed to the B according to the first flow, upgrading the configuration version, wherein the second flow of the loan service after upgrading the configuration version comprises four nodes A-B-E-D in sequence, and the loan service after upgrading the configuration version needs to be executed continuously according to the second flow, but the loan service cannot be executed continuously because the second flow does not have the node C. Therefore, the embodiment of the invention provides a configuration version compatibility method to solve the technical problems in the prior art.
Fig. 3 is a schematic flowchart of a configuration version compatibility method provided in an embodiment of the present invention, where the method includes:
s1, determining a first flow of a target service before the upgrade of the configuration version and a second flow of the target service after the upgrade of the configuration version;
s2, determining the starting information and the circulation information of the first type process node in the first process based on the first type configuration information of the target service before the configuration version is upgraded;
s3, determining the starting information and the circulation information of the second type process node in the second process based on the second type configuration information of the target service after the configuration version is upgraded;
and S4, establishing a communication relation between the first process and the second process based on the starting information and the circulation information of the first process node and the starting information and the circulation information of the second process node, so that the first process node is circulated to the second process node based on the communication relation.
Specifically, in the configuration version compatibility method provided in the embodiment of the present invention, the execution main body is a server, specifically, the execution main body may be a local server, or may also be a cloud server, and the local server may be a computer, a tablet computer, a smart phone, and the like, which is not specifically limited in the embodiment of the present invention.
Step S1 is performed first. The target service refers to a service that can be implemented in the configuration system, and taking the configuration system as a house property transaction system as an example, the target service may be a house property transaction service, such as a new house transaction service or a second house transaction service, or a service related to a certain link in the house property transaction service, such as a loan service. The loan transaction may include a public fund loan transaction, a commercial loan transaction, a hybrid loan transaction, and the like. The configuration version refers to a configuration version for the target service.
The first flow refers to the combination of the first type of flow nodes which are sequentially executed by the target service before the configuration version is upgraded according to the sequence, and the second flow refers to the combination of the second type of flow nodes which are sequentially executed by the target service after the configuration version is upgraded according to the sequence. For example, the first process is: A-B-C-D; the second process is as follows: A-B-E-D. That is, the first type flow node and the second type flow node may be the same, for example, A, B, D, or may be different, for example, the first type flow node C and the second type flow node E.
Then, step S2 is executed. The first type of configuration information of the target service before the configuration version is upgraded can be obtained in the configuration system. The first type configuration information may include first type process nodes included in the first process and a sequence of execution of each first type process node. According to the first type configuration information, the starting information and the circulation information of the first type process nodes in the first process can be determined. The first process includes a plurality of first-class process nodes, each first-class process node has start information and circulation information, the start information refers to start conditions of the first-class process nodes, the start conditions can be set as required, or the execution of a previous first-class process node is completed, and at this time, the previous first-class process node can be defined as a start node. The flow information refers to a flow condition of the corresponding first-class process node, and the flow condition may be set as needed, or may be a later first-class process node that enters after the execution of the first-class process node is finished, where the later first-class process node may be defined as a flow node. For example, the start information of the first type flow node B may be that the execution of the first type flow node a is finished, and at this time, the first type flow node a is a start node of the first type flow node B. The flow information of the first type flow node B may be that the first type flow node B enters the first type flow node C after the execution of the first type flow node B is finished, and at this time, the first type flow node C is a flow node of the first type flow node B.
Then, step S3 is executed. And the second type of configuration information of the target service after the configuration version is upgraded can also be obtained in the configuration system. The second type of configuration information may include second type of process nodes included in the second process and a sequence of execution of each second type of process node. And determining the starting information and the circulation information of the second type process nodes in the second process according to the second type configuration information. The second process includes a plurality of second-type process nodes, each second-type process node has start information and flow information, the start information refers to start conditions of the second-type process nodes, the start conditions can be set as required, or the execution of a previous second-type process node is completed, and at this time, the previous second-type process node can be defined as a start node. The flow information refers to a flow condition of the second type of process node, and the flow condition may be set as needed, or may be a subsequent second type of process node that enters after the execution of the second type of process node is finished, where the subsequent second type of process node may be defined as a flow node. For example, the start information of the second type process node B may be the end of the execution of the second type process node a, where the second type process node a is the start node of the second type process node B. The flow information of the second type flow node B may be the flow information entering the second type flow node E after the execution of the second type flow node B is finished.
Finally, step S4 is performed. The communication relationship between the first process and the second process means that any first type of process node in the first process can enter the second process to continue execution after the execution is finished. The communication relationship may be specifically established according to the start information and the flow information of the first-class process node and the start information and the flow information of the second-class process node. If the flow node of a certain first-class flow node exists in the second flow, it indicates that the first-class flow node can directly enter the second flow after the execution of the first-class flow node is finished, and the flow node in the second flow is continuously executed. For example, the first type flow node a may directly enter the second flow after the execution is finished to continue executing the flow node B. If the flow node of a certain first-class flow node does not exist in the second flow, it indicates that the first-class flow node cannot directly enter the second flow after the execution is finished, and at this time, the flow information of the first-class flow node may be updated in combination with the start information and the flow information of the first-class flow node and the start information and the flow information of the second-class flow node associated with the second flow, so that the first-class flow node may directly enter the second flow after the execution is finished, and the flow node in the second flow is continuously executed.
After the communication relationship between the first process and the second process is established, for the target service which is started to be executed according to the first process before the configuration version is upgraded, no matter which first type of process node the target service is executed to, the target service can be smoothly continuously executed according to the second process after the configuration version is upgraded so as to ensure that the service is smoothly executed to be normally finished.
The configuration version compatibility method provided by the embodiment of the invention comprises the steps of firstly determining a first process of a target service before the upgrade of the configuration version and a second process of the target service after the upgrade of the configuration version; then, based on the first type configuration information of the target service before the configuration version is upgraded, determining the starting information and the circulation information of the first type process node in the first process; determining starting information and circulation information of a second type process node in the second process based on second type configuration information of the target service after the configuration version is upgraded; and finally, establishing a communication relation between the first process and the second process based on the starting information and the circulation information of the first type of process nodes and the starting information and the circulation information of the second type of process nodes. By introducing the starting information and the circulation information of the process nodes, the communication relation between the first process and the second process can be established, and finally the compatibility of the configuration version before and after upgrading is realized. For the target service which is started to be executed according to the first flow before the configuration version is upgraded, the target service can be smoothly executed according to the second flow, so that the service is ensured to be smoothly executed until the service is normally finished, and the user experience is improved.
On the basis of the foregoing embodiment, in the configuration version compatibility method provided in the embodiment of the present invention, the start information of the first type flow node is used to indicate the start node of the first type flow node, and the flow information of the first type flow node is used to indicate the flow node of the first type flow node;
the starting information of the second type process node is used for indicating the starting node of the second type process node, and the circulation information of the second type process node is used for indicating the circulation node of the second type process node.
Specifically, the start information of the first-class process node in the embodiment of the present invention may be used to indicate the start node of the first-class process node, that is, the start node of the first-class process node may be determined by the start information of the first-class process node, and the start node is a previous first-class process node of the first-class process node. The flow information of the first type of process node may be used to indicate the flow node of the first type of process node, that is, the flow node of the first type of process node may be determined according to the flow information of the first type of process node, and the flow node is a subsequent first type of process node of the first type of process node.
Similarly, the start information of the second type of process node may be used to indicate the start node of the second type of process node, that is, the start node of the second type of process node may be determined by the start information of the second type of process node, and the start node is a previous second type of process node of the second type of process node. The flow information of the second type of process node may be used to indicate the flow node of the second type of process node, that is, the flow node of the second type of process node may be determined according to the flow information of the second type of process node, and the flow node is a subsequent second type of process node of the second type of process node.
In the embodiment of the invention, the starting information indicates the starting node of the process node, and the flow information indicates the flow node of the process node, so that convenience is provided for the compatible method of the configuration version, and the efficiency of the compatible method of the configuration version is improved.
On the basis of the foregoing embodiment, the configuration version compatibility method provided in the embodiment of the present invention is configured to establish a connectivity between the first flow and the second flow based on the start information and the flow information of the first type of flow node and the start information and the flow information of the second type of flow node, and specifically includes:
determining a target first-class process node in the first process, wherein a second-class process node which is the same as the target first-class process node does not exist in the second process;
determining a target second type process node in the second process, wherein the starting node of the target second type process node is the same as the starting node of the target first type process node;
and updating the circulation node of the target first-class process node into the target second-class process node.
Specifically, in the embodiment of the present invention, when establishing a connection relationship between a first process and a second process, a target first-type process node in the first process is first determined, where the target first-type process node refers to a process node existing in the first process but not existing in the second process, that is, a second-type process node identical to the target first-type process node does not exist in the second process. For example, for the first-type flow node C, there is no second-type flow node in the second flow that is the same as the first-type flow node C, so the first-type flow node C may be used as the target first-type flow node.
After the target first-class process node in the first process is determined, a target second-class process node in a second process needs to be determined, wherein the target second-class process node refers to a second-class process node of which the starting node is the same as the starting node of the target first-class process node. For example, the initiator node of the target first-type process node C is a first-type process node B, the same as the first-type process node B is a second-type process node B, and the second-type process node B is an initiator node of the second-type process node E, so that the second-type process node E can be used as the target second-type process node.
And finally, updating all the flow nodes of the target first-class process nodes to corresponding target second-class process nodes, so that the communication relation between the first process and the second process can be established. For example, the flow node of the first-type flow node C, i.e., the first-type flow node D, is updated to the second-type flow node E, so that the target service can be smoothly transitioned to the second flow for continuous execution after the configuration version is upgraded in the process of being executed in the first flow.
According to the configuration version compatibility method provided by the embodiment of the invention, the communication between the first process and the second process is realized by determining the target first-class process node in the first process and the target second-class process node in the second process and updating the flow node of the target first-class process node through the target second-class process node, so that the first process can be transited to the second process to be continuously executed, the normal operation of a target service is ensured, and the user experience is improved.
On the basis of the above embodiment, in the configuration version compatibility method provided in the embodiment of the present invention, the second flow includes the second type flow node that is the same as the flow node of the target first type flow node.
Specifically, in the embodiment of the present invention, it may further be defined that a second type of flow node identical to a flow node of the target first type of flow node exists in the second flow, that is, for the target first type of flow node C, if the flow node is the first type of flow node D, the second type of flow node D also needs to exist in the second flow, so that it may be ensured that the first flow transitions to the second flow for continuous execution, the flow node may pass through the flow node of the target first type of flow node in the first flow, an expected result of a user is ensured to occur, and it is avoided that the user cannot obtain the expected result due to the upgrade of the configuration version.
On the basis of the above embodiment, the configuration version compatibility method provided in the embodiment of the present invention further includes, before the configuration version is upgraded:
constructing initial test data based on the service information of the target service;
taking the initial test data as the entry test data of the first process, and executing the first process to obtain a first type test result corresponding to the first type process node;
and constructing a full test set based on the test data corresponding to the first type of process nodes and the first type of test results.
Specifically, in the embodiment of the present invention, before the configuration version is upgraded, initial test data may be constructed according to the service information of the target service. For example, the target service is a property transaction service, and the service information of the target service may include house buying information, house selling information, total house buying amount information, house source number information, and the like. The service information of the target service can be determined through the transaction order of the target service, the specific content of the service information can be artificially constructed after the determination, and then the current initial test data is stored.
And then, taking the initial test data a0 as the entry test data of the first process, and executing the first process to obtain a first type test result r0 corresponding to the first type process node. Wherein. The initial test data is used as the input of the first type process node, and the first type test result is the output of the first type process node. At this point a0 and r0 are added to the test expected results set S, i.e., S [ { a0, r0} ].
Then, let a1 be r0, and use a1 as the input of the second first-class flow node, execute the first flow, and obtain a second first-class test result r1 corresponding to the second first-class flow node, i.e. the output of the second first-class flow node. At this time, a1 and r1 were added to S, i.e., S [ { a0, r0}, { a1, r1} ].
And repeating the above processes until the first process is finished, and obtaining a last first type test result rn corresponding to a last first type process node in the first process (n is the total number of the first type process nodes in the first process). In this case, S [ { a0, r0}, { a1, r1}, …, { an, rn } ]. At this time, S is the full test set.
According to the configuration version compatibility method provided by the embodiment of the invention, the initial test data can be constructed through the service information of the target service before the configuration version is upgraded, the first process is executed by utilizing the initial test data, and the full test set is constructed based on the test data and the first type of test result, so that the test set is provided for the subsequent test on the compatibility of the configuration version before and after the upgrade, and the smooth performance of the compatibility test is ensured.
On the basis of the foregoing embodiment, the method for compatible configuration versions provided in the embodiments of the present invention further includes, after the configuration version is upgraded, or after the connection relationship between the first process and the second process is established based on the start information and the flow information of the first type of process node and the start information and the flow information of the second type of process node, the method further includes:
and testing the compatibility of the configuration version before and after upgrading based on the full test set.
Specifically, after the full test set is constructed, the compatibility before the configuration version is upgraded and after the configuration version is upgraded may be tested through the constructed full test set, and the test timing may be immediately after the configuration version is upgraded or may be tested after the communication relationship between the first process and the second process is established.
In the embodiment of the invention, after the configuration version is upgraded, the compatibility automatic test before and after the configuration version is upgraded is carried out by adopting the full test set constructed before the configuration version is upgraded, and the full test set is easy to obtain, so that the flow of the compatibility automatic test can be simplified, and the test difficulty is reduced.
On the basis of the foregoing embodiment, the method for compatibility of a configuration version provided in the embodiment of the present invention, which tests compatibility of the configuration version before and after upgrading based on the full test set, specifically includes:
executing the second process based on the test data corresponding to any first type of process node in the full test set;
if the second process is abnormally ended, adding the test data corresponding to any first type of process node into an abnormally ended set;
and if the abnormal ending set is not empty after the test data in the full test set is used for executing the second process, determining that the configuration version is incompatible before and after upgrading.
Specifically, in the embodiment of the present invention, when the compatibility before and after the upgrade of the configuration version is tested by the full test set, the second process is executed according to the test data corresponding to any one of the first type of process nodes in the full test set. The test data corresponding to any first type of process node refers to the input of the corresponding second type of process node when the second process is executed.
In the process of executing the second process, if the second process is abnormally ended, adding the test data corresponding to any first type of process node into an abnormally ended set. The abnormal ending set is used for storing test data which enable the second process to be abnormally ended in the test data corresponding to the first type of process nodes.
If the abnormal ending set is not empty after all the test data in the full test set are used for executing the second process, the test data which enable the second process to be abnormally ended exist in the full test set, and therefore it can be determined that the configuration versions are incompatible before and after upgrading.
In the embodiment of the invention, a specific process of performing compatibility test through a full test set is provided, and incompatible conditions before and after upgrading of the configuration version are provided, so that the feasibility of the compatibility test is ensured.
On the basis of the foregoing embodiment, the configuration version compatibility method provided in the embodiment of the present invention executes the second process based on the test data corresponding to any of the first type of process nodes in the full test set, and then further includes:
determining a second type test result corresponding to a second type process node which is positioned at the same node position as any one first type process node in the second process;
and if the first type test result corresponding to any first type process node is inconsistent with the second type test result, adding the test data corresponding to any first type process node into a change data set.
Specifically, in the embodiment of the present invention, after the second process is executed, for any first-type process node, a second-type test result corresponding to a second-type process node in the second process, which is located at the same node position as the any first-type process node, may be determined. For example, for a first-type flow node in the first flow, a second-type flow node in the second flow, which is located at the same node position as the first-type flow node, is a first second-type flow node, at this time, a second-type test result corresponding to the first second-type flow node in the second flow may be determined, and may be denoted as n0, and then, a first test result r0 corresponding to the first-type flow node is compared with n 0.
If r0 agrees with n0, indicating a0 is not affected by the configuration version upgrade, a0 may be added to the unchanged dataset unchanged.
If r0 does not match n0, indicating that a0 is affected by a configuration version upgrade, a0 may be added to the change dataset changed. The test data in the changed data set changed may be used to locate the location of the occurrence of the exception at the end of the flow execution exception.
In the embodiment of the invention, after the second process is executed through the test data corresponding to any first type of process node in the full test set, the change data set is constructed by comparing whether the first type of test result corresponding to any first type of process node is consistent with the second type of test result or not so as to be used for positioning the position where the abnormality occurs, thereby being convenient for quickly finding the reason of the abnormality.
On the basis of the foregoing embodiment, the method for compatible configuration versions provided in the embodiments of the present invention, where determining that the configuration versions are incompatible before and after upgrading, further includes:
adjusting the second process based on the test data in the change dataset.
Specifically, in the embodiment of the present invention, after all the test data in the full test set is used to execute the second process, and when the abnormal ending set is not empty, that is, when it is determined that the configuration version is incompatible before and after the upgrade, the position of the occurrence of the abnormality is determined by changing the test data in the data set changed, and the second process is readjusted, so that the first process and the second process can be communicated, and the configuration version is compatible before and after the upgrade.
In the embodiment of the invention, the second process is adjusted through the constructed change data set, so that the first process can be communicated with the second process, and compatibility before and after upgrading of the configuration version is ensured.
As shown in fig. 4, on the basis of the above embodiment, an embodiment of the present invention provides a configuration version compatible device, including: a flow determination module 41, a first information determination module 42, a second information determination module 43, and a connectivity module 44. Wherein the content of the first and second substances,
the process determining module 41 is configured to determine a first process of a target service before the upgrade of the configuration version and a second process of the target service after the upgrade of the configuration version;
the first information determining module 42 is configured to determine, based on the first type of configuration information of the target service before the upgrade of the configuration version, start information and flow information of a first type of process node in the first process;
the second information determining module 43 is configured to determine, based on the second type of configuration information of the target service after the configuration version is upgraded, start information and flow information of a second type of process node in the second process;
the communication module 44 is configured to establish a communication relationship between the first process and the second process based on the start information and the flow information of the first type process node and the start information and the flow information of the second type process node, so that the first type process node flows to the second type process node based on the communication relationship.
On the basis of the foregoing embodiment, in the configuration version compatible device provided in the embodiment of the present invention, the start information of the first type flow node is used to indicate the start node of the first type flow node, and the flow information of the first type flow node is used to indicate the flow node of the first type flow node;
the starting information of the second type process node is used for indicating the starting node of the second type process node, and the circulation information of the second type process node is used for indicating the circulation node of the second type process node.
On the basis of the foregoing embodiment, in the configuration version compatible device provided in the embodiment of the present invention, the connectivity module is specifically configured to:
determining a target first-class process node in the first process, wherein a second-class process node which is the same as the target first-class process node does not exist in the second process;
determining a target second type process node in the second process, wherein the starting node of the target second type process node is the same as the starting node of the target first type process node;
and updating the circulation node of the target first-class process node into the target second-class process node.
On the basis of the above embodiment, the configuration version compatible device provided in the embodiment of the present invention further includes a full test set structure, configured to:
before the configuration version is upgraded, establishing initial test data based on the service information of the target service;
taking the initial test data as the entry test data of the first process, and executing the first process to obtain a first type test result corresponding to the first type process node;
and constructing a full test set based on the test data corresponding to the first type of process nodes and the first type of test results.
On the basis of the foregoing embodiment, the configuration version compatible device provided in the embodiment of the present invention further includes a test module, configured to:
after the configuration version is upgraded, or after the connection relationship between the first process and the second process is established based on the starting information and the circulation information of the first type of process nodes and the starting information and the circulation information of the second type of process nodes, the compatibility of the configuration version before and after the configuration version is upgraded is tested based on the full test set.
On the basis of the foregoing embodiment, in the configuration version compatible device provided in the embodiment of the present invention, the test module is specifically configured to:
executing the second process based on the test data corresponding to any first type of process node in the full test set;
if the second process is abnormally ended, adding the test data corresponding to any first type of process node into an abnormally ended set;
and if the abnormal ending set is not empty after the test data in the full test set is used for executing the second process, determining that the configuration version is incompatible before and after upgrading.
On the basis of the foregoing embodiment, the configuration version compatible device provided in the embodiment of the present invention further includes a change data set constructing module, configured to:
determining a second type test result corresponding to a second type process node which is positioned at the same node position as any one first type process node in the second process;
and if the first type test result corresponding to any first type process node is inconsistent with the second type test result, adding the test data corresponding to any first type process node into a change data set.
On the basis of the foregoing embodiment, the configuration version compatible device provided in the embodiment of the present invention further includes an adjusting module, configured to:
adjusting the second process based on the test data in the change dataset.
Specifically, the functions of the modules in the configuration version compatible device provided in the embodiment of the present invention correspond to the operation flows of the steps in the method embodiments one to one, and the implementation effects are also consistent.
Fig. 5 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 5: a processor (processor)510, a communication Interface (Communications Interface)520, a memory (memory)530 and a communication bus 540, wherein the processor 510, the communication Interface 520 and the memory 530 communicate with each other via the communication bus 540. Processor 510 may call logic instructions in memory 530 to perform the configuration version compatibility method provided in the various embodiments described above, the method comprising: determining a first process of a target service before the upgrade of the configuration version and a second process of the target service after the upgrade of the configuration version; determining starting information and circulation information of a first type process node in the first process based on first type configuration information of the target service before the configuration version is upgraded; determining starting information and circulation information of a second type process node in the second process based on second type configuration information of the target service after the configuration version is upgraded; and establishing a communication relation between the first process and the second process based on the starting information and the circulation information of the first process node and the starting information and the circulation information of the second process node, so that the first process node is circulated to the second process node based on the communication relation.
Furthermore, the logic instructions in the memory 530 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the configuration version compatibility method provided in the above embodiments, the method comprising: determining a first process of a target service before the upgrade of the configuration version and a second process of the target service after the upgrade of the configuration version; determining starting information and circulation information of a first type process node in the first process based on first type configuration information of the target service before the configuration version is upgraded; determining starting information and circulation information of a second type process node in the second process based on second type configuration information of the target service after the configuration version is upgraded; and establishing a communication relation between the first process and the second process based on the starting information and the circulation information of the first process node and the starting information and the circulation information of the second process node, so that the first process node is circulated to the second process node based on the communication relation.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor is implemented to perform the configuration version compatibility method provided in the above embodiments, the method comprising: determining a first process of a target service before the upgrade of the configuration version and a second process of the target service after the upgrade of the configuration version; determining starting information and circulation information of a first type process node in the first process based on first type configuration information of the target service before the configuration version is upgraded; determining starting information and circulation information of a second type process node in the second process based on second type configuration information of the target service after the configuration version is upgraded; and establishing a communication relation between the first process and the second process based on the starting information and the circulation information of the first process node and the starting information and the circulation information of the second process node, so that the first process node is circulated to the second process node based on the communication relation.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A configuration version compatibility method, comprising:
determining a first process of a target service before the upgrade of the configuration version and a second process of the target service after the upgrade of the configuration version;
determining starting information and circulation information of a first type process node in the first process based on first type configuration information of the target service before the configuration version is upgraded;
determining starting information and circulation information of a second type process node in the second process based on second type configuration information of the target service after the configuration version is upgraded;
and establishing a communication relation between the first process and the second process based on the starting information and the circulation information of the first process node and the starting information and the circulation information of the second process node, so that the first process node is circulated to the second process node based on the communication relation.
2. The configuration version compatibility method according to claim 1, wherein the start information of the first type process node is used to indicate the start node of the first type process node, and the flow information of the first type process node is used to indicate the flow node of the first type process node;
the starting information of the second type process node is used for indicating the starting node of the second type process node, and the circulation information of the second type process node is used for indicating the circulation node of the second type process node.
3. The method for compatible configuration versions according to claim 2, wherein the establishing of the connectivity between the first process and the second process based on the start information and the flow information of the first type of process node and the start information and the flow information of the second type of process node specifically includes:
determining a target first-class process node in the first process, wherein a second-class process node which is the same as the target first-class process node does not exist in the second process;
determining a target second type process node in the second process, wherein the starting node of the target second type process node is the same as the starting node of the target first type process node;
and updating the circulation node of the target first-class process node into the target second-class process node.
4. The configuration version compatibility method according to claim 3, wherein a second type flow node identical to the flow node of the target first type flow node exists in the second flow.
5. The configuration version compatibility method according to any one of claims 1 to 4, wherein before the configuration version is upgraded, the method further comprises:
constructing initial test data based on the service information of the target service;
taking the initial test data as the entry test data of the first process, and executing the first process to obtain a first type test result corresponding to the first type process node;
and constructing a full test set based on the test data corresponding to the first type of process nodes and the first type of test results.
6. The method according to claim 5, wherein after the configuration version is upgraded, or after the establishing of the connection relationship between the first process and the second process based on the start information and the flow information of the first type of process node and the start information and the flow information of the second type of process node, the method further comprises:
executing the second process based on the test data corresponding to any first type of process node in the full test set;
if the second process is abnormally ended, adding the test data corresponding to any first type of process node into an abnormally ended set;
and if the abnormal ending set is not empty after the test data in the full test set is used for executing the second process, determining that the configuration version is incompatible before and after upgrading.
7. The method according to claim 6, wherein if the second process is executed based on the test data corresponding to any of the first type of process nodes in the full test set, then further comprising:
determining a second type test result corresponding to a second type process node which is positioned at the same node position as any one first type process node in the second process;
and if the first type test result corresponding to any first type process node is inconsistent with the second type test result, adding the test data corresponding to any first type process node into a change data set.
8. The method of claim 7, wherein the determining that the configuration version is incompatible before and after the upgrade, further comprises:
adjusting the second process based on the test data in the change dataset.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the steps of the configuration version compatibility method of any one of claims 1 to 8.
10. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the steps of the configuration version compatibility method according to any one of claims 1 to 8.
CN202111011508.8A 2021-08-31 2021-08-31 Configuration version upgrading method and device Pending CN113835727A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111011508.8A CN113835727A (en) 2021-08-31 2021-08-31 Configuration version upgrading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111011508.8A CN113835727A (en) 2021-08-31 2021-08-31 Configuration version upgrading method and device

Publications (1)

Publication Number Publication Date
CN113835727A true CN113835727A (en) 2021-12-24

Family

ID=78961807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111011508.8A Pending CN113835727A (en) 2021-08-31 2021-08-31 Configuration version upgrading method and device

Country Status (1)

Country Link
CN (1) CN113835727A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045191A (en) * 2009-10-22 2011-05-04 华为技术有限公司 Method and equipment for testing compatibility after upgrading of system
CN107886295A (en) * 2017-10-23 2018-04-06 东软集团股份有限公司 Flow template changing process method, device, readable storage medium storing program for executing and electronic equipment
CN109214785A (en) * 2018-10-23 2019-01-15 北京奇艺世纪科技有限公司 Implementation method, server and the system of workflow
CN109656585A (en) * 2018-09-27 2019-04-19 深圳壹账通智能科技有限公司 Upgrade method, device, equipment and the storage medium of flow instance
CN110347593A (en) * 2019-06-26 2019-10-18 贝壳技术有限公司 Flow testing method and device
CN110489615A (en) * 2019-07-04 2019-11-22 贝壳技术有限公司 The operation flow configuration method and system pulled based on visualization
CN111090444A (en) * 2019-12-03 2020-05-01 航天信息股份有限公司 Version upgrading method and device, storage medium and electronic equipment
CN112732370A (en) * 2020-12-31 2021-04-30 中国工商银行股份有限公司 Business process adjusting method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045191A (en) * 2009-10-22 2011-05-04 华为技术有限公司 Method and equipment for testing compatibility after upgrading of system
CN107886295A (en) * 2017-10-23 2018-04-06 东软集团股份有限公司 Flow template changing process method, device, readable storage medium storing program for executing and electronic equipment
CN109656585A (en) * 2018-09-27 2019-04-19 深圳壹账通智能科技有限公司 Upgrade method, device, equipment and the storage medium of flow instance
CN109214785A (en) * 2018-10-23 2019-01-15 北京奇艺世纪科技有限公司 Implementation method, server and the system of workflow
CN110347593A (en) * 2019-06-26 2019-10-18 贝壳技术有限公司 Flow testing method and device
CN110489615A (en) * 2019-07-04 2019-11-22 贝壳技术有限公司 The operation flow configuration method and system pulled based on visualization
CN111090444A (en) * 2019-12-03 2020-05-01 航天信息股份有限公司 Version upgrading method and device, storage medium and electronic equipment
CN112732370A (en) * 2020-12-31 2021-04-30 中国工商银行股份有限公司 Business process adjusting method and device

Similar Documents

Publication Publication Date Title
CN108920135B (en) User-defined service generation method and device, computer equipment and storage medium
CN110377462B (en) Interface testing method and device and terminal equipment
CN110163572B (en) Chain code function processing method, device and equipment
CN109582559B (en) System verification method and device, electronic equipment and storage medium
CN110599341A (en) Transaction calling method and system
CN113791973B (en) Compatibility baseline detection method and system based on rural telecommunication system
CN111708545B (en) Service flow deployment method and device, electronic equipment and storage medium
CN112561690A (en) Method, system, equipment and storage medium for testing credit card staging service interface
CN113835727A (en) Configuration version upgrading method and device
CN107277108B (en) Method, device and system for processing messages at nodes of block chain
CN111158987A (en) Health check method and device of micro-service architecture
CN116383052A (en) Automatic testing method, device and equipment for batch processing task and storage medium
CN115543837A (en) Software testing method and device, electronic equipment and storage medium
CN113485930B (en) Business process verification method, device, computer system and readable storage medium
CN115080449A (en) Test method, device, equipment, medium and program product
CN116561018B (en) Service system counting method, device, terminal equipment and storage medium
CN114222004B (en) Service data distribution execution method, device, computer equipment and storage medium
CN115729946B (en) Method, device, equipment and storage medium for processing distributed transaction
US11513819B2 (en) Machine learning based impact analysis in a next-release quality assurance environment
CN117155977B (en) Block chain-based data transaction right distribution method and device
CN112464088B (en) Recommendation request response method and device and recommendation system development method
CN116542768A (en) Method for processing batch transaction, electronic device, storage medium and program product
CN111352845A (en) Test sequence scene generation method and device
CN117874745A (en) Gray scale verification method, device, electronic equipment and storage medium
CN117591106A (en) Calling method and device of native function component, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination