CN115809797A - Flow verification method and device, computer equipment and computer readable storage medium - Google Patents

Flow verification method and device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN115809797A
CN115809797A CN202211083752.XA CN202211083752A CN115809797A CN 115809797 A CN115809797 A CN 115809797A CN 202211083752 A CN202211083752 A CN 202211083752A CN 115809797 A CN115809797 A CN 115809797A
Authority
CN
China
Prior art keywords
flow
execution result
verification
data
execution
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
CN202211083752.XA
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.)
Ping An E Wallet Electronic Commerce Co Ltd
Original Assignee
Ping An E Wallet Electronic Commerce 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 Ping An E Wallet Electronic Commerce Co Ltd filed Critical Ping An E Wallet Electronic Commerce Co Ltd
Priority to CN202211083752.XA priority Critical patent/CN115809797A/en
Publication of CN115809797A publication Critical patent/CN115809797A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The application discloses a flow verification method, a flow verification device, computer equipment and a computer readable storage medium, relates to the technical field of internet and data analysis, and aims to enable a flow to have error finding capability through an asynchronous running-along comparison mechanism, prevent a second flow from formally taking effect once comparison fails, and fully verify the function and performance of the flow to be started by directly utilizing production line data verification. The method comprises the following steps: executing the target service by adopting a first flow, and determining a first execution result corresponding to the first flow, wherein the first flow is an original flow currently executed by a production line; executing the target service by adopting a second process based on an asynchronous mode to obtain a second execution result corresponding to the second process, wherein the second process is a new process about to be on-line by a production line; comparing the first execution result with the second execution result to generate a verification result; and when the verification result indicates that the first execution result is matched with the second execution result, the verification state of the second flow is turned over to be successful in verification.

Description

Flow verification method and device, computer equipment and computer readable storage medium
Technical Field
The present application relates to the field of internet and data analysis technologies, and in particular, to a process verification method, an apparatus, a computer device, and a computer-readable storage medium.
Background
With the continuous progress of the internet technology and the continuous development of the data analysis field, when the complex work demand is met, related workers display the work content of each stage in a visual process through programming, the process from thread collection to function commissioning is greatly shortened, the communication cost inside an enterprise is effectively reduced, and message distortion caused by layer-upon-layer transmission is avoided.
However, with the gradual development of enterprises, the contents of some business items are more and more complicated, and when a related worker directly applies an excessively complicated business process to a production line, situations such as process misoperation and misuse are easily generated, which further causes a great amount of loss.
Disclosure of Invention
In view of the above, the present application provides a flow verification method, a flow verification device, a computer device, and a computer readable storage medium, and mainly aims to solve the problem that when an excessively complex business flow directly acts on a production line, a flow misoperation, a misuse, and the like are easily generated, and a large amount of loss is further caused.
According to a first aspect of the present application, there is provided a flow verification method, including:
executing a target service by adopting a first flow, and determining a first execution result corresponding to the first flow, wherein the first flow is an original flow currently executed by a production line;
based on an asynchronous mode, executing the target service by adopting a second process to obtain a second execution result corresponding to the second process, wherein the second process is a new process about to be on-line by the production line;
comparing the first execution result with the second execution result to generate a verification result;
and when the verification result indicates that the first execution result is matched with the second execution result, the verification state of the second flow is turned into verification success.
According to a second aspect of the present application, there is provided a flow verification apparatus, including:
the system comprises a determining module, a processing module and a processing module, wherein the determining module is used for executing a target service by adopting a first flow and determining a first execution result corresponding to the first flow, and the first flow is an original flow currently executed by a production line;
the acquisition module is used for executing the target service by adopting a second process based on an asynchronous mode to obtain a second execution result corresponding to the second process, wherein the second process is a new process about to be on-line of the production line;
the comparison module is used for comparing the first execution result with the second execution result to generate a verification result;
and the verification module is used for turning the verification state of the second flow into successful verification when the verification result indicates that the first execution result is matched with the second execution result.
According to a third aspect of the present application, there is provided a computer device comprising a memory storing a computer program and a processor implementing the steps of the method of any one of the first aspect when the computer program is executed by the processor.
According to a fourth aspect of the present application, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of any of the first aspects described above.
By means of the above technical solution, according to the flow verification method, the flow verification device, the computer device and the readable storage medium provided by the present application, a first execution result corresponding to a first flow is determined by first adopting the first flow, that is, an original flow to execute a target service. And then, based on an asynchronous mode, executing the target service by adopting a second process, namely the modified new process to be on-line, and obtaining a second execution result corresponding to the second process. And comparing the first execution result with the second execution result to generate a verification result. And when the verification result indicates that the first execution result is matched with the second execution result, the verification state of the second flow is turned over to be successful in verification. In addition, compared with a test environment in which various test case verification processes are compiled by testers, the test data of the production line is directly utilized for verification, more comprehensive samples and better discrete data samples are provided, and the functions and the performances of the processes to be started can be fully verified.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 shows a schematic flow chart of a flow verification method provided in an embodiment of the present application;
fig. 2A is a schematic flowchart illustrating a flow verification method provided in an embodiment of the present application;
fig. 2B shows a schematic flowchart of a flow verification method provided in the embodiment of the present application;
fig. 3A is a schematic structural diagram illustrating a flow verification apparatus according to an embodiment of the present application;
fig. 3B is a schematic structural diagram of a flow verification apparatus provided in an embodiment of the present application;
fig. 3C is a schematic structural diagram of a flow verification apparatus provided in an embodiment of the present application;
fig. 3D shows a schematic structural diagram of a flow verification apparatus according to an embodiment of the present application;
fig. 4 shows a schematic device structure diagram of a computer apparatus according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
An embodiment of the present application provides a flow verification method, as shown in fig. 1, the method includes:
101. and executing the target service by adopting the first flow, and determining a first execution result corresponding to the first flow, wherein the first flow is an original flow currently executed by the production line.
In the actual application process, with the continuous improvement of the business project, unnecessary process nodes may exist in the original designed business process, or some links may need to be added. At this time, the original service flow is no longer suitable for the existing service content, and the original service flow needs to be updated and upgraded. Specifically, related workers upgrade on the basis of the original business process and write and generate a new business process to be online. It should be noted that before the new business process takes effect formally, a series of process verifications are required, and the new business process can be on-line after verification is not wrong. The state machine is arranged and controls state torsion of a process. Before the running-accompanying comparison of a production line, the verification and the overturning of a user acceptance environment and a gray level environment are required, and the full verification is ensured before the new process takes effect formally through the control of a state machine. The method is suitable for a production line environment accompany comparison verification link, when the method is executed, 100% of flow of the system can use the version before modification to act on the target service, namely the target service is executed by adopting the first flow, and after the first flow is executed, the first execution result corresponding to the first flow is obtained.
Before the new flow takes effect formally and is on-line, even in the flow verification link, the service project does not execute the new flow, but continues to execute the original flow, namely the first flow, so that the target service is ensured to operate stably before the new flow version is on-line. Further, the first execution result generated after the operation can be regarded as the result which should be generated when the target service is stably operated. Therefore, in the subsequent comparison process, whether the new process, namely the second process can stably run or not is judged based on the first execution result, and the formal online condition is met.
102. And executing the target service by adopting a second process based on an asynchronous mode to obtain a second execution result corresponding to the second process, wherein the second process is a new process about to be on-line by the production line.
Similarly, in order to ensure stable operation of the target service in the verification process of the second process, the step uses an asynchronous execution mode to apply the second process to the target service. The second process can be verified, and meanwhile, the actual operation result of the target service is not influenced. Further, after the second process is finished, a second execution result corresponding to the second process is obtained. And the second execution result represents the running state of the second flow, and whether the second flow can stably run on the target service or not is judged according to the second execution result, so that the flow verification of the second flow is realized.
103. And comparing the first execution result with the second execution result to generate a verification result.
In the embodiment of the application, the first execution result represents a result generated when the target service stably operates, the second execution result represents an operation state of the second process, the first execution result and the second execution result are compared, and whether the target service can stably operate when the second process is executed is determined by judging whether the first execution result and the second execution result are matched.
During actual operation. The relevant staff member may define the matching rule corresponding to the first process and the second process in advance. Further, the system compares the content in the first execution result and the second execution result according to a preset matching rule, actually, the execution result may include a plurality of information categories, and the application does not specifically limit the type and the content of the result stored in the execution result. And if the contents in the two execution results are matched successfully, generating a verification result for indicating that the matching is successful. Otherwise, if at least one information category exists in the contents of the two execution results and the matching is failed, generating a verification result for indicating the matching failure.
104. And when the verification result indicates that the first execution result is matched with the second execution result, the verification state of the second flow is turned over to be successful in verification.
Further, when the verification result indicates that the first execution result is matched with the second execution result, it indicates that the target service is stably operated when the second process is executed, and no error occurs, and the production line running-along comparison of the second process and the verification state of the verification can be turned over to be successful through the state machine. That is, the second process has the condition of coming into effect and can execute the subsequent steps of coming into effect. In the actual operation process, the state of the process is controlled to be twisted by the state machine, before the running accompanying comparison of a production line, if the verification fails in the verification of the acceptance environment and the gray level environment of a user, an alarm is immediately sent to a worker, so that the related worker can modify the second process, the verification link is restarted, and the new process is fully verified before being formally effective under the control of the state machine.
The method provided by the embodiment of the application firstly adopts the first process, namely the original process to execute the target service, and determines the first execution result corresponding to the first process. And then, based on an asynchronous mode, executing the target service by adopting a second flow, namely the modified new flow to be on-line, and obtaining a second execution result corresponding to the second flow. And comparing the first execution result with the second execution result to generate a verification result. And when the verification result indicates that the first execution result is matched with the second execution result, the verification state of the second flow is turned over to be successful in verification. In addition, compared with a test environment in which various test case verification processes are compiled by testers, the test data of the production line is directly utilized for verification, more comprehensive samples and better discrete data samples are provided, and the functions and the performances of the processes to be started can be fully verified.
An embodiment of the present application provides a flow verification method, as shown in fig. 2A, the method includes:
201. and determining the target service in all the service data.
With the continuous progress of the internet technology and the continuous development of the data analysis field, when the complex work demand is met, related workers display the work content of each stage in a visual process through programming, the process from thread collection to function commissioning is greatly shortened, the communication cost inside an enterprise is effectively reduced, and message distortion caused by layer-upon-layer transmission is avoided. However, with the gradual development of enterprises, the contents of some business projects are more and more complicated, and when related workers directly act on a production line with an excessively complicated business process, situations such as process misoperation and misuse are easily caused, and a large amount of loss is further caused.
Therefore, the present application provides a process verification method, an apparatus, a computer device, and a readable storage medium, where a first process, that is, an original process, is first used to execute a target service, and a first execution result corresponding to the first process is determined. And then, based on an asynchronous mode, executing the target service by adopting a second process, namely the modified new process to be on-line, and obtaining a second execution result corresponding to the second process. And comparing the first execution result with the second execution result to generate a verification result. And when the verification result indicates that the first execution result is matched with the second execution result, the verification state of the second flow is turned over to be successful in verification. The method has the advantages that the process has error finding capability through an asynchronous accompanying and running comparison mechanism, once the comparison of a new second process to be started fails, the second process cannot be controlled by a state machine to formally take effect, in addition, compared with a test environment, various test case verification processes are compiled by testers, production line data verification is directly utilized, more comprehensive samples and better discrete data samples are provided, and the functions and the performances of the process to be started can be fully verified.
In the embodiment of the application, the system adopts a double-copy mechanism to carry out production line environment running-along comparison verification on a new online process. In order to reduce the operation burden of the system, the production line environment accompany comparison verification is not performed by adopting all production line services, but the target service is extracted from all production line services for verification in a sampling mode according to a certain sampling proportion.
Specifically, all the service data in the queried production line are numbered, and actually, the number may be a number, a letter, a combination of the number and the letter, and the like. Next, in all the service data, the system selects the service data corresponding to the target number as the target service, wherein the value of the target number is any value. For example, if the target number is A1, the target data with the number A1 is inquired from all the service data as the target service. In the actual operation process, related workers can preset the sampling proportion, and it needs to be explained that the sampling proportion can adopt a default proportion value of the system, and can also be adjusted by the related workers according to the actual operation condition, and the sampling proportion value is not specifically limited by the application. And the background system continuously extracts the target service from all the service data according to the sampling proportion until the quantity of the extracted target service meets the preset sampling proportion. Therefore, the number of target services in the present application may be one or more.
202. And executing the target service by adopting the first flow, and determining a first execution result corresponding to the first flow.
Further, for a target service, a service request is initiated when the target service is ready to begin operation. Next, the system may start executing the first process node of the first process on the target service in response to the service request, synchronously execute the target service according to the process logic (support condition judgment, branch selection, serial execution, parallel execution, and the like) indicated in the first process, and transfer the relevant data stream to each process node until the last process node finishes operating. It should be noted that, in the process of executing the flow, each operation step generates an operation record and stores the operation record in the flow context until the last node is executed, so as to form a final flow context and obtain a first execution result. In addition, each flow execution result is stored in the database, and corresponding identification, such as copy number information and the like, is additionally reserved. Therefore, when the following related personnel carry out operations such as flow result explanation and post audit, the corresponding execution result is read from the database through the identifier.
203. And executing the target service by adopting the second process based on an asynchronous mode to obtain a second execution result corresponding to the second process.
In the embodiment of the application, in order to facilitate verification of the second process, and without affecting actual operation of the target service, the step uses an asynchronous execution mode to apply the second process to the target service, so as to obtain a second execution result corresponding to the second process, and according to the second execution result, whether the second process is applied to the target service and can stably operate is determined, so that verification of a new process to be on-line, that is, the second process is realized.
Specifically, after the first process is executed, a process execution context corresponding to the first process is acquired, and the second process is executed based on the process execution context. In the actual operation process, operation records are continuously generated in the process of executing the process, and all the operation records form a process context. In order to avoid the negative influence of the second flow executed asynchronously, the application utilizes the operation records stored in the flow context, such as the obtained values, the queried information and the like. And when a data acquisition request is initiated in the second process, inquiring in the process context to acquire the required information. In the actual operation process, if some query operations are added to the second process compared to the first process, the relevant information does not exist in the process context, and at this time, the corresponding storage space needs to be accessed to obtain the data information. That is, if the second process initiates an information obtaining request, the information that can be obtained from the process context is obtained from the process context, and the information that cannot be obtained from the process context is obtained from the corresponding storage space.
In the actual operation process, according to the flow logic indicated by the second flow, the target service is asynchronously executed, a data acquisition instruction is initiated in response to the flow node in the second flow, the data acquisition instruction is identified, and the data identifier of the designated data is determined, wherein the designated data is the data requested to be acquired by the data acquisition instruction. And inquiring specified data in the process execution context according to the data identification. If the specified data is inquired in the process execution context, returning the specified data to the process node. If the specified data are not inquired in the process execution context, calling the database, inquiring the specified data in the database according to the data identification, and returning the specified data to the process node. And finally, acquiring a second execution result after the process execution is finished.
For example, a process needs to perform a heavy database query action, because an asynchronous comparison process exists, the query action is doubled, which doubles the burden on the database, thereby causing a negative effect. Therefore, by the method, negative effects caused by the second flow of asynchronous execution are avoided, meanwhile, based on the scheme, the problem that the multiple execution results of the database are inconsistent is solved, and comparison failure caused by inconsistent query results is avoided.
204. And when the verification result indicates that the first execution result is not matched with the second execution result, generating alarm information, and sending the alarm information to the display terminal for displaying.
In the embodiment of the application, when the verification result indicates that the first execution result is not matched with the second execution result, the warning information is generated, wherein the warning information can be displayed in a text form or a picture form, and the form of the warning information is not specifically limited. Furthermore, after the relevant staff sees the relevant alarm information at the display terminal, the relevant staff can trigger a flow modification instruction to modify the second flow.
205. And when the verification result indicates that the first execution result is matched with the second execution result, the verification state of the second flow is turned over to be successful in verification.
Further, when the verification result indicates that the first execution result matches the second execution result, the verification state of the second process is turned over to be successful through the state machine, and at this time, the second process has a formal on-line condition. In the actual operation process, the state of the process is controlled by the state machine to be twisted, before the production line running accompanying comparison, the state of the process must be verified and turned over by the user acceptance environment and the gray level environment, and the new process is fully verified before formal effect is ensured through the control of the state machine.
In addition, the historical version flow can be stored persistently and used for fast rollback (the current flow does not need to be modified and regenerated, and errors in busy work are prevented). Rollback supports two modes: one-key rollback and specified version rollback. Specifically, one-touch rollback is often used for emergency rollback, and when the latest flow effective operation result is found to be not in accordance with the expectation, the one-touch rollback button is clicked to initiate an emergency rollback instruction. When detecting that the designated service initiates an emergency rollback instruction, the system queries the designated flow version executed last time by the designated service, validates the designated flow version, and completes service recovery. And when detecting that the specified rollback instruction is initiated by the specified service, the system identifies the specified rollback instruction, determines the specified flow version, takes the specified flow version into effect and completes service recovery. Meanwhile, when a new flow needs to be added to the designated service, the designated service does not need to be built from the beginning, a similar version can be selected from the historical versions, and the edition is edited based on the similar version, so that the quick addition of the flow is realized, and the workload of system operation and maintenance is reduced.
In summary, as shown in fig. 2B, after each production line service initiates a service request, it needs to execute an original first process to form a process execution context, and the system stores the process execution context. Further, if the service data is sampled and hit as the target service, asynchronous comparison is required. In the asynchronous comparison process, if the second process generates a data acquisition request, the specified data of the request is inquired from the process execution context and returned, the specified data is not inquired, then the database is called to inquire the specified data and returned, negative effects are avoided, and the result comparison is performed after the operation is finished. And if the second process does not generate the data acquisition request, directly comparing the results after the operation is finished.
The method provided by the embodiment of the application firstly adopts the first process, namely the original process to execute the target service, and determines the first execution result corresponding to the first process. And then, based on an asynchronous mode, executing the target service by adopting a second process, namely the modified new process to be on-line, and obtaining a second execution result corresponding to the second process. And comparing the first execution result with the second execution result to generate a verification result. And when the verification result indicates that the first execution result is matched with the second execution result, the verification state of the second flow is turned over to be successful in verification. The method has the advantages that the process has error finding capability through an asynchronous accompanying and running comparison mechanism, once the comparison of a new second process to be started fails, the second process cannot be controlled by a state machine to formally take effect, in addition, compared with a test environment, various test case verification processes are compiled by testers, production line data verification is directly utilized, more comprehensive samples and better discrete data samples are provided, and the functions and the performances of the process to be started can be fully verified.
Further, as a specific implementation of the method shown in fig. 1, an embodiment of the present application provides a flow verification apparatus, as shown in fig. 3A, the apparatus includes: the device comprises a determining module 301, an obtaining module 302, a comparing module 303 and a verifying module 304.
The determining module 301 is configured to execute a target service by using a first process, and determine a first execution result corresponding to the first process, where the first process is an original process currently executed by a production line;
the obtaining module 302 is configured to execute the target service by using a second flow based on an asynchronous manner, to obtain a second execution result corresponding to the second flow, where the second flow is a new flow to be brought online by the production line;
the comparison module 303 is configured to compare the first execution result with the second execution result to generate a verification result;
the verification module 304 is configured to flip the verification status of the second flow to be verification successful when the verification result indicates that the first execution result matches the second execution result.
In a specific application scenario, as shown in fig. 3B, the apparatus further includes: an encoding module 305 and a selecting module 306.
The encoding module 305 is configured to number all queried service data;
the selecting module 306 is configured to select, from all the service data, service data corresponding to a target number as the target service, where a value of the target number is any value.
In a specific application scenario, the determining module 301 is configured to respond to the service request initiated by the target service, and execute the target service synchronously according to the flow logic indicated in the first flow; and after the last node of the first process is executed, generating a process execution context, storing the process execution context, and obtaining the first execution result.
In a specific application scenario, the obtaining module 302 is configured to obtain a process execution context corresponding to the first process after the first process is executed; and executing the second flow based on the flow execution context, and acquiring a second execution result after the second flow is executed.
In a specific application scenario, the obtaining module 302 is configured to asynchronously execute the target service according to the flow logic indicated by the second flow; responding to a process node in the second process to initiate a data acquisition instruction, identifying the data acquisition instruction, and determining a data identifier of specified data, wherein the specified data is data content requested to be acquired by the data acquisition instruction; inquiring the specified data in the process execution context according to the data identification; if the specified data is inquired in the process execution context, returning the specified data to the process node; if the specified data is not inquired in the process execution context, calling a database, inquiring the specified data in the database according to the data identification, and returning the specified data to the process node.
In a specific application scenario, as shown in fig. 3C, the apparatus further includes: a generation module 307 and a display module 308.
The generating module 307 is configured to generate alarm information when the verification result indicates that the first execution result does not match the second execution result, where the alarm information is used to indicate that the second process verification fails;
the displaying module 308 is configured to send the alarm information to a displaying terminal for displaying, so that the displaying terminal triggers a flow modification instruction to modify the second flow.
In a specific application scenario, as shown in fig. 3D, the apparatus further includes: a query module 309 and an identification module 310.
The query module 309, configured to, when detecting that an emergency fallback instruction is initiated by a specified service, query a specified flow version executed last time by the specified service, validate the specified flow version, and complete service recovery;
the identifying module 310 is configured to identify the specified rollback instruction, determine a specified flow version, validate the specified flow version, and complete service recovery when it is detected that the specified service initiates the specified rollback instruction.
The device provided by the embodiment of the application firstly adopts the first process, namely the original process to execute the target service, and determines the first execution result corresponding to the first process. And then, based on an asynchronous mode, executing the target service by adopting a second flow, namely the modified new flow to be on-line, and obtaining a second execution result corresponding to the second flow. And comparing the first execution result with the second execution result to generate a verification result. And when the verification result indicates that the first execution result is matched with the second execution result, the verification state of the second flow is turned over to be successful in verification. The method has the advantages that the process has error finding capability through an asynchronous accompanying and running comparison mechanism, once the comparison of a new second process to be started fails, the second process cannot be controlled by a state machine to formally take effect, in addition, compared with a test environment, various test case verification processes are compiled by testers, production line data verification is directly utilized, more comprehensive samples and better discrete data samples are provided, and the functions and the performances of the process to be started can be fully verified.
It should be noted that other corresponding descriptions of the functional units related to the flow verification apparatus provided in the embodiment of the present application may refer to the corresponding descriptions in fig. 1 and fig. 2A to fig. 2B, and are not repeated herein.
In an exemplary embodiment, referring to fig. 4, there is further provided a device including a communication bus, a processor, a memory, and a communication interface, and further including an input/output interface and a display device, wherein the functional units may communicate with each other through the bus. The memory stores computer programs, and the processor is used for executing the programs stored in the memory and executing the flow verification method in the embodiment.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the flow verification method.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present application can be implemented by hardware, and also by software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, or the like), and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, or the like) to execute the method described in the implementation scenarios of the present application.
Those skilled in the art will appreciate that the figures are merely schematic representations of one preferred implementation scenario and that the blocks or flow diagrams in the figures are not necessarily required to practice the present application.
Those skilled in the art can understand that the modules in the device in the implementation scenario may be distributed in the device in the implementation scenario according to the implementation scenario description, and may also be located in one or more devices different from the present implementation scenario with corresponding changes. The modules of the implementation scenario may be combined into one module, or may be further split into multiple sub-modules.
The above application serial numbers are for description purposes only and do not represent the superiority or inferiority of the implementation scenarios.
The above disclosure is only a few specific implementation scenarios of the present application, but the present application is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present application.

Claims (10)

1. A process verification method, comprising:
executing a target service by adopting a first flow, and determining a first execution result corresponding to the first flow, wherein the first flow is an original flow currently executed by a production line;
based on an asynchronous mode, executing the target service by adopting a second flow to obtain a second execution result corresponding to the second flow, wherein the second flow is a new flow about to be on-line by the production line;
comparing the first execution result with the second execution result to generate a verification result;
and when the verification result indicates that the first execution result is matched with the second execution result, the verification state of the second flow is turned into verification success.
2. The method according to claim 1, wherein before the target service is executed by using the first flow and the first execution result corresponding to the first flow is determined, the method further comprises:
numbering all inquired business data;
and selecting the service data corresponding to the target number as the target service in all the service data, wherein the value of the target number is any numerical value.
3. The method according to claim 1, wherein the executing the target service by using the first flow and determining the first execution result corresponding to the first flow comprises:
responding to the target service initiating service request, and synchronously executing the target service according to the flow logic indicated in the first flow;
and after the last node of the first process is executed, generating a process execution context, storing the process execution context, and obtaining the first execution result.
4. The method according to claim 1, wherein the executing the target service by using a second process based on the asynchronous manner to obtain a second execution result corresponding to the second process comprises:
after the first flow is executed, acquiring a flow execution context corresponding to the first flow;
and executing the second flow based on the flow execution context, and acquiring a second execution result after the second flow is executed.
5. The method of claim 4, wherein the executing the second process based on the process execution context comprises:
asynchronously executing the target service according to the flow logic indicated by the second flow;
responding to a process node in the second process to initiate a data acquisition instruction, identifying the data acquisition instruction, and determining a data identifier of specified data, wherein the specified data is data content requested to be acquired by the data acquisition instruction;
inquiring the specified data in the process execution context according to the data identification;
if the specified data is inquired in the process execution context, returning the specified data to the process node;
if the specified data is not inquired in the process execution context, calling a database, inquiring the specified data in the database according to the data identification, and returning the specified data to the process node.
6. The method of claim 1, wherein after comparing the first execution result to the second execution result to generate a validation result, the method further comprises:
when the verification result indicates that the first execution result is not matched with the second execution result, generating alarm information, wherein the alarm information is used for indicating that the second process verification fails;
and sending the alarm information to a display terminal for displaying so that the display terminal triggers a flow modification instruction to modify the second flow.
7. The method of claim 1, further comprising:
when detecting that a specified service initiates an emergency backspacing instruction, inquiring a specified flow version executed last time by the specified service, taking the specified flow version into effect, and completing service recovery;
when detecting that the designated service initiates a designated rollback instruction, identifying the designated rollback instruction, determining a designated flow version, enabling the designated flow version to take effect, and completing service recovery.
8. A process verification apparatus, comprising:
the system comprises a determining module, a processing module and a processing module, wherein the determining module is used for executing a target service by adopting a first flow and determining a first execution result corresponding to the first flow, and the first flow is an original flow currently executed by a production line;
the acquisition module is used for executing the target service by adopting a second process based on an asynchronous mode to obtain a second execution result corresponding to the second process, wherein the second process is a new process about to be on-line of the production line;
the comparison module is used for comparing the first execution result with the second execution result to generate a verification result;
and the verification module is used for turning the verification state of the second flow into successful verification when the verification result indicates that the first execution result is matched with the second execution result.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program performs the steps of the method according to any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202211083752.XA 2022-09-06 2022-09-06 Flow verification method and device, computer equipment and computer readable storage medium Pending CN115809797A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211083752.XA CN115809797A (en) 2022-09-06 2022-09-06 Flow verification method and device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211083752.XA CN115809797A (en) 2022-09-06 2022-09-06 Flow verification method and device, computer equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115809797A true CN115809797A (en) 2023-03-17

Family

ID=85482484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211083752.XA Pending CN115809797A (en) 2022-09-06 2022-09-06 Flow verification method and device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115809797A (en)

Similar Documents

Publication Publication Date Title
CN110928772A (en) Test method and device
CN110764998B (en) Data comparison method, device, equipment and storage medium based on Django framework
CN110088744A (en) A kind of database maintenance method and its system
CN113051155A (en) Control system and control method of automatic test platform
CN111339118A (en) Kubernetes-based resource change history recording method and device
CN111694612A (en) Configuration checking method, device, computer system and storage medium
CN110063042A (en) A kind of response method and its terminal of database failure
CN108596587B (en) Cash-up auditing method, apparatus, electronic device, program product and storage medium
CN101211310A (en) Performance test script generation method
CN110780904A (en) Application updating method and device
CN113672634A (en) Policy data verification method, device, equipment and storage medium
CN115809797A (en) Flow verification method and device, computer equipment and computer readable storage medium
WO2023051073A1 (en) Database test method, distributed database, and storage medium
CN111694724A (en) Testing method and device of distributed table system, electronic equipment and storage medium
CN112256365B (en) Method and terminal for automatically managing multi-language versions
CN110795142B (en) Configuration file generation method and device
CN113190531A (en) Database migration method, device, equipment and storage medium
CN111552648A (en) Automatic verification method and system for application
CN111722886A (en) Tool starting method and device, computer equipment and computer readable storage medium
JP5101447B2 (en) Test support system
CN113094251A (en) Embedded system testing method and device, computer equipment and storage medium
CN114064455A (en) Method and device for providing mock service and electronic equipment
CN113553197B (en) Data processing method, device and readable storage medium
CN117112051A (en) Component topology map generation method and device, computer equipment and storage medium
CN115185819A (en) System testing method, device, equipment and computer readable 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