CN112435004A - Method and device for realizing service flow processing - Google Patents

Method and device for realizing service flow processing Download PDF

Info

Publication number
CN112435004A
CN112435004A CN202011310277.6A CN202011310277A CN112435004A CN 112435004 A CN112435004 A CN 112435004A CN 202011310277 A CN202011310277 A CN 202011310277A CN 112435004 A CN112435004 A CN 112435004A
Authority
CN
China
Prior art keywords
transaction
event
processing
business
state
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
CN202011310277.6A
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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN202011310277.6A priority Critical patent/CN112435004A/en
Publication of CN112435004A publication Critical patent/CN112435004A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Physics & Mathematics (AREA)
  • Operations Research (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application provides a method and a device for automatically processing a business process, which are used for processing business events in batches so as to improve the data processing performance of data when the concurrency is large. The method in the embodiment of the application comprises the following steps: dividing the service events inserted into the event pool into different types; in the event pool, marking the same type of service events without the transaction number as the same transaction number; marking the processing state of each type of business event in the event pool, wherein the processing state comprises idle and in-generation transaction; before processing the business event, updating the business event in an idle state into a generated transaction; and generating a voucher transaction by using multithreading to asynchronously trigger the business event of different transaction numbers in the 'generating transaction', wherein the voucher transaction is used for marking the start of the business event of different transaction numbers in the 'generating transaction'.

Description

Method and device for realizing service flow processing
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for implementing business process processing.
Background
In an ERP system, there are generally many business data, and these business data form different business processes, and in different industries, different customers often have different business processing process appeal. On one hand, the user-defined flow automation processing is solved, and on the other hand, the performance experience of the user under large concurrency is realized.
For the above situation, the main processing method at present is as follows:
on one hand, background processing is carried out on the service data, the matched service data is polled at regular time, and automatic processing is realized on the service data meeting the conditions; another aspect is to utilize MQs (message queues) to asynchronously trigger the processing of downstream events when processing upstream events.
In the above processing method, the data processing time is related to the time interval of the timed polling, so that the data processing is not timely, and when the polling is performed, the data of the related condition needs to be searched, the data amount of each polling is huge, and the performance consumption of the system is also large.
However, the processing mode of MQ is to process a piece of information, and when the concurrency is large, the messages in the message queue cannot be processed in time, and a large amount of messages can be backlogged in the MQ queue.
Disclosure of Invention
The embodiment of the application provides a method and a device for automatically processing a business process, which are used for processing business events in batches so as to improve the data processing performance of data when the concurrency is large.
A first aspect of an embodiment of the present application provides a method for automatically processing a business process, where the method includes:
dividing the service events inserted into the event pool into different types;
in the event pool, marking the same type of service events without the transaction number as the same transaction number;
marking the processing state of each type of business event in the event pool, wherein the processing state comprises idle and in-generation transaction;
before processing the business event, updating the business event in an idle state into a generated transaction;
and generating a voucher transaction by using multithreading to asynchronously trigger the business event of different transaction numbers in the 'generating transaction', wherein the voucher transaction is used for marking the start of the business event of different transaction numbers in the 'generating transaction'.
Preferably, the method further comprises:
in the event pool, the transaction state of each transaction number business event is marked by a transaction lock, and the transaction state comprises 'timeout' and 'in-process'.
Preferably, the method further comprises:
after the business event processing of different business numbers is finished, acquiring the business event in the 'overtime' state in the business processing lock;
acquiring the real processing state of the business event in the overtime state;
if the real processing state is 'normal processing', no processing is carried out;
and if the real processing state is 'processing error', triggering the service event corresponding to the transaction number to regenerate the certificate transaction.
Preferably, the method further comprises:
and when the processing of the business events with different transaction numbers is finished, deleting the corresponding business events in the event pool.
Preferably, the method further comprises:
if the voucher transaction is failed to generate, recording the failure times of the corresponding transaction number business event;
and if the failure times exceed the preset times, sending prompt information of manual intervention.
Preferably, in the event pool, marking the processing state of each type of service event includes:
in the event pool, the processing state of each type of business event is marked with a transaction generation lock.
A second aspect of the present application provides an apparatus for automatically processing a business process, including:
the classification unit is used for classifying the service events inserted into the event pool into different types;
a transaction number marking unit, configured to mark, in the event pool, a service event of the same type without a transaction number as the same transaction number;
a processing state marking unit, configured to mark, in the event pool, a processing state of each type of service event, where the processing state includes "idle" and "in-generated transaction";
a state updating unit, configured to update a service event in an "idle" state to a "generated transaction" before the service event is processed;
and the generating unit is used for generating a voucher transaction by using a multithreading asynchronous trigger business event of different transaction numbers in a 'generating transaction', and the voucher transaction is used for marking the start of processing of the business event of the different transaction numbers in the 'generating transaction'.
Preferably, the apparatus further comprises:
and the transaction processing lock unit is used for marking the transaction processing state of each transaction number business event by using the transaction processing lock in the event pool, and the transaction processing state comprises 'overtime' and 'processing'.
Preferably, the apparatus further comprises:
the acquiring unit is used for acquiring the business event in the overtime state in the business processing lock after the business event processing of different business numbers is finished;
acquiring the real processing state of the business event in the overtime state;
if the real processing state is 'normal processing', no processing is carried out;
and if the real processing state is 'processing error', triggering the service event corresponding to the transaction number to regenerate the certificate transaction.
Preferably, the apparatus further comprises:
and the deleting unit is used for deleting the corresponding business event in the event pool after the business events with different transaction numbers are processed.
Preferably, the apparatus further comprises:
the recording unit is used for recording the failure times of the corresponding transaction number business event if the voucher transaction is failed to generate;
and the sending unit is used for sending prompt information of manual intervention if the failure times exceed the preset times.
Preferably, the processing state marking unit is specifically configured to:
in the event pool, the processing state of each type of business event is marked with a transaction generation lock.
According to the technical scheme, the embodiment of the application has the following advantages:
in the embodiment of the application, the business events inserted into the event pool are divided into different types; in the event pool, marking the same type of service events without the transaction number as the same transaction number; marking the processing state of each type of business event in the event pool, wherein the processing state comprises idle and in-generation transaction; before processing the business event, updating the business event in an idle state into a generated transaction; and generating a voucher transaction by using multithreading to asynchronously trigger the business events of different transaction numbers in the 'generating transaction', wherein the voucher transaction is used for marking the business events of different transaction numbers to start processing. In the embodiment, the business events in the event pool are classified, and the classified business events are asynchronously triggered to generate the certificate transaction by multiple threads, so that the synchronous processing of a large number of business events is ensured, and the processing performance of a large number of business event data is improved.
Drawings
Fig. 1 is a schematic diagram of an embodiment of an automated business process processing method in an embodiment of the present application;
fig. 2 is a schematic diagram of another embodiment of an automated business process processing method in an embodiment of the present application;
FIG. 3 is a detailed step of step 103 in the embodiment of FIG. 1 in the present application;
fig. 4 is a schematic diagram of an embodiment of a business process automation processing apparatus in an embodiment of the present application.
Detailed Description
The embodiment of the application provides a method and a device for automatically processing a business process, which are used for processing business events in batches so as to improve the data processing performance of data when the concurrency is large.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. 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.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, the following describes a method for automatically processing a business process in an embodiment of the present application, and referring to fig. 1, an embodiment of the method for automatically processing a business process in an embodiment of the present application includes:
101. dividing the service events inserted into the event pool into different types;
different from the prior art, when a large amount of service data exists, a polling mechanism is adopted to execute background processing on the service data, so that the problems of untimely data processing and large system consumption are caused.
The method and the device perform classification on the business events in the event pool, and adopt a mode of processing batch business events simultaneously after classification to improve the processing performance of massive business data, specifically, the event pool refers to a storage space of the business events. If there are multiple payment approval and multiple reimbursement approval business events in the event pool, the multiple payment approval events can be divided into payment approval events, and the multiple reimbursement approval events can be divided into reimbursement approval events.
102. In the event pool, marking the same type of service events without the transaction number as the same transaction number;
and after the event is inserted into the event pool, marking the same type of service event without the current transaction number as the same transaction number, wherein the transaction number is an identification code for the same type of service event.
It should be noted that the same type of service event in the event pool may have different transaction numbers because the same type of service event is inserted into the event pool at different time points, and for the convenience of illustration, it can be referred to table 1.
TABLE 1
Event pool Event type Event(s) Transaction number
Payment approval 1 Examination and approval of payment Examination and approval 1 Affair 1
Payment approval 2 Examination and approval of payment Examination and approval 2 Affair 1
Payment approval 3 Examination and approval of payment Approval 3 Affair 2
Approval of reimbursement Approval of reimbursement Examination and approval 4 Air conditioner
In table 1, payment approval 2 and payment approval 3 all belong to the payment approval type event, but the transaction numbers of payment approval 1 and payment approval 2 are the same and are transaction 1, and the transaction number of payment approval 3 is transaction 3, because they are inserted into the event pool at different time points, resulting in different transaction numbers.
103. Marking the processing state of each type of business event in the event pool, wherein the processing state comprises idle and in-generation transaction;
to facilitate understanding of the processing state of each type of traffic event in the event pool, the processing state of each type of traffic event may be marked, wherein the processing state of each type of traffic event includes "idle" and "in generated transaction".
It should be noted that "idle" and "generating transaction" herein are only labels for two different processing states, and are not limitations on the processing states, and the processing states herein may be "first state" and "second state", as long as the labeling function can be performed.
104. Before processing the business event, updating the business event in an idle state into a generated transaction;
in order to realize accurate marking and identification of the state of a large amount of business data, before the business event is processed, the business event in the idle state can be updated to be in the generation transaction for accurately marking the processing state of the business event. Preferably, the state of the service event may be changed when it is ready to be processed.
105. And generating a voucher transaction by using multithreading to asynchronously trigger the business event of different transaction numbers in the 'generating transaction', wherein the voucher transaction is used for marking the start of the business event of different transaction numbers in the 'generating transaction'.
In order to improve the processing performance of large-batch business data, a multithreading is used for asynchronously triggering business events of different transaction numbers in 'generating transaction' to generate a certificate transaction, and the multithreading is used for ensuring the synchronous processing of the large-batch business event data.
In the embodiment of the application, the business events inserted into the event pool are divided into different types; in the event pool, marking the same type of service events without the transaction number as the same transaction number; marking the processing state of each type of business event in the event pool, wherein the processing state comprises idle and in-generation transaction; before processing the business event, updating the business event in an idle state into a generated transaction; and generating a voucher transaction by using multithreading to asynchronously trigger the business events of different transaction numbers in the 'generating transaction', wherein the voucher transaction is used for marking the business events of different transaction numbers to start processing. In the embodiment, the business events in the event pool are classified, and the classified business events are asynchronously triggered to generate the certificate transaction by multiple threads, so that the synchronous processing of a large number of business events is ensured, and the processing performance of a large number of business event data is improved.
Based on the embodiment shown in fig. 1, in order to ensure that the business event of each transaction number can be processed normally, the embodiment shown in fig. 1 may further include the following steps, and referring to fig. 2 in particular, another embodiment of an automated business process processing method in the embodiment of the present application includes:
201. in the event pool, marking the transaction processing state of each transaction number business event by using a transaction processing lock, wherein the transaction processing state comprises 'timeout' and 'in-process';
in order to ensure that each transaction number business event can be normally processed in the event pool, a transaction processing state of each transaction number business event can be further marked by using a transaction processing lock in the event pool, wherein the transaction processing state comprises 'overtime' and 'processing in', and the 'overtime' and 'processing in' are related to the processing duration of the business event, for example, the preset duration of normal processing of the business event can be set to be 1 minute, when the processing duration of the business event exceeds 1 minute, the state is marked as 'overtime', and when the processing duration of the business event is not more than 1 minute, the state is marked as 'processing in'.
It should be noted that the transaction state in the transaction lock is associated with each transaction number, and the event type of the non-transaction event, that is, the same type of transaction event, may be in different transaction states. Table 2 gives a schematic diagram of the transaction lock.
TABLE 2
Transaction number Transaction state
Affair 1 In the process of
Affair 2 Time-out
202. After the business event processing of different business numbers is finished, acquiring the business event in the 'overtime' state in the business processing lock;
in order to ensure that each business event can be processed normally, after the business event processing of different business numbers is finished, the business event in the overtime state in the business processing lock is further acquired so as to be used for judging the real processing state of the business event in the overtime state.
203. Acquiring the real processing state of the business event in the overtime state;
the two processing states corresponding to "timeout" and "in-process" described in step 201 are related to the processing duration of the service event, so the service event in the "timeout" state may be in normal processing or in a "processing error" state, and in order to ensure that the service event is processed normally, it is necessary to obtain the real processing state of the service event in the "timeout" state, and execute different steps according to the real processing state of the service event.
204. If the real processing state is 'normal processing', no processing is carried out;
if the real processing state of the business event in the overtime state is normal processing, the locking mechanism of the database can lock the business event, namely, the business event is not processed, so that the business event is continuously processed normally.
205. If the real processing state is 'processing error', triggering a business event corresponding to the transaction number to regenerate a certificate transaction;
if the real processing state of the business event in the overtime state is processing error, triggering the business event corresponding to the transaction number to regenerate the certificate transaction, namely triggering the business event corresponding to the transaction number to be processed again.
206. If the voucher transaction is failed to generate, recording the failure times of the corresponding transaction number business event;
if the transaction event corresponding to the transaction number fails to be generated during the process of repeatedly generating the credential transaction in step 205, the number of times of failure of the transaction event corresponding to the transaction number is recorded for executing step 207.
207. If the failure times exceed the preset times, sending prompt information of manual intervention;
if the failure times in step 206 exceed the preset times (the preset times support user-defined), if 5 times, sending a prompt message of manual intervention, so that the service event is manually processed in time.
208. When the processing of the business events with different transaction numbers is finished, deleting the corresponding business events in the event pool;
and when the service events with different transaction numbers are normally processed, deleting the corresponding service events in the event pool in time.
In the embodiment of the application, the transaction processing state of the business event is marked by using a transaction processing lock mechanism so as to obtain the real processing state of each business event in real time, and when the business event is overtime processed, the real reason of the overtime processing of the business event is timely obtained so as to ensure that the business event with processing error can be timely processed, finally, the failure times of the business event with repeatedly generated certificate transaction failure are recorded, and when the failure times exceed the preset times, prompt information of manual intervention is sent, so that each business event is further ensured to be processed in time, namely, the authenticity and consistency of the processing state of the business event are ensured through a multi-layer guarantee mechanism and a database transaction mechanism.
Based on the embodiment described in fig. 1, in order to quickly acquire the processing status of each type of service event, the following steps may also be performed, please refer to fig. 3, where fig. 3 is a detailed step of step 103 in the embodiment of fig. 1:
301. in the event pool, the processing state of each type of business event is marked with a transaction generation lock.
Specifically, in the event pool, in order to facilitate to obtain the processing state of each type of service event in time and to facilitate to change the service event in the "idle" state to "service processing" before service processing, the processing state of each type of service event may be marked by using the transaction generation lock, so that the processing state of each type of service event may be obtained in time through the transaction generation lock, and for ease of understanding, table 3 provides a schematic diagram of the transaction generation lock.
The processing state of the business event in the business generation lock is related to the business type, namely the processing state of each type of business event is the same, so that the same type of business events are processed simultaneously, and the processing efficiency of the same type of business events is improved.
TABLE 3
Transaction type Processing state
Examination and approval of payment In generating transactions
Approval of reimbursement Is idle
In this embodiment, the transaction generation lock mechanism is used to mark the processing state of each type of service event, so as to quickly obtain the processing state of each type of service event in the event pool, and to improve the implementation efficiency of steps 104 and 105 in the embodiment shown in fig. 1.
With reference to fig. 4, the method for automatically processing a service flow in the embodiment of the present application is described above, and a device for automatically processing a service flow in the embodiment of the present application is described below, where an embodiment of the device for automatically processing a service flow in the embodiment of the present application includes:
a classifying unit 401, configured to classify the service events inserted in the event pool into different types;
a transaction number marking unit 402, configured to mark, in the event pool, a service event of the same type without a transaction number currently as the same transaction number;
a processing state marking unit 403, configured to mark, in the event pool, a processing state of each type of traffic event, where the processing state includes "idle" and "in-generated transaction";
a state updating unit 404, configured to update a service event in an "idle" state to "in generating a transaction" before the service event is processed;
a generating unit 405, configured to asynchronously trigger a service event of a different transaction number in a "generating transaction" to generate a credential transaction, where the credential transaction is used to mark a start of processing of the service event of the different transaction number in the "generating transaction".
Preferably, the apparatus further comprises:
a transaction lock unit 406, configured to mark, in the event pool, a transaction state of each transaction number business event with a transaction lock, where the transaction state includes "timeout" and "in process".
Preferably, the apparatus further comprises:
an obtaining unit 407, configured to obtain, after the service event processing of different transaction numbers is finished, a service event in an "overtime" state in the transaction processing lock;
acquiring the real processing state of the business event in the overtime state;
if the real processing state is 'normal processing', no processing is carried out;
and if the real processing state is 'processing error', triggering the service event corresponding to the transaction number to regenerate the certificate transaction.
Preferably, the apparatus further comprises:
a deleting unit 408, configured to delete, in the event pool, a corresponding service event after the service event processing of different transaction numbers is completed.
Preferably, the apparatus further comprises:
a recording unit 409, configured to record, if the credential transaction generation fails, the failure times of the service event corresponding to the transaction number;
a sending unit 410, configured to send a prompt message of manual intervention if the failure times exceed the preset times.
Preferably, the processing status marking unit 403 is specifically configured to:
in the event pool, the processing state of each type of business event is marked with a transaction generation lock.
It should be noted that the functions of the above units are similar to those described in the embodiment of fig. 1 to 3, and are not described again here.
In the embodiment of the present application, the classifying unit 401 divides the service events inserted into the event pool into different types; the transaction number marking unit 402 is configured to mark, in the event pool, a service event of the same type without a transaction number currently as the same transaction number; the processing state marking unit 403 is configured to mark, in the event pool, a processing state of each type of traffic event, where the processing state includes "idle" and "in-generated transaction"; the state updating unit 404 is configured to update the service event in the "idle" state to "in generating transaction" before the service event is processed; the generating unit 405 is configured to generate a credential transaction by using a multi-thread asynchronous trigger of a service event of a different transaction number, which is "in generating transaction", where the credential transaction is used to mark a start of a service event of the different transaction number. In the embodiment, the business events in the event pool are classified, and the classified business events are asynchronously triggered to generate the certificate transaction by multiple threads, so that the synchronous processing of a large number of business events is ensured, and the processing performance of a large number of business event data is improved.
The above describes the apparatus for automatically processing the service flow in the embodiment of the present application from the perspective of the modular functional entity, and the following describes the computer apparatus in the embodiment of the present application from the perspective of the hardware processing:
the computer device is used for realizing the function of the device side of the automatic processing of the business process, and one embodiment of the computer device in the embodiment of the application comprises the following steps:
a processor and a memory;
the memory is used for storing the computer program, and the processor is used for realizing the following steps when executing the computer program stored in the memory:
dividing the service events inserted into the event pool into different types;
in the event pool, marking the same type of service events without the transaction number as the same transaction number;
marking the processing state of each type of business event in the event pool, wherein the processing state comprises idle and in-generation transaction;
before processing the business event, updating the business event in an idle state into a generated transaction;
and generating a voucher transaction by using multithreading to asynchronously trigger the business event of different transaction numbers in the 'generating transaction', wherein the voucher transaction is used for marking the start of the business event of different transaction numbers in the 'generating transaction'.
In some embodiments of the present application, the processor may be further configured to:
in the event pool, the transaction state of each transaction number business event is marked by a transaction lock, and the transaction state comprises 'timeout' and 'in-process'.
In some embodiments of the present application, the processor may be further configured to:
after the business event processing of different business numbers is finished, acquiring the business event in the 'overtime' state in the business processing lock;
acquiring the real processing state of the business event in the overtime state;
if the real processing state is 'normal processing', no processing is carried out;
and if the real processing state is 'processing error', triggering the service event corresponding to the transaction number to regenerate the certificate transaction.
In some embodiments of the present application, the processor may be further configured to:
and when the processing of the business events with different transaction numbers is finished, deleting the corresponding business events in the event pool.
In some embodiments of the present application, the processor may be further configured to:
if the voucher transaction is failed to generate, recording the failure times of the corresponding transaction number business event;
and if the failure times exceed the preset times, sending prompt information of manual intervention.
In some embodiments of the present application, the processor may be further configured to:
in the event pool, the processing state of each type of business event is marked with a transaction generation lock.
It is to be understood that, when the processor in the computer apparatus described above executes the computer program, the functions of each unit in the corresponding apparatus embodiments may also be implemented, and are not described herein again. Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory and executed by the processor to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program in the business process automation processing device. For example, the computer program may be divided into units in the above-described business process automation processing apparatus, and each unit may implement a specific function as described in the above-described corresponding business process automation processing apparatus.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing equipment. The computer device may include, but is not limited to, a processor, a memory. It will be appreciated by those skilled in the art that the processor, memory are merely examples of a computer apparatus and are not meant to be limiting, and that more or fewer components may be included, or certain components may be combined, or different components may be included, for example, the computer apparatus may also include input output devices, network access devices, buses, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable gate array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like which is the control center for the computer device and which connects the various parts of the overall computer device using various interfaces and lines.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the computer device by running or executing the computer programs and/or modules 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 terminal, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The present application also provides a computer-readable storage medium for implementing the functions of a traffic flow automation processing apparatus, having a computer program stored thereon, which, when executed by a processor, the processor is operable to perform the steps of:
dividing the service events inserted into the event pool into different types;
in the event pool, marking the same type of service events without the transaction number as the same transaction number;
marking the processing state of each type of business event in the event pool, wherein the processing state comprises idle and in-generation transaction;
before processing the business event, updating the business event in an idle state into a generated transaction;
and generating a voucher transaction by using multithreading to asynchronously trigger the business event of different transaction numbers in the 'generating transaction', wherein the voucher transaction is used for marking the start of the business event of different transaction numbers in the 'generating transaction'.
In some embodiments of the present application, the computer program stored on the computer-readable storage medium, when executed by the processor, may be specifically configured to perform the following steps:
in the event pool, the transaction state of each transaction number business event is marked by a transaction lock, and the transaction state comprises 'timeout' and 'in-process'.
In some embodiments of the present application, the computer program stored on the computer-readable storage medium, when executed by the processor, may be specifically configured to perform the following steps:
after the business event processing of different business numbers is finished, acquiring the business event in the 'overtime' state in the business processing lock;
acquiring the real processing state of the business event in the overtime state;
if the real processing state is 'normal processing', no processing is carried out;
and if the real processing state is 'processing error', triggering the service event corresponding to the transaction number to regenerate the certificate transaction.
In some embodiments of the present application, the computer program stored on the computer-readable storage medium, when executed by the processor, may be specifically configured to perform the following steps:
and when the processing of the business events with different transaction numbers is finished, deleting the corresponding business events in the event pool.
In some embodiments of the present application, the computer program stored on the computer-readable storage medium, when executed by the processor, may be specifically configured to perform the following steps:
if the voucher transaction is failed to generate, recording the failure times of the corresponding transaction number business event;
and if the failure times exceed the preset times, sending prompt information of manual intervention.
In some embodiments of the present application, the computer program stored on the computer-readable storage medium, when executed by the processor, may be specifically configured to perform the following steps:
in the event pool, the processing state of each type of business event is marked with a transaction generation lock.
It will be appreciated that the integrated units, if implemented as software functional units and sold or used as a stand-alone product, may be stored in a corresponding one of the computer readable storage media. Based on such understanding, all or part of the flow of the method according to the above embodiments may be implemented by a computer program, which may be stored in a computer-readable storage medium and used by a processor to implement the steps of the above embodiments of the method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A method for automated processing of business processes, the method comprising:
dividing the service events inserted into the event pool into different types;
in the event pool, marking the same type of service events without the transaction number as the same transaction number;
marking the processing state of each type of business event in the event pool, wherein the processing state comprises idle and in-generation transaction;
before processing the business event, updating the business event in an idle state into a generated transaction;
and generating a voucher transaction by using multithreading to asynchronously trigger the business event of different transaction numbers in the 'generating transaction', wherein the voucher transaction is used for marking the start of the business event of different transaction numbers in the 'generating transaction'.
2. The method of claim 1, further comprising:
in the event pool, the transaction state of each transaction number business event is marked by a transaction lock, and the transaction state comprises 'timeout' and 'in-process'.
3. The method of claim 2, further comprising:
after the business event processing of different business numbers is finished, acquiring the business event in the 'overtime' state in the business processing lock;
acquiring the real processing state of the business event in the overtime state;
if the real processing state is 'normal processing', no processing is carried out;
and if the real processing state is 'processing error', triggering the service event corresponding to the transaction number to regenerate the certificate transaction.
4. The method according to any one of claims 1 to 3, further comprising:
and when the processing of the business events with different transaction numbers is finished, deleting the corresponding business events in the event pool.
5. The method of claim 4, further comprising:
if the voucher transaction is failed to generate, recording the failure times of the corresponding transaction number business event;
and if the failure times exceed the preset times, sending prompt information of manual intervention.
6. The method of claim 5, wherein marking the processing status of each type of traffic event in the event pool comprises:
in the event pool, the processing state of each type of business event is marked by a transaction generation lock.
7. An apparatus for automated processing of a business process, the apparatus comprising:
the classification unit is used for classifying the service events inserted into the event pool into different types;
a transaction number marking unit, configured to mark, in the event pool, a service event of the same type without a transaction number as the same transaction number;
a processing state marking unit, configured to mark, in the event pool, a processing state of each type of service event, where the processing state includes "idle" and "in-generated transaction";
a state updating unit, configured to update a service event in an "idle" state to a "generated transaction" before the service event is processed;
and the generating unit is used for generating a voucher transaction by using a multithreading asynchronous trigger business event of different transaction numbers in a 'generating transaction', and the voucher transaction is used for marking the start of processing of the business event of the different transaction numbers in the 'generating transaction'.
8. The apparatus of claim 7, further comprising:
and the transaction processing lock unit is used for marking the transaction processing state of each transaction number business event by using the transaction processing lock in the event pool, and the transaction processing state comprises 'overtime' and 'processing'.
9. A computer arrangement comprising a processor, wherein the processor, when executing a computer program stored on a memory, is configured to implement a method of traffic flow automation processing according to any one of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, is adapted to carry out the method of traffic flow automation processing according to any one of claims 1 to 6.
CN202011310277.6A 2020-11-20 2020-11-20 Method and device for realizing service flow processing Pending CN112435004A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011310277.6A CN112435004A (en) 2020-11-20 2020-11-20 Method and device for realizing service flow processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011310277.6A CN112435004A (en) 2020-11-20 2020-11-20 Method and device for realizing service flow processing

Publications (1)

Publication Number Publication Date
CN112435004A true CN112435004A (en) 2021-03-02

Family

ID=74693128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011310277.6A Pending CN112435004A (en) 2020-11-20 2020-11-20 Method and device for realizing service flow processing

Country Status (1)

Country Link
CN (1) CN112435004A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008108046A (en) * 2006-10-25 2008-05-08 Hitachi Information Systems Ltd Transaction processing system, transaction processing method and program therefor
CN101216783A (en) * 2007-12-29 2008-07-09 中国建设银行股份有限公司 Process for optimizing ordering processing for multiple affairs
CN102098335A (en) * 2011-01-06 2011-06-15 北京物美商业集团股份有限公司 Method and device for handling synchronization transaction abnormity for intersystem integration
CN106933932A (en) * 2015-12-31 2017-07-07 华为软件技术有限公司 Data processing method, device and application server
WO2018103318A1 (en) * 2016-12-06 2018-06-14 上海壹账通金融科技有限公司 Distributed transaction handling method and system
CN110288255A (en) * 2019-06-28 2019-09-27 深圳前海微众银行股份有限公司 A kind of logistics method and device of distributed transaction
CN110321211A (en) * 2019-06-27 2019-10-11 上海数禾信息科技有限公司 Asynchronous schedule method and device for operation system
CN110968586A (en) * 2018-09-30 2020-04-07 北京国双科技有限公司 Distributed transaction processing method and device
CN111400330A (en) * 2020-03-13 2020-07-10 深圳前海微众银行股份有限公司 Task processing method, device, equipment and computer readable storage medium
CN111708617A (en) * 2020-06-12 2020-09-25 京东数字科技控股有限公司 Transaction processing method, device, equipment and computer readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008108046A (en) * 2006-10-25 2008-05-08 Hitachi Information Systems Ltd Transaction processing system, transaction processing method and program therefor
CN101216783A (en) * 2007-12-29 2008-07-09 中国建设银行股份有限公司 Process for optimizing ordering processing for multiple affairs
CN102098335A (en) * 2011-01-06 2011-06-15 北京物美商业集团股份有限公司 Method and device for handling synchronization transaction abnormity for intersystem integration
CN106933932A (en) * 2015-12-31 2017-07-07 华为软件技术有限公司 Data processing method, device and application server
WO2018103318A1 (en) * 2016-12-06 2018-06-14 上海壹账通金融科技有限公司 Distributed transaction handling method and system
CN110968586A (en) * 2018-09-30 2020-04-07 北京国双科技有限公司 Distributed transaction processing method and device
CN110321211A (en) * 2019-06-27 2019-10-11 上海数禾信息科技有限公司 Asynchronous schedule method and device for operation system
CN110288255A (en) * 2019-06-28 2019-09-27 深圳前海微众银行股份有限公司 A kind of logistics method and device of distributed transaction
CN111400330A (en) * 2020-03-13 2020-07-10 深圳前海微众银行股份有限公司 Task processing method, device, equipment and computer readable storage medium
CN111708617A (en) * 2020-06-12 2020-09-25 京东数字科技控股有限公司 Transaction processing method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN111274052A (en) Data distribution method, server, and computer-readable storage medium
CN106126403B (en) Oracle database failure analysis methods and device
CN110688828A (en) File processing method and device, file processing system and computer equipment
CN110347888B (en) Order data processing method and device and storage medium
CN111399909A (en) Service system data distribution processing method, device and storage medium
CN113688923A (en) Intelligent order abnormity detection method and device, electronic equipment and storage medium
CN110751376B (en) Work order distribution scheduling method and device, computer equipment and storage medium
CN112667476A (en) Task-based message filtering method, device, equipment and storage medium
CN108805725B (en) Risk event confirmation method, server, and computer-readable storage medium
WO2019100684A1 (en) Electronic apparatus, credit investigation data processing method and system, and storage medium
CN113190381A (en) Data backup method, system, device and storage medium
CN112435004A (en) Method and device for realizing service flow processing
CN116361571A (en) Artificial intelligence-based merchant portrait generation method, device, equipment and medium
CN108460078B (en) Auxiliary function execution method and device, storage medium and terminal
CN107464088B (en) Service processing system and method based on message queue
CN115643172A (en) Abnormity detection method, abnormity detection device, terminal equipment and storage medium
CN112070469B (en) Method, system, terminal equipment and storage medium for optimizing service handling time
CN109754189A (en) A kind of distribution method of fabrication task, a kind of acquisition methods, computer installation and the computer readable storage medium of fabrication task
CN114297212A (en) Method and system for generating certificate number
CN116433197B (en) Information reporting method, device, reporting end and storage medium
CN109584087B (en) Information processing method, device and storage medium
CN114996095A (en) Log recording method, log recorder and storage medium
CN114971890A (en) Channel-based multi-rule automatic order dispatching method, device, equipment and medium
CN115496599A (en) Taken position analysis method and system and computer equipment
US20220391792A1 (en) Extraction device, extraction method, and extraction program

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