A data processing method and related device

By performing image backup and status field settings on transaction service requests in the service provider system, the development difficulty and invasiveness of the transaction compensation scheme are resolved, achieving low-modification data consistency assurance and comprehensive data maintenance.

CN115373900BActive Publication Date: 2026-01-09BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211034643.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-26
Publication Date
2026-01-09
Estimated Expiration
2042-08-26

AI Technical Summary

Technical Problem

In existing technologies, the reverse compensation interface of transaction compensation schemes is difficult to develop and is not suitable for comprehensive data maintenance. Furthermore, distributed transaction processing coordinators are highly intrusive to applications and cannot meet the data processing requirements of banking transaction systems.

Method used

In the service provider system, the data information associated with the transaction service request is backed up, transaction status and data status fields are set, and the data information is restored to the previous state using the backup table when the transaction fails. Data consistency is ensured through transaction status and data key-value fields.

Benefits of technology

It achieves data consistency assurance with minimal changes to the service requesting system, is suitable for real-time data updates of service provider systems in multiple scenarios, is suitable for overlay data maintenance, and reduces system storage resource consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115373900B_ABST
    Figure CN115373900B_ABST
Patent Text Reader

Abstract

The data processing method and related equipment provided by the present disclosure can be used in the distributed field or the financial field, can be applied to a service providing end system, a stream state field and a material key value field are set in a transaction stream table of the service providing end system, a material state field is set in material information corresponding to the transaction stream table, the service providing end system performs image backup on the material information before responding to a transaction service request modification material information sent by a service requesting end system, then the field values of the stream state field and the material state field are modified, and the key value of the modified material field in the material information is recorded in the material key value field, so that the material information can be recovered through backup when a transaction fails, and the data consistency of the service providing end system and the service requesting end system is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of data processing, and in particular, to a data processing method and related equipment. BACKGROUND

[0002] Under the background that distributed system architecture gradually becomes mainstream architecture, a synchronous processing method of transaction compensation is usually adopted to guarantee the consistency of distributed data.

[0003] Common schemes of transaction compensation include SAGA mode and TCC (Try-Confirm-Cancel) mode. The transaction compensation scheme needs to develop forward compensation interfaces and reverse compensation interfaces and establish a distributed transaction processing coordinator, so as to guarantee the data consistency of the request side and the service side. In the case of subsequent service call failure, the distributed transaction processing coordinator successively calls the reverse compensation interfaces of the leading services, and successively backflushes the data to the initial state.

[0004] However, the development of the reverse compensation interface is difficult, and it is difficult to apply to comprehensive data maintenance, and the distributed transaction processing coordinator has strong invasiveness to the application program, and it is difficult to meet the data processing requirements of the transaction system of the banking industry. SUMMARY

[0005] In view of the above problems, the present disclosure provides a data processing method and related equipment which overcomes the above problems or at least partially solves the above problems, and the technical solution is as follows:

[0006] A data processing method applied to a service providing end system, the method comprising:

[0007] In response to a transaction service request sent by a service request end system, mirroring backup is performed on material information associated with the transaction service request to obtain a backup table;

[0008] The field value of a flow state field in a transaction flow table associated with the transaction service request is modified to a preset processing parameter;

[0009] The field value of a material state field in the material information is modified to a preset unconfirmed parameter;

[0010] A transaction service is provided to the service request end system, and a key value of a material field in the material information that is modified during the transaction service is obtained;

[0011] The key value is recorded in a material key value field in the transaction flow table;

[0012] in the case that the transaction success message sent by the service request end system is not obtained, scanning the transaction flow table with the field value of the flow state field being the preset processing in parameter in a time manner, determining whether the transaction flow corresponding to the transaction flow table is timed out, if yes, in the case that the field value of the data state field is the preset unconfirmed parameter, initiating flow query to the service request end system, and obtaining flow query result;

[0013] in the case that the flow query result is transaction failure, using the key value recorded in the data key value field, and using the backup table to roll back the data information to the state before the transaction service;

[0014] modifying the field value of the data state field to preset confirmation parameter.

[0015] Optionally, the method further comprises:

[0016] in the case that the transaction success message sent by the service request end system is obtained, modifying the field value of the flow state field in the transaction flow table to preset success parameter;

[0017] modifying the field value of the data state field in the data information corresponding to the transaction flow table to the preset confirmation parameter.

[0018] Optionally, after the field value of the data state field is modified to preset confirmation parameter, the method further comprises:

[0019] deleting the backup table.

[0020] A data processing device applied to a service providing end system, the device comprises a first obtaining unit, a first modifying unit, a second modifying unit, a second obtaining unit, a key value recording unit, a first determining unit, a third obtaining unit, a data rollback unit and a third modifying unit,

[0021] the first obtaining unit is used for, in response to transaction service request sent by service request end system, mirroring backup of data information associated with the transaction service request, and obtaining backup table;

[0022] the first modifying unit is used for modifying the field value of the flow state field in the transaction flow table associated with the transaction service request to preset processing in parameter;

[0023] the second modifying unit is used for modifying the field value of the data state field in the data information to preset unconfirmed parameter;

[0024] The second obtaining unit is configured to provide a transaction service for the service request end system, and obtain a key value of a data field modified in the data information during the transaction service;

[0025] The key value recording unit is configured to record the key value into a data key value field in the transaction log table;

[0026] The first determining unit is configured to, in a case where the transaction success message sent by the service request end system is not obtained, periodically scan the transaction log table whose field value of the log state field is the preset processing parameter, determine whether a transaction log corresponding to the transaction log table is timed out, and if so, trigger the third obtaining unit;

[0027] The third obtaining unit is configured to, in a case where the field value of the data state field is the preset unconfirmed parameter, initiate a log query to the service request end system, and obtain a log query result;

[0028] The data rollback unit is configured to, in a case where the log query result is a transaction failure, use the key value recorded in the data key value field to use the backup table to roll back the data information to a state before the transaction service;

[0029] The third modifying unit is configured to modify the field value of the data state field to a preset confirmed parameter.

[0030] Optionally, the apparatus further comprises a fourth modifying unit and a fifth modifying unit,

[0031] The fourth modifying unit is configured to, in a case where the transaction success message sent by the service request end system is obtained, modify the field value of the log state field in the transaction log table to a preset success parameter;

[0032] The fifth modifying unit is configured to modify the field value of the data state field in the data information corresponding to the transaction log table to the preset confirmed parameter.

[0033] Optionally, the apparatus further comprises a deleting unit,

[0034] The deleting unit is configured to, after the third modifying unit modifies the field value of the data state field to a preset confirmed parameter, delete the backup table.

[0035] A computer readable storage medium having a program stored thereon, wherein the program is executed by a processor to implement the data processing method.

[0036] An electronic device includes at least one processor, and at least one memory connected with the processor through a bus; wherein the processor, the memory complete mutual communication through the bus; the processor is used to call the program instruction in the memory, to execute the data processing method of any one of the above.

[0037] By the above technical solution, the data processing method and related device provided by the present disclosure can be used in the distributed field or the financial field, and can be applied to a service providing end system. In response to a transaction service request sent by a service requesting end system, the data processing method and related device provided by the present disclosure can perform image backup on information associated with the transaction service request, obtain a backup table, modify a field value of a flow state field in a transaction flow table associated with the transaction service request to a preset processing-in-progress parameter, modify a field value of a data state field in the information to a preset unconfirmed parameter, provide a transaction service to the service requesting end system, obtain a key value of a data field in the information that is modified during the transaction service, record the key value in a data key value field in the transaction flow table, in the case where a transaction success message sent by the service requesting end system is not obtained, periodically scan the transaction flow table whose field value of the flow state field is the preset processing-in-progress parameter, determine whether the transaction flow corresponding to the transaction flow table is timed out, if the transaction flow is timed out, in the case where the field value of the data state field is the preset unconfirmed parameter, initiate a flow query to the service requesting end system, obtain a flow query result, in the case where the flow query result is a transaction failure, use the backup table to roll back the information to a state before the transaction service by using the key value recorded in the data key value field, and modify the field value of the data state field to a preset confirmed parameter. The present disclosure sets the flow state field and the data key value field in the transaction flow table of the service providing end system, and sets the data state field in the information corresponding to the transaction flow table. Before the service providing end system modifies the information in response to the transaction service request sent by the service requesting end system, the service providing end system first performs image backup on the information, then modifies the field values of the flow state field and the data state field, and records the key value of the data field in the information that is modified in the data key value field. In the case of a transaction failure, the information can be restored by backup, and the data consistency of the service providing end system and the service requesting end system is ensured.

[0038] The above description is only a summary of the technical solutions of the present disclosure. In order to more clearly understand the technical means of the present disclosure, the present disclosure can be implemented in accordance with the content of the specification, and in order to make the above and other purposes, features and advantages of the present disclosure more obvious and easy to understand, the specific embodiments of the present disclosure are described below. BRIEF DESCRIPTION OF DRAWINGS

[0039] Various other advantages and benefits will become clear to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments with reference made to the accompanying drawings. The drawings provided herein are for illustrative purposes only and, therefore, should not be considered to be limiting in any way. Furthermore, like reference numerals are intended to refer to like and corresponding parts throughout the several drawings. In the drawings:

[0040] Figure 1 A flow diagram illustrating an embodiment of a data processing method provided by an embodiment of the present disclosure is shown;

[0041] Figure 2 A structural diagram illustrating an embodiment of a data processing apparatus provided by an embodiment of the present disclosure is shown;

[0042] Figure 3 A structural diagram illustrating an embodiment of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0043] Exemplary embodiments of the present disclosure will be described herein below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by 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 present disclosure to those skilled in the art.

[0044] As Figure 1 shown, a flow diagram illustrating an embodiment of a data processing method provided by an embodiment of the present disclosure is shown, the data processing method can be applied to a service providing end system, the data processing method can include:

[0045] S01, in response to a transaction service request sent by a service requesting end system, mirroring backup of material information associated with the transaction service request, and obtaining a backup table.

[0046] The service providing end system and the service requesting end system can be a bank system for processing bank transaction flow data under a distributed architecture. The service providing end system can be a system for responding to transaction service requests under a distributed architecture. The service requesting end system can be a system for initiating transaction service requests under a distributed architecture.

[0047] It can be understood that under a distributed architecture, the service providing end system can be connected with multiple service requesting end systems, and provide relevant transaction services for the multiple service requesting end systems.

[0048] The embodiment of the present disclosure can perform image backup on the profile information associated with the transaction service request in the service request end system before modifying the profile information after receiving the transaction service request sent by the service request end system, realize real-time backup of the profile information, and obtain an independent backup table.

[0049] The embodiment of the present disclosure can pre-set a flow state field and a profile key value field in the transaction flow table of the service request end system. The flow state field is used to indicate the current processing state of the transaction flow generated by the transaction service. In general, the processing state of the transaction flow can include two states: processing and success. The profile key value field is used to record the key value of the modified profile field in the profile information during the transaction service, so as to locate the modified profile field in the profile information during the transaction service, and facilitate data rollback when the transaction fails.

[0050] The embodiment of the present disclosure can pre-set a profile state field in the profile information. The profile state field is used to indicate the modification confirmation state of the modified profile field in the profile information. In general, the modification confirmation state includes two states: confirmed and unconfirmed.

[0051] S02, modify the field value of the flow state field in the transaction flow table associated with the transaction service request to a preset processing parameter.

[0052] The preset processing parameter is used to indicate that the current processing state of the transaction flow generated by the transaction service is processing. The embodiment of the present disclosure can confirm the ongoing transaction service by the preset processing parameter, so as to be recognized and processed by the system.

[0053] S03, modify the field value of the profile state field in the profile information to a preset unconfirmed parameter.

[0054] The preset unconfirmed parameter is used to indicate that the modification confirmation state of the modified profile field in the profile information during the transaction service is unconfirmed. The embodiment of the present disclosure can identify and confirm that the modified profile field in the profile information has not been consistent with the service request end system by the preset unconfirmed parameter.

[0055] The profile information can be the data information stored by the transaction subject in the bank. For example, the profile information can include the account balance, income record, expenditure record and transaction detail record of the transaction subject.

[0056] S04, providing the transaction service to the service request end system, and obtaining the key value of the modified profile field in the profile information during the transaction service.

[0057] The transaction service can be a function service of a transaction service provided by a bank to a client. Alternatively, the transaction service can include cross-bank transaction and cross-institution transaction.

[0058] It can be understood that during the provision of the transaction service by the service providing end system to the service requesting end system, the corresponding data field in the data information can be modified, and the disclosed embodiments can collect the key value of the modified data field.

[0059] S05, record the key value into the data key value field in the transaction log table.

[0060] The disclosed embodiments can record the key value of the modified data field in the data information during the transaction service into the data key value field in the transaction log table, which facilitates the positioning of the modified data field during the transaction service, and is beneficial for data rollback in the case of transaction failure.

[0061] S06, in the case where the transaction success message sent by the service requesting end system is not obtained, scan the transaction log table whose log state field value is the preset processing parameter at a regular time, determine whether the transaction log corresponding to the transaction log table has timed out, and if so, perform step S07.

[0062] It can be understood that since there can be transaction log tables corresponding to multiple service requesting end systems, the disclosed embodiments can scan each transaction log table in the service providing end system at a regular time, determine the transaction log table whose log state field value is the preset processing parameter, and then determine whether the transaction log corresponding to the transaction log table has timed out.

[0063] In the case where the transaction log has timed out, the disclosed embodiments can find the corresponding data information according to the log information of the transaction log, and then determine the field value corresponding to the data state field in the data information. Generally, at this time, the field value corresponding to the data state field in the data information is the preset unconfirmed parameter. Since the transaction log has timed out, the disclosed embodiments can confirm that a bank error occurs, i.e., the data in the service providing end system and the service requesting end system is not consistent, in the case where the field value corresponding to the data state field is identified as the preset unconfirmed parameter.

[0064] Alternatively, if not timed out, continue to scan the transaction log table whose log state field value is the preset processing parameter at a regular time.

[0065] S07, in the case where the field value corresponding to the data state field is the preset unconfirmed parameter, initiate a log query to the service requesting end system, and obtain a log query result.

[0066] The embodiment of the present disclosure can query the transaction flow corresponding to the flow information of the transaction flow table in the service request end system, and confirm the transaction failure through the flow information corresponding to the transaction flow table.

[0067] S08, in the case of the flow query result being transaction failure, the key value recorded in the data key value field is used to roll back the data information to the state before the transaction service by using the backup table.

[0068] It can be understood that in the case of transaction failure, the service request end system will perform database level rollback. After confirming the transaction failure, the service providing end system determines that the modified data field in the data information belongs to invalid modification, thereby locating the modified data field in the data information by using the key value recorded in the data key value field, restoring the modified data field in the data information by using the corresponding data in the backup table, and ensuring the data consistency of the service providing end system and the service request end system.

[0069] S09, the field value of the data state field is modified to a preset confirmation parameter.

[0070] The preset confirmation parameter is used to indicate that the modification confirmation state of the data field in the current data information is confirmed. The embodiment of the present disclosure can confirm that the data information in the service providing end system is consistent with the service request end system after the data rollback of the data information.

[0071] Optionally, the embodiment of the present disclosure can also modify the field value of the flow state field in the transaction flow table to a preset success parameter in the case of obtaining the transaction success message sent by the service request end system. The field value of the data state field in the data information corresponding to the transaction flow table is modified to a preset confirmation parameter.

[0072] The service request end system will perform database level commit after the transaction is successful, and send a transaction success message to the service providing end system.

[0073] The embodiment of the present disclosure modifies the field value of the flow state field in the transaction flow table to a preset success parameter based on the transaction success message. The preset success parameter is used to indicate that the current processing state of the transaction flow generated by the transaction service is successful. The embodiment of the present disclosure can confirm that the transaction has been successfully completed through the preset success parameter.

[0074] The embodiment of the present disclosure can confirm that the current data information is consistent with the service request end system after confirming the transaction success, thereby modifying the field value of the data state field in the data information to a preset confirmation parameter.

