CN110278230A - Data processing method, client, server and storage medium - Google Patents
Data processing method, client, server and storage medium Download PDFInfo
- Publication number
- CN110278230A CN110278230A CN201810216903.1A CN201810216903A CN110278230A CN 110278230 A CN110278230 A CN 110278230A CN 201810216903 A CN201810216903 A CN 201810216903A CN 110278230 A CN110278230 A CN 110278230A
- Authority
- CN
- China
- Prior art keywords
- data
- client
- rule
- context data
- trigger event
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/52—Network services specially adapted for the location of the user terminal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/021—Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/029—Location-based management or tracking services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/38—Services specially adapted for particular environments, situations or purposes for collecting sensor information
Abstract
This specification embodiment discloses a kind of data processing method, client, server and storage medium, which comprises obtains context data, the context data is for characterizing environment locating for the client;Analyze the trigger event that the context data meets;Wherein, the trigger event is for activating the rule of correspondence;In the case where the rule is activated, data type involved in the execution condition of the rule is analyzed;According to the data type, the data value of the context data is matched with the corresponding preset data value in the execution condition;In the case where successful match, corresponding in the rule execute instruction is executed.The technical solution of this disclosure, can be according to the context data of acquisition, and with corresponding rule match, the business that promoted is launched and effect is launched in activity.
Description
Technical field
This specification is related to Internet technical field, in particular to a kind of data processing method, client, server and deposits
Storage media.
Background technique
People are always in scene one by one, which has usually contained some context datas, specifically, for example,
Which Beacon equipment, equipment state, environmental information local time current user position, user behavior data, nearby has etc..
Under normal conditions, these data can be acquired acquisition by sensor, or be generated according to user's operation, and
And these initial data can be showed user by client.For example, user client shows interface to user, include on interface
Weather condition, with tell user in the past few days weather how, current environment humidity is as how.
Summary of the invention
The purpose of this specification embodiment is to provide a kind of data processing method, client, server and storage medium,
Context data can be analyzed, to make corresponding response, configuration dynamic issues ability.
To achieve the above object, this specification embodiment provides a kind of data processing method, is applied to client, described
Method includes: acquisition context data, and the context data is for characterizing environment locating for the client;Analyze the scene number
According to the trigger event of satisfaction;Wherein, the trigger event is for activating the rule of correspondence;In the case where the rule is activated,
Analyze data type involved in the execution condition of the rule;According to the data type, by the data of the context data
Value is matched with the corresponding preset data value in the execution condition;In the case where successful match, corresponding hold is executed
Row instruction.
To achieve the above object, this specification embodiment also provides a kind of client, comprising: receiving module is for obtaining
Context data, the context data is for characterizing environment locating for the client;First analysis module is for analyzing the feelings
The trigger event that scape data meet;Wherein, the trigger event is for activating the rule of correspondence;Second analysis module is used for described
In the case that rule is activated, data type involved in the execution condition of the rule is analyzed;Processing module is used for according to institute
Data type is stated, the data value of the context data is matched with the corresponding preset data value in the execution condition;
Execution module is used in the case where successful match, executes corresponding execute instruction.
To achieve the above object, this specification embodiment also provides a kind of electronic equipment, comprising: memory and processing
Device;Computer instruction is stored in the memory;The processor is performed the steps of for executing the computer instruction
Context data is obtained, the context data is for characterizing environment locating for client;Analyze the triggering that the context data meets
Event;Wherein, the trigger event is for activating the rule of correspondence;In the case where the rule is activated, the rule is analyzed
Execution condition involved in data type;According to the data type, by the data value of the context data and the execution
Corresponding preset data value in condition is matched;In the case where successful match, corresponding execute instruction is executed.
To achieve the above object, this specification embodiment also provides a kind of computer storage medium, is stored with program
Instruction is performed realization in described program instruction: obtaining context data, the context data is for characterizing locating for client
Environment;Analyze the trigger event that the context data meets;Wherein, the trigger event is for activating the rule of correspondence;Described
In the case that rule is activated, data type involved in the execution condition of the rule is analyzed;It, will according to the data type
The data value of the context data is matched with the corresponding preset data value in the execution condition;In the feelings of successful match
Under condition, corresponding execute instruction is executed.
To achieve the above object, this specification embodiment also provides a kind of data processing method, is applied to server, institute
The method of stating includes: to generate at least one rule, and the rule includes the execution item for activating regular trigger event, the rule
It part and corresponding executes instruction;Wherein, the trigger event is for activating the rule of correspondence;In the rule for receiving client transmission
Then in the case where list request, the rule is fed back;So that the context data that the client analyzes client acquisition expires
The trigger event of foot;In the case where the rule is activated, analyze whether the context data meets holding for the rule
Row condition;In the case where meeting the execution condition, corresponding execute instruction is executed;Wherein, the context data is used for table
Levy environment locating for the client.
To achieve the above object, this specification embodiment also provides a kind of data processing method, is applied to server, institute
The method of stating includes: the context data for receiving client and sending;Analyze the trigger event that the context data meets;Wherein, described
Trigger event is for activating the rule of correspondence;In the case where the rule is activated, analyzes and related in the execution condition of the rule
And data type;It is according to the data type, the data value of the context data is corresponding in the execution condition
Preset data value is matched;In the case where successful match, corresponding execute instruction is sent to client, so that the visitor
Family end executes the instruction.
To achieve the above object, this specification embodiment also provides a kind of server, comprising: receiving module is for receiving
The context data that client is sent;First analysis module is used to analyze the trigger event that the context data meets;Wherein, described
Trigger event is for activating the rule of correspondence;Second analysis module is used in the case where the rule is activated, and analyzes the rule
Data type involved in execution condition then;Processing module is used for according to the data type, by the number of the context data
It is matched according to value with the corresponding preset data value in the execution condition;Execution module is used for the successful match the case where
Under, corresponding execute instruction is sent to client, so that the client executing instruction.
To achieve the above object, this specification embodiment also provides a kind of electronic equipment, comprising: memory and processing
Device;Computer instruction is stored in the memory;The processor is performed the steps of for executing the computer instruction
Receive the context data that client is sent;Analyze the trigger event that the context data meets;Wherein, the trigger event is used for
Activate the rule of correspondence;In the case where the rule is activated, data type involved in the execution condition of the rule is analyzed;
According to the data type, the data value of the context data is carried out with the corresponding preset data value in the execution condition
Matching;In the case where successful match, corresponding execute instruction is sent to client so that the client executing this refer to
It enables.
To achieve the above object, this specification embodiment also provides a kind of computer storage medium, is stored with program
Instruction is performed realization in described program instruction: receiving the context data that client is sent;The context data is analyzed to meet
Trigger event;Wherein, the trigger event is for activating the rule of correspondence;In the case where the rule is activated, institute is analyzed
State data type involved in the execution condition of rule;According to the data type, by the data value of the context data and institute
The corresponding preset data value stated in execution condition is matched;In the case where successful match, hair is executed instruction by corresponding
Client is given, so that the client executing instruction.
Therefore the available context data of this specification, the context data is for characterizing locating for the client
Environment;The trigger event met by analyzing the context data;Wherein, the trigger event is for activating the rule of correspondence;
In the case where the rule is activated, data type involved in the execution condition of the rule is analyzed;According to the data
Type matches the data value of the context data with the corresponding preset data value in the execution condition;It is matching
In successful situation, corresponding execute instruction is executed.Above-mentioned way, can context data based on the received, analyzed, with
With obtain it is corresponding execute instruction, configuration dynamically issue ability, more intelligently, improve the experience of user.
Detailed description of the invention
It, below will be to embodiment party in order to illustrate more clearly of this specification embodiment or technical solution in the prior art
Formula or attached drawing needed to be used in the description of the prior art are briefly described, it should be apparent that, the accompanying drawings in the following description is only
It is only some embodiments recorded in this specification, for those of ordinary skill in the art, is not paying creative labor
Under the premise of dynamic property, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is that a rule issues schematic diagram in this specification embodiment;
Fig. 2 is a client flow diagram figure in this specification embodiment;
Fig. 3 is a data processed result schematic diagram in this specification embodiment;
Fig. 4 is another data processed result schematic diagram in this specification embodiment;
Fig. 5 is a data processing flow schematic diagram in this specification embodiment;
Fig. 6 is context data type schematic diagram in this specification embodiment;
Fig. 7 is a client modules schematic diagram in this specification embodiment;
Fig. 8 is an electronic equipment schematic diagram in this specification embodiment;
Fig. 9 is another flow chart of data processing schematic diagram in this specification embodiment;
Figure 10 is another flow chart of data processing schematic diagram in this specification embodiment;
Figure 11 is a server module schematic diagram in this specification embodiment.
Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in this specification, below in conjunction with this explanation
The technical solution in this specification embodiment is clearly and completely described in attached drawing in book embodiment, it is clear that institute
The embodiment of description is only a part of embodiment of this specification, rather than whole embodiments.Based on this specification
In embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts
The range of this specification protection all should belong in mode.
This specification embodiment provides a kind of system of data processing.The data processing system may include client
End, server.The data processing system includes the execution of rule issued with rule.The rule can refer to as user visitor
When family end is in specific scene, if meeting some or certain conditions, program just does a pre-set function automatically.
In the present embodiment, referring to Fig. 1, illustrate rule issue process.Administrative staff can be in server end
Configuration rule, and it is possible to by regulation engine to these regular real-time perfoming modifications.Server can carry out all rules
Arbitration, merging etc..Client can be by sending list of rules request, when being changed with the rule in list of rules, more
The new rule.The server is sent to client when receiving the request, by series of rules, and each rule is to application
In the trigger event for activating the rule.The client saves the rule, to update the rule in the client.
Wherein, server returns to currently valid rule when receiving list of rules request, effective judgment basis include the time,
Geographical location etc..Client can also verify it, prevent the service down distributing when receiving the rule of server feedback
The rule of mistake.
Please refer to Fig. 2.Illustrate the process of client executing rule.The server feedback is received in user client
Rule after, the trigger of the client enters the working condition of monitoring, and the data of monitoring are put into the data of client
Center, collector are acquired the data of data center, and verify whether collected data are effective, for example, the data
Whether the duration of entry time to current time is more than preset duration.In the case where the trigger is triggered, corresponding rule
Then it is activated.The condition processor according to the execution condition of the rule and the data obtained from collector, by the two into
Row matching, in successful match, the actuator of the client executes corresponding execute instruction.
In the present embodiment, client can be desktop computer, tablet computer, laptop, smart phone, number
Assistant, intelligent wearable device etc..Wherein, intelligent wearable device may include Intelligent bracelet, smartwatch, intelligent glasses,
Intelligent helmet etc..Certainly, client is not limited to the above-mentioned electronic equipment with certain entity, can also be run on it is above-mentioned
Software in electronic equipment.
In the present embodiment, client can carry out data interaction with server, to handle the data.Specifically,
The object for executing the processing data can be client, is also possible to server, or both and completes jointly.
In the present embodiment, server can be one or more independently operated servers, be also possible to distribution
Server, or the server cluster being made of multiple servers.Server may include have network communication unit, processor and
Memory etc..Distributed memory may include multiple processors and multiple network communication units and multiple memories etc..It is more
Memory can be multiple independent physical storages, or distributed memory system.
In the present embodiment, server can be the electronic equipment with operation and network interaction function;Or
It runs in the electronic equipment, provides the software of service logic for data processing and network interaction.
Please refer to Fig. 3.In a concrete scene example, electric business is wanted when user enters plum rains area, can be to him
Prompt to the plum rains relevant electric appliance in area or food etc..It is corresponding, a rule is stored in server side.Rule characterization
Content be, user occur plum rains area open shopping application when, client can show interface to user and plum rains
The related electric appliance in area and plum rain season are suitble to the information such as the food eaten.
In this Sample Scenario, user opens the network connection of client, and the client sends from trend server and advises
Then list request, server issue newest list of rules, wherein containing above-mentioned one and the related rule in plum rains area.
The rule is also accompanied with the longitude and latitude range in plum rains area.
In this Sample Scenario, client is after receiving server and issuing newest list of rules, the triggering of client
Device enters listening state.User client is by GPS positioning system per the location information for obtaining the client after a period of time.
In this Sample Scenario, which goes to the plum rains area of the middle and lower reach of Yangtze River from the north.The trigger of client will
The location information of the user client is compared with the longitude and latitude range in the plum rains area in the rule.As user client
The location information obtained by GPS positioning system is held, when falling into the longitude and latitude range in plum rains area, the rule is activated.
In this Sample Scenario, the user is after entering plum rains area, it is desirable to buy something.The user clicks institute
State the shopping application in client.Client gets the operation data of the user, with the execution condition in the rule of storage into
Row matching, successful match meet the execution condition of the rule.The client executing device executes corresponding execute instruction.
It in this Sample Scenario, is executed instruction according to described, the user end to server is sent about plum rain season
Commercial product recommending request.After receiving the request, Xiang Suoshu client sends the quotient such as dehumidifier described in plum rain season to the server
Product information and some plum rain seasons are suitble to the information for the food eaten, so that the client is in client end interface to user's exhibition
Show.User can buy the commodity by clicking specified object.
Please refer to Fig. 4.In another concrete scene example, the businessman of some commercial circle wants to enter commercial circle in frequent customer
When in radiation radius, the movable invitation letter held can be sent to them.It is corresponding, one is stored in server side
Rule.The content of rule characterization is, when user enters in the radiation radius of commercial circle, to judge whether the user came within half a year
The commercial circle sends movable invitation letter to the user to cross.
In this Sample Scenario, client is after receiving server and issuing newest list of rules, the triggering of client
Device enters listening state.User client is by GPS positioning system per the location information for obtaining the client after a period of time.
In this Sample Scenario, which goes to the commercial circle to do shopping.The trigger of client is by the user client
Location information be compared with the corresponding position range of radiation radius of commercial circle in the rule.When user client passes through
The location information that GPS positioning system obtains, when falling into the radiation radius of commercial circle, the rule is activated.
In this Sample Scenario, the user is after entering the commercial circle radiation radius.User client is analyzed the client and is deposited
The historical data of storage, such as the location information in half a year, shopping information in half a year, the location information etc. in half a year when payment is determined
Whether the user came the commercial circle within half a year.
In this Sample Scenario, user client is according to the photo stored in the client, the shooting position of the photo
Confidence ceases in the commercial circle radiation radius, and shooting time is within half a year, and analysis obtains the user and carried out the quotient within half a year
Circle, meets the execution condition of the rule.The user end to server sends the request of acquisition activity invitation letter, the clothes
Device be engaged in after receiving the request, to the user client transmission activity invitation letter, is accompanied with the commercial circle in the activity invitation letter
Action message.
In this Sample Scenario, after user client receives the movable invitation letter of server, on client end interface to
User shows the advertising campaign of the advertising campaign in entire market, the market A, also shows that the commercial circle digital map navigation application message, some
Just in electronic articles information of advertising campaign etc., user can navigate to each movable activity by digital map navigation for the commercial circle
Place improves the experience sense that user uses the client.
In another concrete scene example, the businessman of some commercial circle wants in the radiation radius that frequent customer enters commercial circle
When, the movable invitation letter held can be sent to them.It is corresponding, a rule is stored in server side.Rule
The content of characterization is, when user enters in the radiation radius of commercial circle, judges whether the user came the commercial circle within half a year,
In the case where crossing, movable invitation letter is sent to the user.
In this Sample Scenario, client is after receiving server and issuing the trigger event of newest rule, client
Trigger enter listening state.User client is by GPS positioning system per the position for obtaining the client after a period of time
Information.
In this Sample Scenario, which goes to the commercial circle to do shopping.The trigger of client is by the user client
Location information be compared with the corresponding position range of radiation radius of commercial circle in the rule.When user client passes through
The location information that GPS positioning system obtains, when falling into the radiation radius of commercial circle, the user end to server sends prompt letter
Breath, prompts the user to come into the radiation radius of the commercial circle.
In this Sample Scenario, the user is after entering the commercial circle radiation radius.User service analyzes server storage
Historical data, such as the location information in half a year, shopping information in half a year, the location information etc. in half a year when payment, determining should
Whether user came the commercial circle within half a year.
In this Sample Scenario, a shopping information of the client server according to the user of storage, the purchase of the shopping information
The commodity that commodity are the commercial circles are bought, and shopping-time is within half a year, analysis obtains the user and came the commercial circle within half a year, full
The foot execution condition of the rule.Server execute it is corresponding executes instruction, to the user client transmission activity invitation letter,
The action message of the commercial circle is accompanied in the activity invitation letter.
In this Sample Scenario, after user client receives the movable invitation letter of server, on client end interface to
User shows the advertising campaign of the advertising campaign in entire market, the market A, also shows that the commercial circle digital map navigation application message, some
Just in electronic articles information of advertising campaign etc., user can navigate to each movable activity by digital map navigation for the commercial circle
Place improves the experience sense that user uses the client.
In another concrete scene example, the businessman of some commercial circle wants in the radiation radius that frequent customer enters commercial circle
When, the movable invitation letter held can be sent to them.It is corresponding, a rule is stored in server side.Rule
The content of characterization is, when user enters in the radiation radius of commercial circle, judges whether the user came the commercial circle within half a year,
In the case where crossing, movable invitation letter is sent to the user.
In this Sample Scenario, client is after receiving server and issuing the trigger event of newest rule, client
Trigger enter listening state.User client is by GPS positioning system per the position for obtaining the client after a period of time
Information, and it is sent to server.
In this Sample Scenario, which goes to the commercial circle to do shopping.Server believes the position of the user client
It ceases and is compared with the corresponding position range of radiation radius of the commercial circle in the rule.When user client passes through GPS positioning
The location information that system obtains, when falling into the radiation radius of commercial circle, the rule is activated.
In this Sample Scenario, the user is after entering the commercial circle radiation radius.User service analyzes server storage
Historical data, such as the location information in half a year, shopping information in half a year, the location information etc. in half a year when payment, determining should
Whether user came the commercial circle within half a year.
In this Sample Scenario, a shopping information of the client server according to the user of storage, the purchase of the shopping information
The commodity that commodity are the commercial circles are bought, and shopping-time is within half a year, analysis obtains the user and came the commercial circle within half a year, full
The foot execution condition of the rule.Server is attached in the activity invitation letter to the user client transmission activity invitation letter
Action message with the commercial circle.
In this Sample Scenario, after user client receives the movable invitation letter of server, on client end interface to
User shows the advertising campaign of the advertising campaign in entire market, the market A, also shows that the commercial circle digital map navigation application message, some
Just in electronic articles information of advertising campaign etc., user can navigate to each movable activity by digital map navigation for the commercial circle
Place improves the experience sense that user uses the client.
Please refer to Fig. 5.This specification embodiment provides a kind of data processing method, is applied to client, the method
It may comprise steps of.
Step S10: context data is obtained, the context data is for characterizing environment locating for the client.
In the present embodiment, the context data is for characterizing environment locating for the client.Specifically, please referring to
Fig. 6, the context data may include the received data of client's end sensor, FTP client FTP event data, client traffic
Data, third-party application data, service end data, client general purpose event data that event generates etc..Wherein, the client
Sensor may include camera, Hall sensor, temperature sensor, the sensor for verifying fingerprint, for monitoring air pressure
Sensor, GPS, magnetic field sensor, acceleration transducer, gravity sensor, range sensor, light sensor etc., it is right
The micro- client sensing data of data that the sensor obtains.For example, the user's heart rate obtained by camera, and
A kind of received data of client's end sensor.The system event of FTP client FTP event data characterization may include:
Offline mode, system start completion are opened or closed, shooting key is pressed, receives short message, date variation, time change such as date change
Change and time minute variation, equipment region variation, memory space inadequate, system setting change, installation/unloading is applied, electricity
Pond electric quantity change/battery status change, WIFI open/close and connection status variation, bluetooth open/close and even
Connect state change etc..The third-party application data can be for example, user client downloads game application, listen song software
Using etc. data.The information of a song such as from the push of one music software of client.The service end data can be with
The received data from server side such as portrait, business datum, manual intervention including user.The client general purpose event
The event of data characterization can be customer terminal webpage switching, click jump, the residence time of customer terminal webpage, front and back switching etc.
Event.It does not do and specifically repeats here.
In the present embodiment, the context data can be obtained in several ways.Specifically, for example, it may be logical
The acquisition of client's end sensor is crossed, to obtain the context data;It is also possible to third-party application and is pushed to the client, obtains
Take the context data;Generated context data when being also possible to be run according to the client, client should by reading
Context data is to obtain;It can certainly be that the user end to server sends request, according to the received service of request
Device sends the context data, to obtain in a manner of described context data etc..
Step S12: the trigger event that the context data meets is analyzed;Wherein, the trigger event is for activating correspondence
Rule.
In the present embodiment, the trigger event can refer to for activating the rule, and the rule is made to start to give birth to
The event of effect is corresponding with the execution condition of the rule and corresponding executes instruction.Specifically, for example, a rule is will be to
User's transmission activity of the commercial circle was gone to invite in the radiation radius of commercial circle, in half a year.Enter the commercial circle radiation radius in user
It is exactly the trigger event when interior.At this point, the execution condition of the rule refers to that the user went to the commercial circle within half a year.For example,
According to user in the place that client is consumed and time, judge whether the user went to the commercial circle within half a year.Only judging
When the user went to the commercial circle within half a year, corresponding operation is just executed, is invited to user's transmission activity.
In the present embodiment, the rule can refer to when user client is in specific scene, if met
Some or certain conditions, program just do a pre-set function automatically.The execution condition is then and pre-set function
It can corresponding some or certain conditions.When user client is in specific scene, it can be understood as the trigger event of satisfaction.?
In the case that the trigger event is satisfied, corresponding rule is activated.In the case where the rule is activated, judge whether
Some or the certain execution conditions for meeting the rule, in the case where satisfaction, execute it is pre-set executes instruction, to realize pair
Answer function.
In the present embodiment, a trigger event can be made of multiple trigger conditions, be met in the context data
When the trigger condition, judgement obtains the context data and meets the corresponding trigger event of trigger condition.
In the present embodiment, a trigger event can be corresponding with a rule and the corresponding execution item of the rule
Part can also be corresponding with multiple rules and the corresponding execution condition of each rule.Specifically, for example, the trigger event is
Client user enters the radiation radius of the commercial circle.One rule of trigger event triggering is to meet half a year in the user
It inside went under conditions of the commercial circle, just to user's transmission activity invitation letter.Another rule of trigger event triggering can be with
It is under conditions of the user is to come the commercial circle for the first time, just to send the commercial circle electronic map to the user.In present embodiment
In, a regular execution condition can be such as only one execution condition in above-mentioned example, be also possible to have multiple
Part.For example, the corresponding multiple execution conditions of a rule are to go to the commercial circle in user's half a year and the user is the quotient
The VIP user of circle, when only meeting above-mentioned two execution condition, just to user client transmission activity invitation letter.
Step S14: in the case where the rule is activated, data class involved in the execution condition of the rule is analyzed
Type.
In the present embodiment, the case where rule is activated can refer to that the trigger event of the rule is satisfied,
The rule is activated, and comes into effect.
In the present embodiment, the data type can refer to the attribute of corresponding data characterization.Specifically, for example, visitor
It is 9:00 that family end, which collects current time, then the data type that can define 9:00 this data is time, time==9:00.
Following table is please referred to, several data and its corresponding data type are listed.
Please refer to table.Data type may include having time data type, and the data of the type are for characterizing the time;Temperature
Data type is spent, the data of the type are for characterizing temperature;Humidity data type, the data of the type are for characterizing humidity;Position
Data type is set, the data of the type are for characterizing whether user reaches target area;Operation data type, the data of the type
For characterizing whether user carries out specified operation;Status data type, whether the data of the type are for characterizing the client
Offline mode etc. whether is in designated state, such as client.And other data types.For example, some data type
Characterization is whether user is in, and corresponding data value is "Yes" or "No".
In the present embodiment, in the case where the rule is activated, involved in the execution condition of the analysis rule
Data type, can be according to the execution condition, according to data involved in the execution condition, respectively to variety classes
Data are defined, and obtain data type involved in execution condition.For example, the execution condition in upper table is that user clicks
Using and Current Temperatures reach 20 DEG C, longitude and latitude range just executes correspondence at (119 ° 55 ' -121 ° 20 ', 30 ° 47 ' -32 ° 2 ')
Execute instruction.Corresponding data type is " whether user clicks application ", " temperature ", " longitude and latitude ".The data of each rule
Type is also possible to corresponding data type in regulation engine.
Step S16: according to the data type, by the data value of the context data with it is corresponding in the execution condition
Preset data value matched.
In the present embodiment, by the data value of the context data and the corresponding preset data in the execution condition
Value is matched, for judging whether to meet condition to execute pre-set instruction in the rule.In successful match, institute
State that client executing is corresponding to be executed instruction.Specifically, matching way can make according to involved in the execution condition in the rule
Data type and corresponding restriction range, be compared with the context data of acquisition, judge whether to fall into restriction
Range.When falling into, meet this execution condition.According to the logical relation in one or more execution condition of the rule, "AND"
"or" " non-" etc., to judge whether successful match.For example, the execution condition of some rule is that user clicks some application drawing
Mark or user speech input " opening some application ".Logical relation between the two execution conditions is "or", as long as meeting
First, being judged as successful match, true value is returned.
It in the present embodiment, further include the data type for defining the context data when context data of acquisition,
For being matched with preset data value is corresponded in execution condition according to the data type.Certainly, context data herein
It further include analysis treated context data.For example, by the shipping address of GPS sensor collected longitude and latitude data and user
Matching, judges whether user is in.When successful match, the data for corresponding to data type " whether user is in " are then
"Yes".
Step S18: in the case where successful match, corresponding execute instruction is executed.
In the present embodiment, the case where successful match, can refer to that the context data meets the feelings of execution condition
Condition, the client or server can execute corresponding execute instruction.Specifically, for example, when the rule designs electric business
When business, corresponding execute instruction of the rule be can be in the case where successful match, and user end to server transmission is asked
It asks, server feedback corresponding informance, so that client can arrange corresponding electric business activity, or application, in client end interface
On show user, it is user-friendly, promoted user experience.It is also possible in the case where successful match, server receives
To the information of client successful match, server is from trend client push corresponding informance, so that client can arrange to correspond to
Electric business activity, or application, user is showed on client end interface.
In the present embodiment, information exchange can be carried out by specific agreement between server and client.For example,
Server can pass through ICP/IP protocol (transmission control protocol/internet protocol Transmission Control Protocol/
InternetProtocol) and the agreements such as hypertext transfer protocol (HTTP, HyperText Transfer Protocol) into
Row transmission;In physical layer, can be transmitted by wireless network etc..
By present embodiment, it can judge that the context data meets which or which according to context data
The trigger event of a rule.Then it by the execution condition for judging whether to meet corresponding rule, in the case where meeting, executes
Corresponding preset instruction, realizes corresponding function.According to the variation of scene, the function of the program of adjustment client may be implemented.?
When being related to electric business, the traffic distribution of electric business application or the movable flow of some marketing classes according to context data, can be carried out
Distribution.
It in one embodiment, may include following in the step of analyzing the trigger event that the context data meets
Step.
Step S20: analyzing the context data, obtains the state change information of the client.
In the present embodiment, the status information of the client characterizes the state that the client is in.For example,
The client is in offline mode, is just a state.For another example getting the city that the client is presently in is Hangzhoupro
State and a status information.The state change information can refer to the whether changed information of the client state,
Or the information of which kind of variation occurs.For example, user, which clicks, closes offline mode, the client changes to general from offline mode
Logical mode, corresponding information is just the state change information.It is specified for another example the geographical location GPS of the client reaches
When commercial circle, it is also possible to a state change information.
In the present embodiment, the context data is analyzed, the state change information of the client is obtained.Can be will
The context data of acquisition and client or the data of server storage compare, with judge the client state whether
Variation, obtains corresponding states change information.For example, the geographical location GPS of the client is also continuous with the movement of user
Variation.It is stored with the geographical position range in plum rains area originally in client or server side.When user is moved to this area
When, the geographic position data of the client and the geographical position range successful match in plum rains area, judgement obtain the user
It is moved to plum rains area, the corresponding state change information for having the client characterizes the user and entered plum rains area.When
So, the state change information is also possible to a data in the data type.For example, some data type is " user
Whether specified icons are clicked ", corresponding data can be "Yes" and be also possible to "No".For "Yes", institute is characterized
A state for stating client is that the state of specified icons is clicked by user.It does not do and specifically repeats herein.
Step S22: the state change information of the client is matched with the trigger event, to obtain the feelings
One or more trigger events that scape data meet
In the present embodiment, the client can have the state change information of multiple dimensions simultaneously.According to the feelings
Scape data can determine the state change information of the client of one or more dimensions.For example, the shape of characterization time change
State information characterizes the status information etc. of change in location.
In the present embodiment, the trigger event of Different Rule may be the same or different.Believe in the state change
When breath is with the trigger event successful match, corresponding context data meets the trigger event.The trigger event is corresponding
The trigger event of rule, in the case where trigger event is satisfied, corresponding rale activation comes into effect.Specifically, for example,
Regular A and rule B is come into effect, another rule C is come into force when getting home when user enters some commercial circle.Then in institute
When stating user into some commercial circle, meet the trigger event of rule A and rule B.Regular A and rule B are activated, and come into effect.
Then according to context data, judge whether the execution condition for meeting regular A He rule B respectively, the case where meeting execution condition
Under, execute executing instruction for the rule of correspondence.
By above embodiment, one or more trigger events that the available context data meets, so that full
The rule of the trigger event of foot is activated.
In one embodiment, the trigger event includes at least following one: the position data of the client becomes
Change position data range corresponding to target area;Alternatively, the temperature data that the client obtains reaches specified for temperature ranges;
Alternatively, the humidity data that the client obtains reaches specified humidity range;Alternatively, the time data of the client reach finger
It fixes time.
In the present embodiment, the position data of the client changes to the corresponding position data range in target area.
Specifically, can be the position data for the client that the client obtains, when the position data reaches the preset finger
It is just the trigger event of the context data satisfaction when determining range.Similarly, the temperature data that the client obtains reaches specified
Temperature range.For example, the trigger event of some rule is to be more than or equal to 20 DEG C in temperature.The humidity data that the client obtains
Reach specified humidity range.For example, the trigger event of some rule is to be more than or equal to 68% in humidity.The time of the client
Data reach specified time.For example, the trigger event of some rule is to reach April 1 in time arrival 12 noon or date
Number or reached Sunday in week;Alternatively, user keep a close watch on the client end interface specified icons when cover with 15 seconds etc..
Above embodiment lists multiple trigger events, in the case where meeting trigger event, activates corresponding rule.
In one embodiment, the data type includes at least following one: time data type, the number of the type
According to for characterizing the time;Temperature data type, the data of the type are for characterizing temperature;Humidity data type, the number of the type
According to for characterizing humidity;Position data type, the data of the type are for analyzing whether user reaches target area;Operation data
Type, the data of the type are for analyzing whether user carries out specified operation;Status data type, the data of the type are for dividing
Analyse whether the client is in designated state.
In the present embodiment, in the case where the rule is activated, involved in the execution condition of the analysis rule
Data type;According to the data type, by the data value of the context data with it is corresponding pre- in the execution condition
If data value matched in data type.Data type therein can be time data type.For example, characterization is some several
The time data type of the time data or date, week, duration etc. divided.The data type can also be temperature data
Type.The data of the temperature data type can be temperature or client running temperature of characterization current external weather etc.
Temperature data.The data type can also be position data type.The data of the position data type can characterize use
The position of family client, such as GPS position information etc..When with the comparison of the position range of preset target area, it can be determined that
Whether user reaches the target area.The data type can also be operation data type, the number of the operation data type
It is operated according to the input that can characterize user, such as some figure or voice input information for clicking client end interface etc..Such
The data of type can be used for analyzing whether user carries out specified operation.The data type can also be status data type, institute
The data for stating status data type can characterize the state of client.For example, the client is in state of flight mode etc., it should
The data of type can be used for analyzing whether the client is in designated state.
By above embodiment, provide numerous types of data, according to the data type, by the context data with
The execution condition of the rule is matched.
In one embodiment, the method is according to the data type, by the data value of the context data with
In the step of corresponding preset data value in the execution condition is matched, it can also include the following steps.
Step S30: the whether effective of the corresponding context data of the data type analyzed.
Step S32: in the effective situation of the context data, by the data value of the context data and the execution item
Corresponding preset data value in part is matched.
In the present embodiment, the context data that can effectively characterize of the context data can be accurately anti-
Reflect the environment that user client is presently in.Specifically, for example, a geographic position data of the client, is at 30 points
It is obtained before clock by GPS sensor.Because the time is more long, the data deficiencies is to show active user current location.
Therefore the data are invalid data.
In the present embodiment, the whether effective of the corresponding context data of the data type is analyzed, specifically, can
It, can when within the scope of the effective time in setting to be compared according to the entry time of the context data with current time
To regard as effectively.In the present embodiment, the effective time of different types of data can be difference, be also possible to identical.
Pass through above embodiment, it can be determined that the validity of the context data, so that the context data is more quasi-
Environment locating for true embodiment active client, to judge whether legal execution condition.
In one embodiment, the method also includes following steps: the context data it is invalid in the case where,
Reacquire corresponding context data.
In present embodiment, in the case where judging that the context data is invalid, respective operations can be executed, are reacquired
The context data of the data type.For example, the position data of user is the data before 30 minutes, it is invalid to be judged as, the visitor
Family end reacquires position data by GPS positioning sensor.
In one embodiment, following situations is included at least in the invalid situation of the context data: the data
Duration between entry time and current time has been more than the effective time of setting.
Above embodiment illustrates a kind of invalid situation of context data.Wherein, when the typing of the context data
Between when can refer to the data acquisition, the time of client or server is stored in after either obtaining.When the time-domain is current
Between between duration, when the time difference can also be claimed to be more than the effective time of setting, it can be determined that the data need to reacquire, real
The dynamic of existing scene updates.
In one embodiment, in the case where the method is related to electric business, the corresponding step executed instruction is being executed
It can be the following steps are included: the electric business application identities for arranging the client end interface to show, be divided with carrying out flow in rapid
Hair;Alternatively, the electric business activity mark for arranging the client end interface to show, with carry out activity dispensing.
In the present embodiment, the method be related to the case where electric business can refer to the method be applied to it is related with electric business
Scene the case where.Specifically, for example, some rule is related with the product promotion of electric business or related with the activity of electric business etc..
In the present embodiment, the electric business application identities can indicate corresponding electric business application.For example, the production of electric business
Product, the service of electric business, the business service etc. of client.The electric business application identities for arranging the client end interface to show, can
To be to indicate popular electric business application to show the conspicuous place in client end interface, such as visitor according at least to the context data
The top at family end interface.The electric business application identities for arranging the client end interface to show can be for example, reaching in user
When one shops, Suning, in the interface information that the client is shown will product introduction related with Suning's electric appliance in front, side
Just under user's line with compared on line, be conducive to promoted launch effect and PV value.
In the present embodiment, the electric business activity identifies the activity for identifying the electric business, can correspond to movable Jie
It continues, specific activity description etc. can also be corresponded to.For example, the Spring Festival big advertising campaign, the big advertising campaign of mobile phone digital etc., in user
When into commercial circle in relation to electric appliance, in " the big advertising campaign of mobile phone digital " " the family's TV university advertising campaign " etc. of the client end interface
It shows in front, to facilitate user to browse, realizes that overall customer experience is used in movable accurate dispensing, promotion.
Please refer to Fig. 7.This specification embodiment also provides a kind of client, and the client may include with lower die
Block.
Receiving module is for obtaining context data, and the context data is for characterizing environment locating for the client.
First analysis module is used to analyze the trigger event that the context data meets;Wherein, the trigger event is used for
Activate the rule of correspondence.
Second analysis module is used in the case where the rule is activated, involved in the execution condition for analyzing the rule
Data type.
Processing module is used for according to the data type, will be in the data value of the context data and the execution condition
Corresponding preset data value is matched.
Execution module is used in the case where successful match, executes corresponding execute instruction.
In the present embodiment, receiving module, analysis module, processing module and execution module can by software realization,
It can also be by being realized on hardware.Relational language in present embodiment may refer to aforementioned embodiments control and explain.
Please refer to Fig. 8.This specification embodiment also provides a kind of electronic equipment, and the electronic equipment may include storage
Device and processor.
Computer instruction is stored in the memory.
The processor performs the steps of acquisition context data, the scene number for executing the computer instruction
According to for characterizing environment locating for client;Analyze the trigger event that the context data meets;Wherein, the trigger event is used
In the activation rule of correspondence;In the case where the rule is activated, data class involved in the execution condition of the rule is analyzed
Type;According to the data type, by the data value of the context data and the corresponding preset data value in the execution condition
It is matched;In the case where successful match, corresponding execute instruction is executed.
In the present embodiment, the memory can be for saving information.The memory include but is not limited to
Machine accesses memory (Random Access Memory, RAM), read-only memory (Read-Only Memory, ROM), caching
(Cache), hard disk (Hard Disk Drive, HDD) or storage card (Memory Card).The memory can be used for depositing
Store up computer program instructions.
In the present embodiment, the processor can be implemented in any suitable manner.For example, processor can be taken
Such as microprocessor or processor and storage can be by computer readable program code that (micro-) processor executes (such as softwares
Or firmware) computer-readable medium, logic gate, switch, specific integrated circuit (Application Specific
IntegratedCircuit, ASIC), programmable logic controller (PLC) and the form etc. for being embedded in microcontroller.The application does not make
It limits.
In the present embodiment, receiving module and processing module can be by software realizations, can also be by realizing on hardware.
Relational language in present embodiment may refer to aforementioned embodiments control and explain.
This specification embodiment also provides a kind of computer storage medium, is stored with program instruction, in described program
Instruction is performed realization: obtaining context data, the context data is for characterizing environment locating for client;Analyze the feelings
The trigger event that scape data meet;Wherein, the trigger event is for activating the rule of correspondence;The case where the rule is activated
Under, analyze data type involved in the execution condition of the rule;According to the data type, by the number of the context data
It is matched according to value with the corresponding preset data value in the execution condition;In the case where successful match, execute corresponding
It executes instruction.
The computer storage medium provided in present embodiment, program instruction is performed the function of realization and effect can
It is explained with being compareed referring to other embodiment.
Please refer to Fig. 9.This specification embodiment provides a kind of data processing method, is applied to server, the method
It may comprise steps of.
Step S40: generating at least one rule, and the rule includes for activating the trigger event of rule, the rule
It execution condition and corresponding executes instruction;Wherein, the trigger event is for activating the rule of correspondence.
Step S42: in the case where receiving the list of rules request of client transmission, the rule is fed back;So that institute
It states client and analyzes the trigger event that the context data of client acquisition is met;In the case where the rule is activated,
Analyze the execution the condition whether context data meets the rule;In the case where meeting the execution condition, execute
It is corresponding to execute instruction;Wherein, the context data is for characterizing environment locating for the client.
In the present embodiment, the server can at least generate a rule, specifically, can pass through server end
Station, that is, operation later, carry out configuration rule.The server can also be arbitrated and be closed to whole rules
And.It can also be divided for the rule in server-side, for example, some rules have time limit limitation, only be had in some period
Effect, just fails more than the period.
In the present embodiment, the list of rules can refer to the set that the rule is formed.The client can be with
List of rules request is sent to server, so that the corresponding rule of the server feedback gives client, updates the rule of client
Then list.
In the present embodiment, it is described only for aforementioned embodiments difference, other contents can be right
Explain that details are not described herein according to the content of aforementioned embodiments.
Please refer to Figure 10.This specification embodiment also provides a kind of data processing method, is applied to server, the side
Method may comprise steps of.
Step S50: the context data that client is sent is received.
Step S52: the trigger event that the context data meets is analyzed;Wherein, the trigger event is for activating correspondence
Rule.
Step S54: in the case where the rule is activated, data class involved in the execution condition of the rule is analyzed
Type.
Step S56: according to the data type, by the data value of the context data with it is corresponding in the execution condition
Preset data value matched.
Step S58: in the case where successful match, corresponding execute instruction is sent to client, so that the client
End executes the instruction.
In the present embodiment, the context data that the server is sent from client based on the received, described in analysis
Context data whether meet for activate rule trigger event, the rule be activated it is brisk under, analyze the scene
Whether data meet the execution condition of the rule.By the data value of the context data with it is corresponding pre- in the execution condition
If data value is matched, when successful match, executing instruction for the rule is sent to client, so that the client executing
The instruction, to realize corresponding function.
In the present embodiment, it is described only for aforementioned embodiments difference, other contents can be right
Explain that details are not described herein according to the content of aforementioned embodiments.
Please refer to Figure 11.This specification embodiment also provides a kind of server, may include with lower module.
Receiving module is used to receive the context data of client transmission.
First analysis module is used to analyze the trigger event that the context data meets;Wherein, the trigger event is used for
Activate the rule of correspondence.
Second analysis module is used in the case where the rule is activated, involved in the execution condition for analyzing the rule
Data type.
Processing module is used for according to the data type, will be in the data value of the context data and the execution condition
Corresponding preset data value is matched.
Execution module is used in the case where successful match, corresponding execute instruction is sent to client, so that described
The client executing instruction.
Relational language in present embodiment may refer to aforementioned embodiments control and explain.
This specification embodiment also provides a kind of electronic equipment, may include: memory and processor.
Computer instruction is stored in the memory.
The processor is used to execute the computer instruction and performs the steps of the scene number for receiving client transmission
According to;Analyze the trigger event that the context data meets;Wherein, the trigger event is for activating the rule of correspondence;In the rule
In the case where being then activated, data type involved in the execution condition of the rule is analyzed;According to the data type, by institute
The data value for stating context data is matched with the corresponding preset data value in the execution condition;The successful match the case where
Under, corresponding execute instruction is sent to client, so that the client executing instruction.
Relational language in present embodiment may refer to aforementioned embodiments control and explain.
This specification embodiment also provides a kind of computer storage medium, is stored with program instruction, in described program
Instruction is performed realization: receiving the context data that client is sent;Analyze the trigger event that the context data meets;Its
In, the trigger event is for activating the rule of correspondence;In the case where the rule is activated, the execution item of the rule is analyzed
Data type involved in part;It, will be in the data value of the context data and the execution condition according to the data type
Corresponding preset data value is matched;In the case where successful match, corresponding execute instruction is sent to client, so that
The client executing instruction.
Relational language in present embodiment may refer to aforementioned embodiments control and explain.
Each embodiment in specification is described in a progressive manner, same and similar between each embodiment
Part may refer to each other, and what each embodiment stressed is the difference with other embodiments.
The server referred in this specification embodiment can be the electronic equipment with certain calculation processing power.
It can have network communication terminal, processor and memory etc..Certainly, above-mentioned server, which may also mean that, runs on the electricity
Software in sub- equipment.Above-mentioned server can also be distributed server, can be with multiple processors, memory, net
The system of the Collaboration such as network communication module.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable
GateArray, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designing
Personnel, which voluntarily program, to come a digital display circuit " integrated " on a piece of PLD, designed without asking chip maker and
Make dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, and this programming also changes mostly
It is realized with " logic compiler (logic compiler) " software, software compiler phase used when it writes with program development
It is similar, and the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL
(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL
(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby
Hardware Description Language) etc., VHDL (Very-High-Speed is most generally used at present
Integrated Circuit Hardware Description Language) and Verilog2.Those skilled in the art
It will be apparent to the skilled artisan that only needing method flow slightly programming in logic and being programmed into integrated circuit with above-mentioned several hardware description languages
In, so that it may it is readily available the hardware circuit for realizing the logical method process.
It is also known in the art that in addition to realizing client, server in a manner of pure computer readable program code
In addition, completely can by by method and step carry out programming in logic come so that client, server with logic gate, switch, dedicated
The form of integrated circuit, programmable logic controller (PLC) and insertion microcontroller etc. realizes identical function.Therefore this client,
Server is considered a kind of hardware component, and can also be considered as to the device for realizing various functions for including in it
Structure in hardware component.Or even, can will be considered as realizing the device of various functions either implementation method
Software module can be the structure in hardware component again.
As seen through the above description of the embodiments, those skilled in the art can be understood that this specification
It can realize by means of software and necessary general hardware platform.Based on this understanding, the technical solution of this specification
Substantially the part that contributes to existing technology can be embodied in the form of software products in other words, the computer software
Product can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes each embodiment of this specification or implementation
Method described in certain parts of mode.
Each embodiment in this specification is described in a progressive manner, same and similar between each embodiment
Part may refer to each other, what each embodiment stressed is the difference with other embodiments.In particular, needle
For server, user client, the embodiment of computer storage medium, it is referred to the embodiment of preceding method
Introduction compare explain.
This specification can computer performed by computer corresponding can execute instruction it is general up and down described in the text,
Such as program module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, journey
Sequence, object, component, data structure etc..This specification can also be practiced in a distributed computing environment, in these distribution meters
It calculates in environment, by executing task by the connected remote processing devices of communication network.In a distributed computing environment, journey
Sequence module can be located in the local and remote computer storage media including storage equipment.
Although depicting this specification by embodiment, it will be appreciated by the skilled addressee that there are many this specification
Deformation and change without departing from this specification spirit, it is desirable to the attached claims include these deformation and change without departing from
The spirit of this specification.
Claims (16)
1. a kind of data processing method, which is characterized in that be applied to client, which comprises
Context data is obtained, the context data is for characterizing environment locating for the client;
Analyze the trigger event that the context data meets;Wherein, the trigger event is for activating the rule of correspondence;
In the case where the rule is activated, data type involved in the execution condition of the rule is analyzed;
According to the data type, by the data value of the context data and the corresponding preset data value in the execution condition
It is matched;
In the case where successful match, corresponding in the rule execute instruction is executed.
2. the method according to claim 1, wherein in the step for analyzing the trigger event that the context data meets
Include: in rapid
The context data is analyzed, the state change information of the client is obtained;
The state change information of the client is matched with the trigger event, to obtain the context data satisfaction
One or more trigger events.
3. the method according to claim 1, wherein the trigger event includes at least following one:
The position data of the client changes to the corresponding position data range in target area;Alternatively,
The temperature data that the client obtains reaches specified for temperature ranges;Alternatively,
The humidity data that the client obtains reaches specified humidity range;Alternatively,
The time data of the client reach specified time.
4. the method according to claim 1, wherein the data type includes at least following one:
Time data type, the data of the type are for characterizing the time;Temperature data type, the data of the type are for characterizing temperature
Degree;Humidity data type, the data of the type are for characterizing humidity;The data of position data type, the type are used for analyzing
Whether family reaches target area;Operation data type, the data of the type are for analyzing whether user carries out specified operation;State
Data type, the data of the type are for analyzing whether the client is in designated state.
5. the method according to claim 1, wherein according to the data type, by the context data
In the step of data value is matched with the corresponding preset data value in the execution condition, further includes:
The whether effective of the corresponding context data of the data type analyzed;
It is in the effective situation of the context data, the data value of the context data is corresponding in the execution condition
Preset data value is matched.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
The context data it is invalid in the case where, reacquire corresponding context data.
7. according to the method described in claim 6, it is characterized in that, the invalid situation in the context data includes at least:
Duration between the entry time and current time of the data has been more than the effective time of setting.
8. the method according to claim 1, wherein in the case where the method is related to electric business, executing pair
Answer the step of executing instruction in include:
The electric business application identities for arranging the client end interface to show, to carry out traffic distribution;Alternatively,
The electric business activity mark for arranging the client end interface to show, with carry out activity dispensing.
9. a kind of client characterized by comprising
Receiving module is for obtaining context data, and the context data is for characterizing environment locating for the client;
First analysis module is used to analyze the trigger event that the context data meets;Wherein, the trigger event is for activating
The rule of correspondence;
Second analysis module is used in the case where the rule is activated, and analyzes number involved in the execution condition of the rule
According to type;
Processing module is used for according to the data type, by the data value of the context data with it is corresponding in the execution condition
Preset data value matched;
Execution module is used in the case where successful match, executes corresponding execute instruction.
10. a kind of electronic equipment characterized by comprising memory and processor;
Computer instruction is stored in the memory;
The processor is performed the steps of for executing the computer instruction
Context data is obtained, the context data is for characterizing environment locating for client;
Analyze the trigger event that the context data meets;Wherein, the trigger event is for activating the rule of correspondence;
In the case where the rule is activated, data type involved in the execution condition of the rule is analyzed;
According to the data type, by the data value of the context data and the corresponding preset data value in the execution condition
It is matched;
In the case where successful match, corresponding execute instruction is executed.
11. a kind of computer storage medium, which is characterized in that it is stored with program instruction, is performed in described program instruction
It realizes:
Context data is obtained, the context data is for characterizing environment locating for client;
Analyze the trigger event that the context data meets;Wherein, the trigger event is for activating the rule of correspondence;
In the case where the rule is activated, data type involved in the execution condition of the rule is analyzed;
According to the data type, by the data value of the context data and the corresponding preset data value in the execution condition
It is matched;
In the case where successful match, corresponding execute instruction is executed.
12. a kind of data processing method, which is characterized in that be applied to server, which comprises
Generate at least one rule, the rule include for activate rule trigger event, the execution condition of the rule and
It executes instruction;Wherein, the trigger event is for activating the rule of correspondence;
In the case where receiving the list of rules request of client transmission, the rule is fed back;So that the client analysis
The trigger event that the context data that the client obtains is met;In the case where the rule is activated, the scene is analyzed
Whether data meet the execution condition of the rule;In the case where meeting the execution condition, executes corresponding execution and refer to
It enables;Wherein, the context data is for characterizing environment locating for the client.
13. a kind of data processing method, which is characterized in that be applied to server, which comprises
Receive the context data that client is sent;
Analyze the trigger event that the context data meets;Wherein, the trigger event is for activating the rule of correspondence;
In the case where the rule is activated, data type involved in the execution condition of the rule is analyzed;
According to the data type, by the data value of the context data and the corresponding preset data value in the execution condition
It is matched;
In the case where successful match, corresponding execute instruction is sent to client, so that the client executing instruction.
14. a kind of server characterized by comprising
Receiving module is used to receive the context data of client transmission;
First analysis module is used to analyze the trigger event that the context data meets;Wherein, the trigger event is for activating
The rule of correspondence;
Second analysis module is used in the case where the rule is activated, and analyzes number involved in the execution condition of the rule
According to type;
Processing module is used for according to the data type, by the data value of the context data with it is corresponding in the execution condition
Preset data value matched;
Execution module is used in the case where successful match, corresponding execute instruction is sent to client, so that the client
End executes the instruction.
15. a kind of electronic equipment characterized by comprising memory and processor;
Computer instruction is stored in the memory;
The processor is performed the steps of for executing the computer instruction
Receive the context data that client is sent;
Analyze the trigger event that the context data meets;Wherein, the trigger event is for activating the rule of correspondence;
In the case where the rule is activated, data type involved in the execution condition of the rule is analyzed;
According to the data type, by the data value of the context data and the corresponding preset data value in the execution condition
It is matched;
In the case where successful match, corresponding execute instruction is sent to client, so that the client executing instruction.
16. a kind of computer storage medium, which is characterized in that it is stored with program instruction, is performed in described program instruction
It realizes:
Receive the context data that client is sent;
Analyze the trigger event that the context data meets;Wherein, the trigger event is for activating the rule of correspondence;
In the case where the rule is activated, data type involved in the execution condition of the rule is analyzed;
According to the data type, by the data value of the context data and the corresponding preset data value in the execution condition
It is matched;
In the case where successful match, corresponding execute instruction is sent to client, so that the client executing instruction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810216903.1A CN110278230A (en) | 2018-03-16 | 2018-03-16 | Data processing method, client, server and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810216903.1A CN110278230A (en) | 2018-03-16 | 2018-03-16 | Data processing method, client, server and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110278230A true CN110278230A (en) | 2019-09-24 |
Family
ID=67957750
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810216903.1A Pending CN110278230A (en) | 2018-03-16 | 2018-03-16 | Data processing method, client, server and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110278230A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115668989A (en) * | 2021-04-23 | 2023-01-31 | 荣耀终端有限公司 | Scene recognition method and electronic equipment |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101350856A (en) * | 2008-09-03 | 2009-01-21 | 嘉兴闻泰通讯科技有限公司 | Mobile phone capable of automatically regulating earpiece sound volume based on movement velocity and method thereof |
CN102158591A (en) * | 2011-01-27 | 2011-08-17 | 惠州Tcl移动通信有限公司 | Mobile terminal, and video call control method and device thereof |
CN102299995A (en) * | 2011-08-09 | 2011-12-28 | 惠州Tcl移动通信有限公司 | Mobile communication terminal and mode switch method thereof |
CN102447775A (en) * | 2010-10-09 | 2012-05-09 | 上海博路信息技术有限公司 | Automatic switching method for environment-related mobile phone modes |
CN103873527A (en) * | 2012-12-17 | 2014-06-18 | 联想(北京)有限公司 | Data processing method, electronic equipment and server |
JP2015176176A (en) * | 2014-03-13 | 2015-10-05 | 臼田総合研究所株式会社 | Information input-output device and information input-output method |
US20150358810A1 (en) * | 2014-06-10 | 2015-12-10 | Qualcomm Incorporated | Software Configurations for Mobile Devices in a Collaborative Environment |
CN106161753A (en) * | 2015-04-17 | 2016-11-23 | 宇龙计算机通信科技(深圳)有限公司 | A kind of scene mode setting method and device |
CN106547582A (en) * | 2015-09-22 | 2017-03-29 | 阿里巴巴集团控股有限公司 | A kind of preprocess method and device |
-
2018
- 2018-03-16 CN CN201810216903.1A patent/CN110278230A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101350856A (en) * | 2008-09-03 | 2009-01-21 | 嘉兴闻泰通讯科技有限公司 | Mobile phone capable of automatically regulating earpiece sound volume based on movement velocity and method thereof |
CN102447775A (en) * | 2010-10-09 | 2012-05-09 | 上海博路信息技术有限公司 | Automatic switching method for environment-related mobile phone modes |
CN102158591A (en) * | 2011-01-27 | 2011-08-17 | 惠州Tcl移动通信有限公司 | Mobile terminal, and video call control method and device thereof |
CN102299995A (en) * | 2011-08-09 | 2011-12-28 | 惠州Tcl移动通信有限公司 | Mobile communication terminal and mode switch method thereof |
CN103873527A (en) * | 2012-12-17 | 2014-06-18 | 联想(北京)有限公司 | Data processing method, electronic equipment and server |
JP2015176176A (en) * | 2014-03-13 | 2015-10-05 | 臼田総合研究所株式会社 | Information input-output device and information input-output method |
US20150358810A1 (en) * | 2014-06-10 | 2015-12-10 | Qualcomm Incorporated | Software Configurations for Mobile Devices in a Collaborative Environment |
CN106161753A (en) * | 2015-04-17 | 2016-11-23 | 宇龙计算机通信科技(深圳)有限公司 | A kind of scene mode setting method and device |
CN106547582A (en) * | 2015-09-22 | 2017-03-29 | 阿里巴巴集团控股有限公司 | A kind of preprocess method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115668989A (en) * | 2021-04-23 | 2023-01-31 | 荣耀终端有限公司 | Scene recognition method and electronic equipment |
CN115668989B (en) * | 2021-04-23 | 2024-04-02 | 荣耀终端有限公司 | Scene recognition method and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10778830B2 (en) | Electronic device and method for performing task using external device by electronic device | |
CN104541245B (en) | For the method and system of mobile application management | |
US9058563B1 (en) | Suggesting activities | |
CN105981418B (en) | Personal geography fence | |
Zeng et al. | A restaurant recommender system based on user preference and location in mobile environment | |
EP3469496B1 (en) | Situation forecast mechanisms for internet of things integration platform | |
CN108241737A (en) | For providing the system of location information and supporting the electronic device and method of the system | |
CN109844855A (en) | The multiple calculating of task, which is acted on behalf of, to be executed | |
US20170017889A1 (en) | Suggesting Activities | |
CN103248999A (en) | Location-based methods, systems, and program products for performing an action at a user device | |
US20210349908A1 (en) | Search result optimization using machine learning models | |
WO2019158069A1 (en) | Method and device for displaying service function entries | |
US20140195968A1 (en) | Inferring and acting on user intent | |
US11503149B2 (en) | Device-cloud collaboration method, platform, and apparatus | |
WO2019158068A1 (en) | Method and device for pushing aggregated shop information | |
CN110502298A (en) | It is a kind of for providing the method and apparatus of the update notifying information of e-book | |
US20190385212A1 (en) | Real-time in-venue cognitive recommendations to user based on user behavior | |
CN109428929A (en) | Determination method, server and the user client of the location information of target object | |
WO2022161325A1 (en) | Prompting method and electronic device | |
CN107341162A (en) | Web page processing method and device, the device for Web Page Processing | |
WO2022237859A1 (en) | Time management and control-based near field information authentication method and apparatus | |
CN105103573A (en) | Pattern labeling | |
CN108427761A (en) | A kind of method, terminal, server and the storage medium of media event processing | |
CN110278230A (en) | Data processing method, client, server and storage medium | |
JP7086785B2 (en) | Calculation device, calculation method and calculation program |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190924 |
|
RJ01 | Rejection of invention patent application after publication |