CN117632140B - Business process processing method, device and storage medium - Google Patents
Business process processing method, device and storage medium Download PDFInfo
- Publication number
- CN117632140B CN117632140B CN202311680549.5A CN202311680549A CN117632140B CN 117632140 B CN117632140 B CN 117632140B CN 202311680549 A CN202311680549 A CN 202311680549A CN 117632140 B CN117632140 B CN 117632140B
- Authority
- CN
- China
- Prior art keywords
- processor
- processing
- data
- context object
- context
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 69
- 230000008569 process Effects 0.000 title claims abstract description 54
- 238000003860 storage Methods 0.000 title claims abstract description 18
- 238000003672 processing method Methods 0.000 title claims abstract description 17
- 238000012545 processing Methods 0.000 claims abstract description 180
- 238000013524 data verification Methods 0.000 claims abstract description 19
- 238000012795 verification Methods 0.000 claims description 34
- 238000004590 computer program Methods 0.000 claims description 18
- 238000005096 rolling process Methods 0.000 claims description 8
- 230000008859 change Effects 0.000 claims description 4
- 238000011161 development Methods 0.000 abstract description 10
- 238000012360 testing method Methods 0.000 abstract description 10
- 238000010586 diagram Methods 0.000 description 4
- 238000005111 flow chemistry technique Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 238000007726 management method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000013502 data validation Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000011165 process development Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/43—Checking; Contextual analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/466—Transaction processing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a business process processing method, a device and a storage medium, wherein the method comprises the following steps: responding to a request processed by the business process, wherein the request comprises at least one request data, and each request data is respectively converted into a context object; inputting the context objects into a processor list in sequence to perform execution operation of data processing; the processor list comprises a plurality of processor groups; each processor group comprises a first processor and a second processor; the first processor is used for carrying out data verification on the context object; the second processor is used for performing data operation on the context object; each time the execution operation of a first context object in the processor list is successful, the first context object is submitted to the transaction; or after the execution operation of all the context objects in the processor list is successful, submitting all the context objects for transactions so as to improve the development efficiency of the business processing flow and reduce the test complexity.
Description
Technical Field
The present invention relates to the field of application service development technologies, and in particular, to a business process processing method, a device, and a storage medium.
Background
Currently, most business processing flows of Java application services are controlled in the application services through code logic based on business rules, or flow routing or state conversion is performed through business rule configuration. Since data verification of business operations involves business contexts, it cannot be solved by simple configuration. If each service flow needs to implement the data validity verification rule by itself, a large number of repeated verification logics exist in different service processing processes: such as instruction issue, instruction modification, belong to two different business operations, but both require verification of the validity of the instruction data, and the verification rules of both for the instruction data should be kept consistent. When the follow-up business flow is changed, repeated codes bring a large number of code reconstruction, and the data volume of development and test work is increased.
In addition, in the batch business processing process, two types of transaction control granularity mainly exist: processing by pen and processing by batch. In the processing process of each business request, each business request is used as a transaction, and is not influenced by the processing results of other requests. In the batch processing, as long as one request fails, the whole batch of data processing fails. In the existing business process processing method, a unified business process processing frame does not exist, different business processes are required to be developed according to different business processing rules and transaction control logic, the testing complexity is high, and the business process development efficiency is low.
Disclosure of Invention
The invention provides a business process processing method, a business process processing device and a storage medium, which are used for improving the development efficiency of business process and reducing the test complexity.
The invention provides a business process processing method, which comprises the following steps:
Responding to a request processed by a business process, wherein the request comprises at least one request data, and each request data is respectively converted into a context object to obtain a plurality of context objects; inputting the context objects into a processor list in sequence to perform execution operation of data processing; the processor list comprises a plurality of processor groups; each processor group comprises a first processor and a second processor; the first processor is used for performing data verification on the context object; the second processor is used for performing data operation on the context object;
each time a first context object is successfully executed in the processor list, performing transaction commit on the first context object; or when all the context objects in the processor list are successfully executed, performing transaction commit on all the context objects.
Further, the executing operation of sequentially inputting the context objects into the processor list for data processing specifically includes:
Inputting the context objects into a processor group in a processor list in sequence, so that the processor group performs data verification on the context objects by using a first processor, after the data verification is successful, starting corresponding transactions, and performing data operation on the context objects by using a second processor in the transactions;
the first processor comprises a plurality of verification processing units, wherein each verification processing unit is used for verifying a business rule of the context object; the second processor comprises a plurality of service processing units, and each service processing unit is used for carrying out changing operation on one item of transaction data of the context object.
Further, the executing operation of sequentially inputting the context objects into the processor list for data processing further includes:
When any one of the verification processing units in the first processor group fails to verify the data of the context object, the execution operation of the data processing of the context object is terminated, the failure reason is recorded in the context object, and a failure result is returned.
Further, the executing operation of sequentially inputting the context objects into the processor list for data processing further includes:
When any service processing unit in the second processor group fails to change the context object, terminating the execution operation of the second processor group on the data processing of the context object, recording the failure reason in the context object, returning a failure result, and rolling back the executed processor in the second processor group;
Or terminating execution operations of all processor groups on data processing of the context object; the reason of failure is recorded in the context object, the failure result is returned, and the executed processors in all the processor groups are rolled back.
Further, the processing mode of the request data is pen-by-pen processing or batch processing, and specifically includes:
If the processing mode of the request data is the processing of each stroke, when the changing operation of any business processing unit in the second processor group to the context object fails, stopping the execution operation of the second processor group to the data processing of the context object, recording the failure reason in the context object, returning a failure result, and rolling back the executed processor in the second processor group;
If the processing mode of the request data is batch processing, when the changing operation of any business processing unit in the second processor group to the context object fails, stopping the executing operation of all the processor groups to the data processing of the context object; the reason of failure is recorded in the context object, the failure result is returned, and the executed processors in all the processor groups are rolled back.
Further, the processing mode of the request data is pen-by-pen processing or batch processing, and the method further comprises:
If the processing mode of the request data is pen-by-pen processing, each time after the execution operation of a first context object in the processor list is successful, carrying out transaction submission on the first context object;
if the processing mode of the request data is batch processing, after the execution operation of all the context objects in the processor list is successful, performing transaction submission on all the context objects.
Further, each request data is converted into a context object, so as to obtain a plurality of context objects, specifically:
According to the processing mode of the request data, converting each request data into a context object by utilizing a corresponding data converter; wherein, a processing mode of the request data corresponds to a preset data converter.
Further, the method further comprises the following steps:
converting the verification result or the operation result in each context object into an output result by using a data converter corresponding to each context object, and sending the output result to a front-end user or a background application service for display; the verification result is written into the context object by the first processor according to the execution condition, and the operation result is written into the context object by the second processor according to the execution condition.
As a preferred scheme, the invention constructs a unified business process processing framework, and a developer only needs to focus on the verification rule and the business rule and develop the verifier and the processing unit in the processor without paying attention to the transaction control processing logic. The invention encapsulates the atomic-level business verification and the data processing, and each processing unit can perform quick test verification through unit test, thereby solving the problems of data verification, flow control, transaction management and the like in the business processing flow, improving the development efficiency of the business processing flow and reducing the test complexity.
In addition, the verifier and the processor abstracted by the invention can support arrangement according to different business processes, thereby realizing multiplexing of verification logic and processing logic, effectively reducing repeated codes and improving development efficiency. The invention utilizes the processor to carry out transaction control on various business flow processes, simultaneously provides the business rollback capability, can reduce the development difficulty and improves the overall code quality.
Correspondingly, the invention also provides a business process processing device, which comprises: a data converter and a processing module;
The data converter is used for responding to a request of business process processing, the request comprises at least one request data, each request data is converted into a context object, and a plurality of context objects are obtained;
The processing module is used for sequentially inputting the context objects into a processor list to perform execution operation of data processing; the processor list comprises a plurality of processor groups; each processor group comprises a first processor and a second processor; the first processor is used for performing data verification on the context object; the second processor is used for performing data operation on the context object;
each time a first context object is successfully executed in the processor list, performing transaction commit on the first context object; or when all the context objects in the processor list are successfully executed, performing transaction commit on all the context objects.
Accordingly, the present invention also provides a computer-readable storage medium including a stored computer program; wherein, the computer program controls the equipment of the computer readable storage medium to execute a business flow processing method according to the invention when running.
Drawings
FIG. 1 is a flow diagram of an embodiment of a business process method provided by the present invention;
FIG. 2 is a schematic diagram of a flow template for pen-by-pen processing and batch-by-batch processing according to one embodiment of the business flow processing method provided by the present invention;
Fig. 3 is a schematic structural diagram of an embodiment of a business process processing device provided in the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
Referring to fig. 1, a business process processing method provided in an embodiment of the present invention includes steps S101 to S103:
step S101: responding to a request processed by a business process, wherein the request comprises at least one request data, and each request data is respectively converted into a context object to obtain a plurality of context objects;
in this embodiment, the request for processing the business process includes data that needs to be processed by the business process, and is typically uploaded by the user terminal or other application service. The terminal refers to hardware equipment such as a computer, a notebook and the like which are used for daily office work of a user. Other application services refer to background service applications developed in any programming language. The request of business process processing also comprises a processing mode of request data; the processing mode of the request data is pen-by-pen processing or batch processing;
further, each request data is converted into a context object, so as to obtain a plurality of context objects, specifically:
According to the processing mode of the request data, converting each request data into a context object by utilizing a corresponding data converter; wherein, a processing mode of the request data corresponds to a preset data converter.
As a preferred implementation manner, the embodiment respectively constructs two business process templates for two processing modes, and the template types are divided into a 'pen-by-pen processing process template' and a 'batch processing process template'. Which template is used specifically needs to consider the actual service scenario, and the template type can be configured for each service by programming or by parameter configuration. In practical application, corresponding flow templates are obtained from a template factory according to the processing mode of the request data for use.
Wherein each flow template requires a data Converter (Converter) required to specify the requests for business flow processing. The flow framework provides a Converter interface, and different business flows can be realized by providing corresponding data converters according to own request data.
The flow framework converts the request data (business data) into a Context object (Context) through a data Converter. For a single request containing multiple pieces of business data, one Context is generated per piece of business data. The Context is used as an input parameter of all processors (Handler) for the Handler to acquire service data from the Context for data verification or data operation.
Step S102: inputting the context objects into a processor list in sequence to perform execution operation of data processing; the processor list comprises a plurality of processor groups; each processor group comprises a first processor and a second processor; the first processor is used for performing data verification on the context object; the second processor is used for performing data operation on the context object;
further, the executing operation of sequentially inputting the context objects into the processor list for data processing specifically includes:
Inputting the context objects into a processor group in a processor list in sequence, so that the processor group performs data verification on the context objects by using a first processor, after the data verification is successful, starting corresponding transactions, and performing data operation on the context objects by using a second processor in the transactions;
the first processor comprises a plurality of verification processing units, wherein each verification processing unit is used for verifying a business rule of the context object; the second processor comprises a plurality of service processing units, and each service processing unit is used for carrying out changing operation on one item of transaction data of the context object.
Further, the executing operation of sequentially inputting the context objects into the processor list for data processing further includes:
When any one of the verification processing units in the first processor group fails to verify the data of the context object, the execution operation of the data processing of the context object is terminated, the failure reason is recorded in the context object, and a failure result is returned.
Further, the executing operation of sequentially inputting the context objects into the processor list for data processing further includes:
When any service processing unit in the second processor group fails to change the context object, terminating the execution operation of the second processor group on the data processing of the context object, recording the failure reason in the context object, returning a failure result, and rolling back the executed processor in the second processor group;
Or terminating execution operations of all processor groups on data processing of the context object; the reason of failure is recorded in the context object, the failure result is returned, and the executed processors in all the processor groups are rolled back.
Further, the processing mode of the request data is pen-by-pen processing or batch processing, and specifically includes:
If the processing mode of the request data is the processing of each stroke, when the changing operation of any business processing unit in the second processor group to the context object fails, stopping the execution operation of the second processor group to the data processing of the context object, recording the failure reason in the context object, returning a failure result, and rolling back the executed processor in the second processor group;
If the processing mode of the request data is batch processing, when the changing operation of any business processing unit in the second processor group to the context object fails, stopping the executing operation of all the processor groups to the data processing of the context object; the reason of failure is recorded in the context object, the failure result is returned, and the executed processors in all the processor groups are rolled back.
Step S103: each time a first context object is successfully executed in the processor list, performing transaction commit on the first context object; or when all the context objects in the processor list are successfully executed, performing transaction commit on all the context objects.
Further, the processing mode of the request data is pen-by-pen processing or batch processing, and the method further comprises:
If the processing mode of the request data is pen-by-pen processing, each time after the execution operation of a first context object in the processor list is successful, carrying out transaction submission on the first context object;
if the processing mode of the request data is batch processing, after the execution operation of all the context objects in the processor list is successful, performing transaction submission on all the context objects.
Further, the method further comprises the following steps:
converting the verification result or the operation result in each context object into an output result by using a data converter corresponding to each context object, and sending the output result to a front-end user or a background application service for display; the verification result is written into the context object by the first processor according to the execution condition, and the operation result is written into the context object by the second processor according to the execution condition.
As one embodiment, please refer to fig. 2, which is a schematic diagram of a flow template for pen-by-pen processing and batch processing; the pen-by-pen processing flow template comprises a plurality of first processors (VALIDATEHANDLER) and a plurality of second processors (BusinHandler), in this embodiment three VALIDATEHANDLER and six BusinHandler, and one VALIDATEHANDLER and two BusinHandler are arranged into a group to process data on one Context, and three groups are used as arranged Handler lists. BusinHandler and VALIDATEHANDLER both inherit the processor Handler. When the request processed by the business flow contains N business data, N contexts are generated and sequentially input into each processor group, and N is a positive integer. When N is greater than 3, three Context objects Context are input into the three processor sets respectively, and then the rest Context objects Context wait for the execution of the Context objects in the three processor sets, and when the idle processor sets exist, the rest Context objects are input into the idle processor sets for operation.
VALIDATEHANDLER is formed by assembling a plurality of verification processing units validators, each Validator is responsible for verifying a business rule, such as whether the data verification instruction issuing date is filled in, whether the corresponding market belongs to a transaction date, and the like. Different VALIDATEHANDLER can be constructed by arranging the validators to implement multiplexing of the verification logic.
BusinHandler are assembled from a plurality of service processing units processors, each Processor being responsible for atomic level transaction data change operations, i.e., database table maintenance operations, such as changing the instruction status fields of the instruction table. And starting the transaction by using TransactionTemplate of the Spring framework in BusinHandler, and executing the processors in the transaction respectively, so that the transaction consistency of all the Processor business processing operations is ensured, and the transaction consistency is not required among different handers. If abnormality or failure occurs in BusinHandler execution process, the framework can forward execute the rolling-back method of the Handler to ensure the final consistency of the service data.
The processing mode of the request processed by the business flow A is to process each time, and a processing flow module is selected each time; for each Context passing the data verification, each processor group respectively starts a transaction in BusinHandler, and three processor groups respectively start a transaction 1, a transaction 2 and a transaction 3; each time a first context object is successfully executed in a corresponding processor group BusinHandler, the processor group performs transaction commit on the first context object after the operation; if the business fails in the execution process, if a certain Processor is abnormal or returns a failure result, recording failure information in Context, terminating the processing of the business, and rolling back forward the Handler already executed on the business. The processing of each business data does not affect the processing results of other business data, namely, three states of successful whole execution, successful partial execution and failure whole execution exist in the flow template.
The processing mode of the request processed by the business flow B is according to batch processing, and a module according to batch processing flow is selected; for each Context that passes the data validation, all processor groups open a transaction inside BusinHandler; when all the context objects succeed in the BusinHandler execution operation in the corresponding processor group, all the processor groups carry out transaction submission on all the context objects after the operation; if a failure occurs during execution, the batch of business processes will be terminated while rolling back the already executed hander. Each service data processing result affects the processing results of other data, that is, in the flow template, all the service data processing results are not executed successfully, and all the service data processing results are not executed failed. There may not be a state in which the partial execution is successful.
In this embodiment, the data Converter converts the verification or processing result filled in the Context by the Handler into a unified output result Response for the front-end user or the background application service to determine the execution condition of the service processing request.
The implementation of the embodiment of the invention has the following effects:
The invention constructs a unified business process processing framework, and a developer only needs to focus on the verification rule and the business rule and develop the processing units in the verifier and the processor without paying attention to transaction control processing logic. The invention encapsulates the atomic-level business verification and the data processing, and each processing unit can perform quick test verification through unit test, thereby solving the problems of data verification, flow control, transaction management and the like in the business processing flow, improving the development efficiency of the business processing flow and reducing the test complexity.
In addition, the verifier and the processor abstracted by the invention can support arrangement according to different business processes, thereby realizing multiplexing of verification logic and processing logic, effectively reducing repeated codes and improving development efficiency. The invention utilizes the processor to carry out transaction control on various business flow processes, simultaneously provides the business rollback capability, can reduce the development difficulty and improves the overall code quality.
Example two
Referring to fig. 3, a business process processing device provided in an embodiment of the present invention includes: a data converter 201 and a processing module 202;
The data converter is used for responding to a request of business process processing, the request comprises at least one request data, each request data is converted into a context object, and a plurality of context objects are obtained;
The processing module is used for sequentially inputting the context objects into a processor list to perform execution operation of data processing; the processor list comprises a plurality of processor groups; each processor group comprises a first processor and a second processor; the first processor is used for performing data verification on the context object; the second processor is used for performing data operation on the context object;
each time a first context object is successfully executed in the processor list, performing transaction commit on the first context object; or when all the context objects in the processor list are successfully executed, performing transaction commit on all the context objects.
The data converter is also used for converting the verification result or the operation result in each context object into an output result, and sending the output result to a front-end user or a background application service for display; the verification result is written into the context object by the first processor according to the execution condition, and the operation result is written into the context object by the second processor according to the execution condition.
The business process processing device can implement the business process processing method of the method embodiment. The options in the method embodiments described above are also applicable to this embodiment and will not be described in detail here. The rest of the embodiments of the present application may refer to the content of the above method embodiments, and in this embodiment, no further description is given.
Example III
Correspondingly, the invention further provides a computer readable storage medium, which comprises a stored computer program, wherein when the computer program runs, the equipment where the computer readable storage medium is located is controlled to execute the business flow processing method according to any one of the embodiments.
The computer program may be divided into one or more modules/units, which are stored in the memory and executed by the processor to accomplish the present invention, for example. The one or more modules/units may be a series of computer program instruction segments capable of performing the specified functions, which instruction segments are used for describing the execution of the computer program in the terminal device.
The terminal equipment can be computing equipment such as a desktop computer, a notebook computer, a palm computer, a cloud server and the like. The terminal device may include, but is not limited to, a processor, a memory.
The Processor may be a central processing unit (Central Processing Unit, CPU), other general purpose Processor, digital signal Processor (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, which is a control center of the terminal device, and which connects various parts of the entire terminal device using various interfaces and lines.
The memory may be used to store the computer program and/or the module, and the processor may implement various functions of the terminal device by running or executing the computer program and/or the module stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the mobile terminal, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart memory card (SMART MEDIA CARD, SMC), secure Digital (SD) card, flash memory card (FLASH CARD), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
Wherein the terminal device integrated modules/units may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as stand alone products. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth.
The foregoing embodiments have been provided for the purpose of illustrating the general principles of the present invention, and are not to be construed as limiting the scope of the invention. It should be noted that any modifications, equivalent substitutions, improvements, etc. made by those skilled in the art without departing from the spirit and principles of the present invention are intended to be included in the scope of the present invention.
Claims (9)
1. A business process processing method, comprising:
Responding to a request processed by a business process, wherein the request comprises at least one request data, and each request data is respectively converted into a context object to obtain a plurality of context objects; inputting the context objects into a processor list in sequence to perform execution operation of data processing; the processor list comprises a plurality of processor groups; each processor group comprises a first processor and a second processor; the first processor is used for performing data verification on the context object; the second processor is used for performing data operation on the context object;
Each time a first context object is successfully executed in the processor list, performing transaction commit on the first context object; or after the execution operation of all the context objects in the processor list is successful, performing transaction commit on all the context objects;
converting the verification result or the operation result in each context object into an output result by using a data converter corresponding to each context object, and sending the output result to a front-end user or a background application service for display; the verification result is written into the context object by the first processor according to the execution condition, and the operation result is written into the context object by the second processor according to the execution condition.
2. The business process processing method of claim 1, wherein the executing operation of sequentially inputting the context object into the processor list for data processing comprises:
Inputting the context objects into a processor group in a processor list in sequence, so that the processor group performs data verification on the context objects by using a first processor, after the data verification is successful, starting corresponding transactions, and performing data operation on the context objects by using a second processor in the transactions;
the first processor comprises a plurality of verification processing units, wherein each verification processing unit is used for verifying a business rule of the context object; the second processor comprises a plurality of service processing units, and each service processing unit is used for carrying out changing operation on one item of transaction data of the context object.
3. The business process processing method of claim 2, wherein said sequentially inputting said context objects into a processor list for data processing execution operations further comprises:
When any one of the verification processing units in the first processor group fails to verify the data of the context object, the execution operation of the data processing of the context object is terminated, the failure reason is recorded in the context object, and a failure result is returned.
4. The business process processing method of claim 2, wherein said sequentially inputting said context objects into a processor list for data processing execution operations further comprises:
When any service processing unit in the second processor group fails to change the context object, terminating the execution operation of the second processor group on the data processing of the context object, recording the failure reason in the context object, returning a failure result, and rolling back the executed processor in the second processor group;
Or terminating execution operations of all processor groups on data processing of the context object; the reason of failure is recorded in the context object, the failure result is returned, and the executed processors in all the processor groups are rolled back.
5. The business process processing method of claim 4, wherein the processing mode of the request data is pen-by-pen processing or batch processing, and specifically comprises:
If the processing mode of the request data is the processing of each stroke, when the changing operation of any business processing unit in the second processor group to the context object fails, stopping the execution operation of the second processor group to the data processing of the context object, recording the failure reason in the context object, returning a failure result, and rolling back the executed processor in the second processor group;
If the processing mode of the request data is batch processing, when the changing operation of any business processing unit in the second processor group to the context object fails, stopping the executing operation of all the processor groups to the data processing of the context object; the reason of failure is recorded in the context object, the failure result is returned, and the executed processors in all the processor groups are rolled back.
6. The business process processing method of claim 5, wherein the processing mode of the request data is pen-by-pen processing or batch processing, further comprising:
If the processing mode of the request data is pen-by-pen processing, each time after the execution operation of a first context object in the processor list is successful, carrying out transaction submission on the first context object;
if the processing mode of the request data is batch processing, after the execution operation of all the context objects in the processor list is successful, performing transaction submission on all the context objects.
7. The business process processing method of claim 6, wherein each request data is converted into a context object to obtain a plurality of context objects, specifically:
According to the processing mode of the request data, converting each request data into a context object by utilizing a corresponding data converter; wherein, a processing mode of the request data corresponds to a preset data converter.
8. A business process processing apparatus, comprising: a data converter and a processing module;
The data converter is used for responding to a request of business process processing, the request comprises at least one request data, each request data is converted into a context object, and a plurality of context objects are obtained;
The processing module is used for sequentially inputting the context objects into a processor list to perform execution operation of data processing; the processor list comprises a plurality of processor groups; each processor group comprises a first processor and a second processor; the first processor is used for performing data verification on the context object; the second processor is used for performing data operation on the context object;
Each time a first context object is successfully executed in the processor list, performing transaction commit on the first context object; or after the execution operation of all the context objects in the processor list is successful, performing transaction commit on all the context objects;
converting the verification result or the operation result in each context object into an output result by using a data converter corresponding to each context object, and sending the output result to a front-end user or a background application service for display; the verification result is written into the context object by the first processor according to the execution condition, and the operation result is written into the context object by the second processor according to the execution condition.
9. A computer readable storage medium, wherein the computer readable storage medium comprises a stored computer program; wherein the computer program, when run, controls a device in which the computer readable storage medium is located to perform a business process processing method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311680549.5A CN117632140B (en) | 2023-12-07 | 2023-12-07 | Business process processing method, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311680549.5A CN117632140B (en) | 2023-12-07 | 2023-12-07 | Business process processing method, device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117632140A CN117632140A (en) | 2024-03-01 |
CN117632140B true CN117632140B (en) | 2024-07-05 |
Family
ID=90037431
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311680549.5A Active CN117632140B (en) | 2023-12-07 | 2023-12-07 | Business process processing method, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117632140B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113986941A (en) * | 2021-11-26 | 2022-01-28 | 中国银行股份有限公司 | Transaction batch processing method and device |
CN115756494A (en) * | 2022-12-14 | 2023-03-07 | 上海识装信息科技有限公司 | Business data processing method and device, electronic equipment and storage medium |
Family Cites Families (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090158246A1 (en) * | 2007-12-18 | 2009-06-18 | Kabira Technologies, Inc. | Method and system for building transactional applications using an integrated development environment |
US20130139164A1 (en) * | 2011-11-28 | 2013-05-30 | Sap Ag | Business Process Optimization |
US20130145371A1 (en) * | 2011-12-01 | 2013-06-06 | Sap Ag | Batch processing of business objects |
US20130159199A1 (en) * | 2011-12-14 | 2013-06-20 | Ulrich Keil | Correlation-based dynamic determination of transactional instance contexts |
US9250869B1 (en) * | 2012-03-30 | 2016-02-02 | Emc Corporation | Synchronous business process execution engine for action orchestration in a single execution transaction context |
CN103546440B (en) * | 2012-07-16 | 2016-10-12 | 上海宝信软件股份有限公司 | A kind of client initiates the affairs method and system of affairs |
CN103902560A (en) * | 2012-12-25 | 2014-07-02 | ***通信集团福建有限公司 | Distributed transaction processing method and system |
CN104967630B (en) * | 2014-04-10 | 2017-09-22 | 腾讯科技(深圳)有限公司 | The processing method and processing device of web access requests |
CN106775959B (en) * | 2016-12-06 | 2017-12-22 | 上海壹账通金融科技有限公司 | distributed transaction processing method and system |
CN109040029B (en) * | 2018-07-13 | 2021-03-12 | 上海点融信息科技有限责任公司 | Method and apparatus for executing transactions in a blockchain |
CN113326272A (en) * | 2020-02-29 | 2021-08-31 | 华为技术有限公司 | Distributed transaction processing method, device and system |
CN111488367B (en) * | 2020-04-16 | 2024-07-02 | 深圳前海微众银行股份有限公司 | Method, device, equipment and computer storage medium for realizing data consistency |
CN114816684A (en) * | 2022-05-06 | 2022-07-29 | 中国工商银行股份有限公司 | Business processing method, device, equipment, readable storage medium and product |
CN116881270A (en) * | 2023-07-24 | 2023-10-13 | 湖南快乐阳光互动娱乐传媒有限公司 | Method and device for guaranteeing consistency of message data |
-
2023
- 2023-12-07 CN CN202311680549.5A patent/CN117632140B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113986941A (en) * | 2021-11-26 | 2022-01-28 | 中国银行股份有限公司 | Transaction batch processing method and device |
CN115756494A (en) * | 2022-12-14 | 2023-03-07 | 上海识装信息科技有限公司 | Business data processing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN117632140A (en) | 2024-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108415832B (en) | Interface automation test method, device, equipment and storage medium | |
CN109582301B (en) | Service processing method, device, equipment and medium based on task scheduling system | |
CN108804140B (en) | Batch instruction analysis method, device and equipment | |
CN109614102A (en) | Code automatic generation method, device, electronic equipment and storage medium | |
CN106503974B (en) | Transaction data processing method and device | |
CN107016029B (en) | Method, device and system for processing service data | |
US8799861B2 (en) | Performance-testing a system with functional-test software and a transformation-accelerator | |
WO2021139778A1 (en) | System scheduling workflow generation method, system, apparatus, and computer readable storage medium | |
CN110716975A (en) | Data interface generation method and data interface sharing platform | |
CN112445866A (en) | Data processing method and device, computer readable medium and electronic equipment | |
CN110750440A (en) | Data testing method and terminal equipment | |
CN111190750B (en) | Data processing method and system | |
CN116820714A (en) | Scheduling method, device, equipment and storage medium of computing equipment | |
US20090248186A1 (en) | Methods and Systems for Matching Configurable Manufacturing Capacity Requirements and Availability | |
CN114661523A (en) | Data backup method, device, program product, medium and electronic equipment | |
CN117632140B (en) | Business process processing method, device and storage medium | |
CA3203549A1 (en) | Unified verification method, device, equipment and storage medium | |
CN109324838B (en) | Execution method and execution device of single chip microcomputer program and terminal | |
CN116594887A (en) | CFD software-based automatic test method and system | |
CN115934537A (en) | Interface test tool generation method, device, equipment, medium and product | |
CN112148762A (en) | Statistical method and device for real-time data stream | |
CN116226078A (en) | Data migration method, device, equipment and storage medium | |
CN111897728B (en) | Interface debugging method and related equipment | |
CN112953996B (en) | Service method and system thereof | |
CN111176588B (en) | Service bill issuing method, device, medium and electronic equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |