CN106933932A - Data processing method, device and application server - Google Patents
Data processing method, device and application server Download PDFInfo
- Publication number
- CN106933932A CN106933932A CN201511033240.2A CN201511033240A CN106933932A CN 106933932 A CN106933932 A CN 106933932A CN 201511033240 A CN201511033240 A CN 201511033240A CN 106933932 A CN106933932 A CN 106933932A
- Authority
- CN
- China
- Prior art keywords
- event
- field
- business
- field event
- database
- 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2308—Concurrency control
- G06F16/2315—Optimistic concurrency control
- G06F16/2322—Optimistic concurrency control using timestamps
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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
- G06Q30/00—Commerce
- G06Q30/01—Customer relationship services
- G06Q30/015—Providing customer assistance, e.g. assisting a customer within a business location or via helpdesk
- G06Q30/016—After-sales
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Finance (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the present invention provides a kind of data processing method, device and application server, is related to communication technical field.The method includes:Data processing request is received, data processing request includes that ID and electronic certificate are identified, and action type;It is rollback event by the first field event flag based on electronic certificate mark and the first corresponding relation if action type is the first operation;Based on ID query event database, in acquisition field corresponding with ID event, the other field event in addition to the first field event;Other field event is processed again successively according to the sequencing of the time of origin of field event, the business state information after treatment corresponding with ID is obtained;According to the business state information after the corresponding treatment of ID, the corresponding business state information of ID in slip condition database is updated.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of data processing method, device and should
Use server.
Background technology
During communication operation, due to client the need for, the maloperation of operator etc., for
Often there is the situation for needing business to retract in service order through completing, such as, client have subscribed one
Individual short message exhales business, and corresponding service order has processed completion, and operator prompting client can make
Exhale business with short message, and client has found that short message exhales business actually not open-minded, operator due to
What client's order was helped in operational error is CRBT monthly package, therefore, operator needs to inquire
The service order handled, carries out corresponding business rollback, and again for client orders correct short message
Exhale business.
At present, for the rollback of finishing service order, corresponding entity state change is typically designed
Log sheet, the entity can that is to say, by customer relation management for order, ordering products etc.
(English:Customer Relationship Management, referred to as:CRM) system is recorded
Entity state is changed caused by which order, and the value of the entity state is divided before and after change
What is not, so as to the entity state " recovery " that will be deposited in crm system arrives corresponding business
Order fulfils the state before completion, with the rollback of finishing service order.
But, become with greater need for the corresponding entity state change log sheet of maintenance for entity state, with
And corresponding logical process is carried out to entity state change daily record, it is extra so as to increased developer
Burden, while the problems such as also producing the business of the condition of being unsatisfactory for retract.
The content of the invention
Embodiments of the invention provide a kind of data processing method, device and application server, are used for
The speed for improving data processing and the problem for simplifying data handling procedure.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
A kind of first aspect, there is provided data processing method, is applied in application server, the application
Server at least includes the first event bus and second event bus, wherein the first event bus are used to pass
The defeated field event to the operation of business first, second event bus is used to transmit to the operation of business second
Field event, methods described includes:
Data processing request is received, the data processing request includes ID and electronic certificate mark
Know, and action type, electronic certificate is used to represent preset state is met between user and business;
If the action type is the first operation, based on electronic certificate mark and the first correspondence
Relation, is rollback event by the first field event flag, and first field event is and the electronics
The corresponding field event of voucher identification, first corresponding relation comprising electronic certificate identify and with institute
State electronic certificate and identify corresponding field event;
Based on the ID query event database, field corresponding with the ID is obtained
In event, the other field event in addition to the event of first field;Wherein, the event data
Storehouse includes ID and field event corresponding with ID and the field event is corresponding
Time of origin;
The sequencing of the time of origin by the other field event according to field event is carried out successively
Again process, obtain the business state information after treatment corresponding with the ID;
According to the business state information after the corresponding treatment of the ID, to institute in slip condition database
The corresponding business state information of ID is stated to be updated, wherein, the slip condition database includes use
Family identifies and business state information corresponding with the ID.
With reference in a first aspect, in the first possible implementation of first aspect, the general is described
Other field event is processed again successively according to the sequencing of the time of origin of field event, is obtained
Business state information to after treatment corresponding with the ID, including:
The sequencing of the time of origin by the other field event according to field event sends successively
To the first event bus;
Obtain the other field event successively from first event bus, and intercepted with synchronization
Pattern is processed, and obtains the business state information after treatment corresponding with the ID.
With reference to the first possible implementation of first aspect, second in first aspect is possible
In implementation, the priority of the time of origin by the other field event according to field event is suitable
Sequence is processed again successively, obtains the letter of the service condition after treatment corresponding with the ID
Breath, also includes:
If having the second field event in the other field event to exist with first field event
Default incidence relation, then send error message, and the error message is used to indicate the first operation hair
Raw mistake.
May with reference to any one in second possible implementation of first aspect to first aspect
Implementation, it is described based on the user in the third possible implementation of first aspect
Mark query event database, in obtaining field corresponding with ID event, except described the
Other field event outside one field event, including:
From the event database, obtain in the preset duration before current time and marked with the user
Know corresponding field event;
If field corresponding with ID event in the preset duration before the current time
Comprising first field event, then obtained after first field event is deleted except the described first neck
Other field event outside the event of domain;
If field corresponding with ID event in the preset duration before the current time
Not comprising first field event, then error message is sent, the error message is described for indicating
First operation makes a mistake.
A kind of second aspect, there is provided data processing method, is applied in application server, the application
Server at least includes the first event bus and second event bus, wherein the first event bus are used to pass
The defeated field event to the operation of business first, second event bus is used to transmit to the operation of business second
Field event, methods described includes:
Data processing request is received, the data processing request includes ID and service identification, with
And action type;
If the action type be second operation, based on the data processing request generation electronics with
Card, the electronic certificate is used to represent and meet preset state between user and business;
Based on the mark of the electronic certificate, the first neck corresponding with the mark of the electronic certificate is generated
Domain event;
According to the first field event update event database, wherein, the event database is included
When ID field event corresponding with ID and the corresponding generation of the field event
Between;
First field event is processed, business corresponding with first field event is obtained
State;
User described in slip condition database is marked according to first field event corresponding service condition
Know corresponding business state information to be updated, wherein, the slip condition database comprising ID,
And business state information corresponding with the ID.
It is described to described in the first possible implementation of second aspect with reference to second aspect
First field event is processed, and obtains service condition corresponding with first field event, including:
According to default second corresponding relation, however, it is determined that the preset state is comprising being mutually related first
Preset state and the second preset state, and second preset state is first preset state
Necessary condition, then determine corresponding with second preset state according to default second corresponding relation
The second field event;Wherein, second corresponding relation comprising electronic certificate identify and with it is described
Electronic certificate identifies corresponding field event, and default shape corresponding with each field event respectively
State;
If it is determined that the event database does not exist the second field corresponding with second preset state
Event, then it is described first field event is processed after, triggering generation second field thing
Part.
If it is determined that there is the second field thing corresponding with second preset state in the event database
Part, then it is described that first field event is processed.
With reference to the first possible implementation of second aspect, second in second aspect is possible
In implementation, methods described also includes:
According to the second field event update event database;
Second field event is processed, business corresponding with second field event is obtained
State;
User described in slip condition database is marked according to second field event corresponding service condition
Know corresponding business state information to be updated.
With reference to the first possible implementation of second aspect or second aspect, the of second aspect
In three kinds of possible implementations, it is described according to the first field event update event database it
Before, also include:
First field event is sent to second event bus;
Accordingly, first field event is processed, is obtained and first field event pair
The service condition answered, including:
First event bus are obtained from the second event bus, and to first field
Event is processed, and obtains service condition corresponding with first field event.
A kind of third aspect, there is provided data processing equipment, is applied in application server, the application
Server at least includes the first event bus and second event bus, wherein the first event bus are used to pass
The defeated field event to the operation of business first, second event bus is used to transmit to the operation of business second
Field event, described device includes:
Receiving unit, for receiving data processing request, the data processing request includes ID
With electronic certificate mark, and action type, electronic certificate is for representing satisfaction between user and business
Preset state;
Indexing unit, if being the first operation for the action type, based on the electronic certificate mark
Know and the first corresponding relation, be rollback event, first field thing by the first field event flag
Part is field event corresponding with electronic certificate mark, first corresponding relation comprising electronics with
Card mark and field event corresponding with electronic certificate mark;
Acquiring unit, for based on the ID query event database, obtaining and the user
In identifying corresponding field event, the other field event in addition to the event of first field;Wherein,
The event database includes ID and field corresponding with ID event and described
The corresponding time of origin of field event;
Processing unit, for the priority of the time of origin by the other field event according to field event
Order is processed again successively, obtains the letter of the service condition after treatment corresponding with the ID
Breath;
Updating block, it is right for according to the business state information after the corresponding treatment of the ID
The corresponding business state information of ID described in slip condition database is updated, wherein, the shape
State database includes ID and business state information corresponding with the ID.
With reference to the third aspect, in the first possible implementation of the third aspect, the treatment is single
Unit specifically for:
The sequencing of the time of origin by the other field event according to field event sends successively
To the first event bus;
Obtain the other field event successively from first event bus, and intercepted with synchronization
Pattern is processed, and obtains the business state information after treatment corresponding with the ID.
With reference to the first possible implementation of the third aspect, second in the third aspect is possible
In implementation, the processing unit also particularly useful for:
If having the second field event in the other field event to exist with first field event
Default incidence relation, then send error message, and the error message is used to indicate the first operation hair
Raw mistake.
May with reference to any one in second possible implementation of the third aspect to the third aspect
Implementation, in the third possible implementation of the third aspect, the acquiring unit is specific
For:
From the event database, obtain in the preset duration before current time and marked with the user
Know corresponding field event;
If field corresponding with ID event in the preset duration before the current time
Comprising first field event, then obtained after first field event is deleted except the described first neck
Other field event outside the event of domain;
If field corresponding with ID event in the preset duration before the current time
Not comprising first field event, then error message is sent, the error message is described for indicating
First operation makes a mistake.
A kind of fourth aspect, there is provided data processing equipment, is applied in application server, the application
Server at least includes the first event bus and second event bus, wherein the first event bus are used to pass
The defeated field event to the operation of business first, second event bus is used to transmit to the operation of business second
Field event, described device includes:
Receiving unit, for receiving data processing request, the data processing request includes ID
And service identification, and action type;
First generation unit, if being the second operation for the action type, at the data
Reason request generation electronic certificate, the electronic certificate is used to represent the default shape of satisfaction between user and business
State;
Second generation unit, for the mark based on the electronic certificate, generates and the electronic certificate
The corresponding first field event of mark;
First updating block, for according to the first field event update event database, wherein,
The event database includes ID field event corresponding with ID and the field
The corresponding time of origin of event;
First processing units, for processing first field event, obtain and described first
The corresponding service condition of field event;
Second updating block, for according to the corresponding service condition of first field event to status number
It is updated according to the corresponding business state information of ID described in storehouse, wherein, the status data
Storehouse includes ID and business state information corresponding with the ID.
With reference to fourth aspect, in the first possible implementation of fourth aspect, at described first
Reason unit also particularly useful for:
According to default second corresponding relation, however, it is determined that the preset state is comprising being mutually related first
Preset state and the second preset state, and second preset state is first preset state
Necessary condition, then determine corresponding with second preset state according to default second corresponding relation
The second field event;Wherein, second corresponding relation comprising electronic certificate identify and with it is described
Electronic certificate identifies corresponding field event, and default shape corresponding with each field event respectively
State;
If it is determined that the event database does not exist the second field corresponding with second preset state
Event, then it is described first field event is processed after, triggering generation second field thing
Part.
If it is determined that there is the second field thing corresponding with second preset state in the event database
Part, then it is described that first field event is processed.
With reference to the first possible implementation of fourth aspect, second in fourth aspect is possible
In implementation, described device also includes:
3rd updating block, for according to the second field event update event database;
Second processing unit, for processing second field event, obtains and described second
The corresponding service condition of field event;
4th updating block, for according to the corresponding service condition of second field event to status number
It is updated according to the corresponding business state information of ID described in storehouse.
With reference to the first possible implementation of fourth aspect or fourth aspect, the of fourth aspect
In three kinds of possible implementations, described device also includes:
Transmitting element, for first field event to be sent into second event bus;
Accordingly, the first processing units also particularly useful for:
First event bus are obtained from the second event bus, and to first field
Event is processed, and obtains service condition corresponding with first field event.
5th aspect, there is provided a kind of application server, the application server at least includes the first event
Bus and second event bus, wherein the first event bus are used to transmit the field to the operation of business first
Event, second event bus is used to transmit the field event to the operation of business second, the application service
Device is possible including any one in the third aspect to the third possible implementation of the third aspect
Data processing equipment and fourth aspect described in implementation to fourth aspect the third is possible
The data processing equipment described in any one possible implementation in implementation.
Data processing method, device and application server that embodiments of the invention are provided, by receiving
Data processing request, data processing request includes that ID and electronic certificate are identified, and operation class
Type, if action type is the first operation, based on electronic certificate mark and the first corresponding relation, will
First field event flag is rollback event, afterwards, based on ID query event database, is obtained
In taking field corresponding with ID event, the other field event in addition to the first field event,
Other field event is processed again successively according to the sequencing of the time of origin of field event,
The business state information after treatment corresponding with ID is obtained, and according to the corresponding place of ID
Business state information after reason, is carried out to the corresponding business state information of ID in slip condition database
Update, it is positive to the field thing in addition to rollback event so as to by based on existing service logic
Part is reset, and then without the change log sheet of extra development status information, reduces developer
Burden, while also ensure that business retract condition.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will to embodiment or
The accompanying drawing to be used needed for description of the prior art is briefly described, it should be apparent that, below
Accompanying drawing in description is only some embodiments of the present invention, for those of ordinary skill in the art
For, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is a kind of system architecture diagram of communication system provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the first data processing method provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of second data processing method provided in an embodiment of the present invention;
Fig. 4 is the schematic flow sheet of the third data processing method provided in an embodiment of the present invention;
Fig. 5 is the schematic flow sheet of the 4th kind of data processing method provided in an embodiment of the present invention;
Fig. 6 is the schematic flow sheet of the 5th kind of data processing method provided in an embodiment of the present invention;
Fig. 7 is the structural representation of the first data processing equipment provided in an embodiment of the present invention;
Fig. 8 is the structural representation of second data processing equipment provided in an embodiment of the present invention;
Fig. 9 is the structural representation of the third data processing equipment provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, to the technical scheme in the embodiment of the present invention
It is clearly and completely described, it is clear that described embodiment is only a real part of the invention
Example is applied, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill
The every other embodiment that personnel are obtained under the premise of creative work is not made, belongs to this
Invent the scope of protection.
The system architecture of the communication system that embodiments of the invention are applied is as shown in figure 1, the communication system
System includes:Client 101, application server 102, storage server 103.
Wherein, client 101 can be mobile phone, notebook computer, computer etc., client 101
Can specify browse or specified application by way of etc. various ways and application server 102
Between communicated, and communication data can be transmitted by wired or wireless form.
Application server 102 includes memory 1021, processor 1022, system bus 1023, electricity
Source component 1024, input output interface 1025 and communication component 1026 etc.;Wherein, memory 1021
Can be used for data storage, software program and module, mainly include storing program area and storage data field,
Storing program area can be needed for storage program area, at least one function application program etc., data storage
What area can store application server 102 uses created data etc.;Processor 1022 is by operation
Or software program and/or module of the storage in memory 1021 are performed, and storage is called in storage
Data in device 1021, perform the various functions and processing data of application server 102, for example,
Processor 1022 is processed successively in the event for the treatment of according to the event sequence arranged on event bus,
Wherein event bus are used to place pending event in application server 102;System bus 1023
Including address bus, data/address bus, controlling bus, for transmitting data and instruction;Power supply module 1024
Power supply is provided for each component for application server 102;Input output interface 1025 for treatment
Interface is provided between device 1022 and peripheral interface module;Communication component 1026 is used to be application server
The communication of wired or wireless way is carried out between 102 and other equipment.
Storage server 103 can be attached with application server 102 by network or data wire,
Storage server 103 is mainly used in storing the neck produced in execution or operation of application server 102
Domain event, the field event can be stored with permanent, it is also possible to which duration is specified in storage.Additionally,
Storage server 103 can be the server, or application server 102 for being individually used for storage
Memory 1021 in a part, that is to say, by application server 102 in execution or operation
Produced field event is stored in memory 1021.
Fig. 2 is a kind of data processing method provided in an embodiment of the present invention, is applied to application server
In, the application server at least includes the first event bus and second event bus, wherein the first event
Bus is used to transmit the field event to the operation of business first, and second event bus is used to transmit to business
The field event of the second operation, referring to Fig. 2, the method includes following steps.
Step 201:Data processing request is received, the data processing request includes ID and electronics
Voucher identification, and action type, electronic certificate is used to represent to meet between user and business presets shape
State.
Wherein, electronic certificate is identified for the unique mark electronic certificate, and the electronic certificate is used for table
Show and preset state is met between user and business, such as, when the electronic certificate for user's order business is produced
During raw order, electronic certificate mark can be the order note identification of the order, and the order note identification can be with
It is order number, the order number is used to represent that user have subscribed the business.
In addition, the action type includes the first operation and the second operation, when the data processing request includes
When ID and electronic certificate are identified, the action type is the first operation, when the data processing request
Including ID and during service identification, the action type is the second operation.Such as, when user needs
When handling or cancel certain business, the first action type can refer to the business cancelled and handling, second
Operation can be the business for handling needs.
Step 202:If the action type is the first operation, based on electronic certificate mark and the
One corresponding relation, by the first field event flag be rollback event, the first field event be with electronics with
The corresponding field event of card mark, the first corresponding relation is identified and and electronic certificate comprising electronic certificate
Identify corresponding field event.
Wherein, the first corresponding relation refers to the corresponding relation between electronic certificate mark and field event,
Being identified by electronic certificate can determine field event corresponding with electronic certificate mark, and first pair
Should be related to individually to be stored, it is also possible to which storage is in event database.
Such as, user expects that the short message handled before cancelling exhales business, and the electronic certificate is designated to be handled
Short message exhales order note identification during business, then application server is based on handling order mark when short message exhales business
Know, obtained from the first corresponding relation with handle short message exhale order note identification during business it is corresponding first neck
Domain event, that is, order short message and exhale business, exhales the service marker to be so as to the first field event is ordered into short message
Rollback event.
It should be noted that the first corresponding relation, i.e. electronic certificate are identified and identified with electronic certificate
Corresponding field event, generation electronic certificate before being, and based on electronic certificate mark generation field
Stored during event, specifically generated electronic certificate and based on electronic certificate mark generation neck
The method of domain event, may be referred to the data processing method that action type is the second operation, and the present invention is real
Example is applied to will not be repeated here.
Step 203:Based on ID query event database, neck corresponding with ID is obtained
In the event of domain, the other field event in addition to the first field event;Wherein, event database is included
ID field event corresponding with ID and the corresponding time of origin of field event.
Wherein, event database is except comprising ID and field corresponding with ID thing
Outside part and the corresponding time of origin of field event, can also be comprising electronic certificate mark, event
Data or state-event and they are corresponding between ID and field event respectively
Relation etc., additionally, event corresponding time of origin in field can be as accurate as second, millisecond or microsecond
Deng the embodiment of the present invention is not construed as limiting to this.
In addition, the event database can be stored in the application server, it is also possible to be stored separately on and deposit
In storage server, and data message in event database can be permanent storage, or
Storage in preset duration, when the data message is permanent storage, can be based on ID
Any field event in being identified to event database with electronic certificate carries out the first operation, when the data
When information is the storage in preset duration, when can be based on ID and electronic certificate information to presetting
Any field event in length carries out the first operation, and the embodiment of the present invention is not construed as limiting to this.
Such as, ID is that 1234567, electronic certificate is designated order note identification and is ID1, the
One field event is event 1, and application server is based on ID 1234567 and inquires about such as table 1 below institute
The event database for showing, in acquisition field corresponding with ID 1234567 event, except event 1
Outside other field event be event 2 and event 3.
Table 1
It should be noted that the embodiment of the present invention is only entered by taking the event database shown in above-mentioned table 1 as an example
Row explanation, ID, order note identification, field event shown in above-mentioned table 1, the hair of field event
Corresponding relation between raw Time And Event state is not constituted to the embodiment of the present invention and limited.
Optionally, when the data message in event database is the storage in preset duration, using clothes
Business device obtains corresponding with ID in the preset duration before current time from event database
Field event;If field corresponding with ID event package contains in the preset duration before current time
First field event, then obtain other in addition to the first field event after the first field event is deleted
Field event;If field corresponding with ID event is not wrapped in the preset duration before current time
Containing the first field event, then error message is sent, error message is used to indicate the first operation to make a mistake.
That is to say, the field thing in the preset duration before current time is only stored in event database
Part, the field event in the preset duration before current time is then deleted, if the first field
Event be belonging to current time before preset duration in field event, then can store in event data
In storehouse, after the first field event in the event of field corresponding with ID is deleted,
Obtain the other field event in addition to the first field event;If the first field event is to be not belonging to currently
Field event in preset duration before moment, then be not stored in event database, so that should
Error message can be sent to user terminal with server, the error message is used to indicate the first operation hair
Raw mistake, that is to say, application server sends what the first field event can not be retracted to user terminal
Information.
Field event it should be noted that preset duration can be set in advance and different is corresponding pre-
If duration can be with identical, it is also possible to different, the embodiment of the present invention is not construed as limiting to this.
Such as, regulation orders short message and exhales the business can not then to be carried out more than three months during communication operation
Quit the subscription of, if the first field event exhales business to order short message, preset duration is three months, and three
Order short message comprising the first field event in event database in individual month and exhale business, user can apply into
Row retracts, and then deletes the first field event order short message more than three months event databases and exhales business, if
User's application is retracted, then application server sends the information that can not be retracted to user terminal.
Step 204:By other field event according to the time of origin of field event sequencing successively
Again processed, obtained the business state information after treatment corresponding with ID.
Because each field event has an event listener, by event listener by corresponding neck
Domain event is processed, therefore, by other field event according to the time of origin of field event priority
Order is when being processed again successively, can by other field event according to field event time of origin
Sequencing be sent to the first event bus successively, it is total from the first event by corresponding event listener
Other field event is obtained on line successively, and is processed with the synchronous pattern intercepted, obtained and user
Identify the business state information after corresponding treatment.
Wherein, to carry out treatment with the synchronous pattern intercepted refer to, field event sends and receives treatment
In identical thread, thread switching is not carried out, it is ensured that each field event is processed to be finished afterwards again
Process next field event.
It should be noted that application server is in system initialization, have for different field events
Corresponding event listener, the purpose of event listener calls difference aiming at different field events
Industry service, pending field event is captured in system operation, call corresponding field thing
The corresponding industry service of part, so as to carry out corresponding field event handling, specific field event handling
Correlation technique is may be referred to, the embodiment of the present invention is not explained herein.
Step 205:According to the business state information after the corresponding treatment of ID, to status data
The corresponding business state information of ID is updated in storehouse, wherein, slip condition database includes user
Mark and business state information corresponding with ID.
Because slip condition database is believed comprising ID and service condition corresponding with ID
Breath, and carry out the corresponding business state information of ID after the first operation and there occurs change, and in order to
The corresponding business state information of ID in slip condition database is recovered to the first field event not send out
State when raw, can be according to the business state information after the corresponding treatment of ID, to status number
It is updated according to the corresponding business state information of ID in storehouse, you can will be used in slip condition database
Family identifies corresponding business state information, replaces with the letter of the service condition after the corresponding treatment of ID
Breath.
It should be noted that slip condition database is used to store the business state information of user, and the state
Database includes ID and business state information corresponding with ID, and the business shape
State information can include service identification, electronic certificate mark, creation time of information etc., the present invention
Embodiment is not especially limited to this.
Optionally, referring to Fig. 3, after step 203, the method also includes:
Step 206:If having the second field event in other field event to exist with the first field event
Default incidence relation, then send error message, and the error message is used to indicate the first operation to make a mistake.
Wherein, default incidence relation refers to that the first field event and the second field event are interrelated, and
In the presence of second field event, the first field event also there must be.Such as, in communication operation process
Middle regulation set meal B exhales business comprising short message, if the second field event is order set meal B, the first field
Event exhales business to order short message, exhales business interrelated with short message is ordered due to ordering set meal B, because
This, in the presence of the second field event orders set meal B, the first field event orders short message and exhales business
There must be.
Specifically, in other field event, if with the presence of the second field event and the first field event
Default incidence relation, it is determined that the first field event can not be retracted, therefore, application server can be with
Error message is sent to user terminal, the error message is used to indicate the first operation to make a mistake, namely
It is that application server sends the information that the first field event can not be retracted to user terminal.
The data processing method that embodiments of the invention are provided, by receiving data processing request, data
Treatment request includes ID and electronic certificate mark, and action type, if action type is the
One operation, then, based on electronic certificate mark and the first corresponding relation, be by the first field event flag
Rollback event, afterwards, based on ID query event database, obtains corresponding with ID
In the event of field, the other field event in addition to the first field event, by other field event according to
The sequencing of the time of origin of field event is processed again successively, obtains corresponding with ID
Treatment after business state information, and according to after the corresponding treatment of ID service condition letter
Breath, is updated to the corresponding business state information of ID in slip condition database, so as to pass through base
In existing service logic, positive resets to the field event in addition to rollback event, and then
Without the change log sheet of extra development status information, the burden of developer is reduced, while also protecting
The condition of business rollback is demonstrate,proved.
Fig. 4 is a kind of data processing method provided in an embodiment of the present invention, is applied in application server,
The application server at least includes the first event bus and second event bus, wherein the first event bus
For transmitting the field event to the operation of business first, second event bus is used to transmit to business second
The field event of operation, the method includes following steps:
Step 301:Data processing request is received, data processing request includes ID and business mark
Know, and action type.
Wherein, the action type includes the first operation and the second operation, when the data processing request includes
When ID and electronic certificate are identified, the action type is the first operation, when the data processing request
Including ID and during service identification, the action type is the second operation.Such as, when user needs
When handling or cancel certain business, the first action type can refer to the business cancelled and handling, second
Operation can be the business for handling needs.
Step 302:If action type be second operation, based on data processing request generation electronics with
Card, electronic certificate is used to represent and meet preset state between user and business.
Wherein, refer to be included based on data processing request based on data processing request generation electronic certificate
ID and service identification generation electronic certificate.Such as, during communication operation, the data
Treatment request can be the request of user's order business, and application server can be based on ID and use
The service identification generation order ordered is expected at family, and the order is used to represent that user have subscribed the business, this
When the electronic certificate be the order of generation, electronic certificate mark can be the order note identification of the order,
The order note identification can be order number.
Step 303:Mark based on electronic certificate, generation corresponding with the mark of electronic certificate first
Field event.
Wherein, the mark of electronic certificate is electronic certificate mark, and application server is based on electronic certificate
Mark, generation with after the event of electronic certificate mark corresponding first field, can also by the electronics with
Card mark and electronic certificate mark corresponding first field event are stored in the first corresponding relation,
And first corresponding relation can be stored individually, it is also possible to which storage is in event data.
Such as, during communication operation, user expects that ordering short message exhales business, and electronics now
Voucher is order, then application server can be based on order note identification, generate corresponding with order note identification the
One field event, that is, order short message and exhale business, afterwards, can be by the order note identification and and order
Corresponding first field event is identified to store in the first corresponding relation.
Step 304:According to the first field event update event database, wherein, event database bag
Containing ID field event corresponding with ID and the corresponding time of origin of field event;
Wherein, event database is except comprising ID and field corresponding with ID thing
Outside part and the corresponding time of origin of field event, can also be comprising electronic certificate mark, event
Data or state-event and they are corresponding between ID and field event respectively
Relation etc., additionally, event corresponding time of origin in field can be as accurate as second, millisecond or microsecond
Deng the embodiment of the present invention is not construed as limiting to this.
In addition, the event database can be stored in the application server, it is also possible to be stored separately on and deposit
In storage server, and data message in event database can be permanent storage, or
Storage in preset duration, when the data message be preset duration in storage when, in event database
Only the field event in the preset duration before storage current time, default before current time
Field event in duration is then deleted.
Field event it should be noted that preset duration can be set in advance and different is corresponding pre-
If duration can be with identical, it is also possible to different, the embodiment of the present invention is not construed as limiting to this.
Step 305:First field event is processed, industry corresponding with the first field event is obtained
Business state;
Specifically, before processing the first field event, the first field event can be sent
Second event bus is given, because each field event has an event listener, by corresponding thing
Part listener obtains the first field event from second event bus, and the first field event is carried out
Treatment, obtains service condition corresponding with the first field event.
It should be noted that application server is in system initialization, have for different field events
Corresponding event listener, the purpose of event listener calls difference aiming at different field events
Industry service, pending field event is captured in system operation, call corresponding field thing
The corresponding industry service of part, so as to carry out corresponding field event handling, specific field event handling
Correlation technique is may be referred to, the embodiment of the present invention is not explained herein.
Step 306:According to the corresponding service condition of the first field event, to user in slip condition database
Corresponding business state information is identified to be updated, wherein, slip condition database comprising ID, with
And business state information corresponding with ID.
After the corresponding service condition of the first field event that obtains, can be according to the first field event pair
The service condition answered, is updated to the corresponding business state information of ID in slip condition database,
The corresponding service condition of the first field event in slip condition database can be added in ID pair
In the business state information answered.
It should be noted that slip condition database is used to store the business state information of user, and the state
Database includes ID and business state information corresponding with ID, and the business shape
State information can include service identification, electronic certificate mark, creation time of information etc., the present invention
Embodiment is not especially limited to this.
Optionally, referring to Fig. 5, after step 305, the method also includes:
Step 307:According to default second corresponding relation, however, it is determined that preset state is comprising interrelated
The first preset state and the second preset state, and the second preset state be the first preset state must
Condition is wanted, then the second field corresponding with the second preset state is determined according to default second corresponding relation
Event;Second corresponding relation identifies field event corresponding with electronic certificate mark comprising electronic certificate,
And preset state corresponding with each field event respectively.
Wherein, the electronic certificate for being included in the second corresponding relation identifies corresponding field event can be included
First field event and the second field event, such as, and when it is set meal B that user expects the business ordered,
Electronic certificate mark can be order note identification, because set meal B exhales business comprising short message, therefore, with
The corresponding field event of order note identification includes that two, i.e. the first field event are that user orders set meal B,
Second field event is that user's order short message exhales business.
In addition, the preset state corresponding with each field event respectively included in the second corresponding relation is
Refer to, the second corresponding relation includes each corresponding status information of field event, such as, the first field
The preset state of event is the first preset state, and the first preset state is the state of the first field event
Information.
Specifically, the first field event corresponds to the first preset state, the second field event correspondence second is pre-
If state, and the first preset state is interrelated with the second preset state, then application server is based on electricity
Sub- voucher identification and default second corresponding relation, determine whether the second corresponding relation includes pre- with first
The second preset state if state is mutually related, however, it is determined that there is the second preset state, then according to default
The second corresponding relation determine corresponding with the second preset state the second field event.
Step 308:If it is determined that event database does not exist the second field corresponding with the second preset state
Event, then after processing the first field event, triggering the second field event of generation.
When it is determined that, it is necessary to query event database whether there is and the second default shape during the second field event
The corresponding second field event of state, however, it is determined that event database is in the absence of corresponding with the second preset state
Second field event, because the first preset state is interrelated with the second preset state, and second default
State is the necessary condition of the first preset state, accordingly, it would be desirable to be processed to the first field event
Afterwards, the second field event of triggering generation.
Such as, during communication operation, set meal B exhales the business, the first field event to be comprising short message
User orders set meal B, and the second field event is that user's order short message exhales business, however, it is determined that event data
In storehouse do not exist the second field event, that is to say, user is not subscribed to short message and exhales business, then need for
User orders set meal B, and the second field event that short message exhales business is ordered in triggering generation.
Step 309:If it is determined that there is the second field thing corresponding with the second preset state in event database
Part, then processed the first field event.
When query event database whether there is the second field event corresponding with the second preset state,
If it is determined that event database has the second field event corresponding with the second preset state, that is to say, the
Two field events have been present, then without triggering the second field event of generation, directly to the first field thing
Part is processed.
Optionally, referring to Fig. 6, after step 308, the method also includes:
Step 310:According to the second field event update event database, the second field event is carried out
Treatment, obtains service condition corresponding with the second field event.
Specifically, before processing the second field event, the first field event can be sent
Second event bus is given, and before the second field event is obtained by corresponding event listener, by the
Two field event updates in event database, afterwards, by corresponding event listener from second event
The second field event is obtained in bus, and the second field event is processed, obtained and the second neck
The corresponding service condition of domain event.
Step 311:According to the corresponding service condition of the second field event, to user in slip condition database
Corresponding business state information is identified to be updated.
After the corresponding service condition of the second field event that obtains, can be according to the second field event pair
The service condition answered, is updated to the corresponding business state information of ID in slip condition database,
The corresponding service condition of the second field event in slip condition database can be added in ID pair
In the business state information answered.
Data processing method provided in an embodiment of the present invention, by receiving data processing request, at data
Reason request includes ID and service identification, and action type, if action type is the second operation,
Then based on data processing request generate electronic certificate, the mark based on electronic certificate, generation with electronics with
The corresponding first field event of mark of card, afterwards, according to the first field event update event database,
And the first field event is processed, service condition corresponding with the first field event is obtained, according to
The corresponding service condition of first field event, to the corresponding service condition of ID in slip condition database
Information is updated, and does not exist the second field corresponding with the second preset state in event database
During event, then after processing the first field event, triggering the second field event of generation, so that can
Fast and effectively to carry out the data processing of related service, while ensureing that Business Processing meets certain bar
Part.
Fig. 7 is a kind of structural representation of data processing equipment provided in an embodiment of the present invention, is applied to
In application server, the application server at least includes the first event bus and second event bus, its
In the first event bus be used to transmit the field event to the operation of business first, second event bus is used for
The field event to the operation of business second is transmitted, referring to Fig. 7, the device includes:
Receiving unit 401, for receiving data processing request, the data processing request includes user
Mark and electronic certificate mark, and action type, electronic certificate are used to represent between user and business
Meet preset state;
Indexing unit 402, if for the action type be first operation, based on the electronics with
Card mark and the first corresponding relation, are rollback event by the first field event flag, first neck
Domain event is field event corresponding with electronic certificate mark, and first corresponding relation includes electricity
Sub- voucher identification and field event corresponding with electronic certificate mark;
Acquiring unit 403, for based on the ID query event database, obtain with it is described
In the corresponding field event of ID, the other field event in addition to the event of first field;
Wherein, the event database comprising ID field event corresponding with ID and
The corresponding time of origin of the field event;
Processing unit 404, for by the other field event according to the time of origin of field event
Sequencing is processed again successively, obtains the business shape after treatment corresponding with the ID
State information;
Updating block 405, for according to the business state information after the corresponding treatment of the ID,
The corresponding business state information of ID described in slip condition database is updated, wherein, it is described
Slip condition database includes ID and business state information corresponding with the ID.
Optionally, processing unit 404 specifically for:
The sequencing of the time of origin by the other field event according to field event sends successively
To the first event bus;
Obtain the other field event successively from first event bus, and intercepted with synchronization
Pattern is processed, and obtains the business state information after treatment corresponding with the ID.
Optionally, processing unit 404 also particularly useful for:
If having the second field event in the other field event to exist with first field event
Default incidence relation, then send error message, and the error message is used to indicate the first operation hair
Raw mistake.
Optionally, acquiring unit 403 specifically for:
From the event database, obtain in the preset duration before current time and marked with the user
Know corresponding field event;
If field corresponding with ID event in the preset duration before the current time
Comprising first field event, then obtained after first field event is deleted except the described first neck
Other field event outside the event of domain;
If field corresponding with ID event in the preset duration before the current time
Not comprising first field event, then error message is sent, the error message is described for indicating
First operation makes a mistake.
The data processing equipment that embodiments of the invention are provided, by receiving data processing request, data
Treatment request includes ID and electronic certificate mark, and action type, if action type is the
One operation, then, based on electronic certificate mark and the first corresponding relation, be by the first field event flag
Rollback event, afterwards, based on ID query event database, obtains corresponding with ID
In the event of field, the other field event in addition to the first field event, by other field event according to
The sequencing of the time of origin of field event is processed again successively, obtains corresponding with ID
Treatment after business state information, and according to after the corresponding treatment of ID service condition letter
Breath, is updated to the corresponding business state information of ID in slip condition database, so as to pass through base
In existing service logic, positive resets to the field event in addition to rollback event, and then
Without the change log sheet of extra development status information, the burden of developer is reduced, while also protecting
The condition of business rollback is demonstrate,proved.
Fig. 8 is a kind of structural representation of data processing equipment provided in an embodiment of the present invention, is applied to
In application server, application server at least includes the first event bus and second event bus, wherein
First event bus are used to transmit the field event to the operation of business first, and second event bus is used to pass
The defeated field event to the operation of business second, referring to Fig. 8, the device includes:
Receiving unit 501, for receiving data processing request, the data processing request includes user
Mark and service identification, and action type;
First generation unit 502, if being the second operation for the action type, based on the number
According to treatment request generation electronic certificate, the electronic certificate is used to represent that satisfaction to be pre- between user and business
If state;
Second generation unit 503, for the mark based on the electronic certificate, generates and the electronics
The corresponding first field event of mark of voucher;
First updating block 504, for according to the first field event update event database, its
In, the event database includes ID field event corresponding with ID, Yi Jisuo
State the corresponding time of origin of field event;
First processing units 505, for processing first field event, obtain with it is described
The corresponding service condition of first field event;
Second updating block 506, for according to the corresponding service condition of first field event to shape
The corresponding business state information of ID described in state database is updated, wherein, the state
Database includes ID and business state information corresponding with the ID.
Optionally, first processing units 505 also particularly useful for:
According to default second corresponding relation, however, it is determined that the preset state is comprising being mutually related first
Preset state and the second preset state, and second preset state is first preset state
Necessary condition, then determine corresponding with second preset state according to default second corresponding relation
The second field event;Wherein, second corresponding relation comprising electronic certificate identify and with it is described
Electronic certificate identifies corresponding field event, and default shape corresponding with each field event respectively
State;
If it is determined that the event database does not exist the second field corresponding with second preset state
Event, then it is described first field event is processed after, triggering generation second field thing
Part.
If it is determined that there is the second field thing corresponding with second preset state in the event database
Part, then it is described that first field event is processed.
Optionally, referring to Fig. 9, the device also includes:
3rd updating block 507, for according to the second field event update event database;
Second processing unit 508, for processing second field event, obtain with it is described
The corresponding service condition of second field event;
4th updating block 509, for according to the corresponding service condition of second field event to shape
The corresponding business state information of ID described in state database is updated.
Optionally, the device also includes:
Transmitting element, for first field event to be sent into second event bus;
Accordingly, first processing units 505 also particularly useful for:
First event bus are obtained from the second event bus, and to first field
Event is processed, and obtains service condition corresponding with first field event.
Data processing method provided in an embodiment of the present invention, by receiving data processing request, at data
Reason request includes ID and service identification, and action type, if action type is the second operation,
Then based on data processing request generate electronic certificate, the mark based on electronic certificate, generation with electronics with
The corresponding first field event of mark of card, afterwards, according to the first field event update event database,
And the first field event is processed, service condition corresponding with the first field event is obtained, according to
The corresponding service condition of first field event, to the corresponding service condition of ID in slip condition database
Information is updated, and does not exist the second field corresponding with the second preset state in event database
During event, then after processing the first field event, triggering the second field event of generation, so that can
Fast and effectively to carry out the data processing of related service, while ensureing that Business Processing meets certain bar
Part.
The embodiment of the present invention provides a kind of application server, and the application server at least includes the first thing
Part bus and second event bus, wherein the first event bus are used to transmit the neck to the operation of business first
Domain event, second event bus is used to transmit the field event to the operation of business second, the application clothes
Business device includes the data processing equipment shown in Fig. 7, or at one of any shown data of Fig. 8, Fig. 9
Reason device.
The application server that embodiments of the invention are provided, by receiving data processing request, at data
Reason request includes ID and electronic certificate mark, and action type, if action type is first
Operation, then based on electronic certificate mark and the first corresponding relation, the first field event flag is back
Event is moved back, afterwards, based on ID query event database, neck corresponding with ID is obtained
In the event of domain, the other field event in addition to the first field event, by other field event according to neck
The sequencing of the time of origin of domain event is processed again successively, obtains corresponding with ID
Business state information after treatment, and according to the business state information after the corresponding treatment of ID,
The corresponding business state information of ID in slip condition database is updated, so as to by based on existing
Some service logics, positive resets to the field event in addition to rollback event, and then need not
The change log sheet of extra development status information, reduces the burden of developer, while also ensureing
The condition that business retracts.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than
It is limited;Although being described in detail to the present invention with reference to the foregoing embodiments, this area
Those of ordinary skill should be understood:It still can be to the technical scheme described in foregoing embodiments
Modify, or equivalent is carried out to which part technical characteristic;And these are changed or replace
Change, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.
Claims (17)
1. a kind of data processing method, it is characterised in that be applied in application server, the application
Server at least includes the first event bus and second event bus, wherein the first event bus are used to transmit
To the field event of the operation of business first, second event bus is used to transmit the field to the operation of business second
Event, methods described includes:
Data processing request is received, the data processing request includes that ID and electronic certificate are identified,
And action type, electronic certificate is used to represent and meet preset state between user and business;
If the action type is the first operation, closed based on electronic certificate mark and the first correspondence
System, is rollback event by the first field event flag, and first field event is and the electronic certificate
Identify corresponding field event, first corresponding relation identified comprising electronic certificate and with the electronics
The corresponding field event of voucher identification;
Based on the ID query event database, field corresponding with ID thing is obtained
In part, the other field event in addition to the event of first field;Wherein, the event database bag
Containing ID field event corresponding with ID and during the corresponding generation of the field event
Between;
The sequencing of the time of origin by the other field event according to field event carries out weight successively
New treatment, obtains the business state information after treatment corresponding with the ID;
According to the business state information after the corresponding treatment of the ID, described in slip condition database
The corresponding business state information of ID is updated, wherein, the slip condition database is marked comprising user
Know and business state information corresponding with the ID.
2. method according to claim 1, it is characterised in that described by the other field thing
Part is processed again successively according to the sequencing of the time of origin of field event, is obtained and the user
The business state information after corresponding treatment is identified, including:
The sequencing of the time of origin by the other field event according to field event is sent to successively
First event bus;
Obtain the other field event successively from first event bus, and with the synchronous mould intercepted
Formula is processed, and obtains the business state information after treatment corresponding with the ID.
3. method according to claim 2, it is characterised in that described by the other field thing
Part is processed again successively according to the sequencing of the time of origin of field event, is obtained and the user
The business state information after corresponding treatment is identified, is also included:
If having the second field event in the other field event to exist in advance with first field event
If incidence relation, then error message is sent, the error message is used to indicate first operation that mistake occurs
By mistake.
4. the method according to claim any one of 1-3, it is characterised in that described based on described
ID query event database, in acquisition field corresponding with ID event, except described
Other field event outside first field event, including:
From the event database, with the ID in the preset duration before acquisition current time
Corresponding field event;
If field corresponding with ID event package in the preset duration before the current time
Containing first field event, then obtained after first field event is deleted and remove first field thing
Other field event outside part;
If field corresponding with ID event is not in the preset duration before the current time
Comprising first field event, then error message is sent, the error message is used to indicate described first
Operation makes a mistake.
5. a kind of data processing method, it is characterised in that be applied in application server, the application
Server at least includes the first event bus and second event bus, wherein the first event bus are used to transmit
To the field event of the operation of business first, second event bus is used to transmit the field to the operation of business second
Event, methods described includes:
Data processing request is received, the data processing request includes ID and service identification, and
Action type;
If the action type is the second operation, electronic certificate is generated based on the data processing request,
The electronic certificate is used to represent and meet preset state between user and business;
Based on the mark of the electronic certificate, the first field corresponding with the mark of the electronic certificate is generated
Event;
According to the first field event update event database, wherein, the event database includes use
Family identifies field corresponding with ID event and the corresponding time of origin of the field event;
First field event is processed, business shape corresponding with first field event is obtained
State;
According to the corresponding service condition of first field event to ID described in slip condition database
Corresponding business state information is updated, wherein, the slip condition database comprising ID and
Business state information corresponding with the ID.
6. method according to claim 5, it is characterised in that described to first field thing
Part is processed, and obtains service condition corresponding with first field event, including:
According to default second corresponding relation, however, it is determined that the preset state is first pre- comprising being mutually related
If state and the second preset state, and second preset state is necessity of first preset state
Condition, then determine and second preset state corresponding second according to default second corresponding relation
Field event;Wherein, second corresponding relation comprising electronic certificate identify and with the electronic certificate
Identify corresponding field event, and preset state corresponding with each field event respectively;
If it is determined that the event database does not exist the second field thing corresponding with second preset state
Part, then it is described first field event is processed after, triggering generation second field event;
If it is determined that there is the second field event corresponding with second preset state in the event database,
It is then described that first field event is processed.
7. method according to claim 6, it is characterised in that methods described also includes:
According to the second field event update event database;
Second field event is processed, business shape corresponding with second field event is obtained
State;
According to the corresponding service condition of second field event to ID described in slip condition database
Corresponding business state information is updated.
8. the method according to claim 5 or 6, it is characterised in that described according to described first
Before the event update event database of field, also include:
First field event is sent to second event bus;
Accordingly, first field event is processed, is obtained corresponding with first field event
Service condition, including:
First event bus are obtained from the second event bus, and to first field thing
Part is processed, and obtains service condition corresponding with first field event.
9. a kind of data processing equipment, it is characterised in that be applied in application server, the application
Server at least includes the first event bus and second event bus, wherein the first event bus are used to transmit
To the field event of the operation of business first, second event bus is used to transmit the field to the operation of business second
Event, described device includes:
Receiving unit, for receiving data processing request, the data processing request include ID and
Electronic certificate is identified, and action type, and electronic certificate is used to represent to meet between user and business to be preset
State;
Indexing unit, if being the first operation for the action type, based on electronic certificate mark
And first corresponding relation, it is rollback event by the first field event flag, first field event is
Field event corresponding with electronic certificate mark, first corresponding relation is identified comprising electronic certificate
And field event corresponding with electronic certificate mark;
Acquiring unit, for based on the ID query event database, obtaining and being marked with the user
In knowing corresponding field event, the other field event in addition to the event of first field;Wherein, institute
State event database and include ID field event corresponding with ID and the field thing
The corresponding time of origin of part;
Processing unit, the priority for the time of origin by the other field event according to field event is suitable
Sequence is processed again successively, obtains the business state information after treatment corresponding with the ID;
Updating block, for according to the business state information after the corresponding treatment of the ID, to shape
The corresponding business state information of ID described in state database is updated, wherein, the status number
ID and business state information corresponding with the ID are included according to storehouse.
10. device according to claim 9, it is characterised in that the processing unit specifically for:
The sequencing of the time of origin by the other field event according to field event is sent to successively
First event bus;
Obtain the other field event successively from first event bus, and with the synchronous mould intercepted
Formula is processed, and obtains the business state information after treatment corresponding with the ID.
11. devices according to claim 10, it is characterised in that the processing unit is also specific
For:
If having the second field event in the other field event to exist in advance with first field event
If incidence relation, then error message is sent, the error message is used to indicate first operation that mistake occurs
By mistake.
12. device according to claim any one of 9-11, it is characterised in that the acquisition list
Unit specifically for:
From the event database, with the ID in the preset duration before acquisition current time
Corresponding field event;
If field corresponding with ID event package in the preset duration before the current time
Containing first field event, then obtained after first field event is deleted and remove first field thing
Other field event outside part;
If field corresponding with ID event is not in the preset duration before the current time
Comprising first field event, then error message is sent, the error message is used to indicate described first
Operation makes a mistake.
13. a kind of data processing equipments, it is characterised in that be applied in application server, the application
Server at least includes the first event bus and second event bus, wherein the first event bus are used to transmit
To the field event of the operation of business first, second event bus is used to transmit the field to the operation of business second
Event, described device includes:
Receiving unit, for receiving data processing request, the data processing request include ID and
Service identification, and action type;
First generation unit, if being the second operation for the action type, based on the data processing
Request generation electronic certificate, the electronic certificate is used to represent and meet preset state between user and business;
Second generation unit, for the mark based on the electronic certificate, generates and the electronic certificate
Identify corresponding first field event;
First updating block, for according to the first field event update event database, wherein, institute
State event database and include ID field event corresponding with ID and the field thing
The corresponding time of origin of part;
First processing units, for processing first field event, obtain and the described first neck
The corresponding service condition of domain event;
Second updating block, for according to the corresponding service condition of first field event to status data
The corresponding business state information of ID described in storehouse is updated, wherein, the slip condition database bag
Containing ID and business state information corresponding with the ID.
14. devices according to claim 13, it is characterised in that the first processing units are also
Specifically for:
According to default second corresponding relation, however, it is determined that the preset state is first pre- comprising being mutually related
If state and the second preset state, and second preset state is necessity of first preset state
Condition, then determine and second preset state corresponding second according to default second corresponding relation
Field event;Wherein, second corresponding relation comprising electronic certificate identify and with the electronic certificate
Identify corresponding field event, and preset state corresponding with each field event respectively;
If it is determined that the event database does not exist the second field thing corresponding with second preset state
Part, then it is described first field event is processed after, triggering generation second field event;
If it is determined that there is the second field event corresponding with second preset state in the event database,
It is then described that first field event is processed.
15. devices according to claim 14, it is characterised in that described device also includes:
3rd updating block, for according to the second field event update event database;
Second processing unit, for processing second field event, obtains and the described second neck
The corresponding service condition of domain event;
4th updating block, for according to the corresponding service condition of second field event to status data
The corresponding business state information of ID described in storehouse is updated.
16. device according to claim 13 or 14, it is characterised in that described device also includes:
Transmitting element, for first field event to be sent into second event bus;
Accordingly, the first processing units also particularly useful for:
First event bus are obtained from the second event bus, and to first field thing
Part is processed, and obtains service condition corresponding with first field event.
17. a kind of application servers, it is characterised in that the application server at least includes the first event
Bus and second event bus, wherein the first event bus are used to transmit the field thing to the operation of business first
Part, second event bus is used to transmit the field event to the operation of business second, the application server bag
The data processing equipment described in claim any one of 9-12 is included, or described in claim any one of 13-16
Data processing equipment.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201511033240.2A CN106933932B (en) | 2015-12-31 | 2015-12-31 | Data processing method, device and application server |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201511033240.2A CN106933932B (en) | 2015-12-31 | 2015-12-31 | Data processing method, device and application server |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106933932A true CN106933932A (en) | 2017-07-07 |
| CN106933932B CN106933932B (en) | 2020-11-06 |
Family
ID=59444692
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201511033240.2A Active CN106933932B (en) | 2015-12-31 | 2015-12-31 | Data processing method, device and application server |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106933932B (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110196895A (en) * | 2019-04-19 | 2019-09-03 | 平安科技(深圳)有限公司 | User data information self-service query method, apparatus, computer equipment and storage medium |
| CN111652781A (en) * | 2020-06-01 | 2020-09-11 | 阿里巴巴集团控股有限公司 | Service processing method, device, equipment and storage medium based on community codes |
| CN112435004A (en) * | 2020-11-20 | 2021-03-02 | 金蝶软件(中国)有限公司 | Method and device for realizing service flow processing |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101039259A (en) * | 2006-03-17 | 2007-09-19 | 华为技术有限公司 | Method for controlling service of communication equipment and system thereof |
| CN103034699A (en) * | 2011-12-06 | 2013-04-10 | 微软公司 | Notification of providing document repository event for external system |
| US8571791B2 (en) * | 2009-07-29 | 2013-10-29 | Searete Llc | Remote processing of selected vehicle operating parameters |
| CN103747072A (en) * | 2013-12-30 | 2014-04-23 | 乐视网信息技术(北京)股份有限公司 | Data reading and writing method and application server |
| CN104169914A (en) * | 2013-12-11 | 2014-11-26 | 华为技术有限公司 | Data storage method, data processing method, device and mobile terminal |
| CN104636437A (en) * | 2014-12-31 | 2015-05-20 | 华为技术有限公司 | Event notification method and device and monitor processing method |
-
2015
- 2015-12-31 CN CN201511033240.2A patent/CN106933932B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101039259A (en) * | 2006-03-17 | 2007-09-19 | 华为技术有限公司 | Method for controlling service of communication equipment and system thereof |
| US8571791B2 (en) * | 2009-07-29 | 2013-10-29 | Searete Llc | Remote processing of selected vehicle operating parameters |
| CN103034699A (en) * | 2011-12-06 | 2013-04-10 | 微软公司 | Notification of providing document repository event for external system |
| CN104169914A (en) * | 2013-12-11 | 2014-11-26 | 华为技术有限公司 | Data storage method, data processing method, device and mobile terminal |
| CN103747072A (en) * | 2013-12-30 | 2014-04-23 | 乐视网信息技术(北京)股份有限公司 | Data reading and writing method and application server |
| CN104636437A (en) * | 2014-12-31 | 2015-05-20 | 华为技术有限公司 | Event notification method and device and monitor processing method |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110196895A (en) * | 2019-04-19 | 2019-09-03 | 平安科技(深圳)有限公司 | User data information self-service query method, apparatus, computer equipment and storage medium |
| CN110196895B (en) * | 2019-04-19 | 2022-05-17 | 平安科技(深圳)有限公司 | User data information self-service query method and device, computer equipment and storage medium |
| CN111652781A (en) * | 2020-06-01 | 2020-09-11 | 阿里巴巴集团控股有限公司 | Service processing method, device, equipment and storage medium based on community codes |
| CN112435004A (en) * | 2020-11-20 | 2021-03-02 | 金蝶软件(中国)有限公司 | Method and device for realizing service flow processing |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106933932B (en) | 2020-11-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106874087A (en) | A kind of block chain intelligence contract timed task dispatching method | |
| CN107220142A (en) | Perform the method and device of data recovery operation | |
| CN107872528A (en) | Information push method and device | |
| CN107992537B (en) | Service attribute transmission method, device, computer equipment and storage medium | |
| CN105989076A (en) | Data statistical method and device | |
| CN114244961B (en) | Robot intelligent outbound calling method, device, computer equipment and storage medium | |
| CN107066258B (en) | A method and system for updating a page logo image | |
| CN105939324A (en) | Message forwarding method and device | |
| CN106933932A (en) | Data processing method, device and application server | |
| CN103701653B (en) | The processing method of a kind of interface hot plug configuration data and network configuration server | |
| CN109462507A (en) | Configure update method, device, system and electronic equipment | |
| CN110580556A (en) | Data processing method and system, processor | |
| CN106777265A (en) | A kind of processing method and processing device of business datum | |
| CN103077174B (en) | A kind of concurrent resource regeneration method and equipment | |
| CN107463390A (en) | A kind of method for upgrading software and upgrade server | |
| CN107086982A (en) | A kind of personnel management methods and device that public network intercommunication is carried out using talk back equipment | |
| CN113076186A (en) | Task processing method and device, electronic equipment and storage medium | |
| CN108848501B (en) | Number management method, device and server | |
| CN111027093A (en) | Access right control method and device, electronic equipment and storage medium | |
| CN111143426A (en) | Multi-system user information association method and device | |
| CN108694040B (en) | Call processing method and device and communication system | |
| CN109087097A (en) | A kind of method and apparatus updating the same mark of chain code | |
| CN109788506A (en) | The method and apparatus for realizing the backfill of LTE measurement report user identifier | |
| US20180349505A1 (en) | Information processing system, information processing method, and information processing program | |
| CN107729579A (en) | Database separate design method and device |
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 | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20200214 Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Applicant after: HUAWEI TECHNOLOGIES Co.,Ltd. Address before: 210012 HUAWEI Nanjing base, 101 software Avenue, Yuhuatai District, Jiangsu, Nanjing Applicant before: Huawei Technologies Co.,Ltd. |
|
| TA01 | Transfer of patent application right | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |