A signal processing method, apparatus, device, and storage medium

By receiving and parsing signals from terminal devices, the processing of workflow nodes is triggered uniformly, supporting both synchronous and asynchronous modes. This solves the problem of the single node triggering method in workflow engines, achieving greater versatility and lower learning costs.

CN115883556BActive Publication Date: 2025-11-07CHINA CONSTRUCTION BANK +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211528474.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-30
Publication Date
2025-11-07
Estimated Expiration
2042-11-30

AI Technical Summary

Technical Problem

In existing workflow engines, the node triggering methods are singular and ambiguous, resulting in high learning costs and poor versatility, making it difficult to effectively handle multiple node types.

Method used

By receiving pending signals from terminal devices, parsing process information, and searching for corresponding process instances and target signal nodes in the database, the system uniformly triggers the process for signal sending and receiving. It supports synchronous and asynchronous modes and sets the task status of signal nodes for exception handling.

Benefits of technology

It improves the versatility of node triggering, simplifies the configuration process of process nodes, reduces the learning and usage cost, and enhances the accuracy and flexibility of processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115883556B_ABST
    Figure CN115883556B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a signal processing method and device, equipment and storage medium, relating to the technical field of task scheduling, the method comprises: receiving a terminal device sending a signal to be processed, and analyzing the signal to be processed to obtain process information; if a process instance, a target signal node and a signal task corresponding to the process information exist in a database, the signal task is submitted, the process instance is used to perform process flow between multiple process nodes until the process flow reaches the target signal node, the signal task is processed to obtain a processing result. In the embodiments of the present application, different trigger processes are uniformly summarized, and the trigger process is regarded as a process of signal sending and receiving processing, which improves the generality of node triggering, simplifies the configuration process of the process node, widens the use, and reduces the learning and using cost.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of task scheduling, and in particular to a signal processing method and device, equipment and a storage medium. BACKGROUND

[0002] There are various types of nodes in the current workflow, one type is a node that needs to be triggered manually, one type is a node that can be automatically processed without manual intervention, and the last type is a node that waits before triggering and is not manually triggered. For the first two types of nodes, the triggering method is very clear, while the triggering method of the last type is not clear.

[0003] The workflow engine uses various node types or event types according to the source of the trigger, and the triggering method is relatively single, the application needs to select a specific type of node for each case, and requires a very good understanding of each node type or event, which results in a strong specificity of the workflow node, a high learning cost and poor versatility. SUMMARY

[0004] The embodiments of the present application provide a signal processing method, device, equipment and storage medium, which are used to improve the versatility of node triggering, simplify the configuration process of the node, broaden the use, and reduce the learning and use cost.

[0005] In one aspect, the embodiments of the present application provide a signal processing method, which comprises:

[0006] Receiving a to-be-processed signal sent by a terminal device, and analyzing the to-be-processed signal to obtain process information;

[0007] If the process instance corresponding to the process information, the target signal node and the signal task exist in the database, the signal task is submitted;

[0008] According to the process instance, the process is transferred between a plurality of process nodes until the process is transferred to the target signal node, and the signal task is processed to obtain a processing result.

[0009] In the embodiments of the present application, the triggering processes of different forms are uniformly summarized, and the triggering process is regarded as the process of sending and receiving signals, so that the submission of the node task can be triggered according to the needs without understanding various process node types, thereby improving the versatility of node triggering, simplifying the configuration process of the process node, broadening the use, and reducing the learning and use cost.

[0010] Optionally, the receiving of the to-be-processed signal sent by the terminal device comprises:

[0011] Receiving the to-be-processed signal sent by the terminal device through a synchronous mode or an asynchronous mode.

[0012] In the embodiments of the present application, the signals to be processed are received in a synchronous or asynchronous manner, so that the signal processing can be diversified and different modes can be processed.

[0013] Optionally, the plurality of process nodes comprises a plurality of signal nodes, and the plurality of signal nodes are located on a plurality of parallel process branches.

[0014] Optionally, before the processing of the signal task to obtain a processing result, the method further comprises:

[0015] When it is detected that the task state of the preceding node of the target signal node is in a completed state, the task state of the target signal node is set to a new state;

[0016] When the process flows to the target signal node, the task state of the target signal node is set to a submitted state;

[0017] After the processing of the signal task to obtain a processing result, the method further comprises:

[0018] The task state of the target signal node is set to a completed state.

[0019] In the embodiments of the present application, by setting the task state of the signal node to different states, the state of the current signal node can be clearly observed, and different measures can be taken according to different states to improve the accuracy of processing.

[0020] Optionally, the method further comprises:

[0021] If an exception occurs when the task state of the target signal node is set to a new state, the preceding node is rolled back.

[0022] In the embodiments of the present application, when the new state is abnormal, the preceding node is rolled back, so that the abnormal point can be found more accurately and widely.

[0023] Optionally, the method further comprises:

[0024] If an exception occurs when the task state of the target signal node is set to a submitted state, the step of setting the task state of the target signal node to a new state is rolled back.

[0025] In the embodiments of the present application, by rolling back to the previous step, the range of finding the abnormal point can be expanded, so that the abnormal point can be found more accurately.

[0026] Optionally, the method further comprises:

[0027] If an exception occurs when the task state of the target signal node is set to the completed state, and the node task of the post-node of the target signal node has been newly created, a rollback operation is not performed.

[0028] If an exception occurs when the task state of the target signal node is set to the completed state, and the node task of the post-node of the target signal node has not been newly created, a rollback operation is performed to the step of setting the task state of the target signal node to the newly created state.

[0029] In the embodiments of the present application, if an exception occurs when the task state of the target signal node is set to the completed state, and the node task of the post-node of the target signal node has been newly created, it indicates that the continuous flow of the process will not be affected, and thus the rollback operation can not be performed. If the node task of the post-node of the target signal node has not been newly created, the rollback operation needs to be performed to avoid affecting the continuous flow of the process.

[0030] Optionally, the method further comprises:

[0031] If the process instance corresponding to the process information does not exist in the database, the to-be-processed signal is determined as an invalid signal.

[0032] Optionally, the method further comprises:

[0033] If the process instance corresponding to the process information and the target signal node exist in the database, the process is flowed between the plurality of process nodes according to the process instance, until the process flows to the target signal node, a signal task is newly created and the signal task is submitted;

[0034] The signal task is processed to obtain a processing result.

[0035] Optionally, the method further comprises:

[0036] If the process instance corresponding to the process information, the target signal node and the signal task exist in the database, and the task state of the signal task is completed, the to-be-processed signal is determined as an invalid signal.

[0037] In one aspect, the embodiments of the present application provide a signal processing method, comprising:

[0038] A to-be-processed signal is acquired, and the to-be-processed signal is parsed to obtain process information;

[0039] If the process instance corresponding to the process information, the target signal node and the signal task exist in the database, the signal task is submitted;

[0040] The process is flowed between the plurality of process nodes according to the process instance, until the process flows to the target signal node, the signal task is processed to obtain a processing result.

[0041] In an aspect, an embodiment of the present application provides a signal processing apparatus, comprising:

[0042] a receiving module configured to receive a to-be-processed signal sent by a terminal device, and parse the to-be-processed signal to obtain process information;

[0043] a submitting module configured to submit a signal task if a process instance corresponding to the process information, a target signal node and the signal task exist in a database;

[0044] a processing module configured to perform process flow between a plurality of process nodes according to the process instance until the process flow reaches the target signal node, and process the signal task to obtain a processing result.

[0045] Optionally, the receiving module is specifically configured to:

[0046] receive the to-be-processed signal sent by the terminal device in a synchronous mode or an asynchronous mode.

[0047] Optionally, the plurality of process nodes comprise a plurality of signal nodes, and the plurality of signal nodes are located on a plurality of parallel process branches.

[0048] Optionally, the processing module is further configured to:

[0049] set a task state of the target signal node to a new state when it is detected that a task state of a preceding node of the target signal node is a completed state before processing the signal task to obtain a processing result;

[0050] set the task state of the target signal node to a submitted state when the process flow reaches the target signal node;

[0051] after the processing of the signal task to obtain the processing result, the apparatus further comprises:

[0052] set the task state of the target signal node to a completed state.

[0053] Optionally, the processing module is further configured to:

[0054] if an exception occurs when the task state of the target signal node is set to the new state, roll back to the preceding node.

[0055] Optionally, the processing module is further configured to:

[0056] if an exception occurs when the task state of the target signal node is set to the submitted state, roll back to the step of setting the task state of the target signal node to the new state.

[0057] Optionally, the processing module is further configured to:

[0058] If an exception occurs when setting the task state of the target signal node to the completed state, and a node task of a post-node of the target signal node has been newly created, a rollback operation is not performed.

[0059] If an exception occurs when setting the task state of the target signal node to the completed state, and a node task of a post-node of the target signal node has not been newly created, a rollback operation is performed to the step of setting the task state of the target signal node to the newly created state.

[0060] Optionally, the processing module is further configured to:

[0061] If the process instance corresponding to the process information does not exist in the database, the processing module is configured to determine that the to-be-processed signal is an invalid signal.

[0062] Optionally, the processing module is further configured to:

[0063] If the process instance corresponding to the process information and the target signal node exist in the database, the processing module is configured to perform process flow transfer between a plurality of process nodes according to the process instance, until the process flow is transferred to the target signal node, newly create a signal task, and submit the signal task.

[0064] The processing module is configured to process the signal task to obtain a processing result.

[0065] Optionally, the processing module is further configured to:

[0066] If the process instance corresponding to the process information, the target signal node, and the signal task exist in the database, and the task state of the signal task is completed, the processing module is configured to determine that the to-be-processed signal is an invalid signal.

[0067] In an aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the program to implement the steps of the signal processing method.

[0068] In an aspect, an embodiment of the present application provides a computer readable storage medium, which stores a computer program executable by a computer device, and when the program is executed on the computer device, the computer device executes the steps of the signal processing method.

[0069] In an aspect, an embodiment of the present application provides a computer program product, which includes a computer program stored in a computer readable storage medium, and the computer program includes program instructions, and when the program instructions are executed by a computer device, the computer device executes the steps of the signal processing method.

[0070] In the embodiments of the present application, the trigger processes of different forms are uniformly summarized, and the trigger process is taken as the process of signal sending and receiving processing, so that the submission of node tasks can be triggered as needed without understanding various flow node types, the generality of node triggering is improved, the configuration process of flow nodes is simplified, the use is widened, and the learning and using cost is reduced. BRIEF DESCRIPTION OF DRAWINGS

[0071] Figure 1 A system architecture diagram provided for the embodiments of the present application;

[0072] Figure 2A A flowchart of a signal processing method provided for the embodiments of the present application;

[0073] Figure 2B A flowchart of a signal sending and receiving process provided for the embodiments of the present application;

[0074] Figure 3 A flowchart of a signal setting state method provided for the embodiments of the present application;

[0075] Figure 4 A diagram of setting the signal setting state as new for the embodiments of the present application;

[0076] Figure 5 A diagram of setting the signal setting state as submitted for the embodiments of the present application;

[0077] Figure 6 A diagram of setting the signal setting state as completed for the embodiments of the present application;

[0078] Figure 7 A structural diagram of a signal processing device provided for the embodiments of the present application;

[0079] Figure 8 A structural diagram of a computer device provided for the embodiments of the present application. DETAILED DESCRIPTION

[0080] REFERENCE Figure 1 It is a system architecture diagram applicable to the embodiments of the present application, and the system at least includes a flow engine device 101 and a terminal device 102.

[0081] The process engine device 101 and the terminal device 102 can be a server cluster composed of multiple physical servers or a distributed system, and can also be a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. The process engine device 101 and the terminal device 102 can be directly or indirectly connected through wired or wireless communication, which is not limited in the present application. The process engine device 101 and the terminal device 102 interact to implement the process of the signal processing method. It should be noted that the acquisition, storage, use, processing, etc. of data by the process engine device in the technical solution of the present application comply with the relevant provisions of national laws and regulations.

[0082] Based on Figure 1 The system architecture diagram shown in the present application embodiment provides a process of a signal processing method, as shown in Figure 2A The process of the method is executed by a computer device, which can be Figure 1 The process engine device 101 shown in the present application embodiment includes the following steps:

[0083] Step 201, receiving the to-be-processed signal sent by the terminal device, and analyzing the to-be-processed signal to obtain process information.

[0084] Specifically, in the stage of signal preparation and signal sending in the terminal device, the terminal device can configure the signal according to the demand. The terminal device first receives the signal request to be sent, then acquires the required process information according to the information in the signal request to prepare for sending the signal, generates a new signal object, and then sends the signal.

[0085] The process information includes one or more of the following: process instance, target signal node, signal task, and process template.

[0086] In some embodiments, the to-be-processed signal sent by the receiving terminal device is in a synchronous mode or an asynchronous mode.

[0087] The signal node in the present application supports two working modes: synchronous mode and asynchronous mode. The synchronous mode is to call the signal service application program interface (API) of the process engine device, and the asynchronous mode is the signal asynchronous thread mode.

[0088] The synchronous mode is that the terminal device and the process engine device are in the same thread and follow the same thing principle. It is shown that the terminal device sends a signal by directly calling the API of the signal service of the process engine device and waits for the return result of the signal processing of the process engine device. The process engine device returns a notification result when it runs to a subsequent manual node or signal node, i.e., stops at a node of a non-automatic type. In the synchronous mode, when an exception occurs in the signal receiving or signal processing process, the application and the process engine device both perform data rollback, which is equivalent to not sending and receiving the signal this time.

[0089] The asynchronous mode is that the terminal device and the process engine device are in different threads and follow the different thing principle. The terminal device also calls the API of the signal service of the process engine device, but the terminal device does not need to wait and can continue other operations. The process engine device uses a new thread in the signal asynchronous thread service to receive the signal and perform subsequent processing operations, which is the same as in the synchronous mode. In the asynchronous mode, if an exception occurs in the process engine device, the process engine device only performs rollback according to the current transaction, and the terminal device is in another transaction and does not perform rollback.

[0090] Whether the terminal device sends the to-be-processed signal in the synchronous mode or the asynchronous mode depends on whether the asynchronous notification keyword "asyn_notify" is contained in the context information in the signal. If the asynchronous notification keyword "asyn_notify" is contained and its value is true, it is the asynchronous mode, otherwise it is the synchronous mode.

[0091] In step 202, if the process information corresponding to the process instance, the target signal node and the signal task exist in the database, the signal task is submitted.

[0092] Specifically, when the process engine device receives the to-be-processed signal sent by the terminal device, it first searches the database to find whether the process information corresponding to the to-be-processed signal exists, and if so, the task of the to-be-processed signal is submitted.

[0093] The signal receiving and signal processing stage is located in the process engine device, as shown in FIG. 2, the process engine device receives a signal, parses the signal, obtains the process information in the signal, and queries whether there is a process instance, a target signal node and a signal task that meet the conditions in the database according to the process information, so as to determine whether the signal is valid. If so, the signal task is submitted, so that the process engine device continues to flow down, at the same time, the signal information is recorded, and the signal state is modified to be used; if not, the signal state is modified to be invalid, and the task submission operation is not performed. Figure 2B

[0094] ​Step 203, according to the process instance, the process is transferred between multiple process nodes until the process is transferred to the target signal node, the signal task is processed, and the processing result is obtained.

[0095] In some embodiments, the plurality of process nodes of the process instance includes a plurality of signal nodes, and the plurality of signal nodes are located on a plurality of parallel process branches.

[0096] Specifically, multiple signal nodes are allowed to be configured in one process instance, that is, there are multiple signal nodes. In this case, the diversity and complexity of the use of terminal devices are increased. The use of multiple signal nodes has certain prerequisites and requirements. Generally, only multiple signal nodes are allowed to be configured in the case of multiple process branches, and the use order of the signal nodes is required to be aggregated or artificially controlled to ensure the uniqueness of the overall process running.

[0097] Before the signal task is processed and the processing result is obtained, as shown in Figure 3 , the following steps are further included:

[0098] Step 301, when the task state of the preceding node of the target signal node is detected to be a completed state, the task state of the target signal node is set to a new state.

[0099] Specifically, in the running process of the process engine device, many nodes will be passed through. Only after the newly created task is submitted and completed, the task can reach the subsequent node and create a new task accordingly. As shown in Figure 4 , the solid line represents the execution, and the dashed line represents the non-execution. When the task state of the preceding node is in the completed state, the process engine device creates a new task for the target signal node. At this time, the task state of the target signal node is in the new state, that is, the target signal node is in the state of waiting for receiving the signal, and the state of the subsequent node is not arrived.

[0100] In some embodiments, if an exception occurs when the task state of the target signal node is set to the new state, the process is rolled back to the preceding node.

[0101] Specifically, when an exception occurs when the task state of the target signal node is set to the new state, the process engine device automatically rolls back forward until a manual node or a signal node is found. If neither of the nodes is found, the entire process instance is rolled back.

[0102] Step 302, when the process is transferred to the target signal node, the task state of the target signal node is set to a submitted state.

[0103] Specifically, after the target signal node receives the to-be-processed signal and judges that the to-be-processed signal is valid, the process engine device processes the signal task, as shown inFigure 5 At this time, the task state of the front node is completed, the task state of the target signal node is submitted, and the task state of the subsequent node is still in the not arrived state.

[0104] In some embodiments, if an exception occurs when the task state of the target signal node is set to the submitted state, the step of setting the task state of the target signal node to the new state is rolled back.

[0105] Specifically, when an exception occurs when the task state of the target signal node is set to the submitted state, the process engine device also performs data rollback, the operations and data in the task submission process are invalid, and the task returns to the state of the previous signal task new.

[0106] In step 303, the signal task is processed, and after obtaining the processing result, the task state of the target signal node is set to the completed state.

[0107] Specifically, when the task state of the target signal node is completed, the post node receives the target signal, and the process engine device sets the task state of the post node to the new state, as shown in Figure 6 .

[0108] In some embodiments, if an exception occurs when the task state of the target signal node is set to the completed state, and the node task of the post node of the target signal node has been newly created, the rollback operation is not performed.

[0109] Specifically, the process has flowed to the post human node or signal node, at this time, the abnormal process will not be rolled back to the current signal node, but will be rolled back to the post human node or signal node.

[0110] If an exception occurs when the task state of the target signal node is set to the completed state, and the node task of the post node of the target signal node has not been newly created, the step of setting the task state of the target signal node to the new state is rolled back.

[0111] In the embodiments of the present application, by setting the task state of the signal node to different states, the state of the current signal node can be clearly observed, and different measures can be taken according to different states, thereby improving the accuracy of processing.

[0112] In some embodiments, if the process instance corresponding to the process information does not exist in the database, it is determined that the signal to be processed is an invalid signal.

[0113] Specifically, according to the flow information in the to-be-processed signal, only the corresponding flow definition information and target signal node information can be found, and no flow instance and signal task exist. In this case, although the to-be-processed signal exists, no effective flow instance information exists, and the to-be-processed signal is referred to as an invalid signal. For this case, the to-be-processed signal will not be stored in the database.

[0114] Of course, if the flow instance corresponding to the flow information, the target signal node and the signal task do not exist in the database, the to-be-processed signal is also an invalid signal. For this case, the to-be-processed signal will not be stored in the database.

[0115] In some embodiments, if the flow instance corresponding to the flow information and the target signal node exist in the database, the flow is transferred between the plurality of flow nodes according to the flow instance until the flow is transferred to the target signal node. Then, the signal task is newly created and submitted. The signal task is processed to obtain a processing result.

[0116] Specifically, the flow instance corresponding to the to-be-processed signal exists in the database, but the to-be-processed signal has not arrived at the target signal node. In this case, the corresponding target signal node and flow instance information can be found according to the flow information in the to-be-processed signal, but no signal task exists. In this case, the to-be-processed signal is an effective signal, the state of the to-be-processed signal is recorded as "unused" and stored in the database. When the flow runs to the target signal node, the target signal node of the flow instance is searched in the database. When it is found that the corresponding to-be-processed signal exists and the state is "unused", the flow engine device directly submits the corresponding signal task for processing, and modifies the state of the to-be-processed signal to "used". Before the flow instance is started and runs to the target signal node, the user application end can repeatedly send signals. These signals will be used only once after the signal task is created, and the state thereof will be modified to "used".

[0117] In some embodiments, if the flow instance corresponding to the flow information, the target signal node and the signal task exist in the database, and the task state of the signal task is completed, it is determined that the to-be-processed signal is an invalid signal.

[0118] Specifically, the flow instance corresponding to the to-be-processed signal, the target signal node and the signal task can be found according to the flow information in the to-be-processed signal in the database, but the state of the signal task is completed. This signal is also an invalid signal, and for this case, the signal will not be stored in the database.

[0119] Based on the same technical concept, the embodiments of the present application provide a signal processing device, as shown in Figure 7 The device 700 includes:

[0120] The receiving module 701 is configured to receive a to-be-processed signal sent by a terminal device, and parse the to-be-processed signal to obtain process information.

[0121] The submitting module 702 is configured to submit a signal task if a process instance corresponding to the process information, a target signal node and the signal task exist in a database.

[0122] The processing module 703 is configured to perform process flow transfer between a plurality of process nodes according to the process instance, until the signal task is processed when the process flow is transferred to the target signal node, to obtain a processing result.

[0123] Optionally, the receiving module 701 is specifically configured to:

[0124] Receive the to-be-processed signal sent by the terminal device in a synchronous mode or an asynchronous mode.

[0125] Optionally, the plurality of process nodes include a plurality of signal nodes, and the plurality of signal nodes are located on a plurality of parallel process branches.

[0126] Optionally, the processing module 703 is further configured to:

[0127] When detecting that a task state of a preceding node of the target signal node is a completed state, set a task state of the target signal node to a new state.

[0128] When the process flow is transferred to the target signal node, set the task state of the target signal node to a submitted state.

[0129] After the signal task is processed to obtain the processing result, the method further includes:

[0130] Set the task state of the target signal node to a completed state.

[0131] Optionally, the processing module 703 is further configured to:

[0132] If an exception occurs when the task state of the target signal node is set to the new state, roll back to the preceding node.

[0133] Optionally, the processing module 703 is further configured to:

[0134] If an exception occurs when the task state of the target signal node is set to the submitted state, roll back to the step of setting the task state of the target signal node to the new state.

[0135] Optionally, the processing module 703 is further configured to:

[0136] If an exception occurs when the task state of the target signal node is set to the completed state, and the node task of the post-node of the target signal node has been newly created, a rollback operation is not performed.

[0137] If an exception occurs when the task state of the target signal node is set to the completed state, and the node task of the post-node of the target signal node has not been newly created, the step of setting the task state of the target signal node to the newly created state is rolled back to.

[0138] Optionally, the processing module 703 is further configured to:

[0139] If the process instance corresponding to the process information does not exist in the database, it is determined that the to-be-processed signal is an invalid signal.

[0140] Optionally, the processing module 703 is further configured to:

[0141] If the process instance corresponding to the process information and the target signal node exist in the database, process flow is performed between a plurality of process nodes according to the process instance, until the process flow reaches the target signal node, a signal task is newly created and the signal task is submitted.

[0142] The signal task is processed to obtain a processing result.

[0143] Optionally, the processing module 703 is further configured to:

[0144] If the process instance corresponding to the process information, the target signal node and the signal task exist in the database, and the task state of the signal task is completed, it is determined that the to-be-processed signal is an invalid signal.

[0145] Based on the same technical concept, an embodiment of the present application provides a computer device. The computer device can be a terminal device, such as a mobile phone, a tablet computer, a computer, a server, or the like. Figure 8 As shown in the figure, the computer device includes at least one processor 801 and a memory 802 connected to the at least one processor. In the embodiment of the present application, the specific connection medium between the processor 801 and the memory 802 is not limited, Figure 8 The processor 801 and the memory 802 are connected through a bus. The bus can be divided into an address bus, a data bus, a control bus, etc.

[0146] In the embodiment of the present application, the memory 802 stores instructions executable by the at least one processor 801. The at least one processor 801 can execute the steps included in the above signal processing method by executing the instructions stored in the memory 802.

[0147] The processor 801 is the control center of the computer device, can connect various parts of the computer device by using various interfaces and lines, and process signals by running or executing instructions stored in the memory 802 and calling data stored in the memory 802. Optionally, the processor 801 can include one or more processing units, and the processor 801 can integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, and an application program, and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 801. In some embodiments, the processor 801 and the memory 802 can be implemented on the same chip, and in some embodiments, they can also be respectively implemented on independent chips.

[0148] The processor 801 can be a general-purpose processor, for example, a central processing unit (CPU), a digital signal processor, an application specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as hardware processor execution or executed by a combination of hardware and software modules in the processor.

[0149] The memory 802, as a non-volatile computer readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 802 can include at least one type of storage medium, for example, can include flash memory, hard disk, multimedia card, card type memory, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic storage, magnetic disk, optical disk, etc. The memory 802 is any other medium capable of carrying or storing desired program codes in the form of instructions or data structures and capable of being accessed by a computer, but is not limited thereto. The memory 802 in the embodiments of the present application can also be a circuit or any other device capable of realizing a storage function, used to store program instructions and / or data.

[0150] Based on the same inventive concept, the embodiments of the present application provide a computer readable storage medium storing a computer program executable by a computer device, which, when executed on the computer device, causes the computer device to perform the steps of the signal processing method.

[0151] Based on the same inventive concept, the embodiments of the present application provide a computer program product, which comprises a computer program stored on a computer readable storage medium, the computer program comprising program instructions, which, when executed by a computer device, cause the computer device to perform the steps of the signal processing method.

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

[0153] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks. Figure 1 one or more flow or blocks.

[0154] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart block or blocks. Figure 1 one or more flow or blocks. Figure 1 one or more flow or blocks.

[0155] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks. Figure 1 Figure 1 one or more flow or blocks.

[0156] Obviously, numerous modifications and variations of the present application are possible in light of the above teachings. It is therefore to be understood that within the scope of the appended claims and their equivalents, the application can be practiced otherwise than as specifically described.

Claims

1. A signal processing method applied to a process engine device, characterized in that, The method comprises the following steps: receiving a to-be-processed signal sent by a terminal device, and analyzing the to-be-processed signal to obtain process information; if a process instance corresponding to the process information and a target signal node exist in a database, but no signal task exists, then recording a state of the to-be-processed signal as unused and storing the to-be-processed signal in the database; carrying out process flow transfer between a plurality of process nodes according to the process instance, and if a task state of a preceding node of the target signal node is detected as a completed state, then setting a task state of the target signal node as a new state; until the process flow transfers to the target signal node, if the to-be-processed signal corresponding to the target signal node exists in the database and is unused, then a signal task is newly created and submitted; after the signal task is submitted, setting the task state of the target signal node as a submitted state, and modifying the state of the to-be-processed signal as used; processing the signal task to obtain a processing result, and setting the task state of the target signal node as a completed state.

2. The method of claim 1, wherein, The receiving a to-be-processed signal sent by a terminal device comprises the following steps: receiving the to-be-processed signal sent by the terminal device in a synchronous mode or an asynchronous mode.

3. The method of claim 1, wherein, The plurality of process nodes comprise a plurality of signal nodes, and the plurality of signal nodes are located on a plurality of parallel process branches.

4. The method of claim 1, wherein, The method further comprises the following steps: if an exception occurs when the task state of the target signal node is set as the new state, then rolling back to the preceding node.

5. The method of claim 1, wherein, The method further comprises the following steps: if an exception occurs when the task state of the target signal node is set as the submitted state, then rolling back to the step of setting the task state of the target signal node as the new state.

6. The method of claim 1, wherein, The method further comprises the following steps: if an exception occurs when the task state of the target signal node is set as the completed state, and a node task of a succeeding node of the target signal node has been newly created, then no rolling back operation is performed; if an exception occurs when the task state of the target signal node is set as the completed state, and a node task of a succeeding node of the target signal node has not been newly created, then rolling back to the step of setting the task state of the target signal node as the new state.

7. The method of claim 1, wherein, The method further comprises the following steps: if the process instance corresponding to the process information does not exist in the database, then determining that the to-be-processed signal is an invalid signal.

8. The method of claim 1, wherein, The method further comprises the following steps: if the process instance corresponding to the process information, the target signal node and the signal task exist in the database, and a task state of the signal task is completed, then determining that the to-be-processed signal is an invalid signal.

9. A signal processing device, applied to a process engine equipment, characterized in that, The method comprises the following steps: a receiving module, configured to receive a to-be-processed signal sent by a terminal device, and analyze the to-be-processed signal to obtain process information; a submitting module, configured to, if a process instance corresponding to the process information and a target signal node exist in a database, but no signal task exists, then record a state of the to-be-processed signal as unused and store the to-be-processed signal in the database; a processing module, configured to carry out process flow transfer between a plurality of process nodes according to the process instance, and if a task state of a preceding node of the target signal node is detected as a completed state, then set a task state of the target signal node as a new state; Until the process flows to the target signal node, if the to-be-processed signal corresponding to the target signal node in the database is unused, a signal task is newly created and the signal task is submitted; After the signal task is submitted, the task state of the target signal node is set to a submitted state, and the to-be-processed signal state is modified to used; The signal task is processed to obtain a processing result, and the task state of the target signal node is set to a completed state.

10. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor implements the steps of the method in any one of claims 1-8 when executing the program.

11. A computer readable storage medium, characterized in that, The computer device stores the computer program executable by the computer device, and when the program runs on the computer device, the computer device executes the steps of the method in any one of claims 1-8.

12. A computer program product, characterised in that, The computer program product comprises a computer program stored on a computer readable storage medium, and the computer program comprises program instructions, which, when executed by a computer device, cause the computer device to execute the steps of the method in any one of claims 1-8.

Citation Information

Patent Citations

  • Information processing method and server

    CN113344547A