[0075] Optionally, the embodiment of the present disclosure can also delete the backup table after step S09. The embodiment of the present disclosure can delete the backup table after the data rollback of the material information, thereby saving the system storage resources.

[0076] Optionally, the embodiment of the present disclosure can delete the backup table after step S11, thereby saving the system storage resources, or can retain the backup table after step S11, wait for the next time when the transaction service request sent by the service request end system is received, use the current material information to perform the image backup, and perform the data coverage on the backup table.

[0077] The data processing method provided by the embodiment of the present disclosure has low requirements on the service request end system, does not need to make large-scale modification on the existing bank distributed system, and simultaneously realizes the real-time forward update of the synchronous data of the service providing end system in multiple scenes, can be applied to the maintenance of the coverage data, and brings significant comprehensive benefits.

[0078] The data processing method provided by the embodiment of the present disclosure can be applied to the distributed field or the financial field, can be applied to the service providing end system, responds to the transaction service request sent by the service request end system, performs the image backup on the material information associated with the transaction service request, obtains a backup table, modifies the field value of the flow state field in the transaction flow table associated with the transaction service request to a preset processing-in-progress parameter, modifies the field value of the material state field in the material information to a preset unconfirmed parameter, provides the transaction service to the service request end system, obtains the key value of the material field modified in the material information during the transaction service, records the key value to the material key value field in the transaction flow table, in the case where the transaction success message sent by the service request end system is not obtained, scans the transaction flow table with the field value of the flow state field being the preset processing-in-progress parameter at a regular time, determines whether the transaction flow corresponding to the transaction flow table is overdue, if the transaction flow is overdue, initiates the flow query to the service request end system in the case where the field value of the material state field is the preset unconfirmed parameter, obtains the flow query result, in the case where the flow query result is transaction failure, uses the backup table to rollback the material information to the state before the transaction service by using the key value recorded in the material key value field, and modifies the field value of the material state field to a preset confirmation parameter. The embodiment of the present disclosure sets the flow state field and the material key value field in the transaction flow table of the service providing end system, sets the material state field in the material information corresponding to the transaction flow table, the service providing end system modifies the material information before responding to the transaction service request sent by the service request end system, first performs the image backup on the material information, then modifies the field values of the flow state field and the material state field, and records the key value of the material field modified in the material information in the material key value field, so that the material information can be restored through the backup in the case of transaction failure, and the data consistency of the service providing end system and the service request end system is ensured.

[0079] Although the operations are depicted in a particular order, this should not be understood as requiring the operations to be performed in the particular order shown or in sequential order, as some steps can be performed in parallel or in different orders than shown.

[0080] It should be understood that each of the steps recited in the method embodiments of the present disclosure can be performed in different orders and / or in parallel. In addition, the method embodiments can include additional steps and / or omit performing the steps shown. The scope of the present disclosure is not limited in this regard.

[0081] Corresponding to the above method embodiments, the present embodiments provide a data processing apparatus applied to a service providing end system, the structure of the data processing apparatus is as shown in Figure 2 The data processing apparatus can include a first obtaining unit 100, a first modifying unit 200, a second modifying unit 300, a second obtaining unit 400, a key-value recording unit 500, a first determining unit 600, a third obtaining unit 700, a data rollback unit 800, and a third modifying unit 900.

[0082] The first obtaining unit 100 is configured to, in response to a transaction service request sent by a service requesting end system, perform image backup on material information associated with the transaction service request, and obtain a backup table.

[0083] The first modifying unit 200 is configured to modify a field value of a flow state field in a transaction flow table associated with the transaction service request to a preset processing-in-progress parameter.

[0084] The second modifying unit 300 is configured to modify a field value of a material state field in the material information to a preset unconfirmed parameter.

[0085] The second obtaining unit 400 is configured to provide a transaction service to the service requesting end system, and obtain a key value of a material field in the material information that is modified during the transaction service.

[0086] The key-value recording unit 500 is configured to record the key value to a material key value field in the transaction flow table.

[0087] The first determining unit 600 is configured to, in a case where a transaction success message sent by the service requesting end system is not obtained, periodically scan the transaction flow table whose field value of the flow state field is the preset processing-in-progress parameter, determine whether a transaction flow corresponding to the transaction flow table is timed out, and if so, trigger the third obtaining unit 700.

[0088] The third obtaining unit 700 is configured to, in a case where the field value of the material state field is the preset unconfirmed parameter, initiate a flow query to the service requesting end system, and obtain a flow query result.

[0089] The data rollback unit 800 is configured to, in the case that the flow query result is a transaction failure, use the key value recorded in the data key value field to use the backup table to rollback the data information to a state before the transaction service.

[0090] The third modification unit 900 is configured to modify the field value of the data state field to a preset confirmation parameter.

[0091] Optionally, the data processing apparatus can further include a fourth modification unit and a fifth modification unit.

[0092] The fourth modification unit is configured to, in the case that a transaction success message sent by the service request end system is obtained, modify the field value of the flow state field in the transaction flow table to a preset success parameter.

[0093] The fifth modification unit is configured to modify the field value of the data state field in the data information corresponding to the transaction flow table to a preset confirmation parameter.

[0094] Optionally, the data processing apparatus can further include a deletion unit.

[0095] The deletion unit is configured to, after the third modification unit 900 modifies the field value of the data state field to the preset confirmation parameter, delete the backup table.

[0096] The data processing device provided by the present disclosure can be used in the distributed field or the financial field, and can be applied to a service providing end system. In response to a transaction service request sent by a service requesting end system, the data processing device performs image backup on material information associated with the transaction service request to obtain a backup table. The data processing device modifies a field value of a flow state field in a transaction flow table associated with the transaction service request to a preset processing in parameter. The data processing device modifies a field value of a material state field in the material information to a preset unconfirmed parameter. The data processing device provides a transaction service to the service requesting end system, and obtains a key value of a material field in the material information that is modified during the transaction service. The data processing device records the key value in a material key value field in the transaction flow table. In a case where a transaction success message sent by the service requesting end system is not obtained, the data processing device periodically scans the transaction flow table whose field value of the flow state field is the preset processing in parameter, and determines whether a transaction flow corresponding to the transaction flow table is timed out. If the transaction flow is timed out, in a case where the field value of the material state field is the preset unconfirmed parameter, the data processing device initiates a flow query to the service requesting end system, and obtains a flow query result. In a case where the flow query result is a transaction failure, the data processing device uses the backup table to roll back the material information to a state before the transaction service by using the key value recorded in the material key value field. The data processing device modifies the field value of the material state field to a preset confirmed parameter. By setting the flow state field and the material key value field in the transaction flow table of the service providing end system, and setting the material state field in the material information corresponding to the transaction flow table, the service providing end system performs image backup on the material information before modifying the material information in response to the transaction service request sent by the service requesting end system, then modifies the field values of the flow state field and the material state field, and records the key value of the material field in the material information that is modified in the material key value field. In a case of a transaction failure, the material information can be recovered by backup, and the data consistency of the service providing end system and the service requesting end system is ensured.

[0097] As to the apparatus in the above-mentioned embodiments, the specific manners in which the units perform operations have been described in detail in the embodiments about the method, and thus will not be described in detail here.

[0098] The data processing device includes a processor and a memory. The first obtaining unit 100, the first modifying unit 200, the second modifying unit 300, the second obtaining unit 400, the key value recording unit 500, the first determining unit 600, the third obtaining unit 700, the data rollback unit 800, and the third modifying unit 900 are all stored in the memory as program units, and the corresponding functions are realized by the processor executing the program units stored in the memory.

[0099] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured. By adjusting kernel parameters, transaction status fields and data key-value fields are set in the transaction log table of the service provider system, and data status fields are set in the data information corresponding to the transaction log table. Before modifying the data information in response to a transaction service request sent by the service requesting system, the service provider system first performs a backup of the data information, then modifies the values ​​of the transaction status fields and data status fields, recording the modified data field key-value fields in the data key-value field. This allows for data information recovery through backup in case of transaction failure, ensuring data consistency between the service provider system and the service requesting system.

[0100] This disclosure provides a computer-readable storage medium having a program stored thereon that, when executed by a processor, implements the data processing method.

