CN109361628A - Message assemble method, device, computer equipment and storage medium - Google Patents
Message assemble method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN109361628A CN109361628A CN201811204617.XA CN201811204617A CN109361628A CN 109361628 A CN109361628 A CN 109361628A CN 201811204617 A CN201811204617 A CN 201811204617A CN 109361628 A CN109361628 A CN 109361628A
- Authority
- CN
- China
- Prior art keywords
- message
- information
- party
- rule collection
- data value
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/30—Peripheral units, e.g. input or output ports
- H04L49/3009—Header conversion, routing tables or routing tags
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/90—Buffering arrangements
- H04L49/9057—Arrangements for supporting packet reassembly or resequencing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
This application involves the processing technique of Business Process Optimizing, in particular to a kind of message assemble method, device, computer equipment and storage medium.The described method includes: obtaining the key message corresponding with business to be processed of input;Choose message rule collection template corresponding with third party's partner systems;The message rule collection template changes with the interface of the variation of Local Data source generation logic and third party's partner systems and is updated;According to the interface configuration information configured in the message rule collection template, native data value corresponding with the key message is searched from the Local Data source;According to the data conversion information configured in the message rule collection template, native data value is converted;Information is assembled according to the message that configures in the message rule collection template, the native data value after conversion is assembled into message corresponding with the business to be processed.The message for meeting the requirement of third party's partner systems can be fast and effeciently assembled using this method.
Description
Technical field
This application involves field of computer technology, more particularly to a kind of message assemble method, device, computer equipment and
Storage medium.
Background technique
Currently, the assets end system of bank can be provided a loan by carrying out between front platform system and third party's partner systems
Business, such as bank card verification, loan order push scene, these business are mostly to receive and dispatch message by sync cap
What mode was completed.During docking different third party's partner systems, the message structure of different third party's partner systems, field
Name, code value and message content and coding mode etc. have differences.
When assets end system iteration upgrading after, there are logic variations in assets end system legacy data source, furthermore with third party
Partner systems interface may adjust frequent occurrence, so that the assembling of message is affected, can not fast and effeciently assemble satisfaction
The message that third party's partner systems require.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of message assemble method, device, computer equipment and
Storage medium, to realize that fast and effeciently assembling meets the message of third party's partner systems requirement.
A kind of message assemble method, which comprises
Obtain the key message corresponding with business to be processed of input;
Choose message rule collection template corresponding with third party's partner systems;The message rule collection template is sent out with data source
The interface of raw logic variation and third party's partner systems changes and is updated;
According to the interface configuration information configured in the message rule collection template, lookup and institute from the Local Data source
State the corresponding native data value of key message;
According to the data conversion information configured in the message rule collection template, native data value is converted;
Information is assembled according to the message configured in the message rule collection template, by the native data value group after conversion
Dress up message corresponding with the business to be processed.
It is described according to the data conversion information configured in the message rule collection template in one of the embodiments, it is right
Native data value carries out conversion
Judge whether to convert native data value according to the message rule collection template;
If so, determining the data format requirement of third party's partner systems according to the data conversion information;
The native data value is converted to the data value for meeting the data format requirement of third party's partner systems.
In one of the embodiments, the method also includes:
When logic variation occurs for the data source, first interface information corresponding to data source after changing is obtained;
According to the interface configuration information in message rule collection template described in the first interface information update;
It is described according to the interface configuration information configured in the message rule collection template, searched from the Local Data source
Native data value corresponding with the key message includes:
Local Data source is chosen according to interface configuration information updated in the message rule collection template;
Native data value corresponding with the key message is searched from the Local Data source of selection.
In one of the embodiments, the method also includes:
Judge whether the message of assembling meets the requirement of test template by message testing tool;The test template is institute
State the template corresponding with the message rule collection template carried in testing tool;
If so, determining that the message meets the message requirement of third party's partner systems;
If not, it is determined that the message is unsatisfactory for the message requirement of third party's partner systems.
In one of the embodiments, the method also includes:
Detect the second interface information of third party's partner systems;
When the interface for determining third party's partner systems according to the second interface information changes, then
Obtain corresponding first message information of third party's partner systems;
Information is assembled according to the message that first message information modifies the message rule collection template.
In one of the embodiments, the method also includes:
Detect whether that new third party's partner systems access this end system;
If so, obtaining corresponding second message information of new third party's partner systems;
According to second message information, message rule collection mould corresponding with new third party's partner systems is created
Plate.
A kind of message assembling device, described device include:
Key message obtains module, for obtaining the key message corresponding with business to be processed of input;
Template chooses module, for choosing message rule collection template corresponding with third party's partner systems;The message rule
Then collect template to change and be updated with the interface of data source generation logic variation and third party's partner systems;
Data value searching module, for according to the interface configuration information configured in the message rule collection template, from described
Native data value corresponding with the key message is searched in Local Data source;
Data value conversion module, for according to the data conversion information configured in the message rule collection template, to primary
Data value is converted;
Message assembles module, for assembling information according to the message configured in the message rule collection template, after conversion
The native data value be assembled into message corresponding with the business to be processed.
The data value conversion module is also used to be judged according to the message rule collection template in one of the embodiments,
Whether native data value is converted;If so, determining third party's partner systems according to the data conversion information
Data format requirement;The native data value is converted to the data value for meeting the data format requirement of third party's partner systems.
Described device in one of the embodiments, further include: interface message obtains module and interface configuration information updates
Module;Wherein:
Interface message obtains module, right for data source institute after when logic variation occurs for the data source, obtaining variation
The first interface information answered;
Interface configuration information update module, in the message rule collection template according to the first interface information update
Interface configuration information;
The data value searching module is also used to according to updated interface configuration information in the message rule collection template
Choose Local Data source;Native data value corresponding with the key message is searched from the Local Data source of selection.
Described device in one of the embodiments, further include: judgment module and determining module;Wherein:
The judgment module, for judging whether the message of assembling meets wanting for test template by message testing tool
It asks;The test template is the template corresponding with the message rule collection template carried in the testing tool;
Determining module, when meeting the requirement of test template for the message when assembling, it is determined that described in the message meets
The message requirement of third party's partner systems;When the message of assembling does not meet the requirement of test template, it is determined that the message is not
Meet the message requirement of third party's partner systems.
Described device in one of the embodiments, further include: interface message detection module, message assemble acquisition of information mould
Block and modified module;Wherein:
Interface message detection module, for detecting the second interface information of third party's partner systems;
Message assembles data obtaining module, determines third party's partner systems according to the second interface information for working as
Interface when changing, then obtain corresponding first message information of third party's partner systems;
Modified module, the message for modifying the message rule collection template according to first message information assemble letter
Breath.
Described device in one of the embodiments, further include: system access detection module and template creation module: its
In:
System access detection module, for detecting whether there is new third party's partner systems to access this end system;
Message assembling data obtaining module is also used to when detecting that new third party's partner systems access this end system, then
Obtain corresponding second message information of new third party's partner systems;
Template creation module, for according to second message information, creation and new third party's partner systems pair
The message rule collection template answered.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing
Device performs the steps of when executing the computer program
Obtain the key message corresponding with business to be processed of input;
Choose message rule collection template corresponding with third party's partner systems;The message rule collection template is sent out with data source
The interface of raw logic variation and third party's partner systems changes and is updated;
According to the interface configuration information configured in the message rule collection template, lookup and institute from the Local Data source
State the corresponding native data value of key message;
According to the data conversion information configured in the message rule collection template, native data value is converted;
Information is assembled according to the message configured in the message rule collection template, by the native data value group after conversion
Dress up message corresponding with the business to be processed.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
It is performed the steps of when row
Obtain the key message corresponding with business to be processed of input;
Choose message rule collection template corresponding with third party's partner systems;The message rule collection template is sent out with data source
The interface of raw logic variation and third party's partner systems changes and is updated;
According to the interface configuration information configured in the message rule collection template, lookup and institute from the Local Data source
State the corresponding native data value of key message;
According to the data conversion information configured in the message rule collection template, native data value is converted;
Information is assembled according to the message configured in the message rule collection template, by the native data value group after conversion
Dress up message corresponding with the business to be processed.
Above-mentioned message assemble method, device, computer equipment and storage medium have Local Data in message rule collection template
It the interface configuration information in source, the data conversion information of transition data value and assembles the message of message and assembles information, on the one hand, when obtaining
When getting key message corresponding with business to be processed, can quickly according to message rule collection template obtain native data value,
It carries out the conversion of data value and the native data value after conversion is assembled into message corresponding with business to be processed, realize report
The quick assembling of text;On the other hand, when the interface that logic variation or third party's partner systems occur for Local Data source changes
When, even if message rule collection template can be updated, thus according to the message rule collection template assemblies message of update, so as to
The assembling of audio message due to the interface in Local Data source and third party's partner systems changes is avoided, the group of message is improved
Fill efficiency.
Detailed description of the invention
Fig. 1 is the application scenario diagram of message assemble method in one embodiment;
Fig. 2 is the flow diagram of message assemble method in one embodiment;
Fig. 3 is the schematic diagram that native data value is obtained in one embodiment;
Fig. 4 is the flow diagram of message assembling in one embodiment;
Fig. 5 is the structural block diagram of message assembling device in one embodiment;
Fig. 6 is the structural block diagram of message assembling device in another embodiment;
Fig. 7 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
Message assemble method provided by the present application, can be applied in application environment as shown in Figure 1.Server 102 obtains
Key message corresponding with business to be processed is taken, according to the interface configuration information in message rule collection template, from Local Data source
It is middle to search native data value corresponding with the key message;According to the data conversion information in message rule collection template to primary
Data value is converted, according in message rule collection template message assembling information by the native data value after conversion be assembled into
The message of assembling, is then sent to the service equipment 104 of third party's partner systems by the corresponding message of business to be processed.Wherein,
Server 102 can be realized by the server cluster that individual server or multiple servers form.Service cluster 104 can have
Individual server or multiple servers and terminal are realized.
In one embodiment, as shown in Fig. 2, providing a kind of message assemble method, it is applied in Fig. 1 in this way
It is illustrated for server 102, comprising the following steps:
S202 obtains the key message corresponding with business to be processed of input.
Wherein, key message can be business to be processed keyword or corresponding number, such as service order number or
Product number or customer ID etc..Business to be processed can be the industry such as bank card is verified, paid the bill, loan order pushes and withdraws deposit
Business.
In one embodiment, in consumer's transacting business, consumer is inputted by touch screen or other input equipments
With information used in business to be processed, server receives the information corresponding with business to be processed of user's input, to service
Device obtains corresponding key message from the information received.Alternatively, the equipment of third party's partner systems receives user's input
Information corresponding with business to be processed, and received information corresponding with business to be processed is sent to server, to service
Device obtains corresponding key message from the information received.
S204 chooses message rule collection template corresponding with third party's partner systems.
Wherein, it is configured in message rule collection template: for searching the interface configuration information in Local Data source, for converting
The data conversion information of data value, and the message assembling information for assembling message.Message rule collection template is with Local Data
Logic variation occurs for source or the interface of third party's partner systems changes and is updated.Third party's partner systems can be it
The system of its banking institution or Third-party payment mechanism.
The message informations such as message structure, field name, code value due to different third party's partner systems have differences,
The interface of each third party's partner systems can correspond to different message rule collection templates, to ensure that the message assembled meets each the
The requirement of tripartite's partner systems.
Since message rule collection template occurs with the interface that logic variation or third party's partner systems occur for Local Data source
Change and be updated, therefore, S204 can be divided and be discussed for following two scene:
Scene 1 updates message rule collection template when logic variation occurs for Local Data source.
In one embodiment, when logic variation occurs for data source, after server acquisition variation corresponding to data source
First interface information;According to the interface configuration information in first interface information update message rule collection template.
Wherein, the data structure that the variation of data source generation logic can be data source changes, data source before such as changing
It is to be stored in a manner of business configuration file, is stored in the form of database after variation.Further, since data source can be stored in this
In each subsystem of end system, logic variation, which occurs, for data source can also be that subsystem interface corresponding with data source becomes
Change.
For example, when the subsystem interface in storing data source changes, subsystem interface after server acquisition variation
First interface information makes updated connect according to the interface configuration information in first interface information update message rule collection template
Mouth configuration information corresponds to updated subsystem interface.
Scene 2 updates message rule collection template when the interface of third party's partner systems changes.In one embodiment
In, this method further include: the second interface information of detection third party's partner systems;When determining third party according to second interface information
When the interface of partner systems changes, then corresponding first message information of third party's partner systems is obtained;According to the first message
The message that information modifies message rule collection template assembles information.
Wherein, when software system updating occur in third party's partner systems, the interface of system may change, corresponding
Message information accordingly changes, such as message structure, field name and code value message information change.
Specifically, server determines the interface of third party's partner systems according to the second interface information of third party's partner systems
When changing, Receive message request is sent to third party's partner systems, is reported when receiving for the first of Receive message request
When literary information, the information such as the first message information message structure of analysis, field name and code value are advised according to the results modification message of analysis
Then collect the message assembling information of template.It should be noted that above two scene is two kinds of mutually independent update message rules
The case where collecting template, it can successively occur, can also occur simultaneously.If above two scene occurs simultaneously, message can be updated simultaneously
Interface configuration information and message in rule set template assemble information.
In addition, new message rule collection mould can also be created when there is new third party's partner systems to access this end system
Plate.In one embodiment, this method further include: detect whether that new third party's partner systems access this end system;If so,
Then obtain corresponding second message information of new third party's partner systems;According to the second message information, creation and new third party
The corresponding message rule collection template of partner systems.
Specifically, when detecting that new third party's partner systems access this end system, server is to new third party
Partner systems send Receive message request, when receiving the second message information for Receive message request, the second report of analysis
The information such as literary infomational message structure, field name and code value create message rule collection template according to the result of analysis, and configuration is corresponding
Message for assembling message assembles information, so as to when interacting with third party's partner systems, according to newly-generated report
The corresponding message of literary rule set template generation.
In one embodiment, server is in message rule collection template configured with the message according to third party's partner systems
Structure, field name and code value carry out the information of message assembling.Therefore, when the interface of third party's partner systems changes, then only
It needs to modify message rule collection template according to third party's partner systems after variation, i.e., is configured in change message rule collection template
The information that message assembling is carried out according to the message structure, field name and code value of third party's partner systems, without developing new version,
Improve working efficiency.
Specifically, the step of choosing message rule collection template corresponding with third party's partner systems can specifically include: when
When needing to carry out message interaction with third party's partner systems, message rule collection template corresponding with third party's partner systems is obtained
Template number searches corresponding message rule collection template according to the template number.It, will be regular after server chooses message rule collection template
Collection template is loaded onto memory.
S206, according to the interface configuration information in message rule collection template, lookup and key message from Local Data source
Corresponding native data value.
Wherein, interface configuration information can be used for finding corresponding Local Data source.Interface configuration information may include local terminal
The IP address or memory of data source identify, so as to navigate to the storage address in corresponding Local Data source.Data source can be with
Including database, business configuration file and data file etc..Local Data source refers to the data source of this end system, rather than third
The data source of square partner systems.
In one embodiment, Local Data source can be reserved in the different sub-systems of this end system, and server can basis
Interface configuration information determines corresponding subsystem, and corresponding Local Data source is found in determining subsystem, is then being looked into
Native data value corresponding with key message is obtained in the Local Data source found.
In one embodiment, key message can be O/No. or product number or customer ID etc..Work as key
When information is O/No., S206 be can specifically include: being determined and is corresponded to according to the interface configuration information in message rule collection template
Local Data source, corresponding with O/No. order information is traversed from Local Data source.Wherein, as shown in figure 3, the order
Information may include refund row information, household register address, produce and demonstrate,prove information, customer information, product information and unit address etc..Client's letter
Breath may include user's name, passport NO., type of credential, bank's card number, cell-phone number.
Message that is corresponding, being assembled after being converted by order information, content also may include: refund row information,
Household register address produces and demonstrate,proves information, customer information, product information and unit address etc..
It in one embodiment, can be with combined data library field, placeholder, pipe, fixation when searching native data value
Value and attribute value are searched.Specifically, the step of native data value corresponding with key message is searched from Local Data source,
It can specifically include: the corresponding Database field of native data value to be found is determined according to key message, it can be fast according to the field
Speed positions native data value to be found, to obtain native data value corresponding with key message.
For example, as shown in figure 4, server determines native data value to be found in the corresponding word of database according to key message
Section obtains native data value corresponding with key message from the corresponding field of database by data set loader.
In one embodiment, corresponding when the subsystem of this end system changes after the upgrading of this end system iteration
There may be logic variations, such as the interface of subsystem to change for data source.At this point, server can believe the interface after variation
Breath updates the interface configuration information in message rule collection template, when obtaining native data value from data source, after update
Interface configuration information search corresponding native data source.
For example, subsystem interface changes after the upgrading of system iteration, connect according to the subsystem after change
Message breath is updated message rule collection template, to describe the interface of data source in message rule collection template with confidence
Breath, i.e., how from different data sources value, and how to carry out value.When searching native data value, advised according to message
Then collect template and searches native data value from the corresponding data source of update interface configuration information.So as to change in subsystem interface
After change, data source change there are logic, corresponding native data value still can be accurately got.
In one embodiment, it finds the problem during developing joint debugging or demand change, server connects system
Mouth is reconfigured, and is updated according to the interface after change to the interface configuration information in message rule collection template.When
When searching native data value, corresponding native data value is searched from data source according to the interface configuration information of update.
In one embodiment, when logic variation occurs for data source, after server acquisition variation corresponding to data source
First interface information;According to the interface configuration information in first interface information update message rule collection template;According to message rule
Collect the interface configuration information in template, searched from Local Data source corresponding with key message native data value include: according to
Updated interface configuration information chooses Local Data source in message rule collection template;From the Local Data source of selection search with
The corresponding native data value of key message.
S208 converts native data value according to the data conversion information in message rule collection template.
In one embodiment, to the conversion in native data source may include: native data value is formatted, word
Allusion quotation conversion or expression formula conversion.
In one embodiment, S208 can specifically include: be judged whether according to message rule collection template to native data
Value is converted;If so, determining the data format requirement of third party's partner systems according to data conversion information;By native data
Value is converted to the data value for meeting the data format requirement of third party's partner systems.
For example, server is determined the need for according to message rule collection template to primary after obtaining native data value
Data value is converted.When determination needs to convert, native data value can be converted to third party's partner systems and wanted by server
The form asked, as third party's partner systems require date format be YYYY/MM/DD when, can be by original YYYY-MM-DD
Date format is converted to the YYYY/MM/DD date format of third party's partner systems requirement.
S210, according in message rule collection template message assemble information, by the native data value after conversion be assembled into
The corresponding message of business to be processed.
In one embodiment, this method further include: judge whether the message of assembling meets survey by message testing tool
The requirement of die trial plate;Test template is the template corresponding with message rule collection template carried in testing tool;If so, determining
Message meets the message requirement of third party's partner systems;If not, it is determined that the message that message is unsatisfactory for third party's partner systems is wanted
It asks.
For example, during the test, message of the assembling for test checks whether the test packet meets message rule collection
The requirement of template indicates that test packet assembling is correct if meeting;If not meeting, indicate that test packet assembling is incorrect.It is logical
Message rule collection template is crossed to determine the correctness of message assembling, the effect of test can be improved to avoid the mode of artificial contrast
Rate.
In one embodiment, server obtains equipment corresponding with third party's partner systems after group installs message
The message of assembling is sent to the corresponding equipment of third party's partner systems according to the address information, so that third party by address information
Partner systems carry out corresponding operation after receiving message.Bank card information be such as assembled into message be sent to third party cooperate be
It unites corresponding equipment, the corresponding equipment of third party's partner systems carries out the verification operation of bank card according to bank card information.
In above-described embodiment, there are the interface configuration information in Local Data source, transition data value in message rule collection template
The message of data conversion information and assembling message assembles information, on the one hand, believes when getting key corresponding with business to be processed
When breath, after quickly can obtaining native data value according to message rule collection template, carry out the conversion of data value and will convert
Native data value be assembled into message corresponding with business to be processed, realize the quick assembling of message;On the other hand, work as local terminal
When the interface of data source generation logic variation and third party's partner systems changes, message rule collection template carries out more therewith
Newly, thus according to update message rule collection template assemblies message, so as to avoid because Local Data source cooperate with third party be
The interface of system changes and the assembling of audio message, improves the packaging efficiency of message.
It should be understood that although each step in the flow chart of Fig. 2 is successively shown according to the instruction of arrow, this
A little steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, these steps
It executes there is no the limitation of stringent sequence, these steps can execute in other order.Moreover, at least part in Fig. 2
Step may include that perhaps these sub-steps of multiple stages or stage are executed in synchronization to multiple sub-steps
It completes, but can execute at different times, the execution sequence in these sub-steps or stage, which is also not necessarily, successively to be carried out,
But it can be executed in turn or alternately at least part of the sub-step or stage of other steps or other steps.
In one embodiment, as shown in figure 5, providing a kind of message assembling device, comprising: key message obtains module
502, template chooses module 504, data value searching module 506, data value conversion module 508 and message and assembles module 510;Its
In:
Key message obtains module 502, for obtaining the key message corresponding with business to be processed of input;
Template chooses module 504, for choosing message rule collection template corresponding with third party's partner systems;Message rule
Collection template changes with the interface of data source generation logic variation and third party's partner systems and is updated;
Data value searching module 506, for according to the interface configuration information configured in message rule collection template, from local terminal number
According to lookup native data value corresponding with key message in source;
Data value conversion module 508, for according to the data conversion information configured in message rule collection template, to primary number
It is converted according to value;
Message assembles module 510, for assembling information according to the message configured in message rule collection template, after conversion
Native data value is assembled into message corresponding with business to be processed.
Data value conversion module 508 is also used to be judged whether according to message rule collection template in one of the embodiments,
Native data value is converted;If so, determining the data format requirement of third party's partner systems according to data conversion information;
Native data value is converted to the data value for meeting the data format requirement of third party's partner systems.
In one of the embodiments, as shown in fig. 6, the device further include: interface message obtains module 512 and interface is matched
Set information updating module 514;Wherein:
Interface message obtains module 512, is used for when logic variation occurs for data source, after acquisition variation corresponding to data source
First interface information;
Interface configuration information update module 514, for according to connecing in first interface information update message rule collection template
Mouth configuration information;
Data value searching module 506 is also used to choose this according to interface configuration information updated in message rule collection template
End data source;Native data value corresponding with key message is searched from the Local Data source of selection.
In one of the embodiments, as shown in fig. 6, the device further include: judgment module 516 and determining module 518;Its
In:
Judgment module 516, for judging whether the message of assembling meets the requirement of test template by message testing tool;
Test template is the template corresponding with message rule collection template carried in testing tool;
Determining module 518, when meeting the requirement of test template for the message when assembling, it is determined that message meets third party
The message requirement of partner systems;When the message of assembling does not meet the requirement of test template, it is determined that message is unsatisfactory for third party
The message requirement of partner systems.
In one of the embodiments, as shown in fig. 6, the device further include: interface message detection module 520, message group
Fill data obtaining module 522 and modified module 524;Wherein:
Interface message detection module 520, for detecting the second interface information of third party's partner systems;
Message assembles data obtaining module 522, determines connecing for third party's partner systems according to second interface information for working as
When mouth changes, then corresponding first message information of third party's partner systems is obtained;
Modified module 524, for assembling information according to the message of the first message information modification message rule collection template.
In one of the embodiments, as shown in fig. 6, the device further include: system access detection module 526 and template wound
Model block 528: wherein:
System access detection module 526, for detecting whether there is new third party's partner systems to access this end system;
Message assembling data obtaining module 522, which is also used to work as, detects that new third party's partner systems access this end system
When, then obtain corresponding second message information of new third party's partner systems;
Template creation module 528, for creating report corresponding with new third party's partner systems according to the second message information
Literary rule set template.
In above-described embodiment, there are the interface configuration information in Local Data source, transition data value in message rule collection template
The message of data conversion information and assembling message assembles information, on the one hand, believes when getting key corresponding with business to be processed
When breath, after quickly can obtaining native data value according to message rule collection template, carry out the conversion of data value and will convert
Native data value be assembled into message corresponding with business to be processed, realize the quick assembling of message;On the other hand, work as local terminal
When the interface of data source generation logic variation and third party's partner systems changes, message rule collection template carries out more therewith
Newly, thus according to update message rule collection template assemblies message, so as to avoid because Local Data source cooperate with third party be
The interface of system changes and the assembling of audio message, improves the packaging efficiency of message.
About the specific restriction of message assembling device, the restriction above for message assemble method may refer to, herein
It repeats no more.Modules in above-mentioned message assembling device can be realized fully or partially through software, hardware and combinations thereof.
Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also deposit in a software form
It is stored in the memory in computer equipment, executes the corresponding operation of the above modules in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction
Composition can be as shown in Figure 7.The computer equipment include by system bus connect processor, memory, network interface and
Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment
Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data
Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The database of machine equipment is for storing the data such as native data value.The network interface of the computer equipment is used for and external terminal
It is communicated by network connection.To realize a kind of message assemble method when the computer program is executed by processor.
It will be understood by those skilled in the art that structure shown in Fig. 7, only part relevant to application scheme is tied
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment
It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with
Computer program, which performs the steps of when executing computer program obtains the corresponding with business to be processed of input
Key message;Choose message rule collection template corresponding with third party's partner systems;Message rule collection template is with Local Data source
The interface that logic variation and third party's partner systems occurs changes and is updated;According to being configured in message rule collection template
Interface configuration information, corresponding with key message native data value is searched from Local Data source;According to message rule collection mould
The data conversion information configured in plate converts native data value;According to the message group configured in message rule collection template
Information is filled, the native data value after conversion is assembled into message corresponding with business to be processed.
In one embodiment, it also performs the steps of when processor executes computer program according to message rule collection mould
Plate judges whether to convert native data value;If so, determining the number of third party's partner systems according to data conversion information
According to call format;Native data value is converted to the data value for meeting the data format requirement of third party's partner systems.
In one embodiment, it is also performed the steps of when processor executes computer program when logic occurs for data source
When variation, first interface information corresponding to data source after changing is obtained;According to first interface information update message rule collection mould
Interface configuration information in plate;According to the interface configuration information configured in message rule collection template, searched from Local Data source
Native data value corresponding with key message includes: to choose this according to interface configuration information updated in message rule collection template
End data source;Native data value corresponding with key message is searched from the Local Data source of selection.
In one embodiment, it also performs the steps of when processor executes computer program through message testing tool
Judge whether the message of assembling meets the requirement of test template;Test template be testing tool in carry with message rule collection mould
The corresponding template of plate;If so, determining that message meets the message requirement of third party's partner systems;If not, it is determined that message is discontented
The message requirement of sufficient third party's partner systems.
In one embodiment, processor execute computer program when also perform the steps of detection third party cooperate be
The second interface information of system;When the interface for determining third party's partner systems according to second interface information changes, then obtain
Corresponding first message information of third party's partner systems;According to the message assembling of the first message information modification message rule collection template
Information.
In one embodiment, it is also performed the steps of when processor executes computer program and detects whether new the
Tripartite's partner systems access this end system;If so, obtaining new corresponding second message information of third party's partner systems;According to
Second message information creates message rule collection template corresponding with new third party's partner systems.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program performs the steps of the key message corresponding with business to be processed for obtaining input when being executed by processor;Choose with
The corresponding message rule collection template of third party's partner systems;With Local Data source logic variation and the occur for message rule collection template
The interface of tripartite's partner systems changes and is updated;According to the interface configuration information configured in message rule collection template,
Native data value corresponding with key message is searched from Local Data source;Turned according to the data configured in message rule collection template
Information is changed, native data value is converted;Information is assembled according to the message configured in message rule collection template, after conversion
Native data value is assembled into message corresponding with business to be processed.
In one embodiment, it also performs the steps of when processor executes computer program according to message rule collection mould
Plate judges whether to convert native data value;If so, determining the number of third party's partner systems according to data conversion information
According to call format;Native data value is converted to the data value for meeting the data format requirement of third party's partner systems.
In one embodiment, it is also performed the steps of when processor executes computer program when logic occurs for data source
When variation, first interface information corresponding to data source after changing is obtained;According to first interface information update message rule collection mould
Interface configuration information in plate;According to the interface configuration information configured in message rule collection template, searched from Local Data source
Native data value corresponding with key message includes: to choose this according to interface configuration information updated in message rule collection template
End data source;Native data value corresponding with key message is searched from the Local Data source of selection.
In one embodiment, it also performs the steps of when processor executes computer program through message testing tool
Judge whether the message of assembling meets the requirement of test template;Test template be testing tool in carry with message rule collection mould
The corresponding template of plate;If so, determining that message meets the message requirement of third party's partner systems;If not, it is determined that message is discontented
The message requirement of sufficient third party's partner systems.
In one embodiment, processor execute computer program when also perform the steps of detection third party cooperate be
The second interface information of system;When the interface for determining third party's partner systems according to second interface information changes, then obtain
Corresponding first message information of third party's partner systems;According to the message assembling of the first message information modification message rule collection template
Information.
In one embodiment, it is also performed the steps of when processor executes computer program and detects whether new the
Tripartite's partner systems access this end system;If so, obtaining new corresponding second message information of third party's partner systems;According to
Second message information creates message rule collection template corresponding with new third party's partner systems.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (10)
1. a kind of message assemble method, which comprises
Obtain the key message corresponding with business to be processed of input;
Choose message rule collection template corresponding with third party's partner systems;
According to the interface configuration information configured in the message rule collection template, searched and the pass from the Local Data source
The corresponding native data value of key information;
According to the data conversion information configured in the message rule collection template, native data value is converted;
Information is assembled according to the message configured in the message rule collection template, the native data value after conversion is assembled into
Message corresponding with the business to be processed.
2. the method according to claim 1, wherein described according to the number configured in the message rule collection template
According to transitional information, carrying out conversion to native data value includes:
Judge whether to convert native data value according to the message rule collection template;
If so, determining the data format requirement of third party's partner systems according to the data conversion information;
The native data value is converted to the data value for meeting the data format requirement of third party's partner systems.
3. the method according to claim 1, wherein the method also includes:
When logic variation occurs for the data source, first interface information corresponding to data source after changing is obtained;
According to the interface configuration information in message rule collection template described in the first interface information update;
It is described according to the interface configuration information configured in the message rule collection template, searched from the Local Data source and institute
Stating the corresponding native data value of key message includes:
Local Data source is chosen according to interface configuration information updated in the message rule collection template;
Native data value corresponding with the key message is searched from the Local Data source of selection.
4. method according to any one of claims 1 to 3, which is characterized in that the method also includes:
Judge whether the message of assembling meets the requirement of test template by message testing tool;The test template is the survey
The template corresponding with the message rule collection template carried in trial work tool;
If so, determining that the message meets the message requirement of third party's partner systems;
If not, it is determined that the message is unsatisfactory for the message requirement of third party's partner systems.
5. method according to any one of claims 1 to 3, which is characterized in that the method also includes:
Detect the second interface information of third party's partner systems;
When the interface for determining third party's partner systems according to the second interface information changes, then described is obtained
Corresponding first message information of tripartite's partner systems;
Information is assembled according to the message that first message information modifies the message rule collection template.
6. method according to any one of claims 1 to 3, which is characterized in that the method also includes:
Detect whether that new third party's partner systems access this end system;
If so, obtaining corresponding second message information of new third party's partner systems;
According to second message information, message rule collection template corresponding with new third party's partner systems is created.
7. a kind of message assembling device, described device include:
Key message obtains module, for obtaining the key message corresponding with business to be processed of input;
Template chooses module, for choosing message rule collection template corresponding with third party's partner systems;The message rule collection
Template changes with the interface of data source generation logic variation and third party's partner systems and is updated;
Data value searching module, for according to the interface configuration information configured in the message rule collection template, from the local terminal
Native data value corresponding with the key message is searched in data source;
Data value conversion module, for according to the data conversion information configured in the message rule collection template, to native data
Value is converted;
Message assembles module, for assembling information according to the message configured in the message rule collection template, by the institute after conversion
It states native data value and is assembled into message corresponding with the business to be processed.
8. the apparatus according to claim 1, which is characterized in that the data value conversion module is also used to according to the message
Rule set template judges whether to convert native data value;If so, determining described according to the data conversion information
The data format requirement of tripartite's partner systems;The native data value is converted to the data format for meeting third party's partner systems
It is required that data value.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists
In the step of processor realizes any one of claims 1 to 6 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method described in any one of claims 1 to 6 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811204617.XA CN109361628B (en) | 2018-10-16 | 2018-10-16 | Message assembling method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811204617.XA CN109361628B (en) | 2018-10-16 | 2018-10-16 | Message assembling method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109361628A true CN109361628A (en) | 2019-02-19 |
CN109361628B CN109361628B (en) | 2022-04-12 |
Family
ID=65349268
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811204617.XA Active CN109361628B (en) | 2018-10-16 | 2018-10-16 | Message assembling method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109361628B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111368512A (en) * | 2020-03-04 | 2020-07-03 | 北京软通智慧城市科技有限公司 | Service data conversion method, device, equipment and storage medium |
CN112003769A (en) * | 2020-09-11 | 2020-11-27 | 支付宝(杭州)信息技术有限公司 | Message processing method, device and equipment |
WO2021189826A1 (en) * | 2020-09-02 | 2021-09-30 | 平安科技(深圳)有限公司 | Message generation method and apparatus, electronic device, and computer-readable storage medium |
CN113504896A (en) * | 2021-07-12 | 2021-10-15 | 云南腾云信息产业有限公司 | Service data processing method and device of application program and mobile terminal |
CN114338835A (en) * | 2021-12-31 | 2022-04-12 | 中企云链(北京)金融信息服务有限公司 | Data message dynamic conversion method and device, storage medium and electronic device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1864392A (en) * | 2003-10-14 | 2006-11-15 | 国际商业机器公司 | Method and apparatus for translating data packets from one network protocol to another |
CN1987925A (en) * | 2006-12-29 | 2007-06-27 | 中国建设银行股份有限公司 | Complex front platform of financial system and transfering method transaction data |
CN101267448A (en) * | 2008-05-09 | 2008-09-17 | 东北大学 | An intelligent protocol conversion device and method based on embedded QNX operating system |
CN101957974A (en) * | 2009-07-15 | 2011-01-26 | 中国工商银行股份有限公司 | Multi-payment and clearing system supporting remittance processing device and method |
CN105357301A (en) * | 2015-11-11 | 2016-02-24 | 中国建设银行股份有限公司 | Message format conversion method and apparatus |
CN106027534A (en) * | 2016-05-26 | 2016-10-12 | 浪潮(苏州)金融技术服务有限公司 | System for implementing financial message processing based on Netty |
CN106657149A (en) * | 2017-01-24 | 2017-05-10 | 恒生电子股份有限公司 | Communication protocol conversion method and device |
-
2018
- 2018-10-16 CN CN201811204617.XA patent/CN109361628B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1864392A (en) * | 2003-10-14 | 2006-11-15 | 国际商业机器公司 | Method and apparatus for translating data packets from one network protocol to another |
US20080037568A1 (en) * | 2003-10-14 | 2008-02-14 | Anderson Richard E | Method and Apparatus for Translating Data Packets From One Network Protocol to Another |
CN1987925A (en) * | 2006-12-29 | 2007-06-27 | 中国建设银行股份有限公司 | Complex front platform of financial system and transfering method transaction data |
CN101267448A (en) * | 2008-05-09 | 2008-09-17 | 东北大学 | An intelligent protocol conversion device and method based on embedded QNX operating system |
CN101957974A (en) * | 2009-07-15 | 2011-01-26 | 中国工商银行股份有限公司 | Multi-payment and clearing system supporting remittance processing device and method |
CN105357301A (en) * | 2015-11-11 | 2016-02-24 | 中国建设银行股份有限公司 | Message format conversion method and apparatus |
CN106027534A (en) * | 2016-05-26 | 2016-10-12 | 浪潮(苏州)金融技术服务有限公司 | System for implementing financial message processing based on Netty |
CN106657149A (en) * | 2017-01-24 | 2017-05-10 | 恒生电子股份有限公司 | Communication protocol conversion method and device |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111368512A (en) * | 2020-03-04 | 2020-07-03 | 北京软通智慧城市科技有限公司 | Service data conversion method, device, equipment and storage medium |
CN111368512B (en) * | 2020-03-04 | 2023-08-22 | 北京软通智慧科技有限公司 | Service data conversion method, device, equipment and storage medium |
WO2021189826A1 (en) * | 2020-09-02 | 2021-09-30 | 平安科技(深圳)有限公司 | Message generation method and apparatus, electronic device, and computer-readable storage medium |
CN112003769A (en) * | 2020-09-11 | 2020-11-27 | 支付宝(杭州)信息技术有限公司 | Message processing method, device and equipment |
CN113504896A (en) * | 2021-07-12 | 2021-10-15 | 云南腾云信息产业有限公司 | Service data processing method and device of application program and mobile terminal |
CN113504896B (en) * | 2021-07-12 | 2023-08-18 | 云南腾云信息产业有限公司 | Service data processing method and device of application program and mobile terminal |
CN114338835A (en) * | 2021-12-31 | 2022-04-12 | 中企云链(北京)金融信息服务有限公司 | Data message dynamic conversion method and device, storage medium and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN109361628B (en) | 2022-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109361628A (en) | Message assemble method, device, computer equipment and storage medium | |
CN110209652A (en) | Tables of data moving method, device, computer equipment and storage medium | |
CN109359939A (en) | Business datum method of calibration, device, computer equipment and storage medium | |
CN108874926A (en) | Mass data inquiry method, device, computer equipment and storage medium | |
CN109460527A (en) | Product data configuration method, device, computer equipment and storage medium | |
CN110069297A (en) | Abnormality eliminating method, device, computer equipment and storage medium based on Spring MVC | |
CN111027295A (en) | Data processing method, data processing device, computer equipment and storage medium | |
CN113032398B (en) | Service processing method, computer equipment and storage medium for multi-type service | |
CN109039751A (en) | Configure method, apparatus, computer equipment and the storage medium of routing | |
CN112035363A (en) | Automatic interface testing method and device | |
CN109816563A (en) | Electronic contract template circulation method, apparatus, computer equipment and storage medium | |
CN110489086A (en) | Process executes control method, device, computer equipment and storage medium | |
CN114168190A (en) | Interface document generation method and device, computer equipment and storage medium | |
CN110413507A (en) | System detection method, device, computer equipment and storage medium | |
CN113408254A (en) | Page form information filling method, device, equipment and readable medium | |
CN105446909A (en) | Caching management method and system | |
CN110209388A (en) | The generation method of applet file | |
CN110275703A (en) | Assignment method, device, computer equipment and the storage medium of key-value pair data | |
CN109785047A (en) | Order method for pushing, device, computer equipment and the storage medium of financial product | |
CN111522881B (en) | Service data processing method, device, server and storage medium | |
CN117787239A (en) | Contract generation method and device, storage medium and electronic equipment | |
CN112256978B (en) | Data processing method, device and medium based on data model | |
CN115033434A (en) | Kernel performance theoretical value calculation method and device and storage medium | |
CN110532186B (en) | Method, device, electronic equipment and storage medium for testing by using verification code | |
CN113590488B (en) | System test method and test platform for simulating financial data support |
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 |