CN115983991A - Flow adjusting method, device, equipment and medium - Google Patents

Flow adjusting method, device, equipment and medium Download PDF

Info

Publication number
CN115983991A
CN115983991A CN202211522998.2A CN202211522998A CN115983991A CN 115983991 A CN115983991 A CN 115983991A CN 202211522998 A CN202211522998 A CN 202211522998A CN 115983991 A CN115983991 A CN 115983991A
Authority
CN
China
Prior art keywords
sub
transaction
target
transaction flow
flow
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
CN202211522998.2A
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.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202211522998.2A priority Critical patent/CN115983991A/en
Publication of CN115983991A publication Critical patent/CN115983991A/en
Pending legal-status Critical Current

Links

Images

Abstract

The present application relates to the field of data processing, and in particular, to a method, an apparatus, a device, and a medium for flow adjustment. The method is used for solving the problem of resource waste caused by transaction event change in the prior art. In the embodiment of the application, after receiving the change request, the electronic device acquires each sub-transaction flow correspondingly stored for the target transaction identifier carried in the change request, determines the target sub-transaction flow corresponding to the information type carried in the change request according to the corresponding relationship between the pre-stored type and the affected sub-transaction flow, and adjusts only the target sub-transaction flow affected by the change request, so that the resource utilization rate can be improved, and the resource waste is avoided.

Description

Flow adjusting method, device, equipment and medium
Technical Field
The present application relates to the field of data processing, and in particular, to a method, an apparatus, a device, and a medium for flow adjustment.
Background
Aiming at the transaction events in the financial market business, the transaction events are changed, and a typical processing method is usually used for the transaction event change at present, namely when the transaction events are changed, the original transaction flow is directly terminated, and a new transaction flow is re-initiated, wherein the original transaction flow comprises a plurality of sub-transaction flows. For example, if a bank a borrows a fund from a bank B, the electronic device executes sub-transaction processes such as "generating a contract account", "determining detailed contents of installment repayment", and the like, and subsequently, if the bank B finds that the fund with the corresponding amount is not required to be borrowed and negotiates with the bank a, the borrowed amount is adjusted to a certain extent, at this time, the sub-transaction process under the original transaction process is prevented from being executed continuously, the original transaction process will be terminated, and a new transaction process will be started again, so that the generation process of the transaction process in the prior art will cause a certain waste of resources.
Disclosure of Invention
The embodiment of the application provides a flow adjusting method, a flow adjusting device, a flow adjusting apparatus and a flow adjusting medium, which are used for solving the problem of resource waste caused by transaction event change in the prior art.
The embodiment of the application provides a flow adjusting method, which comprises the following steps:
receiving a change request carrying a target transaction identifier, target adjustment information and an information type of the target adjustment information, and acquiring each sub-transaction flow stored aiming at the target transaction identifier;
determining a target sub-transaction process corresponding to the information type according to a pre-stored corresponding relationship between the type and the affected sub-transaction process;
acquiring a target type which is stored in advance correspondingly to the target sub-transaction flow and the information type; and adjusting the information corresponding to the target type in the processing result corresponding to the target sub-transaction flow according to the target adjustment information.
Further, the adjusting, according to the target adjustment information, the information corresponding to the target type in the processing result corresponding to the target sub-transaction flow includes:
acquiring a processing mode which is stored in advance for the target sub-transaction process and the information type;
processing the target adjustment information by adopting the processing mode to acquire target information;
and adjusting the information corresponding to the target type in the processing result corresponding to the target sub-transaction flow into the target information.
Further, the determining, according to the correspondence between the pre-stored type and the affected sub-transaction flow, the target sub-transaction flow corresponding to the information type includes:
determining each candidate sub-transaction flow corresponding to the information type according to the corresponding relation between the pre-stored type and the affected sub-transaction flow;
and determining the executed sub-transaction process in each candidate sub-transaction process as a target sub-transaction process.
Further, after obtaining each sub-transaction flow stored for the target transaction identifier, before determining the target sub-transaction flow corresponding to the information type according to the correspondence between the pre-stored type and the affected sub-transaction flow, the method further includes:
if the executed sub-transaction flows exist in each sub-transaction flow, the executed sub-transaction flows are terminated.
Further, the method further comprises:
the terminated sub-transaction flow is determined to be an unexecuted sub-transaction flow.
Further, the method further comprises:
if the unexecuted sub-transaction flows exist in each sub-transaction flow, each unexecuted sub-transaction flow is sequentially obtained according to the execution sequence of the pre-saved sub-transaction flows, each sub-transaction flow saved according to the unexecuted sub-transaction flow is sequentially obtained according to each unexecuted sub-transaction flow, and the unexecuted sub-transaction flow is executed according to the processing result of each sub-transaction flow.
An embodiment of the present application further provides a flow adjustment apparatus, including:
the receiving and obtaining module is used for receiving a change request carrying a target transaction identifier, target adjustment information and the information type of the target adjustment information and obtaining each sub-transaction flow stored aiming at the target transaction identifier;
the determining module is used for determining a target sub-transaction process corresponding to the information type according to the corresponding relation between the pre-stored type and the affected sub-transaction process;
the processing module is used for acquiring a target type which is stored in advance correspondingly to the target sub-transaction flow and the information type; and adjusting the information corresponding to the target type in the processing result corresponding to the target sub-transaction flow according to the target adjustment information.
Further, the processing module is specifically configured to obtain a processing mode that is stored in advance for the target sub-transaction process and the information type; processing the target adjustment information by adopting the processing mode to acquire target information; and adjusting the information corresponding to the target type in the processing result corresponding to the target sub-transaction flow into the target information.
Further, the determining module is specifically configured to determine each candidate sub-transaction flow corresponding to the information type according to a pre-stored correspondence between the type and the affected sub-transaction flow; and determining the executed sub-transaction flow in each candidate sub-transaction flow as a target sub-transaction flow.
Further, the processing module is further configured to terminate the sub-transaction process being executed if there is a sub-transaction process being executed in each sub-transaction process.
Further, the processing module is further configured to determine the terminated sub-transaction flow as an unexecuted sub-transaction flow.
Further, the processing module is further configured to, if there is an unexecuted sub-transaction flow in each sub-transaction flow, sequentially acquire each unexecuted sub-transaction flow according to an execution sequence of the pre-saved sub-transaction flows, sequentially acquire, for each unexecuted sub-transaction flow, each sub-transaction flow saved for the unexecuted sub-transaction flow, and execute the unexecuted sub-transaction flow according to a processing result of each sub-transaction flow.
An embodiment of the present application further provides an electronic device, where the electronic device at least includes a processor and a memory, and the processor is configured to implement the steps of the flow adjustment method according to any one of the above descriptions when executing the computer program stored in the memory.
An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the flow adjustment method according to any one of the above.
An embodiment of the present application further provides a computer program product, where the computer program product includes: computer program code for causing a computer to perform the steps of the process adjustment method as described in any one of the above when said computer program code is run on a computer.
In the embodiment of the application, the electronic device receives a change request carrying a target transaction identifier, target adjustment information and an information type of the target adjustment information, acquires each sub-transaction flow stored for the target transaction identifier, determines a target sub-transaction flow corresponding to the information type according to a corresponding relation between a pre-stored type and the affected sub-transaction flow, acquires a target type stored for the target sub-transaction flow and the information type in advance, and adjusts information corresponding to the target type in a processing result of the target sub-transaction flow according to the target adjustment information. In the embodiment of the application, after receiving the change request, the electronic device acquires each sub-transaction flow correspondingly stored for the target transaction identifier carried in the change request, determines the target sub-transaction flow corresponding to the information type carried in the change request according to the corresponding relation between the pre-stored type and the influenced sub-transaction flow, and adjusts only the target sub-transaction flow influenced by the change request, so that the resource utilization rate can be improved, and the resource waste is avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic diagram of a process adjustment process provided in an embodiment of the present application;
fig. 2 is a schematic diagram of a transaction event change processing process according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a flow adjustment apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The present application will now be described in further detail with reference to the accompanying drawings, wherein like reference numerals refer to like elements throughout. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to improve resource utilization, embodiments of the present application provide a method, an apparatus, a device, and a medium for flow adjustment. The flow adjusting method comprises the following steps: the electronic equipment receives a change request carrying a target transaction identifier, target adjustment information and an information type of the target adjustment information, acquires each sub-transaction flow stored aiming at the target transaction identifier, determines a target sub-transaction flow corresponding to the information type according to a corresponding relation between a pre-stored type and the affected sub-transaction flow, acquires a target type stored aiming at the target sub-transaction flow and the information type in advance, and adjusts information corresponding to the target type in a processing result of the target sub-transaction flow according to the target adjustment information, so that the resource utilization rate is improved, and resource waste is avoided.
Example 1:
fig. 1 is a schematic view of a flow adjustment process provided in an embodiment of the present application, where the process includes the following steps:
s101: receiving a change request carrying a target transaction identifier, target adjustment information and an information type of the target adjustment information, and acquiring each sub-transaction flow stored aiming at the target transaction identifier.
The flow adjusting method provided by the embodiment of the application is applied to electronic equipment, and the electronic equipment can be intelligent equipment such as a PC (personal computer) or a server.
In the embodiment of the application, when two transaction parties have a requirement for transaction change, the two transaction parties can inform the staff of the requirement, the staff operates equipment used by the staff, and the equipment can identify the operation of the staff so as to obtain a change request, wherein the change request carries a target transaction identifier, target adjustment information and an information type of the target adjustment information. The corresponding transaction identification exists in each transaction, the transaction identifications corresponding to each transaction are different, the target adjustment information is information to be adjusted, for example, the information before adjustment is name a, and the target adjustment information is name B if the name a is to be adjusted to name B. Specifically, the staff may select the target transaction identifier, the target adjustment information, and the information type of the target adjustment information on a preset page of the device used by the staff, and click a preset button, so that the device used by the staff can obtain the change request. After the device used by the staff obtains the change request, the obtained change request can be sent to the electronic device, and the electronic device can receive the change request carrying the target transaction identifier, the target adjustment information and the information type of the target adjustment information.
In order to adjust the process, the electronic device pre-stores a corresponding relationship between a transaction identifier and a sub-transaction process, where the sub-transaction process refers to a specific execution step when processing a transaction, and for example, the sub-transaction process corresponding to a certain transaction identifier includes sub-transaction processes such as generating a contract account and determining detailed contents of an installment repayment. The number of sub-transaction flows corresponding to a certain transaction identifier may be multiple or 1. After the electronic device receives the change request, each sub-transaction flow corresponding to the target transaction identifier can be obtained according to the corresponding relationship between the transaction identifier and the sub-transaction flows which is stored locally in advance.
S102: and determining a target sub-transaction process corresponding to the information type according to the corresponding relation between the pre-stored type and the affected sub-transaction process.
In the embodiment of the present application, the information types of the target adjustment information are different, and the corresponding affected sub-transaction flows may be different, so that the corresponding sub-transaction flows that need to be adjusted are different, for example, the affected sub-transaction flow corresponding to the information type a is the sub-transaction flow a, and the affected sub-transaction flow corresponding to the information type B is the sub-transaction flow B. In order to obtain the target sub-transaction flow which is correspondingly required to be adjusted, the electronic device locally pre-stores the corresponding relationship between the type and the affected sub-transaction flow, and the electronic device can obtain the sub-transaction flow corresponding to the information type carried in the received change request according to the corresponding relationship between the pre-stored type and the affected sub-transaction flow, and determine the obtained sub-transaction flow as the target sub-transaction flow affected by the change request. And the electronic equipment adjusts the information in the processing result of the target sub-transaction flow.
S103: acquiring a target type which is stored in advance correspondingly to the target sub-transaction flow and the information type; and adjusting the information corresponding to the target type in the processing result corresponding to the target sub-transaction flow according to the target adjustment information.
In this embodiment of the application, after the target sub-transaction flow is obtained, the electronic device adjusts information in a processing result of the target sub-transaction flow, specifically, a correspondence between two information types, namely, the sub-transaction flow and the information type, is locally pre-stored in the electronic device, where a type corresponding to a certain sub-transaction flow and a certain information type indicates that when information of the information type is changed, a type of information that needs to be adjusted in the processing result of the sub-transaction flow is the corresponding type. The electronic device can acquire the target sub-transaction flow and the target type corresponding to the information type, and adjust the information corresponding to the target type in the processing result of the target sub-transaction flow according to the target adjustment information carried in the change request. Specifically, the electronic device stores a corresponding relationship between each piece of information in the processing result of the target sub-process and the type, the electronic device may determine the information corresponding to the target type according to the corresponding relationship, and the electronic device stores a corresponding processing method for the target type, processes the target adjustment information by using the obtained processing method, obtains the information after the processing is completed, and adjusts the information corresponding to the target type in the processing result of the target sub-transaction process by using the information.
Each sub-transaction flow corresponding to the target transaction identifier acquired by the electronic device may be referred to as a sub-transaction flow corresponding to the master transaction event, and the sub-transaction flow adjusted by the method provided by the embodiment of the present application and the sub-transaction flow that does not need to be adjusted may be referred to as a sub-transaction flow corresponding to the slave transaction event.
According to the method provided by the embodiment of the application, after the electronic device receives the change request, namely under the condition that the transaction event is changed, the electronic device can systematically complete the adjustment of the whole service information and the adjustment of the service processing result, namely complete the adjustment of the target type information in the processing result of the sub-transaction process. The method provided by the embodiment of the application is improved on the basis of the prior art, is suitable for the financial market background business system, and is suitable for the transaction with a complex processing process and more sub-transaction flows. The scheme provided by the embodiment of the application only adjusts the processing result of the affected sub-transaction flow, and does not adjust the processing result of the unaffected sub-transaction flow, so that the resource utilization rate can be improved.
In the embodiment of the application, after receiving the change request, the electronic device acquires each sub-transaction flow correspondingly stored for the target transaction identifier carried in the change request, determines the target sub-transaction flow corresponding to the information type carried in the change request according to the corresponding relationship between the pre-stored type and the affected sub-transaction flow, and adjusts only the target sub-transaction flow affected by the change request, so that the resource utilization rate can be improved, and the resource waste is avoided.
Example 2:
in order to accurately adjust information in a processing result of a target sub-transaction flow, on the basis of the foregoing embodiment, in this embodiment, the adjusting, according to the target adjustment information, information corresponding to the target type in the processing result corresponding to the target sub-transaction flow includes:
acquiring a processing mode which is stored correspondingly to the target sub-transaction flow and the information type in advance;
processing the target adjustment information by adopting the processing mode to acquire target information;
and adjusting the information corresponding to the target type in the processing result corresponding to the target sub-transaction flow into the target information.
In this embodiment of the application, the electronic device locally pre-stores the sub-transaction flow and the type of the information, and the corresponding relationship between the processing manners, and the electronic device may obtain the processing manner correspondingly stored for the target sub-transaction type and the type of the information carried in the change request, and process the target adjustment information by using the processing manner to obtain a processing result, where the processing result is the target information, where the target information is accurate information corresponding to the target type in the processing result of the target sub-transaction flow after the information is adjusted to the target adjustment information, and therefore, after the target information is obtained, the electronic device may obtain the information corresponding to the target type in the processing result corresponding to the target sub-transaction flow, and adjust the obtained information to the target information. The processing result corresponding to the target sub-transaction flow refers to a result obtained after the target sub-transaction flow is adopted for processing, and one sub-transaction flow may include a plurality of processing results and may also include 1 processing result.
In an actual application scenario, some sub-transaction flows may need to be audited by a service person, in this application embodiment, if a certain sub-transaction flow needing to be audited by the service person is an affected target sub-transaction flow, the audit of the service person is needed after the adjustment of the processing result of the sub-transaction flow is completed, and if a certain sub-transaction flow is an unaffected sub-transaction flow and is a sub-transaction flow needing to be audited by the service person, the service person does not need to audit the sub-transaction flow. And each sub-transaction process is re-executed by adopting the method in the prior art, and if the sub-transaction process needing to be checked by the service personnel exists in each re-executed sub-transaction process, the check is carried out by the service personnel, so that the operation amount of the service personnel can be reduced by adopting the method provided by the embodiment of the application.
The embodiment of the application equivalently provides a design idea and a model for realizing transaction event change in a fund background business system, and the method for executing the sub-transaction process in the prior art is improved through modeling, so that the executed sub-transaction process does not need to be executed again, the processing efficiency is improved, and the repeated bookkeeping and reporting risks are avoided. The method provided by the embodiment of the application is simple, effective and unified in logic.
Example 3:
in order to accurately determine the target sub-transaction flow, on the basis of the foregoing embodiments, in an embodiment of the present application, the determining the target sub-transaction flow corresponding to the information type according to a correspondence between a type stored in advance and an affected sub-transaction flow includes:
determining each candidate sub-transaction flow corresponding to the information type according to the corresponding relation between the pre-stored type and the affected sub-transaction flow;
and determining the executed sub-transaction flow in each candidate sub-transaction flow as a target sub-transaction flow.
In an actual application scenario, after the electronic device obtains each sub-transaction flow corresponding to the target transaction identifier, there may be an unexecuted sub-transaction flow in each sub-transaction flow, and therefore in the embodiment of the present application, the electronic device determines the target sub-transaction flow affected by the change request in the executed sub-transaction flows. Specifically, in the embodiment of the present application, the electronic device locally pre-stores a corresponding relationship between types and affected sub-transaction flows, where the number of the affected sub-transaction flows corresponding to a certain type may be 1 or multiple, when information of a certain type is adjusted, some information in a processing result of the affected sub-transaction flow corresponding to the certain type may change, the electronic device determines each candidate sub-transaction flow corresponding to an information type carried in a change request according to the pre-stored corresponding relationship between the type and the affected sub-transaction flow, and after acquiring each candidate sub-transaction flow, acquires a sub-transaction flow completed in each candidate sub-transaction flow, and determines the sub-transaction flow completed in each candidate sub-transaction flow as a target sub-transaction flow.
It should be noted that, in the prior art, the prior art directly terminates the original transaction flow and re-executes a new transaction flow, and under the condition that there are many sub-transaction flows included in the transaction flow, the processing efficiency is not high, the processing mode is simple and rough, the business state of normal processing of the transaction event is easily lost, and the continuation of the business state is not facilitated, where the business state refers to the state of waiting for payment, completing payment, and the like, and when a change request is received, the business state is not changed, and the corresponding business state needs to be re-determined by using the prior art method, so that the continuation of the business state is not facilitated in the prior art, and meanwhile, many executed sub-transaction flows are re-executed, some important sub-transaction flows are repeatedly executed, and the control is not reached, which easily affects the financial affairs and messages corresponding to the transaction, where a message refers to information sent to both sides of the transaction after all the sub-transaction flows are executed. The embodiment of the application provides a set of improved overall logic implementation technology, and on the basis of the prior art, segmentation and continuing processing are carried out, namely, the executed sub-transaction process is not required to be executed again, so that the processing efficiency is improved, repeated accounting and reporting risks are avoided, and the method is suitable for the transaction of the financial market fund background with more sub-transaction processes.
Example 4:
in order to improve the resource utilization rate, on the basis of the foregoing embodiments, in this application embodiment, after obtaining each sub-transaction flow stored for the target transaction identifier, before determining the target sub-transaction flow corresponding to the information type according to the correspondence between the type stored in advance and the affected sub-transaction flow, the method further includes:
if the executed sub-transaction process exists in each sub-transaction process, the executed sub-transaction process is terminated.
In the embodiment of the application, after each sub-transaction flow corresponding to the target transaction identifier carried in the change request is acquired, whether the sub-transaction flow being executed exists in each sub-transaction flow is determined, and if the sub-transaction flow being executed exists, the electronic device terminates the sub-transaction flow being executed, which is equivalent to freezing the sub-transaction flow being executed. After a certain sub-transaction flow is terminated, no staff can operate the sub-transaction flow, and the electronic device no longer has the authority to operate the sub-transaction flow.
In order to improve the resource utilization rate, on the basis of the foregoing embodiments, in an embodiment of the present application, the method further includes:
the terminated sub-transaction flow is determined to be an unexecuted sub-transaction flow.
In an embodiment of the present application, after terminating the sub-transaction flow being executed, the electronic device determines the terminated sub-transaction flow as an unexecuted sub-transaction flow.
In the embodiment of the present application, the minimum unit of change in the transaction flow is a child transaction flow or a grandchild transaction flow, which is referred to as a child transaction flow, the electronic device may determine which child transaction flows may be affected according to the type of information carried in the change request, and adjust information in a processing result of the affected child transaction flows, which is equivalent to re-creating a new child transaction flow. The unaffected sub-transaction flows are not adjusted, which is equivalent to multiplexing the unaffected sub-transaction flows. In the embodiment of the present application, when the transaction event is changed, the transaction book-keeping under the target transaction identifier is found first, and the corresponding relationship between the transaction identifier and the sub-transaction flow may be stored in the transaction book-keeping.
The method comprises the steps that a plurality of sub-transaction flows exist in a transaction event, when a newly generated transaction event is received, a newly added sub-transaction flow exists, wherein the newly added sub-transaction flow can be called a forward flow, when the transaction event is changed, the corresponding sub-transaction flow is modified and the corresponding sub-transaction flow is stopped, wherein the corresponding sub-transaction flow is modified and the corresponding sub-transaction flow is stopped can be called a reverse flow, the sub-transaction flows are correctly linked and controlled, when the reverse flow is generated, the whole forward flow processed before is required to be frozen, namely the sub-transaction flow which is being executed is stopped, the sub-transaction flow which is not executed is controlled not to be executed, then the executed sub-transaction flow is obtained, whether the executed sub-transaction flow is influenced or not is judged, if the executed sub-transaction flow is influenced, the sub-information in the processing result of the transaction flow is adjusted, and if the executed sub-transaction flow is not influenced, the information in the processing result of the sub-transaction flow is not adjusted.
Example 5:
in order to accurately execute the sub-transaction flow, on the basis of the above embodiments, in an embodiment of the present application, the method further includes:
if the unexecuted sub-transaction flows exist in each sub-transaction flow, each unexecuted sub-transaction flow is sequentially obtained according to the execution sequence of the pre-saved sub-transaction flows, each sub-transaction flow saved according to the unexecuted sub-transaction flow is sequentially obtained according to each unexecuted sub-transaction flow, and the unexecuted sub-transaction flow is executed according to the processing result of each sub-transaction flow.
In this embodiment of the application, after acquiring each sub-transaction flow corresponding to a target transaction identifier, the electronic device determines whether each sub-transaction flow has an unexecuted sub-transaction flow, and if each sub-transaction flow has an unexecuted sub-transaction flow, the electronic device acquires an execution sequence of each stored sub-transaction flow, sequentially acquires each unexecuted sub-transaction flow according to the acquired execution sequence, and sequentially acquires each sub-transaction flow stored for each sub-transaction flow and a processing result of each sub-transaction flow for each unexecuted sub-transaction flow, where the processing result of each sub-transaction flow is a processing result required by the sub-transaction flow during execution, and therefore the electronic device may execute the unexecuted sub-transaction flow according to the acquired processing result of each sub-transaction flow. Specifically, how to execute the sub-transaction process according to the required processing result is the prior art, and is not described herein again.
In this embodiment, after adjusting information in the processing result of the target sub-transaction process, the electronic device may generate a version number, and store a corresponding relationship between the target transaction identifier and the version number, where when a change request is not received, the corresponding relationship between the target transaction identifier and the version number is also stored in the electronic device, and the two version numbers are different. When the version number is generated, different version numbers can be generated in an incremental mode. For the transaction event, each transaction change occurs, the current transaction event is affected and influenced, corresponding transaction information is formed, in order to accurately express and record each difference, the forward flow or the reverse flow of each transaction event can be distinguished through different version numbers in the embodiment of the application, therefore, each accessed transaction event defines a version number, the version number changes when the forward flow or the reverse flow of each transaction event occurs, and an effective transaction can be uniquely identified according to the transaction identification and the version number.
Fig. 2 is a schematic diagram of a transaction event change processing process according to an embodiment of the present disclosure.
The nodes in fig. 2 are different sub-transaction flows, the node identified as completed in fig. 2 is each sub-transaction flow that has been executed when a change request is received, and the node identified as unfinished in fig. 2 is each sub-transaction flow that has not been executed when a change request is received. As can be seen from fig. 2, each sub-transaction flow stored for the target transaction identifier carried by the change request is respectively transaction access, verification admission check, fast transaction verification, settlement admission check, fast settlement delivering cash flow, transaction re-check, normal settlement transaction verification, balance management, accounting management, settlement and message transceiving, where arrows between nodes in fig. 2 indicate the execution sequence of the corresponding sub-transaction flow, when the sub-transaction flow to which the arrow points is executed, a processing result of the sub-transaction flow to which the arrow points needs to be obtained, and when the change request is received, pruning in fig. 2 indicates that the sub-transaction flow which is not executed is suspended. As can be seen from fig. 2, in each sub-transaction flow shown in fig. 2, when the sub-transaction flow of the admission verification check is executed, the processing result of the sub-transaction flow of the transaction access needs to be obtained; when the sub-transaction flow of the fast transaction confirmation is executed, a processing result of the sub-transaction flow of the admission confirmation check needs to be obtained; when the sub-transaction flow of the settlement admission check is executed, a processing result of the sub-transaction flow of the admission check is required to be obtained; when the sub-transaction flow of the fast clearing settlement delivery cash flow is executed, the processing result of the sub-transaction flow of checking the clearing settlement admission and the processing result of the sub-transaction flow of transaction reexamination need to be obtained; when the sub-transaction flow of transaction reexamination is executed, the processing result of the sub-transaction flow of settlement admission check needs to be acquired; when the ordinary settlement transaction confirms that the sub-transaction flow is executed, the processing result of the sub-transaction flow of transaction reexamination needs to be obtained; when the sub-transaction flow of balance management is executed, the processing result of the sub-transaction flow of transaction reexamination needs to be obtained; when the sub-transaction flow of the accounting management is executed, the processing result of the sub-transaction flow of the transaction re-accounting, the processing result of the sub-transaction flow of the balance management and the processing result of the sub-transaction flow of the clearing and settlement are required to be obtained; when the sub-transaction flow of clearing and settling is executed, the processing result of the sub-transaction flow of fast transaction confirmation, the processing result of the sub-transaction flow of fast clearing and settling delivery cash flow and the processing result of the sub-transaction flow of ordinary clearing and settling transaction confirmation are required to be obtained; when the sub-transaction flow of message transceiving is executed, the processing result of the sub-transaction flow of clearing and settling needs to be acquired.
In the embodiment of the application, the operation task of the financial market fund transaction background is characterized by intensive operation, naturally has a uniform operation characteristic across service varieties, and a worker summarizes a set of standard operation flow system through extraction, the whole flow is divided into three levels, when a transaction event is accessed, the electronic equipment creates a main transaction flow of the transaction, the flow does not execute specific operation, and realizes scheduling and cooperation among all sub transaction flows, after the main transaction flow is created, sub transaction flows responsible for module operation, such as a confirmation sub transaction flow, an settlement sub transaction flow and a balance management sub transaction flow, can be automatically created inside the sub transaction flows according to different channels or scenes, and are responsible for specific channel or scene operation.
Example 6:
fig. 3 is a schematic structural diagram of a flow adjustment apparatus according to an embodiment of the present application, where the apparatus includes:
a receiving and obtaining module 301, configured to receive a change request carrying a target transaction identifier, target adjustment information, and an information type of the target adjustment information, and obtain each sub-transaction flow stored for the target transaction identifier;
a determining module 302, configured to determine a target sub-transaction process corresponding to the information type according to a correspondence between a pre-stored type and the affected sub-transaction process;
the processing module 303 is configured to obtain a target type that is stored in advance in correspondence to the target sub-transaction flow and the information type; and adjusting the information corresponding to the target type in the processing result corresponding to the target sub-transaction flow according to the target adjustment information.
In a possible implementation manner, the processing module 303 is specifically configured to obtain a processing manner that is stored in advance in correspondence to the target sub-transaction flow and the information type; processing the target adjustment information by adopting the processing mode to acquire target information; and adjusting the information corresponding to the target type in the processing result corresponding to the target sub-transaction flow into the target information.
In a possible implementation manner, the determining module 302 is specifically configured to determine each candidate sub-transaction flow corresponding to the information type according to a correspondence between a type stored in advance and an affected sub-transaction flow; and determining the executed sub-transaction flow in each candidate sub-transaction flow as a target sub-transaction flow.
In a possible implementation manner, the processing module 303 is further configured to terminate the executed sub-transaction flow if there is a sub-transaction flow being executed in each sub-transaction flow.
In a possible implementation, the processing module 303 is further configured to determine the terminated sub-transaction flow as an unexecuted sub-transaction flow.
In a possible implementation manner, the processing module 303 is further configured to, if there are unexecuted sub-transaction flows in each sub-transaction flow, sequentially acquire each unexecuted sub-transaction flow according to an execution sequence of the pre-saved sub-transaction flows, sequentially acquire, for each unexecuted sub-transaction flow, each sub-transaction flow saved for the unexecuted sub-transaction flow, and execute the unexecuted sub-transaction flow according to a processing result of each sub-transaction flow.
Example 7:
fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, and on the basis of the foregoing embodiments, an embodiment of the present application further provides an electronic device, as shown in fig. 4, including: the system comprises a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402 and the memory 403 complete mutual communication through the communication bus 404;
the memory 403 has stored therein a computer program which, when executed by the processor 401, causes the processor 401 to perform the steps of:
receiving a change request carrying a target transaction identifier, target adjustment information and an information type of the target adjustment information, and acquiring each sub-transaction flow stored aiming at the target transaction identifier;
determining a target sub-transaction process corresponding to the information type according to a pre-stored corresponding relationship between the type and the affected sub-transaction process;
acquiring a target type which is stored in advance correspondingly to the target sub-transaction flow and the information type; and adjusting the information corresponding to the target type in the processing result corresponding to the target sub-transaction flow according to the target adjustment information.
Further, the processor 401 is specifically configured to obtain a processing mode that is stored in advance for the target sub-transaction process and the information type;
processing the target adjustment information by adopting the processing mode to acquire target information;
and adjusting the information corresponding to the target type in the processing result corresponding to the target sub-transaction flow into the target information.
Further, the processor 401 is specifically configured to determine each candidate sub-transaction flow corresponding to the information type according to a pre-stored correspondence between the type and the affected sub-transaction flow;
and determining the executed sub-transaction flow in each candidate sub-transaction flow as a target sub-transaction flow.
Further, the processor 401 is further configured to terminate the executed sub-transaction process if there is an executed sub-transaction process in each sub-transaction process.
Further, the processor 401 is further configured to determine the terminated sub-transaction flow as an unexecuted sub-transaction flow.
Further, the processor 401 is further configured to, if there is an unexecuted sub-transaction flow in each sub-transaction flow, sequentially acquire each unexecuted sub-transaction flow according to an execution sequence of the pre-saved sub-transaction flows, sequentially acquire, for each unexecuted sub-transaction flow, each sub-transaction flow saved for the unexecuted sub-transaction flow, and execute the unexecuted sub-transaction flow according to a processing result of each sub-transaction flow.
The communication bus mentioned in the above server may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this is not intended to represent only one bus or type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the aforementioned processor.
The Processor may be a general-purpose Processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital instruction processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
Example 8:
on the basis of the foregoing embodiments, an embodiment of the present application further provides a computer-readable storage medium, where a computer program executable by an electronic device is stored in the computer-readable storage medium, and when the program is run on the electronic device, the electronic device is caused to perform the following steps:
the memory has stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of:
receiving a change request carrying a target transaction identifier, target adjustment information and an information type of the target adjustment information, and acquiring each sub-transaction flow stored aiming at the target transaction identifier;
determining a target sub-transaction process corresponding to the information type according to a pre-stored corresponding relationship between the type and the affected sub-transaction process;
acquiring a target type which is stored in advance correspondingly to the target sub-transaction flow and the information type; and adjusting the information corresponding to the target type in the processing result corresponding to the target sub-transaction flow according to the target adjustment information.
In a possible implementation manner, the adjusting, according to the target adjustment information, information corresponding to the target type in the processing result corresponding to the target sub-transaction flow includes:
acquiring a processing mode which is stored correspondingly to the target sub-transaction flow and the information type in advance;
processing the target adjustment information by adopting the processing mode to acquire target information;
and adjusting the information corresponding to the target type in the processing result corresponding to the target sub-transaction flow into the target information.
In a possible implementation manner, the determining, according to a correspondence between a type stored in advance and an affected sub-transaction flow, a target sub-transaction flow corresponding to the information type includes:
determining each candidate sub-transaction flow corresponding to the information type according to the corresponding relation between the pre-stored type and the affected sub-transaction flow;
and determining the executed sub-transaction flow in each candidate sub-transaction flow as a target sub-transaction flow.
In a possible implementation manner, after obtaining each sub-transaction flow saved for the target transaction identifier, before determining the target sub-transaction flow corresponding to the information type according to a correspondence between a type saved in advance and the affected sub-transaction flow, the method further includes:
if the executed sub-transaction flows exist in each sub-transaction flow, the executed sub-transaction flows are terminated.
In one possible embodiment, the method further comprises:
the terminated sub-transaction flow is determined to be an unexecuted sub-transaction flow.
In one possible embodiment, the method further comprises:
if the unexecuted sub-transaction flows exist in each sub-transaction flow, each unexecuted sub-transaction flow is sequentially obtained according to the execution sequence of the pre-saved sub-transaction flows, each sub-transaction flow saved according to the unexecuted sub-transaction flow is sequentially obtained according to each unexecuted sub-transaction flow, and the unexecuted sub-transaction flow is executed according to the processing result of each sub-transaction flow.
Example 9:
the embodiment of the present application further provides a computer program product, and when the computer program product is executed by a computer, the method for adjusting a flow according to any method embodiment applied to an electronic device is implemented.
In the above embodiments, the implementation may be realized in whole or in part by software, hardware, firmware, or any combination thereof, and may be realized in whole or in part in the form of a computer program product. The computer program product comprises one or more computer instructions which, when loaded and executed on a computer, cause the processes or functions described in the embodiments of the application to be performed in whole or in part.
In the embodiment of the application, after receiving the change request, the electronic device acquires each sub-transaction flow correspondingly stored for the target transaction identifier carried in the change request, determines the target sub-transaction flow corresponding to the information type carried in the change request according to the corresponding relationship between the pre-stored type and the affected sub-transaction flow, and adjusts only the target sub-transaction flow affected by the change request, so that the resource utilization rate can be improved, and the resource waste is avoided.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (15)

1. A method for adjusting a process, the method comprising:
receiving a change request carrying a target transaction identifier, target adjustment information and an information type of the target adjustment information, and acquiring each sub-transaction flow stored aiming at the target transaction identifier;
determining a target sub-transaction process corresponding to the information type according to a pre-stored corresponding relationship between the type and the affected sub-transaction process;
acquiring a target type which is stored in advance correspondingly to the target sub-transaction flow and the information type; and adjusting the information corresponding to the target type in the processing result corresponding to the target sub-transaction flow according to the target adjustment information.
2. The method according to claim 1, wherein the adjusting, according to the target adjustment information, information corresponding to the target type in the processing result corresponding to the target sub-transaction flow comprises:
acquiring a processing mode which is stored correspondingly to the target sub-transaction flow and the information type in advance;
processing the target adjustment information by adopting the processing mode to acquire target information;
and adjusting the information corresponding to the target type in the processing result corresponding to the target sub-transaction flow into the target information.
3. The method according to claim 1, wherein the determining the target sub-transaction process corresponding to the information type according to the pre-stored correspondence between the type and the affected sub-transaction process comprises:
determining each candidate sub-transaction flow corresponding to the information type according to the corresponding relation between the pre-stored type and the affected sub-transaction flow;
and determining the executed sub-transaction process in each candidate sub-transaction process as a target sub-transaction process.
4. The method according to claim 3, wherein after obtaining each sub-transaction flow saved for the target transaction identifier, and before determining the target sub-transaction flow corresponding to the information type according to the correspondence between the pre-saved type and the affected sub-transaction flow, the method further comprises:
if the executed sub-transaction process exists in each sub-transaction process, the executed sub-transaction process is terminated.
5. The method of claim 4, further comprising:
the terminated sub-transaction flow is determined to be an unexecuted sub-transaction flow.
6. The method of claim 1, further comprising:
if the unexecuted sub-transaction flows exist in each sub-transaction flow, each unexecuted sub-transaction flow is sequentially acquired according to the execution sequence of the pre-saved sub-transaction flows, each sub-transaction flow saved for the unexecuted sub-transaction flow is sequentially acquired for each unexecuted sub-transaction flow, and the unexecuted sub-transaction flow is executed according to the processing result of each sub-transaction flow.
7. A process adjustment apparatus, comprising:
the system comprises a receiving and acquiring module, a processing module and a processing module, wherein the receiving and acquiring module is used for receiving a change request carrying a target transaction identifier, target adjustment information and an information type of the target adjustment information and acquiring each sub-transaction flow stored aiming at the target transaction identifier;
the determining module is used for determining a target sub-transaction process corresponding to the information type according to the corresponding relation between the pre-stored type and the affected sub-transaction process;
the processing module is used for acquiring a target type which is stored in advance correspondingly to the target sub-transaction flow and the information type; and adjusting the information corresponding to the target type in the processing result corresponding to the target sub-transaction flow according to the target adjustment information.
8. The apparatus according to claim 7, wherein the processing module is specifically configured to obtain a processing manner that is stored in advance in correspondence to the target sub-transaction flow and the information type; processing the target adjustment information by adopting the processing mode to acquire target information; and adjusting the information corresponding to the target type in the processing result corresponding to the target sub-transaction flow into the target information.
9. The apparatus according to claim 7, wherein the determining module is specifically configured to determine each candidate sub-transaction flow corresponding to the information type according to a pre-stored correspondence between the type and the affected sub-transaction flow; and determining the executed sub-transaction flow in each candidate sub-transaction flow as a target sub-transaction flow.
10. The apparatus of claim 9, wherein the processing module is further configured to terminate the executed sub-transaction flow if there is a sub-transaction flow being executed in each sub-transaction flow.
11. The apparatus of claim 10, wherein the processing module is further configured to determine the terminated sub-transaction flow as an unexecuted sub-transaction flow.
12. The apparatus according to claim 7, wherein the processing module is further configured to, if there are unexecuted sub-transaction flows in each of the sub-transaction flows, sequentially obtain each unexecuted sub-transaction flow according to an execution sequence of the pre-saved sub-transaction flows, sequentially obtain, for each unexecuted sub-transaction flow, each saved sub-transaction flow for the unexecuted sub-transaction flow, and execute the unexecuted sub-transaction flow according to a processing result of each of the sub-transaction flows.
13. An electronic device, characterized in that the electronic device comprises at least a processor and a memory, the processor being configured to implement the steps of the flow adjustment method according to any of the claims 1-6 when executing a computer program stored in the memory.
14. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the process adjustment method according to any one of claims 1 to 6.
15. A computer program product, characterized in that the computer program product comprises: computer program code for causing a computer to perform the steps of the process adjustment method according to any one of the preceding claims 1-6 when said computer program code is run on a computer.
CN202211522998.2A 2022-11-30 2022-11-30 Flow adjusting method, device, equipment and medium Pending CN115983991A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211522998.2A CN115983991A (en) 2022-11-30 2022-11-30 Flow adjusting method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211522998.2A CN115983991A (en) 2022-11-30 2022-11-30 Flow adjusting method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN115983991A true CN115983991A (en) 2023-04-18

Family

ID=85974859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211522998.2A Pending CN115983991A (en) 2022-11-30 2022-11-30 Flow adjusting method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115983991A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117172925B (en) * 2023-11-03 2024-02-20 建信金融科技有限责任公司 Transaction processing method, device, equipment and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117172925B (en) * 2023-11-03 2024-02-20 建信金融科技有限责任公司 Transaction processing method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN107153646B (en) Data processing method and equipment
CN111030983B (en) Data processing method and device based on distributed distribution and related equipment
CN115983991A (en) Flow adjusting method, device, equipment and medium
CN112258188B (en) Processing method, device, equipment and system for block chain transaction
WO2021073096A1 (en) Resource data transfer method and device, and blockchain system
CN111400283B (en) Data processing method, system, electronic equipment and storage medium
CN111177262A (en) Block chain consensus method, related device and system
CN115578180A (en) Bank outlet cash resource management method and device
CN112651685B (en) Automatic bin supplementing method and system for value-added tax electronic invoice
CN111367694B (en) Event processing method, server and computer storage medium
CN112541810A (en) Risk handling method and device for business data and computer readable storage medium
CN112308622A (en) Data processing method and device for virtual object, storage medium and electronic equipment
CN111738855A (en) Intelligent contract management method and device
CN111666132A (en) Distributed transaction implementation method, device, computer system and readable storage medium
CN109255702B (en) Method and device for changing account opening mechanism
CN111768293B (en) Transaction information processing method, device, equipment and storage medium
CN112650911A (en) Service message issuing method, device, computer equipment and storage medium
CN115564553A (en) Method, device and equipment for correcting resource scheduling record and storage medium
CN109254768B (en) Method for acquiring certificate making information, terminal equipment and medium
CN116827704A (en) Data transmission method, device, equipment and medium
CN115695556A (en) Service distribution method and device, storage medium and computer equipment
CN116109405A (en) Credit card business data authorization method and device based on scenerization parameter system
CN117455469A (en) Resource processing method and device, storage medium and electronic equipment
CN115907999A (en) Data processing method, device, equipment and medium
CN115456785A (en) Account data supervision method and device

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