[0101] This disclosure provides a processor for running a program, wherein the program executes the data processing method during runtime.

[0102] like Figure 3 As shown, this disclosure provides an electronic device 1000, which includes at least one processor 1001, at least one memory 1002 connected to the processor 1001, and a bus 1003. The processor 1001 and the memory 1002 communicate with each other via the bus 1003. The processor 1001 is used to call program instructions in the memory 1002 to execute the aforementioned data processing method. The electronic device described herein can be a server, PC, PAD, mobile phone, etc.

[0103] This disclosure also provides a computer program product that, when executed on an electronic device, is adapted to execute a program with initialization steps for data processing methods.

[0104] It should be noted that the data processing method and related equipment provided by this invention can be used in the distributed computing or financial fields. The above are merely examples and do not limit the application areas of the data processing method and related equipment provided by this invention.

[0105] The computer program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other processing devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions specified in the flowchart block or blocks. Figure 1 The flowchart and / or block diagram in the Figures illustrate the architecture, functionality, and operation of possible implementations of apparatuses and computer program products according to various embodiments of the present disclosure. In this regard, each flowchart and / or block diagram can represent a method, apparatus, and / or computer program product according to an embodiment. In some embodiments, each flowchart and / or block diagram can represent a portion of a method, apparatus, and / or computer program product according to an embodiment. Figure 1 The flowchart and / or block diagram in the Figures illustrate the architecture, functionality, and operation of possible implementations of apparatuses and computer program products according to various embodiments of the present disclosure. In this regard, each flowchart and / or block diagram can represent a method, apparatus, and / or computer program product according to an embodiment. In some embodiments, each flowchart and / or block diagram can represent a portion of a method, apparatus, and / or computer program product according to an embodiment.

[0106] In one typical configuration, the electronic device includes one or more processors (CPU), memory, and a bus. The electronic device can also include an input / output interface, a network interface, and the like.

[0107] The memory can include non-persistent memory in the computer readable medium, random access memory (RAM), and / or non-volatile memory, such as read-only memory (ROM) or flash memory, among others. The memory includes at least one memory chip. The memory is an example of computer readable media.

[0108] Computer readable media includes permanent and non-permanent, removable and non-removable media implemented in any method or technology for storage of information. The information can be computer readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to computing devices. According to the definition herein, computer readable media does not include transitory media, such as modulated data signals and carrier waves.

[0109] In the description of the present disclosure, it needs to be understood that, if the orientation or positional relationship indicated by the terms such as "upper", "lower", "front", "back", "left" and "right" refers to the orientation or positional relationship shown in the drawings, it is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the indicated position or element must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation of the present disclosure.

[0110] It should be noted that, in this document, the terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. It should also be noted that the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or equipment. Without more limitations, the element defined by the statement "including a" does not exclude the presence of another identical element in the process, method, article or equipment including the element.

[0111] Those skilled in the art should understand that the embodiments of the present disclosure can be provided as a method, a system or a computer program product. Therefore, the present disclosure can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Moreover, the present disclosure can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0112] The above is only an embodiment of the present disclosure and is not intended to limit the present disclosure. Those skilled in the art can make various modifications and changes to the present disclosure. Any modification, equivalent replacement, improvement, etc. within the spirit and principles of the present disclosure shall be included in the scope of the claims of the present disclosure.

Claims

1. A data processing method, characterized by, The method is applied to a service providing end system, and comprises the following steps: In response to a transaction service request sent by a service requesting end system, image backup is performed on material information associated with the transaction service request to obtain a backup table; A field value of a flow state field in a transaction flow table associated with the transaction service request is modified to a preset processing-in-progress parameter; A field value of a material state field in the material information is modified to a preset unconfirmed parameter; Transaction service is provided to the service requesting end system, and a key value of a material field modified in the material information during the transaction service is obtained; The key value is recorded in a material key value field in the transaction flow table; In a case where no transaction success message sent by the service requesting end system is obtained, the transaction flow table in which the field value of the flow state field is the preset processing-in-progress parameter is scanned in a time manner to determine whether a transaction flow corresponding to the transaction flow table is timed out, and if so, in a case where the field value of the material state field is the preset unconfirmed parameter, flow query is initiated to the service requesting end system to obtain a flow query result; In a case where the flow query result is transaction failure, the material information is rolled back to a state before the transaction service by using the backup table and the key value recorded in the material key value field; The field value of the material state field is modified to a preset confirmed parameter.

