Order flow processing method and device, equipment and storage medium

By writing the target task information of the subprocess to be added in the task queue, the processing node is made to execute the subprocess to be added and execute the subsequent subprocess after its execution is completed, the problem of insufficient flexibility in the order processing process in the prior art is solved, and higher flexibility and efficiency are achieved.

CN119624565APending Publication Date: 2025-03-14CHINA UNITED NETWORK COMM GRP CO LTD +2
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311182314.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-13
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

In the prior art, the order processing process is less flexible and difficult to adapt to complex needs.

Method used

By receiving the addition process instructions sent by the terminal device, the task status of the order characteristics and the pre-subprocess in the task queue are obtained. When the task status is completed, the target task information of the subprocess to be added is written to the task queue, so that the processing node can execute the subprocess to be added, and after its execution is completed, the order characteristics and subsequent subprocesses of the pre-subprocess are executed.

Benefits of technology

It realizes the addition of new processes to the existing processes, increases the flexibility of the order processing process, and does not affect the execution of existing processes and order processing performance, and has no impact on other processing nodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119624565A_ABST
    Figure CN119624565A_ABST
Patent Text Reader

Abstract

The invention provides an order flow processing method and device, equipment and a storage medium. The method comprises the following steps: receiving a process adding instruction sent by terminal equipment, wherein the process adding instruction comprises order features, a to-be-added sub-process and a front sub-process; obtaining task states corresponding to the order features and the front sub-processes in the task queue; if the task state is completed, target task information corresponding to the to-be-added sub-process is written into the task queue, so that a processing node corresponding to the to-be-added sub-process reads the target task information, the to-be-added sub-process is executed according to the target task information, and the to-be-added sub-process is executed in response to the completion of execution of the to-be-added sub-process. Changing the task state of the target task information to be completed; and in response to the fact that the task state of the target task information is completed, executing the order feature and a subsequent sub-process corresponding to the front sub-process. According to the method, the technical problem that the flexibility of the current order processing process is relatively low is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing and big data technology, and in particular to an order process processing method, device, equipment and storage medium. Background Art

[0002] Currently, with the continuous development of e-commerce, mobile payment, cloud computing and other fields, a large number of service or physical goods order processing can be handled through the Internet.

[0003] At present, in the prior art, order processing is completed by creating a processing flow corresponding to the order and executing the processing flow.

[0004] However, the inventors have discovered that the prior art has at least the following technical problems: the current order processing process has low flexibility. Summary of the invention

[0005] The present application provides an order process processing method, device, equipment and storage medium to solve the technical problem of low flexibility in the current order processing process.

[0006] In the first aspect, the present application provides an order process processing method, which is applied to a process processing unit, including: receiving an add process instruction sent by a terminal device, wherein the add process instruction includes order characteristics, a sub-process to be added, and a preceding sub-process; obtaining the task status corresponding to the order characteristics and the preceding sub-process in the task queue; if the task status is completed, writing the target task information corresponding to the sub-process to be added into the task queue, so that the processing node corresponding to the sub-process to be added reads the target task information, and executes the sub-process to be added according to the target task information, and in response to the completion of the execution of the sub-process to be added, changing the task status of the target task information to completed; in response to the task status of the target task information being completed, executing the subsequent sub-process corresponding to the order characteristics and the preceding sub-process.

[0007] In one possible implementation, executing a subsequent sub-process corresponding to the order features and the preceding sub-process includes: obtaining the post-sub-process corresponding to the order features and the preceding sub-process; determining the task information corresponding to the post-sub-process; writing the task information corresponding to the post-sub-process into a task queue, so that the node corresponding to the post-sub-process reads the task information corresponding to the post-sub-process and executes the post-sub-process, and in response to the end of the execution of the post-sub-process, changing the task status corresponding to the post-sub-process to completed; in response to the task status corresponding to the post-sub-process being changed to completed, determining the order features and the post-sub-process corresponding to the new post-sub-process, and re-executing the steps from determining the task information to changing the task status, until all sub-processes corresponding to the order features are completed.

[0008] In a possible implementation, writing the target task information corresponding to the sub-process to be added into the task queue includes: determining the process type of the sub-process to be added; determining the task queue corresponding to the process type as the target queue; and writing the target task information corresponding to the sub-process to be added into the target queue.

[0009] In a possible implementation, before receiving the add process instruction sent by the terminal device, it also includes: receiving order creation information sent by the terminal device; obtaining the target order process corresponding to the order creation information, wherein the target order process includes at least one sub-process; determining the first sub-process in the target order process as the pending process; writing the task information corresponding to the pending process into the task queue, so that the processing node corresponding to the pending process reads the task information corresponding to the pending process in the task queue, and executes the pending process according to the task information corresponding to the pending process.

[0010] In a possible implementation, after writing the task information corresponding to the pending process into the task queue, it also includes: collecting the task status corresponding to each task information in the task queue; if the task status corresponding to any task information changes from being executed to failed execution, adding n to the number of failures corresponding to any task information, and changing the task status corresponding to any task information to pending execution, so that the corresponding processing node re-reads any task information and executes the corresponding sub-process, where n is a positive integer; if the number of failures corresponding to any task information is greater than a preset value, outputting order processing failure information.

[0011] In a possible implementation, after collecting the task status corresponding to each task information in the task queue, it also includes: if the task status corresponding to any task information changes from being executed to failed execution, any task information is sent to the monitoring terminal so that the monitoring terminal outputs any task information, receives the editing of any task information by the staff, and obtains new task information; receives the new task information sent by the monitoring terminal; writes the new task information into the task queue so that the processing node re-executes the corresponding sub-process according to the new task information.

[0012] In a possible implementation, after writing the task information corresponding to the process to be processed into the task queue, it also includes: receiving an order query instruction sent by the query terminal, wherein the order query instruction includes target order characteristics; searching for task information corresponding to the target order characteristics in the task queue; determining unfinished sub-processes based on the task information corresponding to the target order characteristics; generating task status information based on the unfinished sub-processes; and sending the task status information to the query terminal.

[0013] In the second aspect, the present application provides an order process processing method, which is applied to a processing node, including: reading target task information corresponding to the sub-process to be added, wherein the sub-process to be added is the process management unit obtaining the task status corresponding to the order characteristics and the preceding sub-process in the task queue, and writing it into the task queue when the task status is completed, and the order characteristics, the sub-process to be added and the preceding sub-process are obtained by the process management unit receiving the add process instruction sent by the terminal device; executing the sub-process to be added according to the target task information; in response to the completion of the execution of the sub-process to be added, changing the task status of the target task information to completed, so that the process management unit executes the subsequent sub-process corresponding to the order characteristics and the preceding sub-process in response to the task status of the target task information being completed.

[0014] In the third aspect, the present application provides an order process processing device, including: an instruction receiving module, used to receive an add process instruction sent by a terminal device, wherein the add process instruction includes order characteristics, a sub-process to be added, and a preceding sub-process; a status acquisition module, used to obtain the task status corresponding to the order characteristics and the preceding sub-process in the task queue; an information writing module, used to write the target task information corresponding to the sub-process to be added into the task queue if the task status is completed, so that the processing node corresponding to the sub-process to be added reads the target task information, and executes the sub-process to be added according to the target task information, and changes the task status of the target task information to completed in response to the completion of the execution of the sub-process to be added; a process execution module, used to execute the subsequent sub-process corresponding to the order characteristics and the preceding sub-process in response to the task status of the target task information being completed.

[0015] In a fourth aspect, the present application provides an order process processing device, including: an information reading module, used to read target task information, wherein the target task information corresponds to the sub-process to be added, and the sub-process to be added is the process management unit obtaining the task status corresponding to the order characteristics and the preceding sub-process in the task queue, and is written into the task queue when the task status is completed, and the order characteristics, the sub-process to be added and the preceding sub-process are obtained by the process management unit receiving the add process instruction sent by the terminal device; a sub-process execution module, used to execute the sub-process to be added according to the target task information; a status change module, used to change the task status of the target task information to completed in response to the completion of the execution of the sub-process to be added, so that the process management unit executes the subsequent sub-process corresponding to the order characteristics and the preceding sub-process in response to the task status of the target task information being completed.

[0016] In a fifth aspect, the present application provides an electronic device comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory to implement the order process processing method described in the first aspect or the second aspect.

[0017] In a sixth aspect, the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the order process processing method described in the first aspect or the second aspect.

[0018] The order process processing method, device, equipment and storage medium provided in the present application receive an add process instruction sent by a terminal device, obtain the order features contained in the add process instruction and the task status corresponding to the preceding sub-process in the task queue, and when the task status is completed, write the target task information corresponding to the sub-process to be added into the task queue, so that the processing node executes the sub-process to be added, and when the task status of the target task information corresponding to the sub-process to be added is completed, executes the subsequent sub-process corresponding to the order features and the preceding sub-process, thereby adding a new process to the existing process, increasing the flexibility of the order processing process, and does not affect the execution of the existing process, does not affect the order processing performance, and has no impact on other processing nodes other than the processing node corresponding to the sub-process to be added. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0020] Figure 1 A schematic diagram of an application scenario of the order flow processing method provided in an embodiment of the present application;

[0021] Figure 2 A schematic diagram of the server functional architecture provided in an embodiment of the present application;

[0022] Figure 3 Schematic diagram of the order process processing method provided in the embodiment of the present application Figure 1 ;

[0023] Figure 4 A schematic diagram of the abnormal order processing flow provided in the embodiment of the present application;

[0024] Figure 5 Schematic diagram of the order process processing method provided in the embodiment of the present application Figure 2 ;

[0025] Figure 6 A schematic diagram of the interaction process between the process management unit and the processing node provided in the embodiment of the present application;

[0026] Figure 7 A schematic diagram of the structure of the order flow processing device provided in the embodiment of the present application Figure 1 ;

[0027] Figure 8A schematic diagram of the structure of the order flow processing device provided in the embodiment of the present application Figure 2 ;

[0028] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0029] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0030] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0031] With the continuous development of information technology, a large number of goods and services can be ordered through the Internet, and the service processing process can also be carried out through the Internet.

[0032] Currently, the ordering of goods and services and the handling of services can be completed by creating an order and then executing the corresponding processing flow of the order. However, the fixed order processing flow is not flexible enough and difficult to adapt to complex needs.

[0033] In response to the above technical problems, the inventors proposed the following technical concept: after the process management unit receives the instruction to add a process, it determines whether the preceding sub-process before the sub-process to be added in the task queue has been executed. If the execution is completed, the task information corresponding to the sub-process to be added is written into the task queue. Each processing node reads the task information in the task queue and executes the corresponding sub-process. After the sub-process to be added is executed, the process management unit continues to control the execution of subsequent sub-processes.

[0034] The order flow processing method provided in this application is intended to solve the above technical problems of the prior art.

[0035] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0036] Figure 1This is a schematic diagram of an application scenario of the order flow processing method provided in the embodiment of the present application. Figure 1 In this scenario, it includes: a terminal device 101 and a server 102. The server 102 may include a process management unit 1021 and at least one processing node 1022.

[0037] In the specific implementation process, the terminal device 101 may include a computer, a server, a tablet, a mobile phone, a PDA (Personal Digital Assistant) and a notebook, etc., which can input data.

[0038] The server 102 can be implemented by using a server or a cluster of multiple servers with stronger processing power and higher security. If possible, it can also be replaced by a computer or laptop with stronger computing power. The process management unit 1021 and the processing node 1022 can run in the server 102 .

[0039] The connection between the server 102 and the terminal device 101 can be a wired connection or a wireless connection.

[0040] The process management unit 1021 is used to maintain the task queue and receive the add process instruction sent by the terminal device 101, which includes order characteristics, sub-process to be added and preceding sub-process, and writes the task information corresponding to the sub-process to be added into the task queue after the preceding sub-process is executed in the task queue.

[0041] The processing node 1022 is used to read the task information in the task queue and execute the corresponding sub-process according to the task information.

[0042] It is understandable that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the order flow processing method. In other feasible implementations of the present application, the above architecture may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently, which can be determined according to the actual application scenario and is not limited here. Figure 1 The components shown may be implemented by hardware, software, or a combination of software and hardware.

[0043] Figure 2 This is a schematic diagram of the server functional architecture provided in the embodiment of the present application. Figure 2 As shown, the server functions include providing product services, platform interface services, product management center, instance center, billing center, user center, order management module, etc. to the outside world, among which the order management module includes: order subscription management, order splitting management, order change management, order activation management, order query management, process manager, etc.

[0044] Figure 3 Schematic diagram of the order process processing method provided in the embodiment of the present application Figure 1 The execution subject of the embodiment of the present application may be Figure 1 The process management unit 1021 in FIG. Figure 3 As shown, the method includes:

[0045] S301: Receive an instruction to add a process sent by a terminal device, wherein the instruction to add a process includes order features, a sub-process to be added, and a preceding sub-process.

[0046] In this step, the instruction to add a process may be obtained by receiving a data packet or a message, in which the order characteristics, the sub-process to be added, and the preceding sub-process are written.

[0047] The order characteristics may include order number, order type, etc. The sub-process to be added may be a sub-process that needs to be added, and may be represented by at least one of the identification, number, name, etc. of the sub-process, and the preceding sub-process may be a sub-process that needs to be processed before the sub-process to be added.

[0048] For example, the process corresponding to the current order features includes sub-processes A, B, C, D, and E, and the sub-process to be added is F. The sub-process to be added needs to be added between sub-processes B and C, and B is the preceding sub-process. For another example, the process corresponding to the current order features includes sub-processes A, B, and C, and the sub-process to be added is E. The sub-process to be added needs to be added between sub-processes A and B, and A is the preceding sub-process. For another example, the process corresponding to the current order features includes sub-processes A, B, C, and D, and the sub-process to be added is G. The sub-process to be added needs to be added between every two sub-processes, and A, B, and C are all preceding sub-processes. The overall process obtained after adding is A, G, B, G, and C.

[0049] S302: Obtain the order characteristics and the task status corresponding to the preceding sub-process in the task queue.

[0050] In this step, the order features and the task information corresponding to the preceding sub-process may be searched first, and the task information has a corresponding task status.

[0051] For example, if the order feature is the order number "00100487129" and the preceding sub-process is "inquiry", then the task queue is searched for task information containing the order number "00100487129" and the corresponding preceding sub-process is "inquiry", and the corresponding task status is read. For another example, if the order feature is the order number "849011102", the order type is "purchase", and the preceding sub-process is "split", then the task queue is searched for task information containing the order number "849011102", the order type is "purchase", and the corresponding preceding sub-process is "split", and the corresponding task status is read.

[0052] S303: If the task status is completed, the target task information corresponding to the sub-process to be added is written into the task queue, so that the processing node corresponding to the sub-process to be added reads the target task information and executes the sub-process to be added according to the target task information. In response to the completion of the execution of the sub-process to be added, the task status of the target task information is changed to completed.

[0053] In this step, the task status may be represented by numbers, letters and / or symbols.

[0054] For example, 0 means unprocessed, 1 means in progress, and 2 means completed. Another example is 00 means unprocessed, 01 means in progress, and 10 means completed. There are more types of task status, such as successful execution, failed execution, etc.

[0055] S304: In response to the task status of the target task information being completed, executing subsequent sub-processes corresponding to the order features and the preceding sub-processes.

[0056] In this step, the target task information is the task information corresponding to the sub-process to be added. The task status of the target task information can be obtained periodically. Executing the subsequent sub-process corresponding to the order characteristics and the preceding sub-process may include: searching for the subsequent sub-process corresponding to the order characteristics and the preceding sub-process, and writing the task information corresponding to the subsequent sub-process into the task queue, so that each processing node searches for the task information that can be processed in the task queue, and uses the task information to execute the subsequent sub-process.

[0057] For example, the overall process corresponding to the current order characteristics includes sub-processes E, F, G, H, and I, where F is the preceding sub-process. The task information corresponding to sub-process G is first written into the task queue, and the processing node corresponding to sub-process G reads the task information and processes sub-process G. After the processing is completed, the task status corresponding to sub-process G is changed. After the task status of the task information corresponding to sub-process G is completed, the task information corresponding to task process H is written into the task queue, and so on, until sub-process I is executed.

[0058] From the description of the above embodiments, it can be seen that the embodiments of the present application receive the add process instruction sent by the terminal device, obtain the order characteristics contained in the add process instruction and the task status corresponding to the preceding sub-process in the task queue, and when the task status is completed, write the target task information corresponding to the sub-process to be added into the task queue, so that the processing node executes the sub-process to be added, and when the task status of the target task information corresponding to the sub-process to be added is completed, execute the subsequent sub-process corresponding to the order characteristics and the preceding sub-process, thereby adding a new process to the existing process, increasing the flexibility of the order processing process, and does not affect the execution of the existing process, does not affect the order processing performance, and has no impact on other processing nodes other than the processing node corresponding to the sub-process to be added.

[0059] In a possible implementation, in the above step S304, executing the subsequent sub-process corresponding to the order feature and the preceding sub-process includes:

[0060] S3041: Obtain order features and the subsequent sub-process corresponding to the preceding sub-process.

[0061] In this step, all sub-processes corresponding to the order features and the sequence of all sub-processes may be obtained, and the sub-process that is one position after the preceding sub-process may be regarded as the succeeding sub-process.

[0062] For example, the overall process corresponding to the current order features includes A, B, C, D, E, and F, where sub-process C is the front sub-process and sub-process D is the back sub-process. For another example, the overall process corresponding to the current order features includes P, Q, K, and L, where sub-process K is the front sub-process and sub-process L is the back sub-process.

[0063] S3042: Determine the task information corresponding to the post-process.

[0064] In this step, the relevant information of the post-sub-process can be written into the preset task information template to obtain the task information corresponding to the post-sub-process; or the execution result of the sub-process to be added, the relevant information of the post-sub-process, and the order characteristics can be written into the preset task information template to obtain the task information corresponding to the post-sub-process.

[0065] Among them, the task information template can be pre-set by the staff.

[0066] S3043: Write the task information corresponding to the post-sub-process into the task queue, so that the node corresponding to the post-sub-process reads the task information corresponding to the post-sub-process and executes the post-sub-process. In response to the completion of the post-sub-process execution, change the task status corresponding to the post-sub-process to completed.

[0067] In this step, this step is similar to the above step S303 and will not be repeated here.

[0068] S3044: In response to the task status corresponding to the post-process being changed to completed, the order features and the post-process corresponding to the post-process are determined as new post-processes, and the steps from determining the task information to changing the task status are re-executed until all sub-processes corresponding to the order features are completed.

[0069] In this step, the steps of reading the task information to changing the task status may be the above-mentioned steps S3042 to S3043.

[0070] For example, the overall process corresponding to the current order features includes A, B, G, C, D, E, and F, where G is a sub-process to be added and C is a post-sub-process. When the task status corresponding to C changes to completed, sub-process D is determined as a new post-sub-process, and the task information corresponding to sub-process D is written into the task queue. After sub-process D is executed, the subsequent sub-processes E and F are executed in sequence. For another example, the overall process corresponding to the current order features includes I, J, K, L, and M. K is a post-sub-process. After K is executed, the task information corresponding to L is written into the task queue. After the processing node reads the task information corresponding to L, sub-process L is executed, and sub-process M is executed in the same way.

[0071] From the description of the above embodiments, it can be seen that the embodiments of the present application obtain the order features and the post-sub-process corresponding to the pre-sub-process, and determine the task information corresponding to the post-sub-process, and write the task information corresponding to the post-sub-process into the task queue, so that the corresponding processing node reads the task information and executes the post-sub-process. After the execution of the front sub-process is completed, the task information corresponding to the post-sub-process is added to the task queue until all task processes are completed, completing the overall process processing after adding the sub-process to be added, so that the newly added sub-process has no effect on the overall process.

[0072] In a possible implementation, in the above step S3043, writing the target task information corresponding to the sub-process to be added into the task queue includes:

[0073] S431: Determine the process type of the sub-process to be added.

[0074] In this step, the process type may be obtained by searching for a correspondence between a name and a type, or searching for a correspondence between a sequence number and a type, based on the name or sequence number of the sub-process to be added.

[0075] The corresponding relationship may be stored in a table, key-value pair or other format and may be pre-calibrated by the staff.

[0076] S432: Determine the task queue corresponding to the process type as the target queue.

[0077] In this step, for example, there are currently five types of task queues, and the process type corresponds to the third type of task queue, then the third type of task queue is determined as the target queue.

[0078] For example, if the current process type is approval and the corresponding task queue is the approval queue, then the approval queue is the target queue. For another example, if the current process type is split and the corresponding task queue is the split queue, then the split queue is the target queue.

[0079] S433: Write the target task information corresponding to the sub-process to be added into the target queue.

[0080] In this step, the target task information corresponding to the sub-process to be added may be created, and the target task information may be written into the target queue, and may be written into the tail of the target queue.

[0081] From the description of the above embodiments, it can be seen that the embodiments of the present application determine the process type of the sub-process to be added, and determine the task queue corresponding to the process type as the target queue, and write the target task information corresponding to the sub-process to be added into the target queue, so as to queue various types of task information separately, reduce the time for processing nodes to find the task information they need to process, and increase the task processing speed. After experimental testing, in the case of three task queues, the overall concurrent processing capability is improved by more than 10 times.

[0082] In a possible implementation, before the above step S301 receives the add process instruction sent by the terminal device, the method further includes:

[0083] S310: Receive order creation information sent by the terminal device.

[0084] In this step, the order creation information may include the order type and order path, and may also include a sending identifier, etc. The order creation information may be sent via a data packet, a message, etc.

[0085] S311: Acquire a target order process corresponding to the order creation information, wherein the target order process includes at least one sub-process.

[0086] In this step, if the order creation information includes an order type and an order path, this step may include obtaining a target order process corresponding to the order type and the order path.

[0087] S312: Determine the first sub-process in the target order process as a process to be processed.

[0088] In this step, for example, if the current target order process includes sub-processes A, B, C, D, and E, sub-process A is determined as the process to be processed.

[0089] S313: writing the task information corresponding to the pending process into the task queue, so that the processing node corresponding to the pending process reads the task information corresponding to the pending process in the task queue, and executes the pending process according to the task information corresponding to the pending process.

[0090] This step is similar to the above step S303 and will not be repeated here.

[0091] From the description of the above embodiments, it can be seen that the embodiments of the present application receive the order creation information sent by the terminal device, obtain the target order process corresponding to the order creation information, determine the first sub-process in the target order process as the process to be processed, and write the task information corresponding to the process to be processed into the task queue, so that the processing node reads the task information corresponding to the process to be processed in the task queue, realizes the creation of a new sub-process from the order creation information, and asynchronously processes each task information in the task queue, thereby improving the task processing speed.

[0092] In a possible implementation, after writing the task information corresponding to the pending process into the task queue in the above step S313, the following is further included:

[0093] S321: Collect the task status corresponding to each task information in the task queue.

[0094] In this step, the task status corresponding to each task information may be collected periodically.

[0095] The period can be 1 second, 10 seconds, 1 minute, 10 minutes, etc.

[0096] S322: If the task status corresponding to any task information changes from being executed to failed execution, the number of failures corresponding to any task information is increased by n, and the task status corresponding to any task information is changed to pending execution, so that the corresponding processing node re-reads any task information and executes the corresponding sub-process, where n is a positive integer.

[0097] In this step, a corresponding number of failures can be maintained for each task information, or a failure number tag can be added to the task information after the task status corresponding to any task information changes from being executed to execution failure. The number of failures can increase from a preset starting value. The corresponding processing node can be the processing node corresponding to the task information, for example, the task information of the subprocess "subscription" is read using the processing node corresponding to "subscription".

[0098] The preset starting value may be pre-calibrated by the staff, such as 0 or 1.

[0099] In a possible implementation, the processing node reads the task information whose task status is to be executed, but does not read the task information whose task status is completed or being processed.

[0100] S323: If the number of failures corresponding to any task information is greater than a preset value, the order processing failure information is output.

[0101] In this step, the preset value may be preset by the staff according to experimental or empirical parameters, such as 4, 5, 7, etc. Outputting the order processing failure information may be sending the order processing failure information to a display unit for output, or may be sending the order processing failure information to a terminal device corresponding to the task information so that the terminal device outputs it.

[0102] From the description of the above embodiments, it can be seen that the embodiments of the present application increase the number of failures corresponding to the task information and change the task status to pending execution when the task status corresponding to the task information changes from being executed to failed execution, so that the corresponding processing node executes the sub-process corresponding to the task information again, thereby realizing retry in the event of an error in the sub-process and increasing the probability of success of the process.

[0103] In a possible implementation, after the above step S321 collects the task status corresponding to each task information in the task queue, the method further includes:

[0104] S331: If the task status corresponding to any task information changes from being executed to execution failure, any task information is sent to the monitoring terminal, so that the monitoring terminal outputs any task information, receives the editing of any task information by the staff, and obtains new task information.

[0105] In this step, the task information is sent to the monitoring terminal, which may be written into a data packet, message, or short message and sent to the monitoring terminal. The detection terminal may display and output the task information. The monitoring terminal receives the staff's rewriting of the task information, deletion or addition of certain fields in the task information, and obtains new task information.

[0106] The detection terminal may include a mobile phone, a computer, a laptop computer, etc. The rewriting of the task information may include, for example, rewriting of the resource location used in the task information, rewriting of the used resource amount, rewriting of the occupied bandwidth, etc.

[0107] In a possible implementation, after the execution fails, the exception information is written into a list and stored as a log or the list is sent to the operation and maintenance personnel terminal.

[0108] S332: Receive new task information sent by the monitoring terminal.

[0109] In this step, new task information may be obtained by receiving a data packet or a message.

[0110] S333: Write the new task information into the task queue so that the processing node re-executes the corresponding sub-process according to the new task information.

[0111] The corresponding sub-process may be a sub-process corresponding to the new task information. This step is similar to the process of writing the target task information corresponding to the sub-process to be added into the task queue in the above step S303, and will not be repeated here.

[0112] From the description of the above embodiments, it can be seen that the embodiments of the present application send this task information to the monitoring terminal when the task status corresponding to any task information changes from being executed to failed execution, so that the monitoring terminal outputs this task information, receives the staff's modification of the task information, obtains new task information, receives the new task information, and writes the new task information into the task queue, so that the processing node executes the corresponding sub-process again according to the new task information, thereby increasing the reliability of the order process execution and improving the success rate of the order product activation.

[0113] Figure 4 This is a schematic diagram of the abnormal order processing flow provided in the embodiment of the present application. Figure 4 As shown, possible ways of handling abnormal order processes include: receiving order creation information, creating a target order process according to the order creation information, executing each sub-process in the target order process, and if the task status corresponding to any sub-process changes from being executed to execution failure, the failed process and the reason for the failure are stored, and a prompt message is output so that the operation and maintenance personnel can view the prompt message and try to reprocess it. If the process is not processed normally after multiple attempts, the order fails. If each sub-process is processed successfully, the order is completed.

[0114] In a possible implementation, after writing the task information corresponding to the pending process into the task queue in the above step S313, the following is further included:

[0115] S341: Receive an order query instruction sent by a query terminal, where the order query instruction includes target order characteristics.

[0116] In this step, the order query instruction may be input by the user in the query terminal, and the query terminal may write the order query instruction into a data packet or message, and send the data packet or message to the server, so that the process management unit in the server receives the order query instruction. The target order characteristics may include the target order number, the target order type, etc.

[0117] S342: In the task queue, search for task information corresponding to the target order characteristics.

[0118] In this step, the task information corresponding to the target order characteristics may be searched. The task information containing the target order characteristics may be searched directly in all the task information, or a part of the corresponding task information may be first found according to the target order type, and then the task information corresponding to the target order characteristics as a whole may be searched according to the target order number.

[0119] S343: Determine the unfinished sub-process according to the task information corresponding to the target order characteristics.

[0120] In this step, the unfinished sub-process may be a sub-process that is being executed or the corresponding task information has been written into the task queue but has not been executed. The process of determining the unfinished sub-process may be to read the attribute or specific identifier in the task information corresponding to the target order feature, and find the corresponding relationship between the attribute or identifier and the sub-process according to the attribute or specific identifier to obtain the unfinished sub-process.

[0121] The corresponding relationship between the attribute and the sub-process or the corresponding relationship between the identifier and the sub-process can be preset by the staff and can be stored in a table or key-value pair format.

[0122] S344: Generate task status information according to the unfinished sub-process.

[0123] In this step, the identifier or name of the unfinished sub-process may be written into the task status information template to obtain the task status information.

[0124] S345: Send the task status information to the query terminal.

[0125] In this step, the task status information may be written into a data packet or a message, and the data packet or the message is sent to the query terminal.

[0126] From the description of the above embodiments, it can be seen that the embodiments of the present application, after receiving the order query instruction sent by the query terminal, search for the task information corresponding to the target order characteristics in the task queue, and obtain the unfinished sub-process from the task information corresponding to the target order characteristics, and also generate task status information corresponding to the unfinished sub-process, and send the task status information to the query terminal, thereby completing the status query of the specific order, making it convenient for the user to know the status of the order.

[0127] Figure 5 Schematic diagram of the order process processing method provided in the embodiment of the present application Figure 2 .like Figure 5 As shown, the order process processing method can be applied to the processing nodes, including:

[0128] S501: Read the target task information corresponding to the sub-process to be added, where the sub-process to be added is the task status corresponding to the order characteristics and the preceding sub-process in the task queue obtained by the process management unit, and is written into the task queue when the task status is completed. The order characteristics, the sub-process to be added and the preceding sub-process are obtained by the process management unit receiving the add process instruction sent by the terminal device.

[0129] In this step, the task information in the task queue may be read, thereby reading the target task information.

[0130] Specifically, when reading the task information, the status information of the task information that is ranked first in the task queue may be read in sequence. If the status information is to be processed, the entire task information is read.

[0131] For example, there are 5 task information A, B, C, D, and E in the current task queue, among which the status information corresponding to A, B, and C is processed, and the status information of C to E is unprocessed. Then read the task information corresponding to C. If D is the target task information, read the task information of D after the sub-process corresponding to C is executed and the status information corresponding to C is changed to processed.

[0132] S502: Execute the sub-process to be added according to the target task information.

[0133] In this step, the target task information may be used to execute a preset program, thereby executing the sub-process to be added.

[0134] S503: In response to the completion of the execution of the sub-process to be added, the task status of the target task information is changed to completed, so that the process management unit executes the subsequent sub-process corresponding to the order feature and the preceding sub-process in response to the task status of the target task information being completed.

[0135] In this step, after the execution of the sub-process to be added is completed, the task status corresponding to the target task information is deleted, and completed is written as a new task status, or the new task status is directly used to overwrite the original task status.

[0136] From the description of the above embodiments, it can be seen that the embodiments of the present application complete the execution of the added sub-process by reading the target task information corresponding to the sub-process to be added, and using the target task information to execute the sub-process to be added, and after the execution is completed, the task status of the target task information is changed to completed, thereby increasing the flexibility of order process scheduling, and because each processing node performs processing asynchronously, the execution efficiency of the process is increased.

[0137] In a possible implementation, each processing node reads the task information in the task queue and processes the task information that it can process, thereby executing the corresponding sub-process to increase the process processing speed.

[0138] Figure 6 Schematic diagram of the interaction process between the process management unit and the processing node provided in the embodiment of the present application. Figure 6 As shown, the process management unit maintains the task queue and interacts with the processing node through the task queue. After the processing node is completed, the task status of the task information will be changed. The process management unit reads the task status of the task information in the task queue and adds new task information to the task queue or ends the task process according to the task status corresponding to the task information in the task queue. The processing nodes include verification, inquiry, approval, splitting, opening, logging, message reminders, etc. in the figure. The logging and message reminders can be contained in the task process itself or added according to the add process instruction.

[0139] Figure 7 A schematic diagram of the structure of the order flow processing device provided in the embodiment of the present application Figure 1 .like Figure 7 As shown, the order process processing device 700 includes: an instruction receiving module 701, a status acquisition module 702, an information writing module 703, and a process execution module 704.

[0140] The instruction receiving module 701 is used to receive the add process instruction sent by the terminal device, wherein the add process instruction includes order features, sub-process to be added and preceding sub-process.

[0141] The status acquisition module 702 is used to obtain the task status corresponding to the order characteristics and the preceding sub-process in the task queue.

[0142] The information writing module 703 is used to write the target task information corresponding to the sub-process to be added into the task queue if the task status is completed, so that the processing node corresponding to the sub-process to be added reads the target task information and executes the sub-process to be added according to the target task information. In response to the completion of the execution of the sub-process to be added, the task status of the target task information is changed to completed.

[0143] The process execution module 704 is used to execute the subsequent sub-process corresponding to the order feature and the preceding sub-process in response to the task status of the target task information being completed.

[0144] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0145] In one possible implementation, the process execution module 704 is specifically used to obtain the order features and the post-sub-process corresponding to the preceding sub-process. Determine the task information corresponding to the post-sub-process. Write the task information corresponding to the post-sub-process into the task queue so that the node corresponding to the post-sub-process reads the task information corresponding to the post-sub-process and executes the post-sub-process. In response to the end of the execution of the post-sub-process, change the task status corresponding to the post-sub-process to completed. In response to the task status corresponding to the post-sub-process being changed to completed, determine the order features and the post-sub-process corresponding to the post-sub-process as the new post-sub-process, and re-execute the steps from determining the task information to changing the task status until all sub-processes corresponding to the order features are completed.

[0146] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0147] In a possible implementation, the information writing module 703 is specifically used to determine the process type of the sub-process to be added, determine the task queue corresponding to the process type as the target queue, and write the target task information corresponding to the sub-process to be added into the target queue.

[0148] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0149] In a possible implementation, the order process processing device 700 further includes: an order creation module 705 .

[0150] The order creation module 705 is used to receive order creation information sent by the terminal device. Obtain a target order process corresponding to the order creation information, wherein the target order process includes at least one sub-process. Determine the first sub-process in the target order process as the process to be processed. Write the task information corresponding to the process to be processed into the task queue, so that the processing node corresponding to the process to be processed reads the task information corresponding to the process to be processed in the task queue, and executes the process to be processed according to the task information corresponding to the process to be processed.

[0151] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0152] In a possible implementation, the order process processing device 700 further includes: an error output module 706.

[0153] The error output module 706 is used to collect the task status corresponding to each task information in the task queue. If the task status corresponding to any task information changes from being executed to execution failure, the number of failures corresponding to any task information is increased by n, and the task status corresponding to any task information is changed to pending execution, so that the corresponding processing node re-reads any task information and executes the corresponding sub-process, where n is a positive integer. If the number of failures corresponding to any task information is greater than a preset value, the order processing failure information is output.

[0154] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0155] In a possible implementation, the order process processing device 700 further includes: a failure retry module 707 .

[0156] The failure retry module 707 is used to send any task information to the monitoring terminal if the task status corresponding to any task information changes from being executed to execution failure, so that the monitoring terminal outputs any task information, receives the editing of any task information by the staff, and obtains new task information. Receive the new task information sent by the monitoring terminal. Write the new task information into the task queue so that the processing node re-executes the corresponding sub-process according to the new task information.

[0157] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0158] In a possible implementation, the order process processing device 700 further includes: an order query module 708 .

[0159] The order query module 708 is used to receive an order query instruction sent by the query terminal, wherein the order query instruction includes target order characteristics. In the task queue, the task information corresponding to the target order characteristics is searched. According to the task information corresponding to the target order characteristics, an unfinished sub-process is determined. According to the unfinished sub-process, task status information is generated. The task status information is sent to the query terminal.

[0160] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0161] Figure 8 A schematic diagram of the structure of the order flow processing device provided in the embodiment of the present application Figure 2 .like Figure 8 As shown, the order process processing device 800 includes: an information reading module 801, a sub-process execution module 802 and a state change module 803.

[0162] The information reading module 801 is used to read the target task information, wherein the target task information corresponds to the sub-process to be added. The sub-process to be added is the task status corresponding to the order characteristics and the preceding sub-process in the task queue obtained by the process management unit. When the task status is completed, it is written into the task queue. The order characteristics, the sub-process to be added and the preceding sub-process are obtained by the process management unit receiving the add process instruction sent by the terminal device;

[0163] The sub-process execution module 802 is used to execute the sub-process to be added according to the target task information;

[0164] The status change module 803 is used to change the task status of the target task information to completed in response to the completion of the execution of the sub-process to be added, so that the process management unit executes the subsequent sub-process corresponding to the order characteristics and the preceding sub-process in response to the task status of the target task information being completed.

[0165] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0166] In order to implement the above embodiment, the embodiment of the present application also provides an electronic device.

[0167] refer to Fig. 9 , which shows a schematic diagram of the structure of an electronic device 900 suitable for implementing the embodiment of the present application, and the electronic device 900 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0168] like Fig. 9As shown, the electronic device 900 may include a processor (e.g., a central processing unit, a graphics processing unit, etc.) 901, and a memory 902 that is communicatively connected to the processor, which may perform various appropriate actions and processes according to a program stored in the memory 902, a computer execution instruction, or a program loaded from a storage device 908 to a random access memory (Random Access Memory, referred to as RAM) 903, to implement the order flow processing method in any of the above embodiments, wherein the memory may be a read-only memory (Read Only Memory, referred to as ROM). In the RAM 903, various programs and data required for the operation of the electronic device 900 are also stored. The processing device 901, the memory 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0169] Typically, the following devices may be connected to the I / O interface 905: input devices 906 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 908 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although Fig. 9 The electronic device 900 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0170] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 909, or installed from the storage device 908, or installed from the memory 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present application are executed.

[0171] It should be noted that the computer-readable storage medium mentioned above in the present application may be a computer-readable signal medium or a computer storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable storage medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0172] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0173] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0174] The computer program code for performing the operation of the present application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on the remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).

[0175] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0176] The modules involved in the embodiments described in this application may be implemented by software or hardware. The name of the unit does not limit the module itself in some cases. For example, the process execution module may also be described as a "subsequent sub-process execution module".

[0177] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0178] The present application also provides a computer-readable storage medium, which stores computer execution instructions. When the processor executes the computer execution instructions, the technical solution of the order process processing method in any of the above-mentioned embodiments is implemented. The implementation principle and beneficial effects are similar to the implementation principle and beneficial effects of the order process processing method. Please refer to the implementation principle and beneficial effects of the order process processing method, and no further details will be given here.

[0179] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0180] The present application also provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the technical solution of the order process processing method in any of the above-mentioned embodiments. Its implementation principle and beneficial effects are similar to the implementation principle and beneficial effects of the order process processing method. Please refer to the implementation principle and beneficial effects of the order process processing method, and no further details will be given here.

[0181] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.

[0182] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

Claims

