CN114095380A - Message generation method, baffle system, device and storage medium - Google Patents

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

Info

Publication number
CN114095380A
CN114095380A CN202111369812.XA CN202111369812A CN114095380A CN 114095380 A CN114095380 A CN 114095380A CN 202111369812 A CN202111369812 A CN 202111369812A CN 114095380 A CN114095380 A CN 114095380A
Authority
CN
China
Prior art keywords
message
input
flow
production flow
input message
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.)
Granted
Application number
CN202111369812.XA
Other languages
Chinese (zh)
Other versions
CN114095380B (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

Images

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 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 corresponding target production flow, 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 parallel testing are further ensured.

Description

Message generation method, baffle system, device and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a message generation method, a baffle system, a device, and a storage medium.
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 due to the complexity of the distributed architecture, the uncertainty of the open-source framework and other factors, the testing of the distributed system is much more complicated than that of a single-machine system.
In the prior art, a dual-machine parallel test mode is usually adopted to test a distributed system, the distributed system needs to interact with a production system in the test process, but in order to ensure the normal operation of the production system, the production system cannot directly participate in the parallel test, so 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 a message.
Currently, the baffle system generally obtains a returned response message through a preconfigured message content simulation. Specifically, the baffle system may search, according to the transaction serial number sent by the distributed system, a message corresponding to the transaction serial number from the preconfigured message content, and use the message as a returned response message. In the baffle system, the returned messages are all pre-configured messages, which have no authenticity and are difficult to meet the requirement of parallel test, thereby influencing the accuracy of the parallel test result. In addition, a large amount of message content needs to be configured in advance in the baffle system, so that the configuration is difficult and the cost is high.
Disclosure of Invention
In view of the above problems in the prior art, an object of the present invention is to provide a message generating method, a baffle system, a device and a storage medium, which can generate an output message closer to actual content of production and improve authenticity of the output message.
In order to solve the above problem, the present invention provides a method for generating a packet, 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 an output message corresponding to the input message based on the message configuration information and the target production flow comprises:
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 forming the output message;
respectively determining the flow fields corresponding to all message fields in the message template based on the message configuration information;
respectively acquiring field information of the flow fields corresponding to the message fields from the target production flow as the field information of the message fields;
filling the field information of each message field into the message template to generate an output message;
the message configuration information includes a corresponding relationship between a message field of the output message and a flow field of the 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 of the output message corresponding to the input message based on the message configuration information and the target production flow comprises:
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:
exporting original production flow generated by the production system;
processing and complementing 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 completion of the original production flow generated by the production system, and obtaining the completed production flow includes:
determining at least one element information required for configuring an output message of a transaction corresponding to the original production flow;
respectively judging whether each element information exists in the original production flow;
and if the element information does not exist in the original production flow, acquiring the element information from a production system database, and supplementing the element information into the original production flow to obtain a supplemented production flow.
In another aspect, the present 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 streamline selection module is used for acquiring a target production streamline corresponding to the input message from a baffle system database according to the streamline 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 a transaction code 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 when the configuration strategy is a dynamic configuration strategy.
Further, the system further comprises:
the flow exporting module is used for exporting original production flow generated by the production system;
the flow processing module is used for processing and complementing original production flow generated by the production system to obtain complemented production flow;
and the flow loading module is used for guiding the completed production flow into the baffle system database.
Another aspect of 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, and the at least one instruction or the at least one program is loaded by the processor and executed to implement the message generation method as described above.
Another aspect of the present invention provides a computer-readable storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the message generation method as described above.
Another aspect of the present invention provides a computer program product, which when running on an electronic device, causes the electronic device to execute the 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 closer to the actual production content, the authenticity of the output message can be improved, and the authenticity and the reliability of the parallel test can be further ensured.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings used in the description of the embodiment or the prior art will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can also be derived from them without inventive effort.
Fig. 1 is a schematic diagram of an implementation environment of a message generation method according to an embodiment of the present invention;
fig. 2 is a flowchart of a message generation method according to an embodiment of the present invention;
fig. 3 is a flowchart of a message generation method according to another embodiment of the present invention;
FIG. 4 is a schematic structural view of a baffle system provided in accordance with one embodiment of the present invention;
FIG. 5 is a schematic structural view of a baffle system provided in accordance with 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 to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in other sequences than those illustrated or 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, but may include other steps or elements not expressly listed or inherent to such process, method, article, or device.
The embodiments of the present invention will be described in further detail below with reference to the accompanying drawings. It should be noted that all the embodiments of the present invention conform to the relevant regulations of national laws and regulations for data acquisition, storage, use, processing, and the like.
Referring to fig. 1 in the specification, which is a schematic diagram illustrating an implementation environment of a message generation method according to an embodiment of the present invention, as shown in fig. 1, the implementation environment may include at least a parallel system 110, a baffle system 120, and a production system 130, where the baffle system 120 may be communicatively connected to the parallel system 110 and the production system 130, respectively.
The parallel system 110 is a system to be verified, which has the same function as the production system 130, and once the verification is passed, the parallel system can replace the production system; the baffle system 120 is a system that can be used to simulate the transaction message returned by the production system 130, and the baffle system can obtain the target production flow from the baffle system database according to the transaction code of the input message, and finally combine the output message with high simulation through various dynamic configurations; the production system 130 may process the transaction request and generate a production flow including information such as input messages and output messages of the transaction.
It should be noted that fig. 1 is only an example.
Referring to the specification, fig. 2 shows a flow of a message generation method according to an embodiment of the present invention, where the method may be applied to the baffle system in fig. 1, and the method may be applied to a scenario of performing parallel testing on parallel systems. As shown in fig. 2, the method may include the following steps:
s210: 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 baffle system can analyze the input message and 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, payment, information inquiry and the like, and different transaction types are represented by different transaction codes. The transaction serial number is a globally unique transaction identifier which is generated by a transaction initiation point and is shared among all systems.
Specifically, analyzing the input packet may include converting the input packet from a first packet format to a second packet format, where the first packet format is a format that can be recognized by the parallel system, and the second packet format is a format that can be recognized by the baffle system. The baffle system may determine the corresponding transaction code and serial number from the incoming message in the second format.
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, flow configuration can be performed in advance, and the corresponding relation between the message field of the corresponding output message and the flow field of the production flow is configured, namely which field of the flow the message field of the output message comes from is configured, so that the message configuration information of the corresponding output message is obtained and stored in the database. After the transaction code corresponding to the input message is determined, 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 output message of the baffle system with high simulation, the production flow of the production system can be relied on, and the production flow contains the input message and the output message of the transaction and also contains a large amount of information which can be used as the basis for outputting the message of the baffle system.
In particular, the baffle system database may have stored therein production flow information for a plurality of transactions, which may be production flow information derived from a production system. After the serial number corresponding to the input message is determined, the production serial information of the transaction with the serial number the same as that corresponding to the input message can be read from the database to serve as the target production serial.
In one possible embodiment, the method may further include:
exporting original production flow generated by the production system;
processing and complementing the original production flow generated by the production system to obtain the complemented production flow;
and leading the completed production flow into a baffle system database.
Specifically, the processing and complementing the original production flow generated by the production system, and obtaining the complemented production flow may include:
determining at least one element information required for configuring an output message of a transaction corresponding to the original production flow;
respectively judging whether each element information exists in the original production flowing water;
and if the element information does not exist in the original production flow, acquiring the element information from a production system database, and supplementing the element information into the original production flow to obtain a supplemented production flow.
In practical applications, when exporting an original production stream generated by a production system, the original production stream can be exported to a production stream file for subsequent use.
In practice, the information from the original production stream alone is not sufficient to cover all transactions, and therefore additional process completion is required. Determining element information required by an output message of configuration transaction by analyzing each transaction in a production flow file, if the element information is not in the original production flow, performing flow processing, inquiring the required element information in a production system database, and supplementing the required element information into the original production flow to obtain a supplemented production flow.
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 derived from the production system and the message configuration information configured in advance, the authenticity of the output message is stronger, and the requirement of parallel test can be met.
Specifically, the generating an output packet corresponding to the input packet based on the packet configuration information and the target production flow 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 forming the output message;
respectively determining the flow fields corresponding to all message fields in the message template based on the message configuration information;
respectively acquiring field information of the flow fields corresponding to the message fields from the target production flow as the field information of the message fields;
filling the field information of each message field into the message template to generate an output message;
the message configuration information includes a corresponding relationship between a message field of the output message and a flow field of the target production flow.
Specifically, for each transaction code, a message template of a corresponding output message may be preconfigured, where the message template includes at least one message field constituting the output message and is stored in a baffle system database. And according to the transaction code corresponding to the input message, the message template of the corresponding output message can be directly determined.
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 of an output message can be determined to include message fields such as the user name, a certificate number, a user class, and an account balance according to a corresponding transaction code.
For example, assuming that the pipeline field corresponding to the identification number field is the identification number field, the field information of the identification number field, for example 523334 … … 6800, may be obtained from the corresponding target production pipeline as the field information of the identification number field in the message template of the output message.
The method provided by the embodiment of the invention can analyze required elements from production flow based on the message template and the message configuration information when the output message is required to be simulated by pre-configuring the message template and the message configuration information of the output message, so as to produce message content close to real production, has strong functions, only needs to increase the message template and the message configuration information for configuring the corresponding output message when increasing the transaction code of the information, and has strong expandability.
In one possible embodiment, referring to fig. 3 in conjunction with the description, 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 of 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, transaction strategy configuration can be performed in advance, and a configuration strategy of a corresponding output message is 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 packet corresponding to the input packet is generated based on the packet configuration information and the target production flow; and when the configuration strategy is a static configuration strategy, acquiring a preset output message corresponding to the input message according to the transaction code corresponding to the input message. The preset output message may be preset according to an actual situation, for example, may be set to be a transaction success/a transaction failure, and the like, which is not limited in the embodiment of the present invention.
The embodiment of the invention combines dynamic configuration and static configuration, returns the pre-configured message content for simple transaction, and dynamically configures the output message by using real production flow for complex transaction, thereby improving the response speed of the baffle system, having less configuration information and being more universal and faster.
In a possible embodiment, after the output packet corresponding to the input packet is generated, the output packet may be converted from the second packet format to the first packet format, and the output packet in the first packet 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. By format converting the incoming messages and the outgoing messages, the baffle system can be adapted to a variety of parallel systems.
In summary, according to the message generating method of the embodiment of the present invention, the output message corresponding to the input message is dynamically configured 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, 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 can be further ensured.
In addition, by utilizing the real production flow generated by the production system and dynamically configuring, required elements are analyzed from the production flow and combined into an output message, a large amount of message contents do not need to be configured in advance, the system development time is saved, and the development cost is reduced.
Referring to the specification, fig. 4 illustrates the structure of a baffle system provided by an embodiment of the present invention, and as shown in fig. 4, the baffle system may include:
a message receiving module 410, configured to receive an input message, and determine a transaction code and a serial number corresponding to the input message;
the pipeline configuration module 420 is configured to determine, according to the transaction code corresponding to the input message, message configuration information of an output message corresponding to the input message;
the pipeline selecting module 430 is configured to obtain a target production pipeline corresponding to the input message from a baffle system database according to the pipeline number corresponding to the input message;
a message configuration module 440, 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:
a message template determining unit, configured to determine, according to a transaction code corresponding to the input message, a message template of an output message corresponding to the input message, where the message template includes at least one message field that constitutes the output message;
a flow field determining unit, configured to determine, based on the message configuration information, flow fields corresponding to each message field in the message template respectively;
a field information obtaining unit, configured to obtain field information of the flow field corresponding to each message field from the target production flow, as the field information of each message field;
an output message generating unit, configured to fill the field information of each message field into the message template, and generate an output message;
the message configuration information includes a corresponding relationship between a message field of the output message and a flow field of the 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 the transaction code corresponding to the input message;
the message configuration module 440 is configured to, when the configuration policy is a dynamic configuration policy, generate 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, when the configuration policy is a static configuration policy, obtain a preset output message corresponding to an input message according to a transaction code corresponding to the input message.
In one possible embodiment, referring to fig. 5 in conjunction with the description above, the baffle system may further comprise:
a flow export module 460 for exporting the original production flow generated by the production system;
the flow processing module 470 is used for processing and complementing the original production flow generated by the production system to obtain the complemented production flow;
and the flow loading module 480 is used for guiding the completed production flow into the baffle system database.
In one possible embodiment, the flow processing module 470 may include:
the element information determining unit is used for determining at least one element information required for configuring an output message of a transaction corresponding to the original production flow;
the judging unit is used for respectively judging whether the element information exists in the original production flowing water or not;
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 flowing water, and supplementing the element information into the original production flowing water to obtain a supplemented production flowing water.
It should be noted that, in the system provided in the foregoing embodiment, when the functions of the system are implemented, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the apparatuses provided in the above embodiments and the corresponding method embodiments belong to the same concept, and specific implementation processes thereof are detailed in the corresponding method embodiments, and are not described herein again.
An embodiment of the present invention further provides an electronic device, where the electronic device includes a processor and a memory, where the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the message generation method provided in the foregoing method embodiment.
The memory may be used to store software programs and modules, and the processor may execute various functional applications and data processing by operating the software programs and modules stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs needed by functions and the like; the storage data area may store data created according to use of the apparatus, and the like. Further, 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 the processor access to the memory.
In a specific embodiment, fig. 6 is a schematic diagram illustrating a hardware structure of an electronic device for implementing the message generating method according to 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 according to the embodiment of the present invention. As shown in fig. 6, the electronic device 600 may include one or more computer-readable storage media of the memory 610, one or more processing cores of the processor 620, an input unit 630, a display unit 640, a Radio Frequency (RF) circuit 650, a wireless fidelity (WiFi) module 660, and a power supply 670. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of electronic device 600, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components. Wherein:
the memory 610 may be used to store software programs and modules, and the processor 620 may execute various functional applications and data processing by operating or executing the software programs and modules stored in the memory 610 and calling data stored in the memory 610. The memory 610 may mainly include a program storage area and a data storage area, wherein the program storage 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 use of the electronic device, and the like. In addition, the memory 610 may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a 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 whole electronic device by using various interfaces and lines, and performs various functions of the electronic device 600 and processes data by operating 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, or may be other general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, or the like. 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 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 as well as 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 (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 640 may be used to display information input by or provided to a user and various graphical user interfaces of an electronic device, which may be made up 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 (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The RF circuit 650 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for receiving downlink information of a base station and then processing the received downlink information by the one or more processors 620; in addition, data relating to uplink is transmitted to the base station. In general, RF circuit 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 (LNA), a duplexer, and the like. In addition, RF circuit 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 communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
WiFi belongs to short-distance wireless transmission technology, and the electronic equipment 600 can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 660, and provides wireless broadband Internet access for the user. Although fig. 6 shows the WiFi module 660, it is understood that it does not belong to the essential constitution of the electronic device 600, and may be omitted entirely as needed within the scope 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 coupled to the processor 620 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 670 may also include one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, or any other component.
It should be noted that, although not shown, the electronic device 600 may further include a bluetooth module, and the like, which is not described herein again.
An embodiment of the present invention further provides a computer-readable storage medium, which can be disposed in an electronic device to store at least one instruction or at least one program for implementing a message generation method, where the at least one instruction or the at least one program is loaded and executed by the processor to implement the message generation method provided in the foregoing method embodiment.
Optionally, in an embodiment of the present invention, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
An embodiment of the present invention further provides a computer program product, which includes a computer program containing a program code for executing the message generation method provided in the embodiment of the present invention, and when the computer program product runs on an electronic device, the program code is configured to enable the electronic device to execute the message generation method provided in the above-mentioned various optional embodiments. It should be noted that: the precedence order of the above embodiments of the present invention is only for description, and does not represent the merits of the embodiments. And specific embodiments thereof have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may 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 may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
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 instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (11)

1. A message generation method is characterized by comprising 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.
2. The method of claim 1, wherein generating the output message corresponding to the input message based on the message configuration information and the target production flow comprises:
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 forming the output message;
respectively determining the flow fields corresponding to all message fields in the message template based on the message configuration information;
respectively acquiring field information of the flow fields corresponding to the message fields from the target production flow as the field information of the message fields;
filling the field information of each message field into the message template to generate an output message;
the message configuration information includes a corresponding relationship between a message field of the output message and a flow field of the target production flow.
3. The method of claim 1, further comprising:
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 of the output message corresponding to the input message based on the message configuration information and the target production flow comprises:
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.
4. The method of claim 1, further comprising:
exporting original production flow generated by a production system;
processing and complementing the original production flow generated by the production system to obtain the complemented production flow;
and leading the completed production flow into a baffle system database.
5. The method of claim 4, wherein the processing the raw production stream from the production system to obtain the supplemented production stream comprises:
determining at least one element information required for configuring an output message of a transaction corresponding to the original production flow;
respectively judging whether each element information exists in the original production flowing water;
and if the element information does not exist in the original production flow, acquiring the element information from a production system database, and supplementing the element information into the original production flow to obtain a supplemented production flow.
6. 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 streamline selection module is used for acquiring a target production streamline corresponding to the input message from a baffle system database according to the streamline 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.
7. The system of claim 6, further comprising:
the transaction configuration module is used for determining a configuration strategy of an output message corresponding to the input message according to a transaction code 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 when the configuration strategy is a dynamic configuration strategy.
8. The system of claim 6, further comprising:
the flow exporting module is used for exporting original production flow generated by the production system;
the flow processing module is used for processing and complementing the original production flow generated by the production system to obtain the complemented production flow;
and the flow loading module is used for guiding the completed production flow into the baffle system database.
9. An electronic device, comprising a processor and a memory, wherein at least one instruction or at least one program is stored in the memory, and the at least one instruction or the at least one program is loaded by the processor and executed to implement the message generation method according to any one of claims 1 to 5.
10. A computer-readable storage medium, in which at least one instruction or at least one program is stored, the at least one instruction or the at least one program being loaded and executed by a processor to implement the message generation method according to any one of claims 1 to 5.
11. A computer program product, which, when run on an electronic device, causes the electronic device to perform the message generation method according to any one of claims 1 to 5.
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 true CN114095380A (en) 2022-02-25
CN114095380B 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 (4)

* 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
US20190156415A1 (en) * 2017-11-22 2019-05-23 Cooperation Loan Platform Company Limited Fund transaction platforms
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

Patent Citations (4)

* 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
US20190156415A1 (en) * 2017-11-22 2019-05-23 Cooperation Loan Platform Company Limited Fund transaction platforms
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
CN114095380B (en) 2024-04-19

Similar Documents

Publication Publication Date Title
CN108334465B (en) Configuration method, device and equipment of communication interface and computer readable storage medium
US9667808B2 (en) Techniques for contextual mobile data access
CN112988362B (en) Task processing method and device, electronic equipment and storage medium
CN111818136A (en) Data processing method and device, electronic equipment and computer readable medium
CN108881930B (en) Method and system for presenting gift and electronic equipment
KR20120088199A (en) Apparatus and method for providing advertisement information inserted application
CN110362460B (en) Application program performance data processing method, device and storage medium
CN104346560A (en) Security authentication method and security authentication device
CN112767133B (en) Service decision method and device, storage medium and computer equipment
CN104679627A (en) Testing method and device
CN115103336A (en) Card information activation method and device and storage medium
CN110781373A (en) List updating method and device, readable medium and electronic equipment
CN106095489A (en) A kind of application controls method and mobile terminal
CN105468513A (en) Testing method, apparatus and system based on mobile terminal
CN111340587A (en) Virtual commodity management method and related device
CN112948272A (en) Production environment-based data test system function method and device and related equipment
CN115391219A (en) Test case generation method and device, electronic equipment and storage medium
CN107861765B (en) Product configuration method, apparatus, and computer-readable storage medium
CN103455333A (en) Desktop icon processing method and device and mobile terminal
CN115114141A (en) Method, device and equipment for testing performance of application program and storage medium
CN114095380B (en) Message generation method, baffle system, equipment and storage medium
CN111104281A (en) Game performance monitoring method, device, system and storage medium
CN111176641A (en) Flow node execution method, device, medium and electronic equipment
CN112866422B (en) Data request processing method and device
CN110286907B (en) Display method and device of public button assembly

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