CN116820877A - Message determining method, device and computer readable storage medium - Google Patents

Message determining method, device and computer readable storage medium Download PDF

Info

Publication number
CN116820877A
CN116820877A CN202310674007.0A CN202310674007A CN116820877A CN 116820877 A CN116820877 A CN 116820877A CN 202310674007 A CN202310674007 A CN 202310674007A CN 116820877 A CN116820877 A CN 116820877A
Authority
CN
China
Prior art keywords
target
message
event
parameter value
parameter
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
CN202310674007.0A
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 United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202310674007.0A priority Critical patent/CN116820877A/en
Publication of CN116820877A publication Critical patent/CN116820877A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The application provides a message determining method, a message determining device and a computer readable storage medium, relates to the field of data processing, and can determine a message under the condition that input parameters of a plurality of service systems are required. The method comprises the following steps: acquiring a parameter value of each target input parameter in a plurality of target input parameters of a target event in a state machine; the plurality of target input parameters are from a plurality of business systems; judging whether the parameter value of each target input parameter accords with a target rule corresponding to a target event; the target rule includes a target parameter value for each of a plurality of target input parameters; and under the condition that the parameter value of each target input parameter accords with the target rule corresponding to the target event, determining the message corresponding to the target rule as the target message corresponding to the target event.

Description

Message determining method, device and computer readable storage medium
Technical Field
The present application relates to the field of data processing, and in particular, to a method and apparatus for determining a message, and a computer readable storage medium.
Background
When one business system sends a target message to other business systems, the business system is required to input parameters into a message model in the business system to determine the target message sent to the other business systems, and then the target message is sent to a message center to interact with the other business systems.
With the development of interaction diversity among service systems, a target message often needs input parameters of a plurality of service systems to be determined, in this case, in the existing message determining method for determining the target message by one service system, since the input parameters come from one service system, the existing method cannot determine the target message, and thus interaction among service systems is blocked.
Disclosure of Invention
The application provides a message determining method, a message determining device and a computer readable storage medium, which can determine a message under the condition that input parameters of a plurality of service systems are needed.
In order to achieve the above purpose, the application adopts the following technical scheme:
in a first aspect, a method for determining a message is provided, the method comprising: acquiring a parameter value of each target input parameter in a plurality of target input parameters of a target event in a state machine; the plurality of target input parameters are from a plurality of business systems; judging whether the parameter value of each target input parameter accords with a target rule corresponding to a target event; the target rule includes a target parameter value for each of a plurality of target input parameters; and under the condition that the parameter value of each target input parameter accords with the target rule corresponding to the target event, determining the message corresponding to the target rule as the target message corresponding to the target event.
Based on the scheme, the method comprises the steps of obtaining a parameter value of each target input parameter of a plurality of target input parameters of a plurality of business systems of a target event in a state machine, and determining a message corresponding to a target rule as a target message corresponding to the target event under the condition that the parameter value of each target input parameter accords with the target rule corresponding to the target event. Compared with the existing message determination scheme for determining the target message by one service system, the scheme of the application can determine the message under the condition that the input parameters of a plurality of service systems are needed by acquiring the parameter value of each target input parameter in a plurality of target input parameters of a plurality of service systems of the target event and further determining the target message.
With reference to the first aspect, in certain implementation manners of the first aspect, acquiring a parameter value of each target input parameter of a plurality of target input parameters of a target event in a state machine includes: acquiring a first message determination request of a first service system; the first message determination request includes a target work order identification, a target rule identification, and a parameter value of at least one first input parameter; under the condition that no event mark exists in the state machine and is the event marked by the target work order mark and the target rule mark, a target event in the state machine is established; the event identification of the target event is a target work order identification and a target rule identification; acquiring a second message determining request of each second service system in at least one second service system to acquire a parameter value of each target input parameter in a plurality of target input parameters of a target event in a state machine; the second message determination request includes a target work order identification, a target rule identification, and parameter values for at least one second input parameter, and the input parameter set of at least one first input parameter and at least one second input parameter includes a plurality of target input parameters.
Based on the scheme, by creating a target event in the state machine and acquiring a message determination request of a plurality of business systems, the scheme of acquiring a parameter value of each target input parameter of a plurality of target input parameters of the target event in the state machine can be realized because the message determination request comprises at least one input parameter.
With reference to the first aspect, in certain embodiments of the first aspect, the method further comprises: the state of the target event is set to the completed state.
Based on the scheme, after the target message corresponding to the target event is determined, the determined target message can be determined by setting the state of the target event to be the completed state, so that other subsequent service systems can acquire the target message conveniently.
With reference to the first aspect, in certain embodiments of the first aspect, the method further comprises: acquiring a message acquisition request of each third service system in at least one third service system; the message acquisition request comprises a target work order identifier and a target rule identifier; sending a message acquisition response message to each third service system under the condition that the state of the target event is the completed state; the message acquisition response message comprises a target message corresponding to the target event.
Based on the scheme, the third service system can acquire the target message by acquiring the message acquisition request of the third service system and sending a message acquisition response message to each third service system when the state of the target event is the completed state.
In a second aspect, a message determining apparatus is provided for implementing the message determining method of the first aspect. The message determining device comprises corresponding modules, units or means (means) for implementing the method, wherein the modules, units or means can be implemented by hardware, software or implemented by hardware for executing corresponding software. The hardware or software includes one or more modules or units corresponding to the functions described above.
With reference to the second aspect, in certain embodiments of the second aspect, the message determining apparatus includes: the device comprises an acquisition module and a processing module; the acquisition module is used for acquiring a parameter value of each target input parameter in a plurality of target input parameters of a target event in the state machine; the plurality of target input parameters are from a plurality of business systems; the processing module is used for judging whether the parameter value of each target input parameter accords with the target rule corresponding to the target event; the target rule includes a target parameter value for each of a plurality of target input parameters; and the processing module is also used for determining the message corresponding to the target rule as the target message corresponding to the target event under the condition that the parameter value of each target input parameter accords with the target rule corresponding to the target event.
With reference to the second aspect, in certain embodiments of the second aspect, the obtaining module is specifically configured to: acquiring a first message determination request of a first service system; the first message determination request includes a target work order identification, a target rule identification, and a parameter value of at least one first input parameter; under the condition that no event mark exists in the state machine and is the event marked by the target work order mark and the target rule mark, a target event in the state machine is established; the event identification of the target event is a target work order identification and a target rule identification; acquiring a second message determining request of each second service system in at least one second service system to acquire a parameter value of each target input parameter in a plurality of target input parameters of a target event in a state machine; the second message determination request includes a target work order identification, a target rule identification, and parameter values for at least one second input parameter, and the input parameter set of at least one first input parameter and at least one second input parameter includes a plurality of target input parameters.
With reference to the second aspect, in certain embodiments of the second aspect, the processing module is further configured to: the state of the target event is set to the completed state.
With reference to the second aspect, in certain embodiments of the second aspect, the processing module is further configured to: acquiring a message acquisition request of each third service system in at least one third service system; the message acquisition request comprises a target work order identifier and a target rule identifier; sending a message acquisition response message to each third service system under the condition that the state of the target event is the completed state; the message acquisition response message comprises a target message corresponding to the target event.
In a third aspect, there is provided a message determining apparatus comprising: at least one processor, a memory for storing instructions executable by the processor; wherein the processor is configured to execute instructions to implement a method as provided by the first aspect and any one of its possible implementations.
In a fourth aspect, a computer readable storage medium is provided, which instructions, when executed by a processor of a message determining apparatus, enable the message determining apparatus to perform a method as provided by the first aspect and any one of its possible implementations.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, enable the computer to perform the method provided by the first aspect and any one of its possible embodiments.
In a sixth aspect, there is provided a chip system comprising: a processor and interface circuit; interface circuit for receiving computer program or instruction and transmitting to processor; the processor is configured to execute a computer program or instructions to cause the chip system to perform a method as provided in the first aspect and any one of its possible embodiments described above.
The technical effects of any one of the embodiments of the second aspect to the sixth aspect may be referred to the technical effects of the different embodiments of the first aspect, and are not described herein.
Drawings
FIG. 1 is a schematic diagram of a message determination system according to the present application;
FIG. 2 is a flow chart of a message determining method according to the present application;
FIG. 3 is a flow chart of another message determination method according to the present application;
FIG. 4 is a flow chart of another message determination method according to the present application;
fig. 5 is a schematic structural diagram of a message determining device provided by the present application;
fig. 6 is a schematic structural diagram of another message determining apparatus provided by the present application.
Detailed Description
In the description of the present application, unless otherwise indicated, "a plurality" means two or more than two. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural.
In addition, in order to facilitate the clear description of the technical solution of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and effect. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
Meanwhile, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion that may be readily understood.
It is appreciated that reference throughout this specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, various embodiments are not necessarily referring to the same embodiments throughout the specification. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present application, the sequence number of each process does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
It is to be understood that, in the present application, "when …", "if" and "if" all refer to the corresponding process being performed under some objective condition, and are not limited in time, nor do they require that there be any judgment in the implementation, nor are they meant to imply any other limitation.
It can be appreciated that some optional features of the embodiments of the present application may be implemented independently in some scenarios, independent of other features, such as the scheme on which they are currently based, to solve corresponding technical problems, achieve corresponding effects, or may be combined with other features according to requirements in some scenarios. Accordingly, the device provided in the embodiment of the present application may also implement these features or functions accordingly, which will not be described herein.
In the present application, the same or similar parts between the embodiments may be referred to each other unless specifically stated otherwise. In the embodiments of the present application and the implementation methods in the embodiments, if there is no special description and logic conflict, terms and/or descriptions between different embodiments and between implementation methods in the embodiments have consistency and may be mutually cited, and technical features in the different embodiments and the implementation methods in the embodiments may be combined to form a new embodiment, implementation method, or implementation method according to the inherent logic relationship. The following embodiments of the present application are not intended to limit the scope of the present application.
Fig. 1 is a schematic diagram of an architecture of a message determining system provided by the present application, and the technical solution of the embodiment of the present application may be applied to the message determining system shown in fig. 1, where, as shown in fig. 1, the message determining system 10 includes a message determining device 11 and an electronic device 12.
The message determining apparatus 11 is directly connected to the electronic device 12 or indirectly connected to the electronic device 12, and in this connection relationship, the connection may be wired or wireless.
The message determining means 11 may be arranged to receive data from the electronic device 12.
The electronic device 12 may be used to send data to the message determining means 11.
The message determining apparatus 11 and the electronic device 12 may be independent devices, or may be integrated in the same device, which is not particularly limited in the present application.
When the message determining means 11 and the electronic device 12 are integrated in the same device, the communication between the message determining means 11 and the electronic device 12 is in the form of communication between the internal modules of the device. In this case, the communication flow therebetween is the same as "in the case where the message determination device 11 and the electronic apparatus 12 are independent of each other".
In the following embodiments provided by the present application, the present application is described taking an example in which the message determining device 11 and the electronic apparatus 12 are provided independently of each other.
In practical applications, the message determining method provided by the embodiment of the present application may be applied to the message determining apparatus 11, or may be applied to an apparatus included in the message determining apparatus 11.
The message determining method provided in the embodiment of the present application will be described below by taking an example in which the message determining method is applied to the message determining apparatus 11 with reference to the accompanying drawings.
Fig. 2 is a flow chart of a message determining method provided by the present application, as shown in fig. 2, the method includes the following steps:
s201, the message determining device obtains a parameter value of each target input parameter in a plurality of target input parameters of a target event in the state machine.
Wherein the plurality of target input parameters are from a plurality of business systems.
It should be noted that, the service system may be service software, for example, the service system may be service software Z, or the service system may also be service software Y, or the service system may also be service software X, which is not specifically limited in the present application.
The target input parameter may be a field, for example, the target input parameter may be a field a, or the target input parameter may be a field B, or the target input parameter may be a field C, which is not particularly limited in the present application.
Taking the target input parameter as field a as an example, the parameter value of the target input parameter may be A1, or the parameter value of the target input parameter may also be A2, or the parameter value of the target input parameter may also be A3, which is not particularly limited in the present application.
As a possible implementation, in connection with fig. 1, the message determining apparatus receives a message from the electronic device, the message including a parameter value of each of a plurality of target input parameters of a target event in the state machine, and the message determining apparatus obtains the parameter value of each of the plurality of target input parameters of the target event in the state machine from the message.
As yet another possible implementation manner, in connection with fig. 1, the message determining apparatus receives a message from the electronic device, where the message includes a first message determining request for acquiring the first service system, and the message determining apparatus establishes a target event in the state machine in a case that there is no event in the state machine whose event identifier is a target work order identifier and a target rule identifier.
Then, the message determining device receives again a message from the electronic device, where the message includes a second message determining request of each of the at least one second service system, and obtains a parameter value of each of a plurality of target input parameters of the plurality of service systems for the target event in the state machine.
It should be noted that, for a specific description of this possible implementation manner, reference may be made to the related description in the subsequent part of the specific embodiment of the present application, which is not described herein.
S202, the message determining device judges whether the parameter value of each target input parameter accords with the target rule corresponding to the target event.
Wherein the target rule includes a target parameter value for each of the plurality of target input parameters.
As one possible implementation manner, taking a plurality of target input parameters included in the target rule as a field a, a field B and a field C, where a target parameter value of the field a is A1, a target parameter value of the field B is a B1, and a target parameter value of the field C is a C1 as an example, if a parameter value of the field a is A1, a parameter value of the field B is B1, and a parameter value of the field C is C1, the message determining device determines that the parameter value of each target input parameter meets the target rule corresponding to the target event.
As another possible implementation manner, taking the plurality of target input parameters included in the target rule as a field a, a field B and a field C, where the target parameter value of the field a is A1, the target parameter value of the field B is B1, the target parameter value of the field C is C1 as an example, if the parameter value of the field a is A1, the parameter value of the field B is B2 and the parameter value of the field C is C1, the message determining device determines that the parameter value of each target input parameter does not conform to the target rule corresponding to the target event.
S203, the message determining device determines the message corresponding to the target rule as the target message corresponding to the target event when the parameter value of each target input parameter accords with the target rule corresponding to the target event.
It should be noted that, the target message may be a value of a field, for example, the target message may be a value D1 of a field D, or the target message may be a value F1 of a field F, or the target message may be a value E1 of a field E, which is not limited in this application.
As a possible implementation manner, taking the message corresponding to the target rule as the value D1 of the field D as an example, the message determining device may determine D1 as the target message corresponding to the target event when the parameter value of each target input parameter meets the target rule corresponding to the target event.
Based on the scheme, the method comprises the steps of obtaining a parameter value of each target input parameter of a plurality of target input parameters of a plurality of business systems of a target event in a state machine, and determining a message corresponding to a target rule as a target message corresponding to the target event under the condition that the parameter value of each target input parameter accords with the target rule corresponding to the target event. Compared with the existing message determination scheme for determining the target message by one service system, the scheme of the application can determine the message under the condition that the input parameters of a plurality of service systems are needed by acquiring the parameter value of each target input parameter in a plurality of target input parameters of a plurality of service systems of the target event and further determining the target message.
The message determining method provided by the application is generally described above, and the message determining method provided by the application will be further described below with reference to the accompanying drawings.
In one design, fig. 3 is a schematic flow chart of another message determining method provided by the present application, and as shown in fig. 3, S201 provided in the specific embodiment of the present application may specifically include the following steps:
s301, the message determining device obtains a first message determining request of a first service system.
Wherein the first message determination request includes a target work order identification, a target rule identification, and parameter values of at least one first input parameter.
As a possible implementation manner, in connection with fig. 1, the message determining apparatus receives a message from the electronic device, where the message includes a first message determining request of the first service system, and the message determining apparatus obtains the first message determining request of the first service system from the message.
S302, the message determining device establishes a target event in the state machine under the condition that no event identified as a target work order identification and a target rule identification exists in the state machine.
The event identifications of the target events are target worksheet identifications and target rule identifications.
As a possible implementation manner, the message determining device determines whether an event with an event identifier being a target work order identifier and a target rule identifier exists in the state machine, if no event with an event identifier being a target work order identifier and a target rule identifier exists in the state machine, the message determining device establishes that the event identifier is a target event with a target work order identifier and a target rule identifier in the state machine, and further, at least one first input parameter in the first message determining request is a part of input target parameters of the target event.
It should be noted that, in this possible implementation manner, the specific scheme for establishing the target event in the state machine may refer to the existing scheme, and the present application is not described herein.
S303, the message determining device obtains a second message determining request of each second service system in at least one second service system, and obtains a parameter value of each target input parameter in a plurality of target input parameters of a target event in the state machine.
Wherein the second message determination request includes the target work order identifier, the target rule identifier, and the parameter value of at least one second input parameter, and the input parameter set composed of at least one first input parameter and at least one second input parameter includes a plurality of target input parameters.
As a possible implementation, taking the number of at least one second service system as 1 as an example, in connection with fig. 1, the message determining device receives a message from the electronic device, the message including a second message determination request of the second service system, and the message determining device obtains the second message determination request of the second service system from the message. The message determining device searches the target event with the event identifier being the target work order identifier and the target rule identifier in the state, takes at least one second input parameter in the second message determining request as another part of the input target parameters of the target event, and obtains the parameter value of each target input parameter in a plurality of target input parameters of the target event in the state machine.
Based on the scheme, by creating a target event in the state machine and acquiring a message determination request of a plurality of business systems, the scheme of acquiring a parameter value of each target input parameter of a plurality of target input parameters of the target event in the state machine can be realized because the message determination request comprises at least one input parameter.
In one design, after S203, the message determining method provided by the present application may further include the following steps:
The message determining means sets the state of the target event to the completed state.
It should be noted that, the state of the target event may also include a waiting state or a judging state.
As one possible implementation manner, the message determining device sets the state of the target event to the completed state after determining the message corresponding to the target rule as the target message corresponding to the target event in the case that the parameter value of each target input parameter conforms to the target rule corresponding to the target event.
Based on the scheme, after the target message corresponding to the target event is determined, the determined target message can be determined by setting the state of the target event to be the completed state, so that other subsequent service systems can acquire the target message conveniently.
In one design, fig. 4 is a flow chart of another message determining method provided by the present application, and as shown in fig. 4, the message determining method provided by the present application may specifically include the following steps:
s401, the message determining device obtains a message obtaining request of each third service system in at least one third service system.
Wherein the message acquisition request includes a target work order identifier and a target rule identifier.
As a possible implementation manner, in connection with fig. 1, the message determining apparatus receives a message from the electronic device, where the message includes a message acquisition request of each of the at least one third service system, and the message determining apparatus acquires the message acquisition request of each of the at least one third service system from the message.
S402, the message determining device sends a message acquisition response message to each third service system when the state of the target event is the completed state.
The message acquisition response message comprises a target message corresponding to the target event.
As one possible implementation manner, after receiving the message acquisition request of the third service system, the message determining device determines whether the state of the target event identified by the event identifier as the target work order identifier and the target rule identifier is a completed state, and if the state of the target event is the completed state, the message determining device sends a message acquisition response message including the target message corresponding to the target event to the third service system.
If the state of the target event is not the completed state, the message determining device sends a message acquisition failure message to the third service system to indicate that the target message does not exist.
Based on the scheme, the third service system can acquire the target message by acquiring the message acquisition request of the third service system and sending a message acquisition response message to each third service system when the state of the target event is the completed state.
The above description has been made mainly in terms of the message determining device performing the message determining method according to the embodiment of the present application. In order to achieve the above functions, the message determining device comprises a hardware structure and/or a software module for executing the respective functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the application can divide the functional modules of the message determining device according to the method example, for example, each functional module can be divided corresponding to each function, or two or more functions can be integrated in one processing module. The integrated modules may be implemented in hardware or in software functional modules. Optionally, the division of the modules in the embodiment of the present application is schematic, which is merely a logic function division, and other division manners may be implemented in practice. Further, "module" herein may refer to an application-specific integrated circuit (ASIC), an electrical circuit, a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other devices that can provide the above-described functionality.
Fig. 5 shows a schematic diagram of a message determination device in the case of a functional module division. As shown in fig. 5, the message determining apparatus 50 includes an acquisition module 501 and a processing module 502.
In some embodiments, the message determination device 50 may also include a memory module (not shown in fig. 5) for storing program instructions and data.
Wherein, the obtaining module 501 is configured to obtain a parameter value of each target input parameter of a plurality of target input parameters of a target event in a state machine; the plurality of target input parameters are from a plurality of business systems; the processing module 502 is configured to determine whether a parameter value of each target input parameter meets a target rule corresponding to a target event; the target rule includes a target parameter value for each of a plurality of target input parameters; the processing module 502 is further configured to determine, when the parameter value of each target input parameter meets the target rule corresponding to the target event, a message corresponding to the target rule as a target message corresponding to the target event.
Optionally, the obtaining module 501 is specifically configured to: acquiring a first message determination request of a first service system; the first message determination request includes a target work order identification, a target rule identification, and a parameter value of at least one first input parameter; under the condition that no event mark exists in the state machine and is the event marked by the target work order mark and the target rule mark, a target event in the state machine is established; the event identification of the target event is a target work order identification and a target rule identification; acquiring a second message determining request of each second service system in at least one second service system to acquire a parameter value of each target input parameter in a plurality of target input parameters of a target event in a state machine; the second message determination request includes a target work order identification, a target rule identification, and parameter values for at least one second input parameter, and the input parameter set of at least one first input parameter and at least one second input parameter includes a plurality of target input parameters.
Optionally, the processing module 502 is further configured to: the state of the target event is set to the completed state.
Optionally, the processing module 502 is further configured to: acquiring a message acquisition request of each third service system in at least one third service system; the message acquisition request comprises a target work order identifier and a target rule identifier; sending a message acquisition response message to each third service system under the condition that the state of the target event is the completed state; the message acquisition response message comprises a target message corresponding to the target event.
All relevant contents of each step related to the above method embodiment may be cited to the functional descriptions of the corresponding functional modules, which are not described herein.
In the case of implementing the functions of the above-described functional modules in the form of hardware, fig. 6 shows a schematic diagram of the structure of a message determining apparatus. As shown in fig. 6, the message determining apparatus 60 includes a processor 601, a memory 602, and a bus 603. The processor 601 and the memory 602 may be connected by a bus 603.
The processor 601 is a control center of the message determining apparatus 60, and may be one processor or a collective term of a plurality of processing elements. For example, the processor 601 may be a general-purpose central processing unit (central processing unit, CPU), or may be another general-purpose processor. Wherein the general purpose processor may be a microprocessor or any conventional processor or the like.
As one example, processor 601 may include one or more CPUs, such as CPU 0 and CPU 1 shown in fig. 6.
The memory 602 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (random access memory, RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), magnetic disk storage or other magnetic storage device, or 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.
As a possible implementation, the memory 602 may exist separately from the processor 601, and the memory 602 may be connected to the processor 601 through the bus 603 for storing instructions or program codes. The processor 601, when calling and executing instructions or program code stored in the memory 602, is capable of implementing the message determining method provided by the embodiment of the present application.
In another possible implementation, the memory 602 may also be integrated with the processor 601.
Bus 603 may be an industry standard architecture (Industry Standard Architecture, ISA) bus, a peripheral component interconnect (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in fig. 6, but not only one bus or one type of bus.
It should be noted that the structure shown in fig. 6 does not constitute a limitation of the message determining device 60. In addition to the components shown in fig. 6, the message determining means 60 may comprise more or less components than shown, or certain components may be combined, or a different arrangement of components.
As an example, in connection with fig. 5, the acquisition module 501 and the processing module 502 in the message determination device 50 implement the same functions as the processor 601 in fig. 6.
Optionally, as shown in fig. 6, the message determining apparatus 60 provided in the embodiment of the present application may further include a communication interface 604.
Communication interface 604 for connecting with other devices via a communication network. The communication network may be an ethernet, a radio access network, a wireless local area network (wireless local area networks, WLAN), etc. The communication interface 604 may include a receiving unit for receiving data and a transmitting unit for transmitting data.
In a possible implementation manner, in the message determining apparatus 60 provided in the embodiment of the present application, the communication interface 604 may also be integrated in the processor 601, which is not limited in particular by the embodiment of the present application.
As a possible product form, the message determining apparatus of the embodiment of the present application may be further implemented using the following: one or more field programmable gate arrays (field programmable gate array, FPGA), programmable logic devices (programmable logic device, PLD), controllers, state machines, gate logic, discrete hardware components, any other suitable circuit or circuits capable of performing the various functions described throughout this application.
From the above description of embodiments, it will be apparent to those skilled in the art that the foregoing functional unit divisions are merely illustrative for convenience and brevity of description. In practical applications, the above-mentioned function allocation may be performed by different functional units, i.e. the internal structure of the device is divided into different functional units, as needed, to perform all or part of the functions described above. The specific working processes of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which are not described herein.
The embodiment of the present application also provides a computer-readable storage medium, on which a computer program or instructions are stored, which when executed cause a computer to perform the steps in the method flow shown in the above-mentioned method embodiment.
Embodiments of the present application provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the method flow shown in the method embodiments described above.
An embodiment of the present application provides a chip system, including: a processor and interface circuit; interface circuit for receiving computer program or instruction and transmitting to processor; the processor is configured to execute the computer program or instructions to cause the chip system to perform the steps of the method flow shown in the method embodiments described above.
The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: electrical connections having one or more wires, portable computer diskette, hard disk. Random access Memory (Random Access Memory, RAM), read-Only Memory (ROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), registers, hard disk, optical fiber, portable compact disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any other form of computer-readable storage medium suitable for use by a person or persons of skill in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in a special purpose ASIC. In embodiments of the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
Since the message determining apparatus, the computer readable storage medium and the computer program product provided in this embodiment can be applied to the message determining method provided in this embodiment, the technical effects obtained by the method may also refer to the method embodiment described above, and the embodiments of the present application are not described herein.
Although the application is described herein in connection with various embodiments, other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed application, from a study of the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and the "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
Although the application has been described in connection with specific features and embodiments thereof, it will be apparent that various modifications and combinations can be made without departing from the spirit and scope of the application. Accordingly, the specification and drawings are merely exemplary illustrations of the present application as defined in the appended claims and are considered to cover any and all modifications, variations, combinations, or equivalents that fall within the scope of the application. It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. A method of message determination, the method comprising:
acquiring a parameter value of each target input parameter in a plurality of target input parameters of a target event in a state machine; the plurality of target input parameters are from a plurality of business systems;
judging whether the parameter value of each target input parameter accords with a target rule corresponding to the target event; the target rule includes a target parameter value for each target input parameter of the plurality of target input parameters;
and under the condition that the parameter value of each target input parameter accords with a target rule corresponding to the target event, determining the message corresponding to the target rule as a target message corresponding to the target event.
2. The method of claim 1, wherein obtaining the parameter value for each of a plurality of target input parameters for a target event in the state machine comprises:
acquiring a first message determination request of a first service system; the first message determination request includes a target work order identifier, a target rule identifier, and a parameter value of at least one first input parameter;
establishing the target event in the state machine under the condition that no event marked as the target work order mark and the target rule mark exists in the state machine; the event identifier of the target event is the target work order identifier and the target rule identifier;
Acquiring a second message determining request of each second service system in at least one second service system to acquire a parameter value of each target input parameter in a plurality of target input parameters of a target event in a state machine; the second message determination request includes a target work order identifier, a target rule identifier, and a parameter value of at least one second input parameter, and an input parameter set composed of the at least one first input parameter and the at least one second input parameter includes the plurality of target input parameters.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
the state of the target event is set to a completed state.
4. A method according to claim 3, characterized in that the method further comprises:
acquiring a message acquisition request of each third service system in at least one third service system; the message acquisition request comprises the target work order identifier and the target rule identifier;
sending a message acquisition response message to each third service system under the condition that the state of the target event is the completed state; the message acquisition response message comprises a target message corresponding to the target event.
5. A message determining apparatus, characterized in that the message determining apparatus comprises: the device comprises an acquisition module and a processing module;
the acquisition module is used for acquiring a parameter value of each target input parameter in a plurality of target input parameters of a target event in the state machine; the plurality of target input parameters are from a plurality of business systems;
the processing module is used for judging whether the parameter value of each target input parameter accords with a target rule corresponding to the target event; the target rule includes a target parameter value for each target input parameter of the plurality of target input parameters;
the processing module is further configured to determine, when the parameter value of each target input parameter meets a target rule corresponding to the target event, a message corresponding to the target rule as a target message corresponding to the target event.
6. The message determination apparatus of claim 5, wherein the acquisition module is specifically configured to:
acquiring a first message determination request of a first service system; the first message determination request includes a target work order identifier, a target rule identifier, and a parameter value of at least one first input parameter;
Establishing the target event in the state machine under the condition that no event marked as the target work order mark and the target rule mark exists in the state machine; the event identifier of the target event is the target work order identifier and the target rule identifier;
acquiring a second message determining request of each second service system in at least one second service system to acquire a parameter value of each target input parameter in a plurality of target input parameters of a target event in a state machine; the second message determination request includes a target work order identifier, a target rule identifier, and a parameter value of at least one second input parameter, and an input parameter set composed of the at least one first input parameter and the at least one second input parameter includes the plurality of target input parameters.
7. The message determination apparatus according to claim 5 or 6, wherein the processing module is further configured to:
the state of the target event is set to a completed state.
8. The message determination apparatus of claim 7, wherein the processing module is further configured to:
acquiring a message acquisition request of each third service system in at least one third service system; the message acquisition request comprises the target work order identifier and the target rule identifier;
Sending a message acquisition response message to each third service system under the condition that the state of the target event is the completed state; the message acquisition response message comprises a target message corresponding to the target event.
9. A message determining apparatus, characterized in that the message determining apparatus comprises: a processor coupled to a memory for storing a program or instructions that, when executed by the processor, cause the apparatus to perform the method of any one of claims 1 to 4.
10. A computer readable storage medium having stored thereon a computer program or instructions, which when executed cause a computer to perform the method of any of claims 1 to 4.
CN202310674007.0A 2023-06-07 2023-06-07 Message determining method, device and computer readable storage medium Pending CN116820877A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310674007.0A CN116820877A (en) 2023-06-07 2023-06-07 Message determining method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310674007.0A CN116820877A (en) 2023-06-07 2023-06-07 Message determining method, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN116820877A true CN116820877A (en) 2023-09-29

Family

ID=88123334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310674007.0A Pending CN116820877A (en) 2023-06-07 2023-06-07 Message determining method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116820877A (en)

Similar Documents

Publication Publication Date Title
CN112465359B (en) Calculation force calling method and device
CN110231981B (en) Service calling method and device
CN105045652A (en) Method for processing multi-parallel-thread program by multi-terminals and processing system
CN116820877A (en) Message determining method, device and computer readable storage medium
CN114579499B (en) Control method, device, equipment and storage medium of processor communication interface
CN113572701A (en) Service interface flow control method, device, equipment and storage medium
CN116701205A (en) Regression testing method, regression testing device and computer readable storage medium
CN108173689B (en) Output system of load balancing data
CN117034973A (en) Quality determination method, quality determination device and computer-readable storage medium
CN117114322A (en) Resource determination method, device and computer readable storage medium
CN117149789A (en) Data updating method, device and computer readable storage medium
CN117135081A (en) Fault determination method, device and computer readable storage medium
CN116308342A (en) Block chain transaction method, device and computer readable storage medium
US11916792B2 (en) Vehicle communication control device and method
CN118277239A (en) Debugging method, device and computer readable storage medium
CN115865783B (en) Method and device for determining target node and computer readable storage medium
CN116775253A (en) Task scheduling method, device and computer readable storage medium
CN116860486A (en) Information transmission method, producer device, and computer-readable storage medium
CN111352710A (en) Process management method and device, computing equipment and storage medium
CN118394320A (en) Code development method, device and computer readable storage medium
CN114827016B (en) Method, device, equipment and storage medium for switching link aggregation scheme
CN117156047A (en) Account management method, account management device and computer readable storage medium
CN115277491B (en) Method and device for determining abnormal data and computer readable storage medium
CN117241326A (en) Access method, device and computer readable storage medium
CN118410047A (en) Data determining method, device and computer readable storage medium

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