CN114095380B - Message generation method, baffle system, equipment and storage medium - Google Patents

Message generation method, baffle system, equipment and storage medium Download PDF

Info

Publication number
CN114095380B
CN114095380B CN202111369812.XA CN202111369812A CN114095380B CN 114095380 B CN114095380 B CN 114095380B CN 202111369812 A CN202111369812 A CN 202111369812A CN 114095380 B CN114095380 B CN 114095380B
Authority
CN
China
Prior art keywords
message
flow
input
output
production
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.)
Active
Application number
CN202111369812.XA
Other languages
Chinese (zh)
Other versions
CN114095380A (en
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
Original Assignee
China Construction Bank Corp
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 filed Critical China Construction Bank Corp
Priority to CN202111369812.XA priority Critical patent/CN114095380B/en
Publication of CN114095380A publication Critical patent/CN114095380A/en
Application granted granted Critical
Publication of CN114095380B publication Critical patent/CN114095380B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the technical field of data processing, in particular to a message generation method, a baffle system, equipment and a storage medium, wherein the method comprises the following steps: receiving an input message, and determining a transaction code and a serial number corresponding to the input message; determining message configuration information of an output message corresponding to the input message according to the transaction code corresponding to the input message; acquiring a target production flow corresponding to the input message from a baffle system database according to the flow number corresponding to the input message; and generating an output message corresponding to the input message based on the message configuration information and the target production flow. According to the method, the output message corresponding to the input message is dynamically configured by utilizing the message configuration information of the output message corresponding to the input message and the corresponding target production flow, so that the generated output message is more similar to the actual content of production, the authenticity of the output message can be improved, and the authenticity and reliability of parallel test are further ensured.

Description

Message generation method, baffle system, equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, a baffle system, a device, and a storage medium for generating a message.
Background
In the development process of the distributed system, in order to ensure high availability and high quality of the distributed system, the developed distributed system needs to be tested, and the testing of the distributed system is much more complicated than that of a single-machine system due to the complexity of a distributed architecture, uncertainty of an open source framework and the like.
In the prior art, a dual-machine parallel test mode is generally adopted to test a distributed system, in the test process, the distributed system needs to interact with a production system, but in order to ensure the normal operation of the production system, the production system cannot directly participate in parallel test, so that a baffle system needs to be built to replace the production system to receive a request sent by the distributed system and simulate a response message of the production system to return the message.
At present, a baffle system generally obtains a returned response message through analogy of a pre-configured message content. Specifically, the baffle system may search a message corresponding to the transaction serial number from the pre-configured message content according to the transaction serial number sent by the distributed system, and use the message as a returned response message. In such baffle systems, the messages which are all pre-configured are returned, so that the messages do not have authenticity, and the requirements of parallel testing are difficult to meet, thereby influencing the accuracy of the parallel test results. In addition, a large amount of message contents need to be configured in advance in the baffle system, so that the configuration is difficult and the cost is high.
Disclosure of Invention
Aiming at the problems in the prior art, the invention aims to provide a message generation method, a baffle system, a device and a storage medium, which can generate an output message which is more similar to the actual content of production and improve the authenticity of the output message.
In order to solve the above problems, the present invention provides a method for generating a message, including:
receiving an input message, and determining a transaction code and a serial number corresponding to the input message;
Determining message configuration information of an output message corresponding to the input message according to the transaction code corresponding to the input message;
acquiring a target production flow corresponding to the input message from a baffle system database according to the flow number corresponding to the input message;
And generating an output message corresponding to the input message based on the message configuration information and the target production flow.
Further, the generating the output message corresponding to the input message based on the message configuration information and the target production flow includes:
Determining a message template of an output message corresponding to the input message according to a transaction code corresponding to the input message, wherein the message template comprises at least one message field for forming the output message;
respectively determining the flow field corresponding to each message field in the message template based on the message configuration information;
Respectively acquiring field information of stream fields corresponding to the message segments from the target production stream to serve as the field information of the message segments;
Filling field information of each message field into the message template to generate an output message;
The message configuration information comprises a corresponding relation between a message field of an output message and a flow field of a target production flow.
Further, the method further comprises:
Determining a configuration strategy of an output message corresponding to the input message according to the transaction code corresponding to the input message;
wherein the generating the output message corresponding to the input message based on the message configuration information and the target production flow includes:
and when the configuration strategy is a dynamic configuration strategy, generating an output message corresponding to the input message based on the message configuration information and the target production flow.
Further, the method further comprises:
Guiding out the original production flow generated by the production system;
processing and complementing the original production flow generated by the production system to obtain complemented production flow;
and leading the completed production flow into a baffle system database.
Further, the processing and complementing the original production flow generated by the production system to obtain the complemented production flow comprises the following steps:
Determining at least one element information required for configuring an output message of a transaction corresponding to the original production running water;
judging whether each element information exists in the original production running water or not respectively;
And if the element information does not exist in the original production running water, acquiring the element information from a production system database, and supplementing the element information to the original production running water to obtain the completed production running water.
Another aspect of the invention provides a baffle system comprising:
The message receiving module is used for receiving an input message and determining a transaction code and a serial number corresponding to the input message;
The flow configuration module is used for determining message configuration information of an output message corresponding to the input message according to the transaction code corresponding to the input message;
The flow selection module is used for acquiring a target production flow corresponding to the input message from a baffle system database according to the flow number corresponding to the input message;
and the message configuration module is used for generating an output message corresponding to the input message based on the message configuration information and the target production flow.
Further, the system further comprises:
The transaction configuration module is used for determining a configuration strategy of an output message corresponding to the input message according to the transaction code corresponding to the input message;
the message configuration module is used for generating an output message corresponding to the input message based on the message configuration information and the target production flow when the configuration strategy is a dynamic configuration strategy.
Further, the system further comprises:
The flow water export module is used for exporting original production flow water generated by the production system;
The flow processing module is used for processing and complementing the original flow generated by the production system to obtain the complemented flow;
and the flow loading module is used for guiding the completed production flow into the baffle system database.
In another aspect, the present invention provides an electronic device, including a processor and a memory, where at least one instruction or at least one program is stored in the memory, where the at least one instruction or the at least one program is loaded and executed by the processor to implement a method for generating a packet as described above.
In another aspect, the present invention provides a computer readable storage medium having at least one instruction or at least one program stored therein, where the at least one instruction or the at least one program is loaded and executed by a processor to implement a method for generating a message as described above.
Another aspect of the invention provides a computer program product which, when run on an electronic device, causes the electronic device to perform a message generation method as described above.
Due to the technical scheme, the invention has the following beneficial effects:
According to the message generation method provided by the embodiment of the invention, the output message corresponding to the input message is dynamically configured by utilizing the message configuration information of the output message corresponding to the input message and the target production flow corresponding to the input message, so that the generated output message is more similar to the actual content of production, the authenticity of the output message can be improved, and the authenticity and reliability of parallel test are further ensured.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the following description will make a brief introduction to the drawings used in the description of the embodiments or the prior art. It is evident that the drawings in the following description are only some embodiments of the present invention and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
FIG. 1 is a schematic diagram of an implementation environment of a message generating method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a message generation method according to an embodiment of the present invention;
FIG. 3 is a flow chart of a message generation method according to another embodiment of the present invention;
FIG. 4 is a schematic view of a baffle system according to one embodiment of the present invention;
FIG. 5 is a schematic view of a baffle system according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, apparatus, article, or device that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or device.
Embodiments of the present invention will be described in further detail below with reference to the accompanying drawings. It should be noted that, the data acquisition, storage, use, processing and the like in all the embodiments of the present invention meet the relevant regulations of the national laws and regulations.
Referring to fig. 1 of the drawings, a schematic diagram of an implementation environment of a message generating method according to an embodiment of the present invention is shown, where, as shown in fig. 1, the implementation environment may at least include a parallel system 110, a baffle system 120, and a production system 130, and the baffle system 120 may be respectively communicatively connected to the parallel system 110 and the production system 130.
Wherein the parallel system 110 is a system to be verified which is functionally consistent with the production system 130, and once verified, the system can be replaced; the baffle system 120 is a system that can be used to simulate the production system 130 to return a transaction message, and the baffle system can obtain a target production flow from a baffle system database according to the transaction code of the input message, and finally combine a high-simulation output message through various dynamic configurations; the production system 130 may process the transaction request and generate a production flow, where the production flow includes information such as an input message and an output message of the transaction.
It should be noted that fig. 1 is only an example.
Referring to fig. 2 of the specification, a flow of a method for generating a message according to an embodiment of the present invention is shown, where the method may be applied to the barrier system in fig. 1, and the method may be applied to a scenario where parallel tests are performed on a parallel system. As shown in fig. 2, the method may include the following steps:
S210: and receiving an input message, and determining a transaction code and a serial number corresponding to the input message.
In the embodiment of the invention, the input message can be sent by the parallel system, and after the baffle system receives the input message, the input message can be analyzed to determine the transaction code and serial number corresponding to the input message. Wherein the transaction code is used for indicating transaction types, such as deduction, repayment, information inquiry and the like, and different transaction types are represented by different transaction codes. The transaction serial number is a global unique generated by the transaction initiating point, and transaction identifiers are shared among all systems.
Specifically, the analyzing the input message may include a process of converting the input message from a first message format into a second message format, where the first message format is a format that can be identified by the parallel system, and the second message format is a format that can be identified by the baffle system. The baffle system may determine the corresponding transaction code and serial number from the second format of the input message.
S230: and determining message configuration information of an output message corresponding to the input message according to the transaction code corresponding to the input message.
In the embodiment of the invention, for each transaction code, the corresponding relation between the message field of the corresponding output message and the flow field of the production flow is configured in advance, namely, the message field of the corresponding output message is configured to be from which field of the flow, so as to obtain the message configuration information of the corresponding output message, and the message configuration information is stored in a database. After determining the transaction code corresponding to the input message, the corresponding message configuration information can be directly determined according to the transaction code.
S250: and acquiring the target production flow corresponding to the input message from a baffle system database according to the flow number corresponding to the input message.
In the embodiment of the invention, in order to generate the high-simulation baffle system output message, production flow of a production system can be relied on, wherein the production flow contains the input message and the output message of the transaction and a large amount of information, and the input message and the output message of the transaction can be used as the basis of the baffle system message output.
In particular, the baffle system database may store production flow information for a plurality of transactions, which may be production flow information derived from a production system. After determining the serial number corresponding to the input message, the production flow information of the transaction with the serial number identical to the serial number corresponding to the input message can be read from the database and used as the target production flow.
In one possible embodiment, the method may further comprise:
Guiding out the original production flow generated by the production system;
processing and complementing the original production flow generated by the production system to obtain complemented production flow;
and leading the completed production flow into a baffle system database.
Specifically, the processing and completing the original production flow generated by the production system, and obtaining the completed production flow may include:
Determining at least one element information required for configuring an output message of a transaction corresponding to the original production running water;
judging whether each element information exists in the original production running water or not respectively;
And if the element information does not exist in the original production running water, acquiring the element information from a production system database, and supplementing the element information to the original production running water to obtain the completed production running water.
In practical application, when the original production flow generated by the production system is exported, the original production flow can be exported to form a production flow file for subsequent use.
In practice, the information from the original production run alone is not sufficient to cover all transactions, and therefore additional tooling is required. And analyzing each transaction in the production running water file, determining element information required by configuring an output message of the transaction, if the element information is not in the original production running water, carrying out running processing, inquiring the required element information in a production system database, and supplementing the element information to the original production running water to obtain the completed production running water.
In practical application, when the production flow is imported, the production flow file can be analyzed, and the completed production flow is imported into the baffle system database.
S270: and generating an output message corresponding to the input message based on the message configuration information and the target production flow.
In the embodiment of the invention, the output message close to the real message can be combined based on the production flow led out from the production system and the pre-configured message configuration information, the authenticity of the output message is stronger, and the requirement of parallel test can be met.
Specifically, the generating, based on the message configuration information and the target production flow, the output message corresponding to the input message may include:
Determining a message template of an output message corresponding to the input message according to a transaction code corresponding to the input message, wherein the message template comprises at least one message field for forming the output message;
respectively determining the flow field corresponding to each message field in the message template based on the message configuration information;
Respectively acquiring field information of stream fields corresponding to the message segments from the target production stream to serve as the field information of the message segments;
Filling field information of each message field into the message template to generate an output message;
The message configuration information comprises a corresponding relation between a message field of an output message and a flow field of a target production flow.
Specifically, for each transaction code, a message template of a corresponding output message may be configured in advance, where the message template includes at least one message field that forms the output message, and stores the message field in a baffle system database. And directly determining a message template of the corresponding output message according to the transaction code corresponding to the input message.
For example, assuming that the baffle system receives a request for querying user information, an input message corresponding to the request is a user name, and a message template capable of determining an output message according to a corresponding transaction code includes message fields such as the user name, a certificate number, a user level, an account balance and the like.
For example, assuming that the flowing field corresponding to the card number field is an identification card number field, the field information of the identification card number field may be obtained from the corresponding target production flowing, for example 523334 … … 6800 is used as the field information of the identification card number field in the message template of the output message.
According to the method provided by the embodiment of the invention, through pre-configuring the message template and the message configuration information of the output message, when the output message is required to be simulated, required elements can be analyzed from production running water based on the message template and the message configuration information, the message content close to real production is produced, the function is strong, and when the transaction code of the information is added, only the message template and the message configuration information of the corresponding output message are required to be added, so that the expandability is strong.
In one possible embodiment, in combination with reference to fig. 3 of the specification, the method may further include:
s260: determining a configuration strategy of an output message corresponding to the input message according to the transaction code corresponding to the input message;
Correspondingly, the generating the output message corresponding to the input message based on the message configuration information and the target production flow (i.e. step S270) specifically includes:
s270': and when the configuration strategy is a dynamic configuration strategy, generating an output message corresponding to the input message based on the message configuration information and the target production flow.
In the embodiment of the invention, for each transaction code, the transaction policy configuration can be performed in advance, and the configuration policy of the corresponding output message can be configured. Specifically, the transaction policy includes a dynamic configuration policy and a static configuration policy, and when the configuration policy is the dynamic configuration policy, an output message corresponding to the input message is generated based on the message configuration information and the target production flow; when the configuration strategy is a static configuration strategy, a preset output message corresponding to the input message is obtained according to the transaction code corresponding to the input message. The preset output message may be preset according to actual situations, for example, may be set to be successful/failed, etc., which is not limited in the embodiment of the present invention.
According to the embodiment of the invention, through combining dynamic configuration and static configuration, the pre-configured message content is returned for simple transactions, and the dynamic configuration output message is carried out by utilizing real production flow for complex transactions, so that the response speed of the baffle system can be improved, the configuration information is less, and the method is more universal and quicker.
In one possible embodiment, after the output message corresponding to the input message is generated, the output message may be converted from the second message format into the first message format, and the output message in the first message format is sent to the parallel system. The first message format is a format which can be identified by the parallel system, and the second message format is a format which can be identified by the baffle system. The baffle system can be suitable for various parallel systems by carrying out format conversion on the input message and the output message.
In summary, according to the message generating method of the embodiment of the present invention, by using the message configuration information of the output message corresponding to the input message and the target production flow corresponding to the input message, the output message corresponding to the input message is dynamically configured, so that the generated output message is closer to the actual content of production, the authenticity of the output message can be improved, and the authenticity and reliability of the parallel test are further ensured.
In addition, by utilizing the real production flow generated by the production system, the required elements are resolved from the production flow through dynamic configuration to form an output message, a large amount of message contents are not required to be configured in advance, the system development time is saved, and the development cost is reduced.
Referring to fig. 4 of the drawings, which illustrates the structure of a baffle system provided in one embodiment of the present invention, as shown in fig. 4, the baffle system may include:
The message receiving module 410 is configured to receive an input message, and determine a transaction code and a serial number corresponding to the input message;
the pipelining configuration module 420 is configured to determine message configuration information of an output message corresponding to the input message according to a transaction code corresponding to the input message;
The flow selection module 430 is configured to obtain, from a baffle system database, a target production flow corresponding to the input message according to the flow number corresponding to the input message;
the message configuration module 440 is configured to generate an output message corresponding to the input message based on the message configuration information and the target production flow.
In one possible embodiment, the message configuration module 440 may include:
The message template determining unit is used for determining a message template of an output message corresponding to the input message according to the transaction code corresponding to the input message, wherein the message template comprises at least one message field for forming the output message;
The flowing field determining unit is used for respectively determining flowing fields corresponding to all message segments in the message template based on the message configuration information;
a field information obtaining unit, configured to obtain field information of a running field corresponding to each message field from the target production running water, as field information of each message field;
the output message generating unit is used for filling the field information of each message field into the message template to generate an output message;
The message configuration information comprises a corresponding relation between a message field of an output message and a flow field of a target production flow.
In one possible embodiment, the baffle system may further comprise:
the transaction configuration module 450 is configured to determine a configuration policy of an output message corresponding to the input message according to a transaction code corresponding to the input message;
The message configuration module 440 is configured to generate, when the configuration policy is a dynamic configuration policy, an output message corresponding to the input message based on the message configuration information and the target production flow; the message configuration module 440 is further configured to obtain a preset output message corresponding to the input message according to the transaction code corresponding to the input message when the configuration policy is a static configuration policy.
In one possible embodiment, in combination with reference to fig. 5 of the specification, the baffle system may further comprise:
A flow derivation module 460 for deriving an original production flow generated by the production system;
the flow processing module 470 is configured to process and complement the original flow generated by the production system to obtain a complemented flow;
And a pipeline loading module 480 for importing the completed production pipeline into the baffle system database.
In one possible embodiment, the stream processing module 470 may include:
The element information determining unit is used for determining at least one element information required by configuring the output message of the transaction corresponding to the original production running water;
a judging unit for judging whether each of the element information exists in the original production running water;
and the element information supplementing unit is used for acquiring the element information from a production system database when the element information does not exist in the original production flow, supplementing the element information into the original production flow, and obtaining the complemented production flow.
It should be noted that, in the system provided in the foregoing embodiment, when implementing the functions thereof, only the division of the foregoing functional modules is used as an example, in practical application, the foregoing functional allocation may be implemented by different functional modules, that is, the internal structure of the device is divided into different functional modules, so as to implement all or part of the functions described above. In addition, the apparatus provided in the foregoing embodiments and the corresponding method embodiments belong to the same concept, and specific implementation processes of the apparatus and the corresponding method embodiments are detailed in the corresponding method embodiments, which are not repeated herein.
An embodiment of the present invention further provides an electronic device, where the electronic device includes a processor and a memory, where at least one instruction or at least one program is stored in the memory, where the at least one instruction or the at least one program is loaded and executed by the processor to implement a method for generating a packet as provided in the above method embodiment.
The memory may be used to store software programs and modules that the processor executes to perform various functional applications and data processing by executing the software programs and modules stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for functions, and the like; the storage data area may store data created according to the use of the device, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory may also include a memory controller to provide access to the memory by the processor.
In a specific embodiment, fig. 6 shows a schematic hardware structure of an electronic device for implementing the method for generating a message provided by the embodiment of the present invention, where the electronic device may be a computer terminal, a mobile terminal or other devices, and the electronic device may also participate in forming or including the baffle system provided by the embodiment of the present invention. As shown in fig. 6, the electronic device 600 may include one or more computer-readable storage media memory 610, one or more processing cores processor 620, input unit 630, display unit 640, radio Frequency (RF) circuit 650, wireless fidelity (WIRELESS FIDELITY, wiFi) module 660, and power supply 670. Those skilled in the art will appreciate that the electronic device structure shown in fig. 6 is not limiting of the electronic device 600 and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
The memory 610 may be used to store software programs and modules, and the processor 620 may perform various functional applications and data processing by running or executing the software programs and modules stored in the memory 610 and invoking data stored in the memory 610. The memory 610 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device, etc. In addition, memory 610 may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart memory card (SMART MEDIA CARD, SMC), secure Digital (SD) card, flash memory card (FLASH CARD), at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 610 may also include a memory controller to provide the processor 620 with access to the memory 610.
The processor 620 is a control center of the electronic device 600, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device 600 and processes data by running or executing software programs and/or modules stored in the memory 610, and calling data stored in the memory 610, thereby performing overall monitoring of the electronic device 600. The Processor 620 may be a central processing unit, but may be other general purpose processors, digital signal processors (DIGITAL SIGNAL processors, DSPs), application SPECIFIC INTEGRATED Circuits (ASICs), off-the-shelf Programmable gate arrays (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input unit 630 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 630 may include a touch-sensitive surface 631 and other input devices 632. In particular, the touch-sensitive surface 631 may include, but is not limited to, a touch pad or touch screen, and the other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 640 may be used to display information input by a user or provided to a user and various graphical user interfaces of an electronic device, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 640 may include a display panel 641, and optionally, the display panel 641 may be configured in the form of a Liquid crystal display (Liquid CRYSTAL DISPLAY, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The RF circuit 650 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, in particular, after receiving downlink information of a base station, the downlink information is processed by one or more processors 620; in addition, data relating to uplink is transmitted to the base station. In general, RF circuitry 650 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, the RF circuitry 650 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications (Global System of Mobile communication, GSM), general Packet Radio Service (GPRS), code division multiple access (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), email, short message service (short MESSAGING SERVICE, SMS), etc.
WiFi is a short-range wireless transmission technology, and the electronic device 600 can help users to send and receive e-mail, browse web pages, access streaming media and the like through the WiFi module 660, so that wireless broadband Internet access is provided for the users. Although fig. 6 shows a WiFi module 660, it is understood that it does not belong to the necessary constitution of the electronic device 600, and can be omitted entirely as needed within the scope of not changing the essence of the invention.
The electronic device 600 also includes a power supply 670 (e.g., a battery) for powering the various components, which may be logically connected to the processor 620 via a power management system, such as to perform charge, discharge, and power consumption management functions via the power management system. The power supply 670 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
It should be noted that, although not shown, the electronic device 600 may further include a bluetooth module, etc., which is not described herein.
An embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium may be configured in an electronic device to store at least one instruction or at least one program related to implementing a method for generating a message, where the at least one instruction or the at least one program is loaded and executed by the processor to implement the method for generating a message provided by the foregoing method embodiment.
Alternatively, in an embodiment of the present invention, the storage medium may include, but is not limited to: a usb disk, a read-only memory (ROM), a random access memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
An embodiment of the invention also provides a computer program product comprising a computer program comprising program code for performing the method of generating a message provided by the embodiments of the invention, the program code for causing an electronic device to perform the method of generating a message provided in the various alternative embodiments described above when the computer program product is run on the electronic device. It should be noted that: the sequence of the embodiments of the present invention is only for description, and does not represent the advantages and disadvantages of the embodiments. And the foregoing description has been directed to specific embodiments of this specification. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments of the invention is not intended to limit the invention to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims (10)

1. A method for generating a message, comprising:
receiving an input message, and determining a transaction code and a serial number corresponding to the input message;
Determining message configuration information of an output message corresponding to the input message according to the transaction code corresponding to the input message;
acquiring a target production flow corresponding to the input message from a baffle system database according to the flow number corresponding to the input message;
Generating an output message corresponding to the input message based on the message configuration information and the target production flow, including:
Determining a message template of an output message corresponding to the input message according to a transaction code corresponding to the input message, wherein the message template comprises at least one message field for forming the output message;
respectively determining the flow field corresponding to each message field in the message template based on the message configuration information;
Respectively acquiring field information of stream fields corresponding to the message segments from the target production stream to serve as the field information of the message segments;
filling field information of each message field into the message template to generate an output message;
The message configuration information comprises a corresponding relation between a message field of an output message and a flow field of a target production flow.
2. The method according to claim 1, wherein the method further comprises:
Determining a configuration strategy of an output message corresponding to the input message according to the transaction code corresponding to the input message;
wherein the generating the output message corresponding to the input message based on the message configuration information and the target production flow includes:
and when the configuration strategy is a dynamic configuration strategy, generating an output message corresponding to the input message based on the message configuration information and the target production flow.
3. The method according to claim 1, wherein the method further comprises:
Guiding out the original production flow generated by the production system;
processing and complementing the original production flow generated by the production system to obtain complemented production flow;
and leading the completed production flow into a baffle system database.
4. The method of claim 3, wherein the process-completing the original production flow produced by the production system to obtain the completed production flow comprises:
Determining at least one element information required for configuring an output message of a transaction corresponding to the original production running water;
judging whether each element information exists in the original production running water or not respectively;
And if the element information does not exist in the original production running water, acquiring the element information from a production system database, and supplementing the element information to the original production running water to obtain the completed production running water.
5. A baffle system, comprising:
The message receiving module is used for receiving an input message and determining a transaction code and a serial number corresponding to the input message;
The flow configuration module is used for determining message configuration information of an output message corresponding to the input message according to the transaction code corresponding to the input message;
The flow selection module is used for acquiring a target production flow corresponding to the input message from a baffle system database according to the flow number corresponding to the input message;
The message configuration module is configured to generate an output message corresponding to the input message based on the message configuration information and the target production flow, and includes: determining a message template of an output message corresponding to the input message according to a transaction code corresponding to the input message, wherein the message template comprises at least one message field for forming the output message; respectively determining the flow field corresponding to each message field in the message template based on the message configuration information; respectively acquiring field information of stream fields corresponding to the message segments from the target production stream to serve as the field information of the message segments; filling field information of each message field into the message template to generate an output message; the message configuration information comprises a corresponding relation between a message field of an output message and a flow field of a target production flow.
6. The system of claim 5, wherein the system further comprises:
The transaction configuration module is used for determining a configuration strategy of an output message corresponding to the input message according to the transaction code corresponding to the input message;
the message configuration module is used for generating an output message corresponding to the input message based on the message configuration information and the target production flow when the configuration strategy is a dynamic configuration strategy.
7. The system of claim 5, wherein the system further comprises:
The flow water export module is used for exporting original production flow water generated by the production system;
The flow processing module is used for processing and complementing the original flow generated by the production system to obtain the complemented flow;
and the flow loading module is used for guiding the completed production flow into the baffle system database.
8. An electronic device comprising a processor and a memory, wherein the memory stores at least one instruction or at least one program, the at least one instruction or the at least one program loaded and executed by the processor to implement the message generation method of any of claims 1-4.
9. A computer readable storage medium having stored therein at least one instruction or at least one program loaded and executed by a processor to implement the message generation method of any of claims 1-4.
10. A computer program product, characterized in that the computer program product, when run on an electronic device, causes the electronic device to perform the message generation method of any of claims 1-4.
CN202111369812.XA 2021-11-18 2021-11-18 Message generation method, baffle system, equipment and storage medium Active CN114095380B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111369812.XA CN114095380B (en) 2021-11-18 2021-11-18 Message generation method, baffle system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111369812.XA CN114095380B (en) 2021-11-18 2021-11-18 Message generation method, baffle system, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114095380A CN114095380A (en) 2022-02-25
CN114095380B true CN114095380B (en) 2024-04-19

Family

ID=80301736

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111369812.XA Active CN114095380B (en) 2021-11-18 2021-11-18 Message generation method, baffle system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114095380B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656874A (en) * 2017-11-07 2018-02-02 中国银行股份有限公司 A kind of interface test method, device, simulation baffle plate and system
CN111221739A (en) * 2020-01-10 2020-06-02 中国建设银行股份有限公司 Service testing method, device and system
CN111427796A (en) * 2020-04-12 2020-07-17 中信银行股份有限公司 System testing method and device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI777991B (en) * 2017-11-22 2022-09-21 互立金交易平台股份有限公司 Fund transaction platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656874A (en) * 2017-11-07 2018-02-02 中国银行股份有限公司 A kind of interface test method, device, simulation baffle plate and system
CN111221739A (en) * 2020-01-10 2020-06-02 中国建设银行股份有限公司 Service testing method, device and system
CN111427796A (en) * 2020-04-12 2020-07-17 中信银行股份有限公司 System testing method and device and electronic equipment

Also Published As

Publication number Publication date
CN114095380A (en) 2022-02-25

Similar Documents

Publication Publication Date Title
CN105404585A (en) Method and apparatus for acquiring code coverage rate
CN112767133B (en) Service decision method and device, storage medium and computer equipment
CN105337843A (en) Interaction system and method, client, and background server
CN110096380B (en) Android internal communication method, system, device and storage medium
CN112767135B (en) Configuration method and device of rule engine, storage medium and computer equipment
CN110362460B (en) Application program performance data processing method, device and storage medium
CN104133765B (en) The test case sending method of network activity and test case server
CN104616138A (en) Resource transferring method, system and device
CN109582377A (en) BIOS option amending method, device, equipment and storage medium
CN112948272A (en) Production environment-based data test system function method and device and related equipment
CN110019444B (en) Operation request processing method, device, equipment and system
CN113691618B (en) Message notification method, device, message center and storage medium
CN109636460B (en) Service processing method, device, equipment and storage medium
CN114095380B (en) Message generation method, baffle system, equipment and storage medium
CN108664389B (en) Test method, test device and terminal
CN104102560A (en) Method and device for testing system performance
CN108874381B (en) Method and device for outputting page view controller and electronic equipment
CN109582338A (en) BIOS option amending method, device, equipment and storage medium
CN111240908B (en) Verification method and verification system for processor interface, electronic equipment and storage medium
CN110286907B (en) Display method and device of public button assembly
CN111865726B (en) Service message testing method, device, computer system and storage medium
CN110445672B (en) Test method, terminal to be tested and related products
CN113778546A (en) Method and device for gray scale optimization
CN111123727A (en) Unmanned vehicle simulation building method, device, equipment and computer readable medium
CN113886257A (en) Multimedia framework test method, device, equipment and 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
GR01 Patent grant
GR01 Patent grant