CN115883556A - Signal processing method, device, equipment and storage medium - Google Patents

Signal processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN115883556A
CN115883556A CN202211528474.4A CN202211528474A CN115883556A CN 115883556 A CN115883556 A CN 115883556A CN 202211528474 A CN202211528474 A CN 202211528474A CN 115883556 A CN115883556 A CN 115883556A
Authority
CN
China
Prior art keywords
signal
task
node
flow
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211528474.4A
Other languages
Chinese (zh)
Inventor
刘新宇
刘波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202211528474.4A priority Critical patent/CN115883556A/en
Publication of CN115883556A publication Critical patent/CN115883556A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application provides a signal processing method, a device, equipment and a storage medium, which relate to the technical field of task scheduling, and the method comprises the following steps: receiving a signal to be processed sent by terminal equipment, analyzing the signal to be processed to obtain process information, if a process example, a target signal node and a signal task corresponding to the process information exist in a database, submitting the signal task, performing process flow among a plurality of process nodes according to the process example until the process flow reaches the target signal node, processing the signal task, and obtaining a processing result. In the embodiment of the application, the triggering processes with different forms are unified and summarized, and the triggering processes are used as the processes of sending and receiving processing of signals, so that the universality of node triggering is improved, the configuration process of the flow nodes is simplified, the purposes are widened, and the learning use cost is reduced.

Description

Signal processing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of task scheduling technologies, and in particular, to a signal processing method, apparatus, device, and storage medium.
Background
At present, nodes in a workflow are of various types, one type is nodes needing manual triggering, the other type is nodes which can be automatically processed without manual operation, and the last type is nodes which can be waited before triggering and are not triggered manually. For the first two nodes, the triggering pattern is well defined, while the triggering pattern of the last phase is undefined.
The workflow engine uses a plurality of node types or event types according to the triggering source, the triggering mode is single, the application needs to select a specific type of node for each situation, and each node type or event needs to be well known, so that the workflow node is over-targeted, the learning cost is high, and the universality is poor.
Disclosure of Invention
The embodiment of the application provides a signal processing method, a signal processing device, signal processing equipment and a signal processing storage medium, which are used for improving the universality of node triggering, simplifying the configuration process of nodes, widening the application and reducing the learning use cost.
In one aspect, an embodiment of the present application provides a signal processing method, where the method includes:
receiving a signal to be processed sent by terminal equipment, and analyzing the signal to be processed to obtain flow information;
if the flow instance, the target signal node and the signal task corresponding to the flow information exist in the database, submitting the signal task;
and performing flow circulation among the plurality of flow nodes according to the flow example until the flow circulation reaches the target signal node, and processing the signal task to obtain a processing result.
In the embodiment of the application, the triggering processes with different forms are unified and summarized, and the triggering processes are used as the processes of sending and receiving processing of signals, so that the submission of node tasks can be triggered according to needs under the condition that various process node types are not known, the universality of node triggering is improved, meanwhile, the configuration process of the process nodes is simplified, the purposes are widened, and the learning use cost is reduced.
Optionally, the receiving a signal to be processed sent by the terminal device includes:
and receiving a signal to be processed sent by the terminal equipment through a synchronous mode or an asynchronous mode.
In the embodiment of the application, the signals to be processed are received in a synchronous or asynchronous mode, so that the diversity of signal processing can be realized, and different modes can be processed.
Optionally, the plurality of flow nodes includes a plurality of signal nodes, and the plurality of signal nodes are located on a plurality of parallel flow branches.
Optionally, before processing the signal task and obtaining a processing result, the processing method further includes:
when the task state of the front node of the target signal node is detected to be a finished state, setting the task state of the target signal node to be a new state;
when the process flow is transferred to the target signal node, setting the task state of the target signal node to be a submission state;
after the signal task is processed and a processing result is obtained, the method further includes:
and setting the task state of the target signal node as a completion state.
In the embodiment of the application, the task states of the signal nodes are set to be different states, so that the states of the current signal nodes can be clearly observed, different measures can be taken according to the different states, and the processing accuracy is improved.
Optionally, the method further comprises:
and if the task state of the target signal node is set to be a new state, the target signal node is rolled back to the front node.
In the embodiment of the application, when the new state is abnormal, the abnormal point is searched in the current node by rolling back to the front node, and the position of the abnormal point can be more widely and accurately searched.
Optionally, the method further comprises:
and if the task state of the target signal node is set to be the submitting state, the step of rolling back to the step of setting the task state of the target signal node to be the new state occurs.
In the embodiment of the application, the range of searching the abnormal point can be expanded by rolling back in the previous step, so that the abnormal point can be searched more accurately.
Optionally, the method further comprises:
if the task state of the target signal node is set to be in a completion state, and an abnormal state occurs, and a node task of a post node of the target signal node is newly established, the rollback operation is not executed;
and if the task state of the target signal node is set to be the completion state, an exception occurs, and a node task of a post node of the target signal node is not newly established, rolling back to the step of setting the task state of the target signal node to be the new establishment state.
In the embodiment of the application, when the task state of the target signal node is set to the completion state, if a node task of a post-node of the target signal node is newly established, it is indicated that the continuous flow of the process is not affected, so that the operation cannot be rolled. If the node task of the post node of the target signal node is not newly established, the rollback operation needs to be carried out so as to avoid influencing the continuous flow of the process.
Optionally, the method further comprises:
and if the database does not have the process instance corresponding to the process information, determining the signal to be processed as an invalid signal.
Optionally, the method further comprises:
if a process instance and a target signal node corresponding to the process information exist in the database, performing process flow among a plurality of process nodes according to the process instance, and creating a signal task and submitting the signal task when the process flow reaches the target signal node;
and processing the signal task to obtain a processing result.
Optionally, the method further comprises:
and if the flow instance, the target signal node and the signal task corresponding to the flow information exist in the database and the task state of the signal task is finished, determining that the signal to be processed is an invalid signal.
In one aspect, an embodiment of the present application provides a signal processing method, including:
acquiring a signal to be processed, and analyzing the signal to be processed to obtain process information;
if the flow instance, the target signal node and the signal task corresponding to the flow information exist in the database, submitting the signal task;
and performing flow circulation among the plurality of flow nodes according to the flow example until the flow circulation reaches the target signal node, and processing the signal task to obtain a processing result.
In one aspect, an embodiment of the present application provides a signal processing apparatus, including:
the receiving module is used for receiving a signal to be processed sent by the terminal equipment, analyzing the signal to be processed and acquiring process information;
the submitting module is used for submitting the signal task if the flow instance, the target signal node and the signal task corresponding to the flow information exist in the database;
and the processing module is used for performing flow circulation among the plurality of flow nodes according to the flow example until the flow circulation reaches the target signal node, and processing the signal task to obtain a processing result.
Optionally, the receiving module is specifically configured to:
and receiving a signal to be processed sent by the terminal equipment through a synchronous mode or an asynchronous mode.
Optionally, the plurality of flow nodes includes a plurality of signal nodes, and the plurality of signal nodes are located on a plurality of parallel flow branches.
Optionally, the processing module is further configured to:
processing the signal task, and setting the task state of the target signal node as a new state when detecting that the task state of the front node of the target signal node is a finished state before obtaining a processing result;
when the process flow is transferred to the target signal node, setting the task state of the target signal node to be a submission state;
after the signal task is processed and a processing result is obtained, the method further includes:
and setting the task state of the target signal node as a completion state.
Optionally, the processing module is further configured to:
and if the task state of the target signal node is set to be a new state, the target signal node is rolled back to the front node.
Optionally, the processing module is further configured to:
and if the task state of the target signal node is set to be the submitting state, the step of rolling back to the step of setting the task state of the target signal node to be the new state occurs.
Optionally, the processing module is further configured to:
if the task state of the target signal node is set to be a completion state, an exception occurs, and a node task of a post node of the target signal node is established, no rollback operation is executed;
and if the task state of the target signal node is set to be the completion state, an exception occurs, and a node task of a post node of the target signal node is not newly established, rolling back to the step of setting the task state of the target signal node to be the new establishment state.
Optionally, the processing module is further configured to:
and if the database does not have the process instance corresponding to the process information, determining the signal to be processed as an invalid signal.
Optionally, the processing module is further configured to:
if a process instance and a target signal node corresponding to the process information exist in the database, performing process flow among a plurality of process nodes according to the process instance, and creating a signal task and submitting the signal task when the process flow reaches the target signal node;
and processing the signal task to obtain a processing result.
Optionally, the processing module is further configured to:
and if the flow instance, the target signal node and the signal task corresponding to the flow information exist in the database and the task state of the signal task is finished, determining that the signal to be processed is an invalid signal.
In one aspect, an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the signal processing method when executing the program.
In one aspect, embodiments of the present application provide a computer-readable storage medium, which stores a computer program executable by a computer device, and when the program runs on the computer device, the computer device is caused to execute the steps of the signal processing method.
In one aspect, the present application provides a computer program product including a computer program stored on a computer-readable storage medium, the computer program including program instructions that, when executed by a computer device, cause the computer device to execute the steps of the above-mentioned signal processing method.
In the embodiment of the application, the triggering processes with different forms are unified and summarized, and the triggering processes are used as the processes of sending and receiving processing of signals, so that the submission of node tasks can be triggered according to needs under the condition that various process node types are not known, the universality of node triggering is improved, meanwhile, the configuration process of the process nodes is simplified, the purposes are widened, and the learning use cost is reduced.
Drawings
FIG. 1 is a diagram of a system architecture according to an embodiment of the present application;
fig. 2A is a schematic flowchart of a signal processing method according to an embodiment of the present disclosure;
fig. 2B is a schematic flowchart of a signal transmitting and receiving process according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a signal setting status method according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram illustrating a new signal setting status according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a signal set to a committed state according to an embodiment of the present application;
FIG. 6 is a diagram illustrating a signal setting status as done according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a signal processing apparatus according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
Referring to fig. 1, a system architecture diagram applicable to the embodiment of the present application is shown, and the system includes at least a process engine device 101 and a terminal device 102.
The process engine device 101 and the terminal device 102 may be a server cluster or a distributed system formed by a plurality of physical servers, and may also be cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content Delivery Networks (CDNs), and big data and artificial intelligence platforms. The process engine device 101 and the terminal device 102 may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein. The process engine device 101 interacts with the terminal device 102 to implement the process of the signal processing method. It should be noted that, in the technical solution of the present application, the data acquisition, storage, use, processing, and the like of the flow engine device all conform to relevant regulations of national laws and regulations.
Based on the system architecture diagram shown in fig. 1, the present application provides a flow of a signal processing method, as shown in fig. 2A, the flow of the method is executed by a computer device, which may be the flow engine device 101 shown in fig. 1, and includes the following steps:
step 201, receiving a signal to be processed sent by a terminal device, and analyzing the signal to be processed to obtain flow information.
Specifically, the signal is prepared and sent in the terminal device, and the terminal device can configure the signal according to the requirement. The terminal equipment firstly receives a signal request needing to be sent, then obtains required flow information according to the information in the signal request to carry out preparation work of sending signals, generates a new signal object and then sends out the signals.
The flow information includes one or more of: a process instance, a target signal node, a signal task, and a process template.
In some embodiments, the signal to be processed transmitted by the terminal device through the synchronous mode or the asynchronous mode is received.
The signal node in the invention supports two working modes: synchronous mode and asynchronous mode. The synchronous mode is an Application Program Interface (API), which is called a process engine device signal service, and the asynchronous mode is a mode of signal asynchronous threads.
The synchronous mode is that the terminal equipment and the process engine equipment are in the same thread and follow the same object principle. The method comprises the following steps that the terminal equipment sends signals in a mode of directly calling an API (application program interface) of signal service of the process engine equipment, and waits for a return result of signal processing of the process engine equipment; and when the process engine equipment runs to a certain subsequent manual node or signal node, namely is stopped on a node of a certain non-automatic type, returning a notification result. In the synchronous mode, when an abnormality occurs in the signal receiving or signal processing process, both the application and the process engine equipment perform data rollback, which is equivalent to that no signal is sent or received at this time.
The asynchronous mode means that the terminal equipment and the process engine equipment are in different threads and follow different object principles. The terminal equipment is also an API for calling the signal service of the process engine equipment, and the terminal equipment does not need to wait at the moment and can continue to perform other operations; the process engine device will use a new thread in the asynchronous signal thread service, and thus receive the signal and process the signal later, the process is consistent with that in the synchronous mode. In the asynchronous mode, if the process engine equipment is abnormal, the process engine equipment only rolls back according to the current transaction, and the terminal equipment is in another transaction and does not roll back.
Whether the signal to be processed transmitted by the receiving terminal device in the synchronous mode or the asynchronous mode is determined by whether the asynchronous notification keyword "asyn _ notify" is included in the context information in the signal. If the asynchronous notification key "asyn _ notify" is included and its value is true, it is in asynchronous mode, otherwise it is in synchronous mode.
Step 202, if a process instance, a target signal node and a signal task corresponding to the process information exist in the database, submitting the signal task.
Specifically, when receiving a signal to be processed sent by a terminal device, a process engine device searches whether a process instance, a target signal node and a signal task corresponding to process information of the signal to be processed exist in a database, and if so, submits the task of the signal to be processed.
The signal receiving and signal processing stage is located in the process engine device, as shown in fig. 2B, the process engine device receives and analyzes the signal, obtains the process information therein, and queries and retrieves whether there are process instances, target signal nodes, and signal tasks that meet the conditions in the database according to the process information, thereby determining whether the signal is valid. If yes, submitting the signal task, enabling the process engine equipment to continue to perform process flow downwards, recording the signal information, and modifying the signal state to be used; if not, the state of the modification signal is invalid, and the task submitting operation is not carried out.
And 203, performing flow circulation among the plurality of flow nodes according to the flow example until the flow circulation reaches the target signal node, and processing the signal task to obtain a processing result.
In some embodiments, the plurality of flow nodes of the flow instance includes a plurality of signal nodes, and the plurality of signal nodes are located on a plurality of parallel flow branches.
Specifically, a configuration using a plurality of signal nodes is allowed in one flow example, that is, a case where a plurality of signal nodes exist. In which case the diversity and complexity of the use of the terminal device is increased. The use of the plurality of signal nodes has certain preconditions and requirements, generally only allows the use of the plurality of signal nodes under the condition of a plurality of flow branches, and requires the aggregation of the flow branches or the manual control of the use sequence of the signal nodes, thereby ensuring the uniqueness of the whole flow operation.
Before processing the signal task and obtaining the processing result, as shown in fig. 3, the method further includes the following steps:
step 301, when detecting that the task state of the front node of the target signal node is the completion state, setting the task state of the target signal node as a new state.
Specifically, a large number of nodes are passed through during the operation of the process engine device, and only after the newly created task is submitted and completed, the newly created task will reach the subsequent nodes and accordingly create a new task. As shown in fig. 4, the solid line indicates executed, and the dotted line indicates not executed. When the task state of the current node is the completion state, the process engine device creates a new task for the target signal node, and at this time, the task state of the target signal node is the new state, that is, the target signal node is in a state of waiting for receiving signals, and at this time, the state of the subsequent node is not reached.
In some embodiments, if an exception occurs when the task state of the target signal node is set to the new state, rolling back to the front node.
Specifically, when the task state of the target signal node is set to be a new state, an exception occurs, the process engine device automatically rolls back until a manual node or a signal node is found, and if no similar node exists, the whole process instance is rolled back.
Step 302, when the process flow is transferred to the target signal node, setting the task state of the target signal node to be a submission state.
Specifically, after the target signal node receives the signal to be processed and determines that the signal to be processed is valid, the process engine device submits the signal task, as shown in fig. 5, at this time, the task state of the pre-node is complete, the task state of the target signal node is submitted, and the task state of the subsequent node is still in the unreached state.
In some embodiments, if an exception occurs when the task state of the target signal node is set to the commit state, a rollback is performed to the step of setting the task state of the target signal node to the new state.
Specifically, when the task state of the target signal node is set to be the submission state, and an exception occurs, the process engine device will also perform data rollback, the operation and the data in the task submission process are invalid, and the task will return to the newly-built state of the previous signal task.
And step 303, processing the signal task, and setting the task state of the target signal node to be a completion state after a processing result is obtained.
Specifically, when the task state of the target signal node is complete, after the post-node receives the target signal, the process engine device sets the task state of the post-node to be a new state, as shown in fig. 6.
In some embodiments, if an exception occurs when the task state of the target signal node is set to the completion state, and a node task of a post node of the target signal node is created, the rollback operation is not executed.
Specifically, the process has already been flowed to the post-positioned artificial node or signal node, and at this time, the abnormal process will not be rolled back to the current signal node, but will be rolled back to the post-positioned artificial node or signal node.
And if the task state of the target signal node is set to be the completion state, an exception occurs, and a node task of a post-positioned node of the target signal node is not newly established, rolling back to the step of setting the task state of the target signal node to be the new establishment state.
In the embodiment of the application, the task states of the signal nodes are set to be different states, so that the states of the current signal nodes can be clearly observed, different measures can be taken according to the different states, and the processing accuracy is improved.
In some embodiments, if there is no process instance corresponding to the process information in the database, it is determined that the signal to be processed is an invalid signal.
Specifically, according to the process information in the signal to be processed, only the corresponding process definition information and the target signal node information can be found, and no process instance and no signal task exist. In this case, the signal to be processed, but without valid process instance information, is called an invalid signal, for which the signal to be processed is not stored in the database.
Of course, if the database does not have the flow instance, the target signal node and the signal task corresponding to the flow information, the signal to be processed is also an invalid signal, and for this case, the signal to be processed is not stored in the database.
In some embodiments, if a process instance and a target signal node corresponding to the process information exist in the database, process flow is performed among the plurality of process nodes according to the process instance until the process flow reaches the target signal node, a signal task is newly established and the signal task is submitted. And processing the signal task to obtain a processing result.
Specifically, the database has a process instance corresponding to the signal to be processed but the signal to be processed does not reach the target signal node, and in this case, the corresponding target signal node and process instance information can be found according to the process information in the signal to be processed, but there is no signal task. In this case, the signal to be processed is a valid signal, the state of the signal to be processed is recorded as "unused" and stored in the database, when the process runs to the target signal node, the target signal node of the process instance is searched in the database, and when the corresponding signal to be processed with the state of "unused" is found, the process engine device directly submits the corresponding signal task and modifies the state of the signal to be processed into "used". After the process instance is started and before the process instance is operated to the target signal node, the user application terminal can repeatedly send signals in the period of time, the signals are used only once after the signal task is created, and the states of the signals are modified to be used.
In some embodiments, if a process instance, a target signal node, and a signal task corresponding to the process information exist in the database, and the task state of the signal task is completed, it is determined that the signal to be processed is an invalid signal.
Specifically, the database may find the corresponding process instance, the target signal node, and the signal task according to the process information in the signal to be processed, but the signal task is completed. This signal is likewise an invalid signal, which for this case is not stored in the database.
Based on the same technical concept, the present application provides a signal processing apparatus, as shown in fig. 7, the apparatus 700 includes:
a receiving module 701, configured to receive a signal to be processed sent by a terminal device, and analyze the signal to be processed to obtain flow information;
a submitting module 702, configured to submit the signal task if a process instance, a target signal node, and a signal task corresponding to the process information exist in the database;
the processing module 703 is configured to perform flow circulation among the plurality of flow nodes according to the flow instance, and process the signal task until the flow circulation reaches the target signal node, so as to obtain a processing result.
Optionally, the receiving module 701 is specifically configured to:
and receiving a signal to be processed sent by the terminal equipment through a synchronous mode or an asynchronous mode.
Optionally, the plurality of flow nodes includes a plurality of signal nodes, and the plurality of signal nodes are located on a plurality of parallel flow branches.
Optionally, the processing module 703 is further configured to:
when the task state of the front node of the target signal node is detected to be a finished state, setting the task state of the target signal node to be a new state;
when the process flow is transferred to the target signal node, setting the task state of the target signal node to be a submission state;
after the signal task is processed and a processing result is obtained, the method further includes:
and setting the task state of the target signal node as a completion state.
Optionally, the processing module 703 is further configured to:
and if the task state of the target signal node is set to be a new state, the target signal node is rolled back to the front node.
Optionally, the processing module 703 is further configured to:
and if the task state of the target signal node is set to be the submitting state, the step of rolling back to the step of setting the task state of the target signal node to be the new state occurs.
Optionally, the processing module 703 is further configured to:
if the task state of the target signal node is set to be a completion state, an exception occurs, and a node task of a post node of the target signal node is established, no rollback operation is executed;
and if the task state of the target signal node is set to be the completion state, an exception occurs, and a node task of a post node of the target signal node is not newly established, rolling back to the step of setting the task state of the target signal node to be the newly established state.
Optionally, the processing module 703 is further configured to:
and if the database does not have the process instance corresponding to the process information, determining the signal to be processed as an invalid signal.
Optionally, the processing module 703 is further configured to:
if a process instance and a target signal node corresponding to the process information exist in the database, performing process flow among a plurality of process nodes according to the process instance, and creating a signal task and submitting the signal task when the process flow reaches the target signal node;
and processing the signal task to obtain a processing result.
Optionally, the processing module 703 is further configured to:
and if the flow instance, the target signal node and the signal task corresponding to the flow information exist in the database and the task state of the signal task is finished, determining that the signal to be processed is an invalid signal.
Based on the same technical concept, the embodiment of the present application provides a computer device, which may be a terminal device, as shown in fig. 8, including at least one processor 801 and a memory 802 connected to the at least one processor, where a specific connection medium between the processor 801 and the memory 802 is not limited in the embodiment of the present application, and fig. 8 illustrates that the processor 801 and the memory 802 are connected through a bus. The bus may be divided into an address bus, a data bus, a control bus, etc.
In the embodiment of the present application, the memory 802 stores instructions executable by the at least one processor 801, and the at least one processor 801 may execute the steps included in the signal processing method by executing the instructions stored in the memory 802.
The processor 801 is a control center of the computer device, and may connect various parts of the computer device by using various interfaces and lines, and perform signal processing by operating or executing instructions stored in the memory 802 and calling data stored in the memory 802. Optionally, the processor 801 may include one or more processing units, and the processor 801 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 801. In some embodiments, the processor 801 and the memory 802 may be implemented on the same chip, or in some embodiments, they may be implemented separately on separate chips.
The processor 801 may be a general-purpose processor, such as 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, discrete gate or transistor logic, discrete hardware components, or any combination thereof, configured to implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present Application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in a processor.
Memory 802, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory 802 may include at least one type of storage medium, and may include, for example, a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charge Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and so on. The memory 802 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 802 in the embodiments of the present application may also be circuitry or any other device capable of performing a storage function for storing program instructions and/or data.
Based on the same inventive concept, embodiments of the present application provide a computer-readable storage medium storing a computer program executable by a computer device, which, when the program is run on the computer device, causes the computer device to perform the steps of the above-mentioned signal processing method.
Based on the same inventive concept, the present application provides a computer program product comprising a computer program stored on a computer-readable storage medium, the computer program comprising program instructions that, when executed by a computer device, cause the computer device to perform the steps of the above-mentioned signal processing method.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (15)