1. An order process processing method, characterized in that: Applied to process management units, including: Receiving an instruction for adding a process sent by a terminal device, wherein the instruction for adding a process includes order features, a sub-process to be added, and a preceding sub-process; Obtaining the order features and the task status corresponding to the preceding sub-process in the task queue; If the task status is completed, the target task information corresponding to the sub-process to be added is written into the task queue, so that the processing node corresponding to the sub-process to be added reads the target task information and executes the sub-process to be added according to the target task information. In response to the completion of the execution of the sub-process to be added, the task status of the target task information is changed to completed; In response to the task status of the target task information being completed, the subsequent sub-process corresponding to the order feature and the preceding sub-process is executed.

2. The method according to claim 1, characterized in that The execution of the order feature and the subsequent sub-process corresponding to the preceding sub-process includes: Obtain the order features and the subsequent sub-process corresponding to the preceding sub-process; Determine the task information corresponding to the post-process; Writing the task information corresponding to the post-sub-process into the task queue, so that the node corresponding to the post-sub-process reads the task information corresponding to the post-sub-process and executes the post-sub-process, and in response to the completion of the execution of the post-sub-process, changes the task status corresponding to the post-sub-process to completed; In response to the task status corresponding to the post-process being changed to completed, the order feature and the subsequent sub-process corresponding to the post-process are determined as new post-processes, and the steps from determining the task information to changing the task status are re-executed until all sub-processes corresponding to the order feature are completed.

3. The method according to claim 1, characterized in that The step of writing the target task information corresponding to the sub-process to be added into the task queue includes: Determine the process type of the sub-process to be added; Determine the task queue corresponding to the process type as the target queue; The target task information corresponding to the sub-process to be added is written into the target queue.

4. The method according to any one of claims 1 to 3, characterized in that: Before the adding process instruction sent by the receiving terminal device is received, the method further includes: Receive order creation information sent by the terminal device; Acquire a target order process corresponding to the order creation information, wherein the target order process includes at least one sub-process; Determine the first sub-process in the target order process as a process to be processed; The task information corresponding to the pending process is written into the task queue, so that the processing node corresponding to the pending process reads the task information corresponding to the pending process in the task queue, and executes the pending process according to the task information corresponding to the pending process.

5. The method according to claim 4, characterized in that After writing the task information corresponding to the pending process into the task queue, the method further includes: Collect the task status corresponding to each task information in the task queue; If the task status corresponding to any task information changes from being executed to execution failure, the number of failures corresponding to the task information is increased by n, and the task status corresponding to the task information is changed to pending execution, so that the corresponding processing node re-reads the task information and executes the corresponding sub-process, where n is a positive integer; If the number of failures corresponding to any of the task information is greater than a preset value, order processing failure information is output.

6. The method according to claim 5, characterized in that After the task status corresponding to each task information in the acquisition task queue, it also includes: If the task status corresponding to any task information changes from being executed to execution failure, the task information is sent to the monitoring terminal, so that the monitoring terminal outputs the task information, receives the editing of the task information by the staff, and obtains new task information; Receiving the new task information sent by the monitoring terminal; The new task information is written into the task queue, so that the processing node re-executes the corresponding sub-process according to the new task information.

7. The method according to claim 4, characterized in that After writing the task information corresponding to the pending process into the task queue, the method further includes: Receiving an order query instruction sent by a query terminal, wherein the order query instruction includes target order characteristics; In the task queue, searching for task information corresponding to the target order feature; Determine an unfinished sub-process according to the task information corresponding to the target order characteristics; Generate task status information according to the unfinished sub-process; The task status information is sent to the query terminal.

8. An order flow processing method, characterized in that: Applicable to processing nodes, including: Reading target task information corresponding to the sub-process to be added, wherein the sub-process to be added is a task status corresponding to an order feature and a preceding sub-process in a task queue obtained by a process management unit, and written into the task queue when the task status is completed, and the order feature, the sub-process to be added, and the preceding sub-process are obtained by the process management unit receiving an add process instruction sent by a terminal device; According to the target task information, execute the sub-process to be added; In response to the completion of execution of the sub-process to be added, the task status of the target task information is changed to completed, so that the process management unit executes the subsequent sub-process corresponding to the order feature and the preceding sub-process in response to the task status of the target task information being completed.

9. An order flow processing device, characterized in that: include: An instruction receiving module, used for receiving an instruction for adding a process sent by a terminal device, wherein the instruction for adding a process includes order features, a sub-process to be added, and a preceding sub-process; A status acquisition module, used to obtain the order characteristics and the task status corresponding to the preceding sub-process in the task queue; an information writing module, for writing the target task information corresponding to the sub-process to be added into the task queue if the task status is completed, so that the processing node corresponding to the sub-process to be added reads the target task information and executes the sub-process to be added according to the target task information, and in response to the completion of the execution of the sub-process to be added, changes the task status of the target task information to completed; The process execution module is used to execute the subsequent sub-process corresponding to the order feature and the preceding sub-process in response to the task status of the target task information being completed.

10. An order flow processing device, characterized in that: include: An information reading module is used to read target task information, wherein the target task information corresponds to a sub-process to be added, the sub-process to be added is a task status corresponding to an order feature and a preceding sub-process in a task queue obtained by a process management unit, and written into the task queue when the task status is completed, and the order feature, the sub-process to be added and the preceding sub-process are obtained by the process management unit receiving an add process instruction sent by a terminal device; A sub-process execution module, used for executing the sub-process to be added according to the target task information; A status change module is used to change the task status of the target task information to completed in response to the completion of the execution of the sub-process to be added, so that the process management unit executes the subsequent sub-process corresponding to the order feature and the preceding sub-process in response to the task status of the target task information being completed.

11. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the order flow processing method according to any one of claims 1 to 7 or claim 8.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the order process processing method according to any one of claims 1 to 7 or claim 8.

Citation Information

Cited By

  • Sequence message order preserving system and control method thereof

    CN120144338A