Summary of the invention
In order to overcome the drawbacks described above under prior art, it is an object of the invention to provide a kind of message center, overcome
In existing technology, all kinds message can not synchronize, message transmission efficiency is low and between miscellaneous service message conductive obstruction many,
The problem of poor in timeliness, the present invention is by integrating and the subscriber data message in integrated miscellaneous service and service system, for user
The messenger service of integration is provided.
The technical scheme is that
A kind of enterprise's integration information processing method merging multi-communication mode, comprises the following steps:
Step 1, notifier (initiator) sends message by its client to initiator's service end, and initiator's service end is the most more
New information registration file, message center obtains the message registration file update information of initiator's service end;
Step 2, described message center sends prompting message to recipient's service end, and prompting message is sent extremely by recipient's service end
The client of notified party;
Step 3, notified party is sent to recipient's service end by its client and checks message request, described recipient's service end
Checking that message request is forwarded to described message center by described, described message center sends to initiator's service end and checks accordingly
Message request;
Step 4, initiator's service end is checked message request according to message center, is sent related news to message center, disappear
Breath center sends the message to recipient's service end.
Preferably, described service end includes wechat service end, voice service end, CRM(Customer Relationship
Management, customer relation management or CRM system) service end, OA(Office Automation, office from
Dynamicization or the office automation system) service end and short message service end, it is also possible to include that other are suitable to enterprise and/or enterprise personnel letter
The service end of breath exchange.
Preferably, the mode of the message registration file update information that described message center obtains initiator's service end is: send out
After playing side's service end renewal message registration file, open port snoop interface to receive the message detection from described message center
Request, the timing of described message center sends message detection request, detects whether each related service end has message registration file to update,
When there is message registration file on related service end and updating, it is thus achieved that corresponding message registration file update information.
Preferably, after described message center obtains the message registration file update information of initiator's service end, generate this and disappear
Unique identification code (id code, be called for short id) of breath also sends to this initiator's service end, and described initiator's service end will obtain
Identification code recorded in corresponding message encapsulation prewritten document, is packaged this message, and described message encapsulation prewritten document is used
The identification code obtained in this document before sending in message carries out message encapsulation.
The identification code method of message can be: a piece of news is divided into message header, message body and message ending three part carry out
Encapsulation;Described message header includes the identification code of described message, for message center to the classification of message and distribution;Described message body
Identification code including by this message of message id() and the key-value pair that forms of message content, for recording the particular content of message;Institute
Stating message ending and include the mode bit for recording message current state, mode bit and message id by message ending are to a plurality of same
The message of id is spliced.
Preferably, described message center includes:
Message registration unit, for registering the type of message of miscellaneous service and service system;
Message Agent unit, for transferring to the service end being correlated with by the message being derived from client;
Service monitoring unit, for carrying out real-time status monitoring to the client of registration;
Flow controlling unit, is used for adding up various types of message traffic, and according to message traffic, client is carried out management and control;
Encrypted transmission unit, for being encrypted the message of transmission;
Message statistics unit, intracardiac all kinds business or the message number of service in statistical message.
Preferably, described message center also includes:
Create message elements, for defining set form and the field of message content;
Query messages unit, for inquiring about the record of all kinds business or service message;
Process message elements, for processing corresponding business or the message of service by corresponding serviced component, in framework, be provided with system
The messaging interface of one.
Preferably, described message center also includes:
Wechat serviced component, for wechat service end communication/mutual;
Voice service assembly, for voice service end communication/mutual;
CRM service assembly, for CRM service end communication/mutual;
OA serviced component, for OA service end communication/mutual;
Short message service assembly, for short message service end communication/mutual,
Kind/the setting of serviced component should be according to the type of involved related news (or claiming business), different clothes various from outside
Business end adapts, and carries out information using the communication interface as message center Yu each service end and transmits and mutual.
Preferably, described flow controlling unit assesses the load of message traffic according to the historical traffic of a kind of message, arranges
Flow threshold, when the message traffic in message center exceedes the flow threshold of this message, described flow controlling unit sends alarm
And adjust accordingly, described adjustment includes: (1) carries out dilatation to the flow of message, improves upper threshold;(2) when message stream
When amount exceedes the upper threshold after raising, message center stops receiving the messenger service of this type.
Preferably, the service state of described service end is carried out by described service monitoring unit by sending heartbeat signal timing
Monitoring, it is judged that the state of service end is the most normal.
The invention have the benefit that
The present invention is unified by the user data in miscellaneous service or service system by arranging message center, message center present
To user, provide the user integration messenger service, it is achieved that the integration of message and integrated.Transmitted message can be added
Close, and the conveying flow of reasonable arrangement information, it is ensured that the safety of message transmission;Can by access log record queries
The current state of the message processed.Instant invention overcomes all kinds message under existing technology and can not synchronize transmission, message biography
Pass that message conductive obstruction between inefficiency and miscellaneous service is many, the defect of poor in timeliness.
Detailed description of the invention
See Fig. 1-3, the invention discloses a kind of enterprise's integration information processing method merging multi-communication mode, including
Following steps:
Step 1, notifier sends message by its client to initiator's service end, and initiator's service end the most more new information is noted
Volume file, message center obtains the message registration file update information of initiator's service end;
Step 2, described message center sends prompting message to recipient's service end, and prompting message is sent extremely by recipient's service end
The client of notified party;
Step 3, after notified party learns the prompting message of its client, according to needing, is serviced to recipient by its client
End sends checks message request, by described, described recipient's service end checks that message request is forwarded to message center, message center
Send to initiator's service end and check message request accordingly;
Step 4, initiator's service end is checked message request according to message center, is sent related news to message center, disappear
Breath center sends the message to recipient's service end.
Described service end includes wechat service end, voice service end, CRM service end, OA service end and short message service end, also
Other service ends such as QQ service end and Fetion service end can be docked as required.
The mode of the message registration file update information that described message center obtains initiator's service end is: initiator services
After end updates message registration file, open port snoop interface and ask to receive the message detection from described message center, institute
State message center timing and send message detection request, detect whether each related service end has message registration file to update, when relevant
When there is the renewal of message registration file in service end, it is thus achieved that corresponding message registration file update information.
After described message center obtains the message registration file update information of initiator's service end, generate the unique of this message
Identification code (id code, be called for short id) and send to this initiator's service end, the identification code note that described initiator's service end will obtain
Record encapsulates in prewritten document to corresponding message, is packaged this message, and described message encapsulation prewritten document is in message
The identification code obtained in this document before sending carries out message encapsulation.
Fig. 2 show the new information register flow path sketch of the present invention, and its register flow path is: client updates new message also
Being uploaded to service end, message center is by message detection request detection to the new information in service end and obtains related news and carries
Waking up, message center is that the new information unique identification code of generation carries out new information id registration, and service end obtains the mark of described new information
Know code, and send to described message center after the content of described message is carried out message encapsulation.
The method of described message encapsulation is: a piece of news is divided into message header, message body and message ending three part seal
Dress;Described message header includes the identification code (typically one character without symbol 32) of described message, in message
The heart is to the classification of message and distributes the messages to multiple notified party;Described message body includes by message id(typically one
The character of individual 32) and the key-value pair that forms of message content (typically 256 characters), for record message concrete in
Hold;Described message ending includes that the mode bit for recording message current state (typically terminate or stop) is (the most permissible
It is 32 characters), the message of a plurality of same id is spliced by mode bit and message id by message ending.
Described message center includes:
Message registration unit, for registering the type of message of miscellaneous service and service system.Preferably, registering unit uses distribution
Formula login mechanism, i.e. registering unit can on the different processors, by the active inquiry mode of message handling system, actively
Initiate detection request, when having service registry in register node, trigger event state, the registration service in service system is carried out
Update operation;
Message Agent unit, for receiving the message from client;
Service monitoring unit, for carrying out real-time status monitoring to the client of registration;
Flow controlling unit, is used for adding up various types of message traffic, and according to message traffic, client is carried out management and control, logical
Crossing the traffic statistics to message and arrange different threshold values, when flow exceedes threshold value, message system is given notice to manager, and
Process response time;
Encrypted transmission unit, for being encrypted the message of transmission, increases transmission security;
Message statistics unit, intracardiac all kinds business or the message number of service in statistical message.
Described message center also includes:
Create message elements, for defining set form and the field of message content.Its primary format is that a piece of news comprises and disappears
Breath head, message body and end-of-message character.Primary fields refers to, the type of main definitions message in message header, by unique mark
Know symbol labelling.Two fields, keyword and corresponding message body is mainly included in message body.End mark includes this message
Numbering and the flag bit that terminates of decision message.
Query messages unit, for inquiring about the record of all kinds business or service message.
Described message center each several part (each unit and each serviced component), can basis when mutual data are transmitted and be mutual
Need the data mode conversion carrying out being correlated with.
Following instance asks dummy message by OA service end, is illustrated the step of information query:
OA service end sends message informing employee A to be needed to ask for leave, and the time, notifier was manager B from JIUYUE 28 days to October 9.Disappear
Breath center records this message according to message id, and sends the notification to handle B, and manager B passes through log recording when the time of verification
Query messages record, log recording is docked by message interface and OA service end.If notifier has multiple, then message center
Message is decomposed, resolves into multiple messages and be sent to each notifier.
Process message elements, for processing corresponding business or the message of service by corresponding serviced component, set in framework
There is unified messaging interface.
Described message center also includes:
Wechat serviced component, for wechat service end communication/mutual;
Voice service assembly, for voice service end communication/mutual;
CRM service assembly, for CRM service end communication/mutual;
OA serviced component, for OA service end communication/mutual;
Short message service assembly, for short message service end communication/mutual.
Described flow controlling unit assesses the load of message traffic according to the historical traffic of a kind of message, arranges flow threshold
Value, when the message traffic in message center exceedes the flow threshold of this message, described flow controlling unit sends alarm and carries out
Corresponding adjustment, described adjustment includes: (1) carries out dilatation to the flow of message, improves upper threshold;(2) exceed when message traffic
During upper threshold after raising, message center stops receiving the messenger service of this type.
The service state of described service end is monitored by described service monitoring unit by sending heartbeat signal timing, sentences
The state of disconnected service end is the most normal.
Message is encrypted during transmission message by described encrypted transmission unit, and described encryption includes by message
Type carries out type of message encryption and the particular content of message is carried out message content encryption, and the mode of message encryption can use
Various suitable cipher modes, such as MD5.
Described client can check the log recording of related news, the stream of query messages by accessing described message center
Journey and current state.Described log recording is deposited in different servers and is provided with backup.For discontinuous message, it is provided that disappear
Breath integrated service, extracts the message id group of correspondence from daily record, forms a complete message.
As it is shown on figure 3, be the flow process of OA service end of the present invention transmission message, including:
1, message center detects and obtains the message of described OA service end;
2, described message center processes described OA message;
3, described message center sends OA prompting message to the client of notified party;
4, notified party receives the backward described message center of described OA prompting message and sends and check message request;
5, message request is checked described in the process of described message center;
6, described message center checks message request to described in the forwarding of described OA service end;
7, described OA service end sends a message to described message center;
8, described message center receives the message of described OA service end and processes;
9, described message center sends a message to the client of notified party.
The having unit structure sketch of message center of the present invention shown in Fig. 1, the message center of the present invention can receive from
Wechat service end, voice service end, CRM service end, OA service end and the message of short message service end also carry out message integration, for
Family provides the messenger service of integration.
Described message center is provided with message registration unit, for registering the type of message of miscellaneous service and service, and signs and issues
Unique type of message numbering;Described message registration unit uses distributed registry mechanism, can be logical on the different processors
Cross the active inquiry mode of message center, actively initiate detection request.When register node has service registry, trigger event shape
State, is updated operation to the registration service in system.
Described message center is provided with Message Agent unit, for receiving the message from client, it is provided that disappearing of integration
Breath service.
Described message center is provided with service monitoring unit, and the client of registration is carried out real-time status monitoring.In the message
By transmission heartbeat signal timing, the business in system or service are carried out condition monitoring in the heart.
Described message center is provided with flow controlling unit, for adding up the flow of message, by calculating message stream
Amount assessment load, arranges different threshold values, adds up the message of business or service, calculate message traffic and the difference of threshold value
Value, when flow exceedes threshold value, message center is given notice to manager, and processes response time.As a example by short message, when
When note bar number exceedes number of threshold values, message center is given notice to service system end, and manager obtains relevant information by notice
And flow is carried out dilatation, increase threshold value.When exceeding threshold value and meeting a specified time, message center i.e. stops the message of this business
Service.
Described message center is provided with encrypted transmission unit, and message center passes through cipher mode to biography in message transmitting procedure
Defeated message carries out secure package, encryption during by transmitting message, increases transmission security.Different business scene is carried out
Encrypting respectively, preferably MD5 mode is transmitted encryption to message.
Described message center is provided with message statistics unit, intracardiac all kinds service and the message count of business in statistical message
Amount, to generate log recording for inquiry.
Disclosed by the invention each preferably with optional technological means, unless otherwise indicated and one preferably or can selecting technology hands
Section is outside the restriction further of another technological means, all can form some different technical schemes in any combination.