2. The method of claim 1, wherein, Further comprising: In a case where the transaction success message sent by the service requesting end system is obtained, the field value of the flow state field in the transaction flow table is modified to a preset success parameter; The field value of the material state field in the material information corresponding to the transaction flow table is modified to the preset confirmed parameter.

3. The method of claim 1, wherein, After the field value of the material state field is modified to the preset confirmed parameter, the method further comprises: The backup table is deleted.

4. A data processing apparatus, characterized by, The device is applied to a service providing end system, and comprises a first obtaining unit, a first modifying unit, a second modifying unit, a second obtaining unit, a key value recording unit, a first determining unit, a third obtaining unit, a data rollback unit and a third modifying unit, The first obtaining unit is configured to, in response to a transaction service request sent by a service requesting end system, perform image backup on material information associated with the transaction service request to obtain a backup table; The first modifying unit is configured to modify a field value of a flow state field in a transaction flow table associated with the transaction service request to a preset processing-in-progress parameter; The second modifying unit is configured to modify a field value of a material state field in the material information to a preset unconfirmed parameter; The second obtaining unit is configured to provide transaction service to the service requesting end system and obtain a key value of a material field modified in the material information during the transaction service; The key value recording unit is configured to record the key value in a material key value field in the transaction flow table; The first determining unit is configured to, in a case where no transaction success message sent by the service requesting end system is obtained, scan the transaction flow table in which the field value of the flow state field is the preset processing-in-progress parameter in a time manner to determine whether a transaction flow corresponding to the transaction flow table is timed out, and if so, in a case where the field value of the material state field is the preset unconfirmed parameter, initiate flow query to the service requesting end system to obtain a flow query result; The data rollback unit is configured to, in a case where the flow query result is transaction failure, roll back the material information to a state before the transaction service by using the backup table and the key value recorded in the material key value field; The third modifying unit is configured to modify the field value of the material state field to a preset confirmed parameter. The first determination unit is configured to, in a case where the transaction success message sent by the service request end system is not obtained, periodically scan the transaction flow table of the flow state field with the preset processing parameter as the field value, determine whether the transaction flow corresponding to the transaction flow table is timed out, and if so, trigger the third obtaining unit; The third obtaining unit is configured to, in a case where the field value of the material state field is the preset unconfirmed parameter, initiate a flow query to the service request end system, and obtain a flow query result; The data rollback unit is configured to, in a case where the flow query result is transaction failure, use the key value recorded in the material key value field to rollback the material information to a state before the transaction service by using the backup table; The third modification unit is configured to modify the field value of the material state field to a preset confirmed parameter.

5. The apparatus of claim 4, wherein, Further comprising: a fourth modification unit and a fifth modification unit, The fourth modification unit is configured to, in a case where the transaction success message sent by the service request end system is obtained, modify the field value of the flow state field in the transaction flow table to a preset success parameter; The fifth modification unit is configured to modify the field value of the material state field in the material information corresponding to the transaction flow table to the preset confirmed parameter.

6. The apparatus of claim 4, wherein, Further comprising: a deletion unit, The deletion unit is configured to, after the third modification unit modifies the field value of the material state field to the preset confirmed parameter, delete the backup table.

7. A computer-readable storage medium having stored thereon a program, characterized in that, The program is executed by the processor to implement the data processing method in any one of claims 1 to 3.

8. An electronic device, comprising at least one processor, and at least one memory connected to the processor via a bus; wherein, The processor, the memory and the bus complete communication with each other; The processor is configured to call program instructions in the memory to execute the data processing method in any one of claims 1 to 3. The processor, the memory and the bus complete communication with each other; The processor is configured to call program instructions in the memory to execute the data processing method in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Business system field configuration method and device, server and readable storage medium

    CN108334534A

  • Data consistency method, distributed coordinator and central coordinator

    CN111143041A