1. A signal processing method applied to a process engine device is characterized by comprising the following steps:
receiving a signal to be processed sent by terminal equipment, and analyzing the signal to be processed to obtain flow information;
if a process instance, a target signal node and a signal task corresponding to the process information exist in the database, submitting the signal task;
and performing flow circulation among the plurality of flow nodes according to the flow example until the flow circulation reaches the target signal node, and processing the signal task to obtain a processing result.
2. The method of claim 1, wherein the receiving the signal to be processed transmitted by the terminal device comprises:
and receiving a signal to be processed sent by the terminal equipment through a synchronous mode or an asynchronous mode.
3. The method of claim 1, wherein the plurality of flow nodes comprises a plurality of signal nodes, and wherein the plurality of signal nodes are located on a plurality of parallel flow branches.
4. The method of claim 1, wherein before processing the signal task to obtain a processing result, further comprising:
when the task state of the front node of the target signal node is detected to be a finished state, setting the task state of the target signal node to be a new state;
when the process flow is transferred to the target signal node, setting the task state of the target signal node to be a submission state;
after the signal task is processed and a processing result is obtained, the method further includes:
and setting the task state of the target signal node as a completion state.
5. The method of claim 4, further comprising:
and if the task state of the target signal node is set to be a new state, the target signal node is rolled back to the front node.
6. The method of claim 4, further comprising:
and if the task state of the target signal node is set to be the submitting state, the step of rolling back to the step of setting the task state of the target signal node to be the new state occurs.
7. The method of claim 4, further comprising:
if the task state of the target signal node is set to be a completion state, an exception occurs, and a node task of a post node of the target signal node is established, no rollback operation is executed;
and if the task state of the target signal node is set to be the completion state, an exception occurs, and a node task of a post node of the target signal node is not newly established, rolling back to the step of setting the task state of the target signal node to be the new establishment state.
8. The method of claim 4, further comprising:
and if the database does not have the process instance corresponding to the process information, determining the signal to be processed as an invalid signal.
9. The method of claim 4, further comprising:
if a process instance and a target signal node corresponding to the process information exist in the database, performing process flow among a plurality of process nodes according to the process instance, and creating a signal task and submitting the signal task when the process flow reaches the target signal node;
and processing the signal task to obtain a processing result.
10. The method of claim 4, further comprising:
and if the flow instance, the target signal node and the signal task corresponding to the flow information exist in the database and the task state of the signal task is finished, determining that the signal to be processed is an invalid signal.
11. A signal processing method, comprising:
acquiring a signal to be processed, and analyzing the signal to be processed to obtain process information;
if the flow instance, the target signal node and the signal task corresponding to the flow information exist in the database, submitting the signal task;
and performing flow circulation among the plurality of flow nodes according to the flow example until the flow circulation reaches the target signal node, and processing the signal task to obtain a processing result.
12. A signal processing apparatus applied to a process engine device, comprising:
the receiving module is used for receiving a signal to be processed sent by the terminal equipment and analyzing the signal to be processed to obtain process information;
the submitting module is used for submitting the signal task if the flow instance, the target signal node and the signal task corresponding to the flow information exist in the database;
and the processing module is used for performing flow circulation among the plurality of flow nodes according to the flow example until the flow circulation reaches the target signal node, and processing the signal task to obtain a processing result.
13. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1 to 11 when executing the program.
14. A computer-readable storage medium, in which a computer program is stored which is executable by a computer device, and which, when run on the computer device, causes the computer device to carry out the steps of the method according to any one of claims 1 to 11.
15. A computer program product, characterized in that the computer program product 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 carry out the steps of the method of any one of claims 1 to 11.
CN202211528474.4A 2022-11-30 2022-11-30 Signal processing method, device, equipment and storage medium Pending CN115883556A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211528474.4A CN115883556A (en) 2022-11-30 2022-11-30 Signal processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211528474.4A CN115883556A (en) 2022-11-30 2022-11-30 Signal processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115883556A true CN115883556A (en) 2023-03-31

Family

ID=85765242

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211528474.4A Pending CN115883556A (en) 2022-11-30 2022-11-30 Signal processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115883556A (en)

Similar Documents

Publication Publication Date Title
US10140329B2 (en) Processing transactions in a distributed computing system
US6339771B1 (en) Method and system for managing connections to a database management system
CN110309161B (en) Data synchronization method and device and server
WO2017063520A1 (en) Method and apparatus for operating database
CN111522631A (en) Distributed transaction processing method, device, server and medium
CN110795171B (en) Service data processing method, device, computer equipment and storage medium
CN112613993B (en) Transaction data processing method and device, computer equipment and storage medium
JP5518950B2 (en) Virtual machine management system and management method
AU2019241002B2 (en) Transaction processing method and system, and server
CN111046106A (en) Cache data synchronization method, device, equipment and medium
CN110955390A (en) Data processing method and device and electronic equipment
CN113626449A (en) Data storage method, data query method and related equipment
CN115883556A (en) Signal processing method, device, equipment and storage medium
CN114912587B (en) Neural network distributed training system, method, device, computing unit and medium
CN116302702A (en) Distributed transaction rollback method, electronic equipment and storage medium
CN110008010B (en) System calling method, device, equipment and readable storage medium
CN113656374A (en) Method and device for processing service message with attachment
CN109901933B (en) Operation method and device of business system, storage medium and electronic device
CN113448733B (en) Data processing method and system
CN111124923B (en) Running state query method and device, server equipment and storage medium
CN109032777B (en) Process restarting method and device, computing equipment and computer storage medium
CN110740062A (en) Breakpoint resume method and device
CN114281892A (en) Data synchronization method, device, equipment and storage medium
CN117194575A (en) Database double-writing method, device, equipment, medium and product
CN115048628A (en) Data export method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination