WO2020042991A1 - 提供业务、业务处理方法、装置、电子设备和介质 - Google Patents

提供业务、业务处理方法、装置、电子设备和介质 Download PDF

Info

Publication number
WO2020042991A1
WO2020042991A1 PCT/CN2019/101911 CN2019101911W WO2020042991A1 WO 2020042991 A1 WO2020042991 A1 WO 2020042991A1 CN 2019101911 W CN2019101911 W CN 2019101911W WO 2020042991 A1 WO2020042991 A1 WO 2020042991A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
field
event
content
events
Prior art date
Application number
PCT/CN2019/101911
Other languages
English (en)
French (fr)
Inventor
刘绪宁
向鹏
Original Assignee
阿里巴巴集团控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2020042991A1 publication Critical patent/WO2020042991A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/109Time management, e.g. calendars, reminders, meetings or time accounting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management

Definitions

  • the present application relates to the field of computer technology, and in particular, to a method and device for providing services, a method and device for processing services, an electronic device, and a machine-readable medium.
  • portable terminal devices such as mobile phones often have reminder functions, including schedule reminders, reminders based on location, time, and so on. For example, the user can remind the user to go to watch a movie after purchasing a movie ticket, or the user can prompt a nearby food after arriving at a shopping mall.
  • reminders and other business services are performed based on a single event, and need to be encoded according to the data provided by the event to form a corresponding business.
  • the setting of the business is relatively solid and the flexibility is poor.
  • the embodiment of the present application provides a method for providing a service, so as to improve the flexibility of service setting.
  • the embodiments of the present application further provide a service providing device, a service processing method and device, an electronic device, and a machine-readable medium to ensure the implementation and application of the foregoing method.
  • an embodiment of the present application discloses a method for providing a service, including: providing multiple fields of an event, wherein the multiple fields are used to describe the event, and the content of the fields of the fields is provided according to the service.
  • the data of the object is determined; at least two events required by the service are determined, and multiple fields corresponding to the at least two events are obtained; and multiple fields corresponding to the at least two events are combined to generate a corresponding service.
  • An embodiment of the present application further discloses a service processing method, including: determining the service content corresponding to the service according to the first field content of the service corresponding to at least two events; wherein the first field content includes the event corresponding Field content of multiple fields, the first field content is determined according to data of a service providing object; and the service is provided to a user according to the service content.
  • An embodiment of the present application further discloses an apparatus for providing a service, including: an event providing module for providing multiple fields of an event, wherein the multiple fields are used to describe the event, and the content of the fields of the field is based on Data determination of a service providing object; an event determination module, configured to determine at least two events required by a service, and obtaining multiple fields corresponding to the at least two events; a service generation module, used to service the at least two events The multiple fields corresponding to the event are combined to generate the corresponding service.
  • An embodiment of the present application further discloses a service processing apparatus, including: a service determining module, configured to determine the service content corresponding to the service according to the first field content of the service corresponding to at least two events; wherein the first field The content includes field content corresponding to multiple fields of the event, the first field content is determined according to data of a service providing object; a service execution module is configured to provide the service to a user according to the service content.
  • An embodiment of the present application further discloses an electronic device, including: a processor; and a memory, which stores executable code, and when the executable code is executed, causes the processor to execute the same as in the embodiment of the present application.
  • an electronic device including: a processor; and a memory, which stores executable code, and when the executable code is executed, causes the processor to execute the same as in the embodiment of the present application.
  • the embodiment of the present application further discloses one or more machine-readable media having executable code stored thereon, and when the executable code is executed, the processor is executed as described in one or more of the embodiments of the present application.
  • Method of delivering business
  • An embodiment of the present application further discloses an electronic device, including: a processor; and a memory, which stores executable code, and when the executable code is executed, causes the processor to execute the same as in the embodiment of the present application.
  • an electronic device including: a processor; and a memory, which stores executable code, and when the executable code is executed, causes the processor to execute the same as in the embodiment of the present application.
  • One or more of said business processing methods One or more of said business processing methods.
  • the embodiment of the present application further discloses one or more machine-readable media having executable code stored thereon, and when the executable code is executed, the processor is executed as described in one or more of the embodiments of the present application.
  • the embodiments of the present application include the following advantages:
  • the platform may provide multiple fields of an event, where the multiple fields are used to describe the event, and the content of the fields of the fields is determined according to the data of the service providing object, so that it can be based on multiple services Provide data provided by the object to determine various events, and then determine at least two events required by the business, obtain multiple fields corresponding to the at least two events, and combine multiple fields corresponding to the at least two events , Generate corresponding services, and flexibly generate services based on events, with high reusability of events.
  • FIG. 1 is a schematic diagram of a service processing system in an embodiment of the present application
  • FIG. 2 is a schematic diagram of a service construction example according to an embodiment of the present application.
  • FIG. 3 is a flowchart of steps in an embodiment of a method for providing a service according to the present application
  • FIG. 4 is a schematic diagram of a hierarchical architecture of a service platform in an embodiment of the present application.
  • FIG. 5 is a flowchart of steps in an embodiment of a service processing method of the present application.
  • FIG. 6 is a schematic diagram of a service processing example according to an embodiment of the present application.
  • FIG. 7 is a flowchart of steps in another embodiment of a method for providing a service according to the present application.
  • FIG. 8 is a flowchart of steps in another embodiment of a service processing method according to the present application.
  • FIG. 9 is a structural block diagram of an embodiment of an apparatus for providing services according to the present application.
  • FIG. 10 is a structural block diagram of another embodiment of an apparatus for providing a service according to the present application.
  • FIG. 11 is a structural block diagram of an embodiment of a service processing apparatus according to the present application.
  • FIG. 12 is a structural block diagram of another embodiment of a service processing apparatus according to the present application.
  • FIG. 13 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
  • FIG. 14 is a schematic diagram of a hardware structure of an electronic device according to another embodiment of the present application.
  • FIG. 1 a schematic diagram of a service processing system in an embodiment of the present application is shown.
  • the business processing system includes a business platform 10, a service providing object 20, and a user equipment 30.
  • the business platform is used to create and manage services.
  • the business platform can correspond to multiple service providing objects and obtain data provided by the service providing objects.
  • the provided data can be determined according to the service provider. For example, if the service provider is an e-commerce platform, it can provide shopping data of the e-commerce platform, and if the service provider is a meteorological platform, it can provide various meteorological data.
  • the service providing object may provide data of one or more of the following services, such as data of a weather service, data of a reminder service, data of a positioning service, data of a message push, data of a mail service, and the like.
  • User equipment includes various devices used by users, such as mobile devices such as mobile phones, tablet computers, wearable devices, and personal computers.
  • the business platform after the business platform connects to the service provider object, it can provide a unified interface for the service provider object, so that the service provider object can be called based on the corresponding interface to obtain the data provided by the service provider object.
  • the business platform can also generate corresponding events based on the data provided by the service provider.
  • the event represents a scenario element and can independently describe a fact, such as a road congestion event, a weather disaster event, and so on.
  • Each event can correspond to multiple fields, and the multiple fields are used to describe the event.
  • Each field can be determined by different field content, so that the field content of each field can describe the only event.
  • Each field included in an event may be provided with data by one or more service providing objects, which is not limited in the embodiment of the present application.
  • a meteorological disaster event includes a type field, a level field, a city field, and a time field. Then, the data is obtained through the equipment of the service providing object, and a platform-based processing can obtain a meteorological disaster event.
  • a meteorological disaster event is: type: typhoon; level: yellow; city: Shanghai; time: 2017-10-09, which describes the event that issued a typhoon yellow warning in Shanghai on October 10, 2017.
  • the event when the field information of the event is not determined (the value is not assigned), the event can be regarded as a data class. After the value of each field of the event is assigned, the event can be regarded as the object instantiated by the data class.
  • the meteorological disaster event is a meteorological disaster event class. After receiving the field content of each field, the only meteorological disaster event object is obtained, which is described in 2017-10 -09 A typhoon yellow warning was issued in Shanghai.
  • a service may be created based on an event provided by the platform.
  • the platform may also provide a calling interface corresponding to the event to the operating system of the terminal device, so that the service may be provided to the user based on the operating system calling the event.
  • FIG. 2 a schematic diagram of a service construction example according to an embodiment of the present application is shown.
  • FIG. 3 a flowchart of steps in an embodiment of a method for providing a service according to the present application is shown.
  • Step 302 Provide multiple fields of an event, where the multiple fields are used to describe the event, and the content of the fields is determined according to the data of the service providing object.
  • the business platform can encapsulate a complete multi-language (such as java, JavaScript, python, etc.) expression framework to connect service provider objects written in various languages and provide events composed of data from service provider objects. This field description simplifies the call to the service provider object.
  • a complete multi-language such as java, JavaScript, python, etc.
  • the business platform accesses the service providing object, and can provide a uniformly called interface, so that the corresponding one or more fields can be determined according to the corresponding interface of the service providing object, and the corresponding event is generated according to the multiple fields.
  • Obtain the data of the service provider object through this interface determine one or more types of corresponding output data based on the interface, and then determine the event by combining each type of data, and determine one or more fields corresponding to the event to describe the event .
  • the platform can provide various events, such as meteorological events such as weather forecast events, meteorological early warning events, road congestion, navigation, and itinerary positioning events, booking-related trip reminders, and other related purchases and logistics on e-commerce platforms. , Payment and other events.
  • meteorological events such as weather forecast events, meteorological early warning events, road congestion, navigation, and itinerary positioning events, booking-related trip reminders, and other related purchases and logistics on e-commerce platforms.
  • Payment and other events The field content of one or more fields contained in each event is provided by the service providing object.
  • Step 304 Determine at least two events required by the service, and obtain multiple fields corresponding to the at least two events.
  • At least two events can be determined from the events provided by the platform.
  • the required events are determined according to the business that needs to be created. For example, for travel reminders for movie viewing, movie viewing events can be combined with weather events and positioning events.
  • the event creates the corresponding business.
  • multiple fields corresponding to each event are obtained. As shown in FIG. 2, event X1 and event X3 are selected for service Y1, and event X2, event X3, and event Xn are selected for service Y2.
  • the service platform also provides visual creation of services, and the platform provides a service configuration interface.
  • Each event is abstracted as a visualization node, and the visualization node of a desired event is selected through a visual service configuration interface, and the corresponding visualization node is combined to generate a corresponding service.
  • the at least two events required for selecting a service include: a visualization node that displays an event in a service configuration interface, wherein the visualization node is associated with a corresponding event; at least two visualization nodes are determined according to a selection instruction, and all The events corresponding to the two visualization nodes are described.
  • the visual service configuration interface may correspond to a visual node configured with events such as controls and icons, and the visual node is associated with the corresponding event.
  • the service configuration interface may further include other controls such as a service name input box and a rule setting box. Therefore, based on the service configuration interface, it can receive the visual node of the selected event, and then set other information such as the name of the corresponding service.
  • other information such as a custom rule can also be configured in the service configuration interface.
  • the custom rule is available It is used for combining the corresponding fields of the event and setting behavior information. For example, the default reminder is 1 hour in advance, and 2 hours in advance according to custom rules.
  • events can be connected in series by dragging selected visualization nodes, and support for inserting custom rules between any two events.
  • the method of building business is flexible and functional. rich.
  • Step 306 Combine multiple fields corresponding to the at least two events to generate corresponding services.
  • each event can be combined according to certain rules, so that the status and behavior of the service are described through the fields of multiple events. For example, if multiple events meet the conditions and provide corresponding output processing such as reminder and push, each service can also have a service ID, so that a service can be uniquely identified.
  • combining the multiple fields corresponding to the at least two events to determine the service includes: combining the corresponding multiple fields of the at least two events to obtain a field set of the service and Behavior information, wherein the field set includes multiple fields, the field set is used to describe a state of the service, and the behavior information is used to describe a behavior of the service.
  • the service identifier can also be configured for the service, so that a service can be uniquely identified by the service identifier, and the behavior information of the service can be configured according to the fields combined with the aggregated fields, where the behavior information can describe the behavior of the business, such as the execution judgment of the business behavior, the behavior
  • the behavior information includes output methods, such as reminders, pushes, etc., where reminders can include short messages, emails, etc., and push methods include system messages, etc., so that users can be notified of the corresponding business in multiple ways. data.
  • the service is a general type of service.
  • the service is not assigned a value, for example, if the field content in the field set is not configured with field content, and the behavior information does not determine the output conditions or the content of the output mode, the service can be viewed as As a data class, after assignment, the business can be regarded as the object instantiated by the data class. Therefore, based on the field content of each field in the event, the field content of each field in the field set of the service, as well as the content of the output conditions and output methods, can be determined, and the service can determine to perform actions such as notifying and reminding the user.
  • the movie-watching reminder service is a service that can provide movie-watching weather reminders when it is not assigned.
  • the value After the value is assigned, it can provide movie-watching reminders for a specified time and location for a specified user, such as determining that user A watches 12 o'clock.
  • the service can send a message to user A at 11 o'clock to remind them to go to the movie theater B to watch the movie, and today the weather forecast is rainy, it can remind the user to bring rain gear, etc.
  • combining the corresponding multiple fields of the at least two events to obtain the service field set and output information includes: merging multiple fields of the at least two events And remove duplicate fields to obtain the field set of the service; and determine the output conditions and output modes according to the fields in the field set. Multiple fields of each selected event can be merged. For the fields that are present in both events during the merge process, a duplicate field can be removed and one for each field in the field set. And one or more fields are obtained from the field collection, and behavior information such as output mode and output condition is set according to the field. For example, if the field includes a time field, the output time condition can be set according to the time field, and if the field includes a user information field, the output party corresponding to the output mode can be determined according to the user information.
  • a meteorological disaster event includes the following fields: a type field, a level field, a city field, and a time field; a movie viewing event includes the following fields: a user field and a film field. ), Cinema field (cinema), address field (address), region (city) and time field (time).
  • the field collection of the movie viewing reminder service includes: user field (userId), user information field (user), film field (film), cinema field (cinema), address field (address), type Field (type), level field (level), region field (city) and time field (time); and the output time condition can be set according to the time field, for example, the output time condition is set to one hour in advance.
  • user information can be obtained, or a user information field can be included, so that the user's mobile phone number, email address, etc. can be obtained, and the output mode can be determined correspondingly.
  • the highly accurate field content of the feedback can be used as the field content of the corresponding field of the field collection, or a main event is selected from the events, and the field content returned by the main event is used as the field when the fields are repeated.
  • the field content and the like of the corresponding field of the set are not limited in this embodiment of the present application.
  • the at least two events include a first event and a second event
  • determining the output condition and output mode according to a field in the field set includes: Field to determine the corresponding first output condition and first output mode; and according to the fields of the first output mode and second event, determine the corresponding second output condition and second output mode.
  • the second event can be executed according to the first event. If the first event is completed, the service can control the execution of the second event.
  • the second event has the same field content as the repeated field in the first event. For example, after the first event outputs information according to the corresponding output mode, successful and failed output results can be obtained, and the execution of the second event is triggered according to the output results.
  • the movie viewing event includes the following fields: user field (userId), film field (film), cinema field (cinema), address field (address), geographical area (city) and time field (time);
  • the movie viewing service event includes The following fields: user field (userId), service content (sever), cinema field (cinema), address field (address), area (city).
  • the multiple fields of the two events are matched, and the resulting field set includes fields: user field (userId), cinema field (cinema), address field (address), and area (city).
  • the set of fields for the movie viewing reminder and booking service includes: a user field (userId), a cinema field (cinema), an address field (address), a geographical area (city), and a film field (time) Service content (sever).
  • the movie viewing event can be regarded as the first event
  • the movie viewing service event can be regarded as the second event.
  • the output time condition is set according to the time field of the first event, for example, the output time condition is set to be one hour in advance.
  • user information can be obtained, or the user information field can be included, so that the user's mobile phone number, email address, etc. can be obtained, and the corresponding output method is determined.
  • the reminder information is output according to the output method. If the output of the reminder information is successful, the fields of the second event can be configured to order according to the fields of the first event.
  • the second event may not be set according to the first event, but may be triggered according to the output result corresponding to the first event.
  • the movie viewing service event is triggered to order popcorn and so on.
  • an execution engine may be provided in the business platform.
  • the execution engine may provide a running environment for the business.
  • the bottom layer of the business platform adopts a serverless architecture (function calculation) and provides a multi-language rule expression framework to support the execution of each execution.
  • the module is deployed, managed, and operated as an independent unit, which supports the allocation of capacity according to the module, improving reliability and scalability. For example, each event is regarded as a unit, each service is regarded as a unit, and the management and maintenance of events and services are performed in various divisions.
  • script data corresponding to the service may be configured to generate execution data of the service.
  • a rule script of the service can be generated to obtain the execution data such as the execution flow of the service, the execution data is hosted on the function calculation, and the business scenario is reminded by the execution engine support.
  • the hierarchical structure of the business platform is shown in Figure 4. It includes: a basic service layer 410, a gateway layer 420, an engine layer 430, and a design layer 440.
  • the basic service layer 410 connects each service providing object, and provides basic data required for the business.
  • the gateway layer 420 is provided with an API (Application Programming Interface) gateway.
  • the API gateway can provide an interface of each service providing object, so that the service providing object can be called through this interface to obtain corresponding data.
  • the visual service configuration interface may be connected to the API gateway to obtain data.
  • the API gateway can provide standardized calls for each service providing object, reducing the degree of coupling.
  • the engine layer 430 is used to support the execution of the business.
  • multiple events corresponding to the service can be selected, multiple fields of the event can be obtained, and the description information such as the field set and behavior information of the service can be obtained through the combination of the regular expression framework, and Generate script data, then host the execution data corresponding to the script data configuration of the business to the function calculation module, and then use the scenario execution engine to execute the execution data on the function calculation module to achieve the business operation, and then provide the object data through the service to obtain
  • the corresponding service can be set according to the event object, so as to obtain the business object instantiated.
  • the content of the first field of the multiple fields corresponding to the event determine the first The contents of the two fields, as well as the business conditions such as the execution conditions and execution methods of the corresponding business actions, provide users with services and notify users of corresponding events.
  • Step 502 Determine service content corresponding to the service according to the first field content of the service corresponding to at least two events.
  • Step 504 Provide the service to the user according to the service content.
  • the first field content includes field content corresponding to multiple fields of the event, and the first field content is determined according to data of a service providing object.
  • the platform can obtain the data provided by the service providing object through the interface, so as to determine the first field content of the multiple fields in the event according to the data of the corresponding interface of the service providing object.
  • the data corresponding to each interface is used to obtain the field content of each field in the event, thereby instantiating an event of a data class as an event object, and the platform can obtain multiple field content of multiple events, thereby targeting at least the business corresponding For two events, obtain the first field content of multiple fields corresponding to each event.
  • a yellow typhoon warning was issued in Shanghai on October 10, 2017.
  • the first field content corresponding to at least two events of the service is obtained, and then the service can be configured according to the field content of each event to obtain the corresponding service content. For example, according to the content of the first field of the multiple fields corresponding to the event, the content of the second field of the multiple fields in the service set of the service is configured, and the service content such as the execution conditions and execution methods corresponding to the service are determined. Therefore, the service can be provided to the user based on the service content, such as reminding the user to watch a movie and carrying rain gear.
  • the service content includes: a field set and execution information; and determining the service content corresponding to the service according to the first field content corresponding to at least two events of the service includes: according to the service corresponding The first field content of at least two events determines the second field content of multiple fields in the service corresponding field set; and according to the second field content, execution information corresponding to the service is determined, where the execution information is used for The service is output to the user.
  • the field set of the service corresponding to each event may be obtained from the field set of the service, so that the content of the first field of the corresponding field of the event may correspond to the content of the second field of the field in the field set.
  • the execution information can be understood as the content after the behavior information is assigned in the above embodiment. Then, the content of the second field of the specified field in the field collection can be configured.
  • the behavior information of the service can be configured, such as a specified execution time, and a short message is sent to the specified mobile phone number. Wait.
  • the execution information includes: execution conditions, execution methods, and output contents.
  • the execution conditions can be understood as the output conditions after the assignment. For example, the output conditions are one hour in advance, and the second field content according to the time field is 2017-10-09.
  • the output mode is short message mode
  • the content of the second field can be obtained from the user information field to determine that the user's mobile phone number is XXX, and the execution mode can be to send a short message to the mobile phone number.
  • the output content can be determined based on the content of the second field. , Such as time, place, and things.
  • the output content may be sent to a corresponding user according to the execution mode.
  • the output method includes at least one of the following: a reminder method, a push method, and a notification method. Such as reminding through short messages and emails, pushing to users through message pushing, and notifying users through notifications such as system messages.
  • an output result corresponding to the output content feedback is provided to a service providing object of the business corresponding event.
  • Each event in the business can be related to each other, so that the business can determine the first execution information based on the first event, so that after the corresponding first execution condition is met, the first output content is output according to the first execution mode, and the returned output result is obtained.
  • the field content of each field corresponding to the second event and the second execution information for the second event can be determined, so that after the corresponding second execution condition is satisfied, the second execution is performed according to the second execution. Mode to output the second output content.
  • the output time condition is set according to the time field of the first event, for example, the output time condition is set to be one hour in advance.
  • the user field user information can be obtained, or the user information field can be included, so that the user's mobile phone number, email address, etc. can be obtained, and the corresponding output method is determined.
  • the time reaches one hour in advance, a reminder message is output.
  • the ordering operation corresponding to the second event may be performed according to the successful result of the notification of the first event, and the user may be ordered to order commodities such as popcorn and beverage after reminding the user to watch the movie.
  • the platform obtains the viewing event object A of the viewing event, the meteorological disaster event object B and the meteorological disaster event object C of the meteorological disaster event, of which:
  • the viewing event object A includes the following first field content: user field (userId): 1001, user information field (user): 13XXXXX, film field (film): AAA, cinema field (cinema): XX movie theater, address field (address) ): No. 123, Road X, geographical area (city): Beijing and time field (time): 2017-10-0919: 00.
  • the meteorological disaster event object B includes the following first field content: type field (type): typhoon, level field (yellow), region field (city): Shanghai, time field (time): 2017-10-09.
  • the meteorological disaster event object C includes the following first field content: type field (type): sand storm, level field (level): yellow, regional field (city): Beijing, time field (time): 2017-10-09.
  • a movie-watching reminder business object can be determined based on the matching fields.
  • the time field and the region field of the movie-viewing event object A and the meteorological disaster event object C are matched to obtain the following service content.
  • the field set is as follows and the content of the second field: user field (userId): 1001, user information field (user): 13XXXX, film field (film): AAA, cinema field (cinema): XX movie theater, address field (address) ): No. 123, X Road, city area (city): Beijing and time field (time): 2017-10-0919: 00, type field (type): sand storm, level field (level): yellow.
  • the execution information of the service is as follows: the execution condition is set to 2017-10-0918: 00 according to the content of the second field of the time field, the execution method is short message, and the mobile phone number of the recipient of the short message is determined according to the content of the second field of the user information field For: 13XXXXX.
  • the output information can be determined according to the field content in the field set. For example, "You ordered the movie AAA at XX cinema today at 19:00, please pay attention to the departure time. Today, there is a yellow sandstorm warning in Beijing, please pay attention to prevention.”
  • the service content of the service can be obtained based on the contents of the first fields of the multiple fields corresponding to the at least two events, and the corresponding user can be reminded and pushed for service processing.
  • the platform may cache multiple field contents corresponding to multiple fields of each event, and set the cache valid time of each field content, so that within the valid time, the field content of the event can be applied to various services corresponding to the event.
  • the expired field content can be deleted from the cache to ensure the timeliness of events and services.
  • FIG. 7 a flowchart of steps of another embodiment of a method for providing a service according to the present application is shown.
  • Step 702 Determine corresponding one or more fields according to the interface corresponding to the service providing object; and generate corresponding events according to the multiple fields.
  • the business platform accesses the service providing object, and can provide a uniformly called interface, so as to obtain the data of the service providing object through the interface, determine one or more types of corresponding output data based on the interface, and then determine the event by combining each type of data. And determine one or more fields corresponding to the event to describe the event.
  • Step 704 Display the visualization nodes of the event in the service configuration interface; determine at least two visualization nodes and the events corresponding to the two visualization nodes according to the selection instruction.
  • Step 706 Determine a service identifier of the service.
  • Step 708 Combine the corresponding multiple fields of the at least two events to obtain the field set and behavior information of the service.
  • the service identifier can also be configured for the service, so that a service can be uniquely identified by the service identifier, and the behavior information of the service can be configured according to the fields combined with the aggregated fields, where the behavior information can describe the behavior of the business, such as the execution judgment of the business behavior, the behavior Implementation methods, etc.
  • the behavior information includes: an output condition and an output mode; the output condition is used to judge execution of the behavior of the service; and the output mode is used to output the behavior of the service.
  • combining the corresponding multiple fields of the at least two events to obtain the field set and output information of the service includes: merging multiple fields of the at least two events and removing duplicates To obtain the field set of the service; and determine the output condition and output mode according to the fields in the field set.
  • the at least two events include a first event and a second event; and determining the output condition and output method according to a field in the field set includes: determining according to a field of the first event A corresponding first output condition and a first output mode; and a corresponding second output condition and a second output mode are determined according to the fields of the first output mode and the second event.
  • script data corresponding to the service can also be configured to generate execution data of the service.
  • a rule script of the service can be generated to obtain the execution data such as the execution flow of the service, the execution data is hosted on the function calculation, and the business scenario is reminded by the execution engine support.
  • the platform may provide multiple fields of the event, wherein the multiple fields are used to describe the event, and the content of the fields is determined according to the data of the service providing object, so that each of the fields can be determined based on the data provided by multiple service providing objects.
  • Kind of event and then determine at least two events required by the business, and obtain multiple fields corresponding to the at least two events, combine multiple fields corresponding to the at least two events, and generate corresponding services, which is flexible Event-based business construction with high reusability of events
  • FIG. 8 a flowchart of steps of another embodiment of a service processing method according to the present application is shown.
  • Step 802 Determine the first field content of the multiple fields in the event according to the data of the corresponding interface of the service providing object.
  • the data corresponding to each interface is used to obtain the field content of each field in the event, thereby instantiating an event of a data class as an event object, and the platform can obtain multiple field content of multiple events, thereby targeting at least the business corresponding For two events, obtain the first field content of multiple fields corresponding to each event.
  • Step 804 Determine the second field content of multiple fields in the service corresponding field set according to the first field content of the service corresponding to at least two events.
  • Step 806 Determine execution information corresponding to the service according to the content of the second field, where the execution information is used to output the service to a user.
  • the field set of the service corresponding to each event may be obtained from the field set of the service, so that the content of the first field of the corresponding field of the event may correspond to the content of the second field of the field in the field set.
  • the execution information can be understood as the content after the behavior information is assigned in the above embodiment. Then, the content of the second field of the specified field in the field collection can be configured.
  • the behavior information of the service can be configured, such as a specified execution time, and a short message is sent to the specified mobile phone number. Wait.
  • the execution information includes: execution conditions, execution methods, and output contents.
  • the execution conditions can be understood as the output conditions after the assignment. For example, the output conditions are one hour in advance, and the second field content according to the time field is 2017-10-09.
  • Step 808 Determine whether the execution conditions are met. If yes, go to step 810; if no, go back to step 808 to continue judgment.
  • Step 810 Send the output content to a corresponding user according to the execution mode.
  • the output content is sent to a corresponding user.
  • an output result corresponding to the output content feedback is provided to a service providing object of the business corresponding event.
  • Each event in the business can be related to each other, so that the business can determine the first execution information based on the first event, so that after the corresponding first execution condition is met, the first output content is output according to the first execution mode, and the returned output result is obtained.
  • the field content of each field corresponding to the second event and the second execution information for the second event can be determined, so that after the corresponding second execution condition is satisfied, the second execution is performed according to the second execution. Mode to output the second output content.
  • the operating system may obtain the first field content of the event from the platform through the interface, and the first field content of the event may be related to the field content of the corresponding device and user of the operating system, such as according to the mobile phone.
  • the number, user ID, etc. determine the association relationship, and then the service's business information can be determined in the operating system based on the contents of the first field of at least two events, and then the user is notified through system notifications, push messages, etc. to provide users with various services service.
  • a service providing object is docked through a business platform, a uniform and standard interface is provided for the service providing object, and an event constructed based on the data of the service providing object is provided, so that the creator of the service can create various services based on the event provided by the platform.
  • This kind of business business flexibility is high. For business creators, there is no need to pay attention to the event data source corresponding to the event, that is, it does not need to pay attention to which service provider object provides the data, so there is no need to pay attention to the programming language and communication protocol of the service provider object. Create business. For reminders and push users, they do not need to pay attention to the creator of the service and the service provider to get the reminders and pushes of various services.
  • this embodiment also provides a device for providing services, which can be applied to electronic devices such as servers and user equipment of a service platform.
  • FIG. 9 a structural block diagram of an embodiment of an apparatus for providing a service according to the present application is shown, which may specifically include the following modules:
  • the event providing module 902 is configured to provide multiple fields of an event, where the multiple fields are used to describe the event, and the content of the fields of the fields is determined according to the data of the service providing object.
  • the event determining module 904 is configured to determine at least two events required by the service, and obtain multiple fields corresponding to the at least two events.
  • a service generating module 906 is configured to combine multiple fields corresponding to the at least two events to generate a corresponding service.
  • the platform can provide multiple fields of an event, where the multiple fields are used to describe the event, and the content of the fields is determined according to the data of the service providing object, so that it can be based on the
  • the data determines various events, and then determines at least two events required by the business, and obtains multiple fields corresponding to the at least two events, and combines multiple fields corresponding to the at least two events to generate corresponding Business, flexible event-based business construction, high reusability of events.
  • the event determining module 904 is configured to determine at least two events required by the service, and obtain multiple fields corresponding to the at least two events.
  • the behavior information includes: an output condition and an output mode; the output condition is used to judge execution of the behavior of the service; and the output mode is used to output the behavior of the service.
  • the service generation module 906 includes: a field merging sub-module 9062 and a behavior determination sub-module 9064, where:
  • Field merging sub-module 9062 the user merges multiple fields of the at least two events and removes duplicate fields to obtain the field set of the service
  • a behavior determination sub-module 9064 is configured to determine the output condition and output mode according to a field in the field set.
  • the at least two events include a first event and a second event
  • the behavior determination submodule 9064 is configured to determine a corresponding first output condition and a first output mode according to a field of the first event; according to the first The fields of the output mode and the second event determine corresponding second output conditions and second output modes.
  • the event determining module 904 is configured to display a visual node of an event in a service configuration interface; determine at least two visual nodes and an event corresponding to the two visual nodes according to a selection instruction.
  • this embodiment further provides a service processing apparatus, which can be applied to electronic devices such as a server and user equipment of a service platform.
  • FIG. 11 a structural block diagram of an embodiment of a service processing apparatus according to the present application is shown, which may specifically include the following modules:
  • the service determining module 1102 is configured to determine the service content corresponding to the service according to the first field content of the service corresponding to at least two events; wherein the first field content includes the field content of the multiple fields corresponding to the event.
  • the content of the first field is determined according to the data of the service providing object.
  • a service execution module 1104 is configured to provide the service to a user according to the service content.
  • FIG. 12 there is shown a structural block diagram of another embodiment of a service processing apparatus of the present application, which may specifically include the following modules:
  • the service determining module 1102 is configured to determine the service content corresponding to the service according to the first field content corresponding to the at least two events corresponding to the service.
  • the service determining module 1102 is configured to determine the second field content of multiple fields in the service corresponding field set according to the first field content of the service corresponding to at least two events; and determine the second field content according to the second field content. Execution information corresponding to the service, where the execution information is used to output the service to a user.
  • the service execution module 1104 is configured to, after determining that the execution conditions are met, send the output content to a corresponding user according to the execution mode.
  • the service execution module 1104 is further configured to perform feedback on the service providing object of the service corresponding event according to an output result corresponding to the output content.
  • a service providing object is docked through a business platform, a uniform and standard interface is provided for the service providing object, and an event constructed based on the data of the service providing object is provided, so that the creator of the service can create various services based on the event provided by the platform.
  • This kind of business business flexibility is high. For business creators, there is no need to pay attention to the event data source corresponding to the event, that is, it does not need to pay attention to which service provider object provides the data, so there is no need to pay attention to the programming language and communication protocol of the service provider object. Create business. For reminders and push users, they do not need to pay attention to the creator of the service and the service provider to get the reminders and pushes of various services.
  • An embodiment of the present application further provides a non-volatile readable storage medium.
  • the storage medium stores one or more modules.
  • the terminal can make the terminal
  • the device executes instructions of each method step in the embodiments of the present application.
  • FIG. 13 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
  • the electronic device may include a terminal device, a server (cluster), and other devices.
  • the electronic device may include an input device 130, a processor 131, an output device 132, a memory 133, and at least one communication bus 134.
  • the communication bus 134 is used to implement a communication connection between the components.
  • the memory 133 may include high-speed RAM (Random Access Memory), and may also include non-volatile storage NVM (Non-Volatile Memory), such as at least one disk memory.
  • the memory 133 may store various programs, It is used to complete various processing functions and implement the method steps of this embodiment.
  • the input device 130 may include multiple input devices, for example, it may include at least one of a user-oriented user interface, a device-oriented device interface, a software programmable interface, a camera, and a sensor.
  • the device-oriented device interface may be a wired interface for data transmission between the device and a hardware insertion interface (for example, USB interface, serial port, etc.) for data transmission between the device and the device.
  • the user-oriented user interface may be, for example, user-oriented control keys, a voice input device for receiving voice input, and a touch sensing device (for example, a touch screen with a touch sensing function, Control board, etc.);
  • the software's programmable interface can be, for example, an entry for a user to edit or modify a program, such as a chip's input pin interface or input interface;
  • the above-mentioned transceiver can have Communication function RF transceiver chip, baseband processing chip and transceiver antenna. Audio input devices such as a microphone can receive voice data.
  • the output device 132 may include an output device such as a display or a sound.
  • the processor of the device includes functions for executing each module of the network management device in each electronic device.
  • FIG. 14 is a schematic diagram of a hardware structure of an electronic device according to another embodiment of the present application.
  • FIG. 14 is a specific embodiment of the implementation process of FIG. 13.
  • the electronic device in this embodiment includes a processor 141 and a memory 142.
  • the processor 141 executes the computer program code stored in the memory 142 to implement the service providing method and the service processing method of FIGS. 1 to 8 in the foregoing embodiment.
  • the memory 142 is configured to store various types of data to support operation at the electronic device. Examples of such data include instructions for any application or method for operating on an electronic device, such as messages, pictures, videos, etc.
  • the memory 142 may include a random access memory RAM, and may also include a non-volatile memory NVM, such as at least one disk memory.
  • the processing component 140 generally controls the overall operation of the device.
  • the processing component 140 may include one or more processors 141 to execute instructions to complete all or part of the steps of the methods in FIG. 1 to FIG. 8 described above.
  • the processing component 140 may include one or more modules to facilitate the interaction between the processing component 140 and other components.
  • the processing component 140 may include a multimedia module to facilitate the interaction between the multimedia component 145 and the processing component 140.
  • the multimedia component 145 includes a display screen that provides an output interface between the device and the user.
  • the display screen may include a liquid crystal display (LCD) and a touch panel (TP). If the display screen includes a touch panel, the display screen may be implemented as a touch screen to receive an input signal from a user.
  • the touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or slide action, but also detect duration and pressure related to the touch or slide operation.
  • the sensor component 148 includes one or more sensors for providing status assessments of various aspects of the device.
  • the sensor component 148 may detect the on / off state of the device, the relative positioning of the components, the presence or absence of user contact with the device.
  • the sensor component 148 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact, including detecting the distance between the user and the device.
  • the sensor component 148 may further include a camera and the like.
  • the communication component 143 is configured to facilitate wired or wireless communication between the electronic device and other electronic devices.
  • the electronic device can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof.
  • the electronic device may include a SIM card slot.
  • the SIM card slot is used to insert a SIM card, so that the device can log in to the GPRS network and establish communication with the server through the Internet.
  • the communication component 143, the audio component 146, the input / output interface 147, and the sensor component 148 involved in the embodiment of FIG. 14 can all be implemented as the input device in the embodiment of FIG.
  • the description is relatively simple.
  • the related parts refer to the description of the method embodiment.
  • the embodiments of the embodiments of the present application may be provided as a method, an apparatus, or a computer program product. Therefore, the embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing terminal device Means are generated for implementing the functions specified in one or more of the flowcharts and / or one or more of the block diagrams.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to work in a specific manner, such that the instructions stored in the computer-readable memory produce a manufactured article including the instruction means, the The instruction device implements the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device, so that a series of operating steps can be performed on the computer or other programmable terminal device to produce a computer-implemented process, so that the computer or other programmable terminal device can
  • the instructions executed on the steps provide steps for implementing the functions specified in one or more of the flowcharts and / or one or more of the block diagrams.

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Data Mining & Analysis (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请实施例提供了一种提供业务、业务处理方法、装置、电子设备和介质,以提高业务设置的灵活性。所述的方法包括:提供事件的多个字段,其中,所述多个字段用于描述所述事件,所述字段的字段内容依据服务提供对象的数据确定;确定业务所需的至少两个事件,并获取所述至少两个事件对应的多个字段;将所述至少两个事件对应的多个字段进行组合,生成对应的业务。将所述至少两个事件对应的多个字段进行组合,生成对应的业务,灵活的基于事件生成业务,事件的复用性较高。

Description

提供业务、业务处理方法、装置、电子设备和介质
本申请要求2018年08月31日递交的申请号为201811014366.9、发明名称为“提供业务、业务处理方法、装置、电子设备和介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,特别是涉及一种提供业务的方法和装置,一种业务处理方法和装置,一种电子设备以及一种机器可读介质。
背景技术
为了给用户带来便利,手机等随身的终端设备往往具有提醒功能,包括日程提醒,基于位置、时间等的提醒。例如用户购买电影票后可提醒用户出发观影,又如用户到达某个购物广场后可提示附近美食等。
上述这些提醒功能,有些是用户自己设置的如日程提醒,有些是应用程序提供的功能,如购买电影票后的提醒等。但是,这些提醒等业务服务都是基于单个事件执行的,且需要依据事件提供的数据进行编码组成相应的业务,业务的设置比较固化,灵活性差。
发明内容
本申请实施例提供一种提供业务的方法,以提高业务设置的灵活性。
相应的,本申请实施例还提供了一种提供业务的装置、一种业务处理方法和装置、一种电子设备和一种机器可读介质,用以保证上述方法的实现及应用。
为了解决上述问题,本申请实施例公开了一种提供业务的方法,包括:提供事件的多个字段,其中,所述多个字段用于描述所述事件,所述字段的字段内容依据服务提供对象的数据确定;确定业务所需的至少两个事件,并获取所述至少两个事件对应的多个字段;将所述至少两个事件对应的多个字段进行组合,生成对应的业务。
本申请实施例还公开了一种业务处理方法,包括:依据业务对应至少两个事件的第一字段内容,确定所述业务对应的业务内容;其中,所述第一字段内容包括所述事件对应多个字段的字段内容,所述第一字段内容依据服务提供对象的数据确定;依据所述业务内容,向用户提供所述业务。
本申请实施例还公开了一种提供业务的装置,包括:事件提供模块,用于提供事件 的多个字段,其中,所述多个字段用于描述所述事件,所述字段的字段内容依据服务提供对象的数据确定;事件确定模块,用于确定业务所需的至少两个事件,并获取所述至少两个事件对应的多个字段;业务生成模块,用于业务将所述至少两个事件对应的多个字段进行组合,生成对应的业务。
本申请实施例还公开了一种业务处理装置,包括:业务确定模块,用于依据业务对应至少两个事件的第一字段内容,确定所述业务对应的业务内容;其中,所述第一字段内容包括所述事件对应多个字段的字段内容,所述第一字段内容依据服务提供对象的数据确定;业务执行模块,用于依据所述业务内容,向用户提供所述业务。
本申请实施例还公开了一种电子设备,包括:处理器;和存储器,其上存储有可执行代码,当所述可执行代码被执行时,使得所述处理器执行如本申请实施例中一个或多个所述的提供业务的方法。
本申请实施例还公开了一个或多个机器可读介质,其上存储有可执行代码,当所述可执行代码被执行时,使得处理器执行如本申请实施例中一个或多个所述的提供业务的方法。
本申请实施例还公开了一种电子设备,包括:处理器;和存储器,其上存储有可执行代码,当所述可执行代码被执行时,使得所述处理器执行如本申请实施例中一个或多个所述的业务处理方法。
本申请实施例还公开了一个或多个机器可读介质,其上存储有可执行代码,当所述可执行代码被执行时,使得处理器执行如本申请实施例中一个或多个所述的业务处理方法。
与现有技术相比,本申请实施例包括以下优点:
在本申请实施例中,平台可提供事件的多个字段,其中,所述多个字段用于描述所述事件,所述字段的字段内容依据服务提供对象的数据确定,从而能够基于多种服务提供对象提供的数据确定各种事件,然后可确定业务所需的至少两个事件,并获取所述至少两个事件对应的多个字段,将所述至少两个事件对应的多个字段进行组合,生成对应的业务,灵活的基于事件生成业务,事件的复用性较高。
附图说明
图1是本申请实施例中业务处理系统的示意图;
图2是本申请实施例的一种业务构建示例的示意图;
图3是本申请的一种提供业务的方法实施例的步骤流程图;
图4是本申请实施例中业务平台的层级架构示意图;
图5是本申请的一种业务处理方法实施例的步骤流程图;
图6是本申请实施例的一种业务处理示例的示意图;
图7是本申请另一种提供业务的方法实施例的步骤流程图;
图8是本申请另一种业务处理方法实施例的步骤流程图;
图9是本申请的一种提供业务的装置实施例的结构框图;
图10是本申请的另一种提供业务的装置实施例的结构框图;
图11是本申请的一种业务处理装置实施例的结构框图;
图12是本申请的另一种业务处理装置实施例的结构框图;
图13是本申请一实施例提供的电子设备的硬件结构示意图;
图14是本申请另一实施例提供的电子设备的硬件结构示意图。
具体实施方式
为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。
参照图1,示出了本申请实施例中业务处理系统的示意图。
业务处理系统包括:业务平台10、服务提供对象20、用户设备30,其中,业务平台用于进行业务的创建和管理,该业务平台可对应多种服务提供对象,获取服务提供对象提供的数据,所述提供的数据可依据服务提供对象确定,例如服务提供对象为电商平台,则可提供电商平台的购物数据等,又如服务提供对象为气象平台,则可提供各种气象数据等。其中,所述服务提供对象可提供以下一种或多种服务的数据,如气象服务的数据、提醒服务的数据、定位服务的数据、消息推送的数据、邮件服务的数据等。用户设备包括用户使用的各种设备,如手机、平板电脑等移动设备、可穿戴设备、个人计算机等电子设备。
其中,业务平台连接服务提供对象后,可为服务提供对象提供统一的接口,从而基于相应的接口即可调用服务提供对象,获取该服务提供对象提供的数据。业务平台还可基于服务提供对象提供的数据,生成相应的事件,其中,事件(Event)表征一种情景要素,能独立的描述一个事实,如道路拥堵事件,天气灾害事件等。每个事件可对应多个字段,该多个字段用于描述该事件,每个字段可通过不同的字段内容确定,从而通过各 个字段的字段内容可描述唯一一个事件。其中,一个事件所包含的各字段可由一个或多个服务提供对象提供数据,本申请实施例对此不作限定。在调用事件构建业务时,也可不关注事件对应数据对应的服务提供对象。
例如,气象灾害事件包括:类型字段(type)、级别字段(level)、地域字段(city)和时间字段(time)。则通过服务提供对象的设备获取数据,基于平台的处理可得到一个气象灾害事件。如一个示例的气象灾害事件为:type:台风;level:黄色;city:上海;time:2017-10-09,则其描述了2017-10-09在上海发出了台风黄色预警的事件。
其中,事件的各字段未确定字段信息(未赋值)时,可将该事件看作是一个数据类,事件的各字段赋值后,该事件可看作是该数据类实例化的对象。如上述示例中未接收到各字段的字段内容前,该气象灾害事件是一个气象灾害事件类,接收到各字段的字段内容后,得到了唯一一个气象灾害事件对象,其描述了在2017-10-09上海市发出了台风黄色预警的事件。
在一个示例中,可基于平台提供的事件创建业务,在另外一些实例中,平台也可将事件对应的调用接口提供给终端设备的操作系统,从而可基于操作系统调用事件来提供业务给用户。
参照图2,示出了本申请实施例的一种业务构建示例的示意图。
参照图3,示出了本申请的一种提供业务的方法实施例的步骤流程图。
步骤302,提供事件的多个字段,其中,所述多个字段用于描述所述事件,所述字段的字段内容依据服务提供对象的数据确定。
业务平台可以封装完善的多语言(如java,JavaScript,python等)表达式框架,从而连接由各种语言编写的服务提供对象,提供由服务提供对象的数据构成的事件,该事件由事件的多个字段描述,从而简化对服务提供对象的调用。
其中,业务平台接入服务提供对象,可提供统一调用的接口,从而可依据所述服务提供对象对应的接口,确定对应的一个或多个字段;依据多个字段,生成对应的事件。通过该接口获取服务提供对象的数据,基于接口确定对应输出数据的一种或多种类型,然后可结合各类型的数据确定事件,并确定该事件对应的一个或多个字段,来描述该事件。
从而平台可提供各种事件,如气象预报事件、气象预警事件等气象类事件,道路拥堵、导航、行程等定位类事件,订票对应的出行提醒等事件,以及电商平台相关的购买、物流、支付等事件。各事件所包含的一个或多个字段的字段内容由服务提供对象提供。
步骤304,确定业务所需的至少两个事件,并获取所述至少两个事件对应的多个字段。
针对需要创建的业务,可在平台提供的事件中确定至少两个事件,所需事件依据所需创建的业务确定,例如对于观影的出行提醒可将观影类事件结合天气类事件、定位类事件创建相应的业务。针对选择的至少两个事件,获取对应各事件的多个字段。如图2中针对业务Y1选择事件X1和事件X3,针对业务Y2选择事件X2、事件X3和事件Xn。
本申请实施例中,业务平台还提供了业务的可视化创建,平台提供有业务配置界面。将各事件抽象为可视化节点,通过可视化的业务配置界面来选择所需事件的可视化节点,并组合事件的可视化节点生成对应的业务。则所述选择业务所需的至少两个事件,包括:在业务配置界面中显示事件的可视化节点,其中,所述可视化节点与对应事件关联;依据选择指示,确定至少两个可视化节点,以及所述两个可视化节点对应的事件。
其中,可视化的业务配置界面可对应配置有控件、图标等事件的可视化节点,该可视化节点和对应事件关联,业务配置界面还可包括业务的名称输入框、规则设置框等其他控件。从而基于该业务配置界面可接收选择的事件的可视化节点,然后设置相应业务的名称等其他信息,在一些示例中,还可在业务配置界面中配置自定义规则等其他信息,该自定义规则可用于进行事件对应字段的组合方式、设置行为信息等。如默认提醒为提前1小时,依据自定义规则设置提前2小时等。
从而在业务配置界面中可通过拖拽将所选的可视化节点将事件串联起来,并且支持在任意两个事件间插入自定义规则,在业务平台上便捷的连接事件,构建业务的方法灵活,功能丰富。
步骤306,将所述至少两个事件对应的多个字段进行组合,生成对应的业务。
对于至少两个事件,可按照一定的规则进行各事件中字段的组合,从而通过多个事件的字段描述业务的状态、行为等内容。如多事件满足条件后提供相应的提醒、推送等输出处理,每个业务还可具有业务标识,从而能够唯一确定一个业务。
其中,所述将所述至少两个事件对应的多个字段进行组合,确定所述业务,包括:对所述至少两个事件的对应的多个字段进行组合,得到所述业务的字段集合和行为信息,其中,所述字段集合包括多个字段,所述字段集合用于描述所述业务的状态,所述行为信息用于描述所述业务的行为。
可将选择的各事件对应多个字段进行组合,如将两个或更多事件的多个字段进行合并,从而得到属于不同的事件的字段构成该业务的字段集合,来描述该业务的状态。还 可为该业务配置业务标识,从而通过业务标识唯一标示一个业务,以及依据字段结合汇总的字段配置该业务的行为信息,其中,行为信息可描述业务的行为,如业务行为的执行判断、行为的执行方式等,行为信息包括输出方式,如提醒、推送等方式,其中提醒的方式可包括短消息、邮件等,推送的方式包括系统消息等,从而能够通过多种方式通知用户相应的业务的数据。其中,提醒、推送等方式对应的推送方可依据该字段集合中的字段确定,例如字段集合中包括用户的手机号码、邮箱地址、用户标识等字段内容,则可相应通过短消息、邮件、系统消息等方式进行通知。行为信息还包括:输出条件,该输出条件可依据字段集合中的字段确定,包括依据时间字段设置时间条件,依据位置字段设置定位条件等。可以采用字段集合、行为信息和业务标识描述所述业务。
本申请实施例中,业务是一类通用的服务,在业务未赋值时,如字段集合中字段未配置字段内容,行为信息也未确定输出条件、输出方式的内容等情况下,可将业务看作是一个数据类,在赋值后业务可看作是该数据类实例化的对象。从而基于事件中各字段的字段内容,可确定出业务的字段集合中各字段的字段内容,以及输出条件、输出方式的内容等,则该业务可以确定执行对用户的通知、提醒等行为。例如观影提醒业务,在未赋值时是一个能够为提供观影气象提醒的业务,在赋值后,可针对指定用户提供指定时间、指定地点的观影气象提醒,如确定用户A观看12点的电影的时间且当地当天预报有雨的事件,则该业务可在11点提醒向用户A发送短信提醒去B电影院观看电影,且今天天气预报有雨,可提醒用户携带雨具等。
在一个可选实施例中,所述对所述至少两个事件的对应的多个字段进行组合,得到所述业务的字段集合和输出信息,包括:合并所述至少两个事件的多个字段,并去除重复的字段,得到所述业务的字段集合;依据所述字段集合中的字段,确定所述输出条件和输出方式。可以将选择的各事件的多个字段进行合并,合并过程中对于两个事件中均具有的字段,可去除一个重复的字段,在字段集合中每个字段保留一个。并且从字段集合中获取一个或多个字段,按照该字段设置输出方式、输出条件等行为信息。例如字段包括时间字段,则可依据该时间字段设置输出时间条件,又如该字段包括用户信息字段,则可依据用户信息确定输出方式对应的输出方等。
例如,气象灾害事件包括如下字段:类型字段(type)、级别字段(level)、地域字段(city)和时间字段(time);观影事件包括如下字段:用户字段(userId),影片字段(film),影院字段(cinema),地址字段(address),地域地段(city)和时间字段(time)。将上述两个事件合并,则该观影提醒业务的字段集合包括:用户字段(userId), 用户信息字段(user),影片字段(film),影院字段(cinema),地址字段(address),类型字段(type)、级别字段(level)、地域字段(city)和时间字段(time);并且可依据时间字段设置输出时间条件,例如设置输出时间条件为提前一小时。依据该用户字段可获取用户信息,或者包含用户信息字段等,从而能够获取用户的手机号码、邮箱地址等,对应确定输出方式。
其中,在字段重复时,可将反馈的准确高的字段内容作为该字段集合的对应字段的字段内容,或者从事件中选出一个主事件,在字段重复时依据主事件返回的字段内容作为字段集合的对应字段的字段内容等,本申请实施例对此不做限制。
另一个可选实施例中,所述至少两个事件包括第一事件和第二事件;所述依据所述字段集合中的字段,确定所述输出条件和输出方式,包括:依据第一事件的字段,确定对应的第一输出条件和第一输出方式;依据所述第一输出方式和第二事件的字段,确定对应的第二输出条件和第二输出方式。在字段匹配的设置方式中,第二事件可依据第一事件执行,如第一事件执行完毕,该业务可控制执行第二事件,第二事件与第一事件中重复字段的字段内容相同等,如第一事件按照对应输出方式输出信息后,可得到成功、失败的输出结果,依据该输出结果触发第二事件的执行。
例如,观影事件包括如下字段:用户字段(userId),影片字段(film),影院字段(cinema),地址字段(address),地域地段(city)和时间字段(time);观影服务事件包括如下字段:用户字段(userId),服务内容(sever),影院字段(cinema),地址字段(address),地域地段(city)。将两个事件的多个字段进行匹配,得到的字段集合包括字段:用户字段(userId),影院字段(cinema),地址字段(address),地域地段(city)。则该观影提醒并预定业务的字段集合包括:用户字段(userId),影院字段(cinema),地址字段(address),地域地段(city),以及,影片字段(film)、时间字段(time)、服务内容(sever)。可将观影事件作为第一事件,观影服务事件作为第二事件,则依据第一事件的时间字段设置输出时间条件,例如设置输出时间条件为提前一小时。依据该用户字段可获取用户信息,或者包含用户信息字段等,从而能够获取用户的手机号码、邮箱地址等,对应确定输出方式,在达到提前一小时的时间时,按照该输出方式输出提醒信息,若提醒信息输出成功,可依据第一事件的字段配置第二事件的字段进行订购。
在另外一些示例中,第二事件也可不依据第一事件设置,而是依据第一事件对应输出结果触发。如上例中在观影事件提醒出发观影后,触发观影服务事件订购爆米花等。
本申请实施例中,在业务平台中可以提供执行引擎,该执行引擎可为业务提供运行 环境,业务平台的底层采用serverless架构(函数计算),并提供多语言规则表达式框架,支持将各个执行模块作为一个独立的单元去部署,管理和运维,支持按模块调配容量,提高可靠性和扩展性。如每个事件作为一个单元,每个业务作为一个单元,等各种划分方式进行事件、业务的管理和维护。
本申请实施例,在配置完成业务后,还可配置所述业务对应的脚本数据,生成所述业务的执行数据。其中,可依据业务配置对应的脚本数据,生成业务的规则脚本,从而得到该业务的执行流等执行数据,将执行数据托管到函数计算上,通过执行引擎支撑提醒业务场景运行。
一个示例中,业务平台的层级架构如图4所示。包括:基础服务层410、网关层420、引擎层430和设计层440。其中,基础服务层410连接各服务提供对象,给业务提供所需的基础数据。网关层420设置有API(Application Programming Interface,应用程序编程接口)网关,该API网关可提供各服务提供对象的接口,从而通过该接口可调用服务提供对象,获取相应的数据。本申请实施例中,可视化的业务配置界面可与API网关连接来获取数据。API网关能够提供针对各个服务提供对象的标准化的调用,降低耦合度。引擎层430用于支撑业务的执行,引擎层可包括执行引擎、函数计算模块、规则表达式框架等,其中,规则表达式框架可存储规则以及规则对应的脚本数据,从而通过规则表达式可将时间提供信息和对应的脚本数据生成相应的执行数据,然后将执行数据托管到函数计算模块上,通过场景执行引擎可实现业务的运行。设计层440包括服务连接模块,可以与用户设备进行连接,为用户设备提供数据服务。其中,引擎层还可包括事件引擎,通过API接口获取服务提供对象的数据,通过事件引擎可生成相应的事件,从而在创建业务时可基于事件创建。一个事件的多个字段的多个字段内容可来自一个或多个服务提供对象。
在一个示例中,通过与事件关联的业务配置界面,可选择业务对应的多个事件,获取该事件的多个字段,通过规则表达式框架组合得到业务的字段集合和行为信息等描述信息,并生成脚本数据,再将业务对应脚本数据配置的执行数据,托管到函数计算模块上,然后采用场景执行引擎执行函数计算模块上的执行数据,实现业务的运行,再通过服务提供对象的数据,得到事件对应事件对象后,可按照该事件对象对应设置相应的业务,从而得到该业务实例化的业务对象,如依据事件对应多个字段的第一字段内容,确定业务的字段集合中对应字段的第二字段内容,以及相应业务行为的执行条件、执行方式等业务内容,来为用户提供业务,通知用户相应的事件等。
在业务平台上构建各类业务后,可依据服务提供对象提供的数据,确定事件对应个字段的字段内容,从而得到业务对应的业务内容,依据业务内容为用户提供该业务的服务,实现对于用户的提醒、推送等数据服务。
参照图5,示出了本申请的一种业务处理方法实施例的步骤流程图。
步骤502,依据业务对应至少两个事件的第一字段内容,确定所述业务对应的业务内容。
步骤504,依据所述业务内容,向用户提供所述业务。
其中,所述第一字段内容包括所述事件对应多个字段的字段内容,所述第一字段内容依据服务提供对象的数据确定。
平台可通过接口获取服务提供对象提供的数据,从而依据所述服务提供对象对应接口的数据,确定所述事件中多个字段的第一字段内容。将各接口对应的数据,得到事件中各字段的字段内容,从而将一个数据类的事件实例化为一个事件对象,平台上可获取到多个事件的多种字段内容,从而针对业务对应的至少两个事件,获取每个事件对应的多个字段的第一字段内容。
例如,从气象服务获取气象灾害数据,则针对气象灾害事件可配置个字段的第一字段内容,如:type:台风;level:黄色;city:上海;time:2017-10-09。则依据字段内容获取到一个在2017-10-09上海发出台风黄色预警的事件。
获取到业务对应至少两个事件的第一字段内容,然后可依据各个事件的字段内容配置该业务,得到相应的业务内容。如按照事件对应的多个字段的第一字段内容,配置业务的业务集合中多个字段的第二字段内容等,以及确定该业务对应的执行条件、执行方式等业务内容。从而可基于该业务内容向用户提供该业务,如提醒用户观影并携带雨具。
一个可选实施例中,所述业务内容包括:字段集合和执行信息;所述依据业务对应至少两个事件的第一字段内容,确定所述业务对应的业务内容,包括:依据所述业务对应至少两个事件的第一字段内容,确定所述业务对应字段集合中多个字段的第二字段内容;依据所述第二字段内容,确定所述业务对应的执行信息,所述执行信息用于向用户输出所述业务。
可以将业务对应各事件的字段集合得到该业务的字段集合,从而该事件对应字段的第一字段内容,可对应确定字段集合中字段的第二字段内容。执行信息可理解为上述实施例中行为信息赋值后的内容,则可以字段集合中指定字段的第二字段内容,可配置该业务的行为信息,如指定的执行时间,针对指定手机号发出短消息等。其中,执行信息 包括:执行条件、执行方式和输出内容,执行条件可理解为赋值后的输出条件,如输出条件为提前一小时,依据时间字段的第二字段内容为2017-10-09 19:00,则可设置执行条件为2017-10-09 18:00。又如输出方式为短消息方式,则可从用户信息字段获取第二字段内容确定用户的手机号码为XXX,则执行方式可为向手机号码发送短消息等,输出内容可依据第二字段内容确定,如时间、地点、事情等内容。
从而可在判断所述执行条件满足后,按照所述执行方式,发送所述输出内容给对应的用户。本申请实施例中,所述输出方式包括以下至少一种:提醒方式、推送方式、通知方式。如通过短消息、邮件等方式提醒,又如通过消息推送等方式推送给用户,又如通过系统消息等通知方式通知用户。
本申请另外一些实施例中,依据所述输出内容对应的输出结果,对所述业务对应事件的服务提供对象进行反馈。业务中的各事件可彼此关联,从而该业务可基于第一事件确定第一执行信息,从而在满足相应第一执行条件后,按照第一执行方式输出第一输出内容,得到返回的输出结果,如提醒成功与否等,然后依据该输出结果,可确定第二事件对应各字段的字段内容,以及针对第二事件的第二执行信息,从而在满足相应第二执行条件后,按照第二执行方式输出第二输出内容。如可将观影事件作为第一事件,观影服务事件作为第二事件,则依据第一事件的时间字段设置输出时间条件,例如设置输出时间条件为提前一小时。依据该用户字段可获取用户信息,或者包含用户信息字段等,从而能够获取用户的手机号码、邮箱地址等,对应确定输出方式,在达到提前一小时的时间时,输出提醒信息,若提醒信息输出成功,可依据第一事件的通知成功的结果,执行第二事件对应的订购操作,在提醒用户观影后帮用户订购爆米花、饮料等商品。
基于上述业务创建过程中观影提醒业务的示例,如图6所示的业务处理示意图中。平台获取到观影事件的观影事件对象A,气象灾害事件的气象灾害事件对象B和气象灾害事件对象C,其中:
观影事件对象A包括如下第一字段内容:用户字段(userId):1001,用户信息字段(user):13XXXXX,影片字段(film):AAA,影院字段(cinema):XX电影院,地址字段(address):X路123号,地域地段(city):北京和时间字段(time):2017-10-0919:00。
气象灾害事件对象B包括如下第一字段内容:类型字段(type):台风,级别字段(level):黄色,地域字段(city):上海,时间字段(time):2017-10-09。
气象灾害事件对象C包括如下第一字段内容:类型字段(type):沙尘暴,级别字 段(level):黄色,地域字段(city):北京,时间字段(time):2017-10-09。
从而对于观影提醒业务,可基于匹配的字段确定一个观影提醒业务对象,本示例中,观影事件对象A和气象灾害事件对象C的时间字段和地域字段匹配,从而可得到如下业务内容。
其中,字段集合如下字段和第二字段内容:用户字段(userId):1001,用户信息字段(user):13XXXXX,影片字段(film):AAA,影院字段(cinema):XX电影院,地址字段(address):X路123号,地域地段(city):北京和时间字段(time):2017-10-0919:00,类型字段(type):沙尘暴,级别字段(level):黄色。
业务的执行信息如下:执行条件依据时间字段的第二字段内容设置为2017-10-0918:00,执行方式为短消息,依据用户信息字段的第二字段内容确定该短消息的接收方手机号码为:13XXXXX。
输出信息可依据字段集合中的字段内容确定,如“您订购了今天19:00在XX电影院的电影AAA,请您注意出发时间,今天北京有沙尘暴黄色预警,请您注意防范。”
从而可基于至少两个事件各自对应的多个字段的第一字段内容,得到业务的业务内容,从而对相应的用户提醒、推送等业务处理。
本申请实施例中,平台可以缓存各事件对应多个字段的多个字段内容,并设置各字段内容的缓存有效时间,从而在有效时间内,事件的字段内容可应用于对应事件的各种业务中,提高事件的复用性,在超出有效时间后,可从缓存中删除该超期的字段内容,保证事件和业务的时效性。
参照图7,示出了本申请另一种提供业务的方法实施例的步骤流程图。
步骤702,依据所述服务提供对象对应的接口,确定对应的一个或多个字段;依据多个字段,生成对应的事件。
业务平台接入服务提供对象,可提供统一调用的接口,从而通过该接口获取服务提供对象的数据,基于接口确定对应输出数据的一种或多种类型,然后可结合各类型的数据确定事件,并确定该事件对应的一个或多个字段,来描述该事件。
步骤704,在业务配置界面中显示事件的可视化节点;依据选择指示,确定至少两个可视化节点,以及所述两个可视化节点对应的事件。
步骤706,确定所述业务的业务标识。
步骤708,对所述至少两个事件的对应的多个字段进行组合,得到所述业务的字段集合和行为信息。
可将选择的各事件对应多个字段进行组合,如将两个或更多事件的多个字段进行合并,从而得到属于不同的事件的字段构成该业务的字段集合,来描述该业务的状态。还可为该业务配置业务标识,从而通过业务标识唯一标示一个业务,以及依据字段结合汇总的字段配置该业务的行为信息,其中,行为信息可描述业务的行为,如业务行为的执行判断、行为的执行方式等。其中,所述行为信息包括:输出条件和输出方式;所述输出条件用于所述业务的行为的执行判断;所述输出方式用于输出所述业务的行为。
一个示例中,所述对所述至少两个事件的对应的多个字段进行组合,得到所述业务的字段集合和输出信息,包括:合并所述至少两个事件的多个字段,并去除重复的字段,得到所述业务的字段集合;依据所述字段集合中的字段,确定所述输出条件和输出方式。
另一个示例中,所述至少两个事件包括第一事件和第二事件;所述依据所述字段集合中的字段,确定所述输出条件和输出方式,包括:依据第一事件的字段,确定对应的第一输出条件和第一输出方式;依据所述第一输出方式和第二事件的字段,确定对应的第二输出条件和第二输出方式。
在配置完成业务后,还可配置所述业务对应的脚本数据,生成所述业务的执行数据。其中,可依据业务配置对应的脚本数据,生成业务的规则脚本,从而得到该业务的执行流等执行数据,将执行数据托管到函数计算上,通过执行引擎支撑提醒业务场景运行。
平台可提供事件的多个字段,其中,所述多个字段用于描述所述事件,所述字段的字段内容依据服务提供对象的数据确定,从而能够基于多种服务提供对象提供的数据确定各种事件,然后可确定业务所需的至少两个事件,并获取所述至少两个事件对应的多个字段,将所述至少两个事件对应的多个字段进行组合,生成对应的业务,灵活的基于事件构建业务,事件的复用性较高
参照图8,示出了本申请另一种业务处理方法实施例的步骤流程图。
步骤802,依据所述服务提供对象对应接口的数据,确定所述事件中多个字段的第一字段内容。
将各接口对应的数据,得到事件中各字段的字段内容,从而将一个数据类的事件实例化为一个事件对象,平台上可获取到多个事件的多种字段内容,从而针对业务对应的至少两个事件,获取每个事件对应的多个字段的第一字段内容。
步骤804,依据所述业务对应至少两个事件的第一字段内容,确定所述业务对应字段集合中多个字段的第二字段内容。
步骤806,依据所述第二字段内容,确定所述业务对应的执行信息,所述执行信息 用于向用户输出所述业务。
可以将业务对应各事件的字段集合得到该业务的字段集合,从而该事件对应字段的第一字段内容,可对应确定字段集合中字段的第二字段内容。执行信息可理解为上述实施例中行为信息赋值后的内容,则可以字段集合中指定字段的第二字段内容,可配置该业务的行为信息,如指定的执行时间,针对指定手机号发出短消息等。其中,执行信息包括:执行条件、执行方式和输出内容,执行条件可理解为赋值后的输出条件,如输出条件为提前一小时,依据时间字段的第二字段内容为2017-10-09 19:00,则可设置执行条件为2017-10-09 18:00。又如输出方式为短消息方式,则可从用户信息字段获取第二字段内容确定用户的手机号码为XXX,则执行方式可为向手机号码发送短消息等,输出内容可依据第二字段内容确定,如时间、地点、事情等内容。
步骤808,判断执行条件是否满足。若是,执行步骤810,若否,返回步骤808继续判断。
步骤810,按照所述执行方式,发送所述输出内容给对应的用户。
从而可在判断所述执行条件满足后,按照所述执行方式,发送所述输出内容给对应的用户
本申请另外一些实施例中,依据所述输出内容对应的输出结果,对所述业务对应事件的服务提供对象进行反馈。业务中的各事件可彼此关联,从而该业务可基于第一事件确定第一执行信息,从而在满足相应第一执行条件后,按照第一执行方式输出第一输出内容,得到返回的输出结果,如提醒成功与否等,然后依据该输出结果,可确定第二事件对应各字段的字段内容,以及针对第二事件的第二执行信息,从而在满足相应第二执行条件后,按照第二执行方式输出第二输出内容。
从而能够基于平台提供的事件创建各种业务,依据服务提供对象的数据确定事件的字段内容,然后依据该事件的字段内容得到业务的业务信息,为用户提供提醒、推送等服务。从而通过平台可灵活的构建各种业务,平台中的事件具有较高的复用性。
在本申请一个实施例中,平台也可将事件对应的调用接口提供给终端设备的操作系统,从而可以在操作系统中可通过调用接口获取事件,执行上述业务创建的步骤流程,以及接收到事件对象后,进行相应业务输出的步骤流程。其中,针对操作系统进行事件和业务监听时,可向平台订阅相应的事件,来针对性的获取事件对象,如基于用户等订阅事件,并进行业务输出。
如上述图5、8对应的实施例中,操作系统可通过接口从平台获取事件的第一字段内 容,该事件的第一字段内容可与操作系统对应设备、用户相关的字段内容,如依据手机号码、用户标识等确定关联关系,然后可在操作系统中依据至少两个事件的第一字段内容确定业务的业务信息,然后通过系统通知、推送消息等方式通知用户,从而给用户提供各种业务服务。
本申请实施例,通过业务平台对接服务提供对象,对该服务提供对象提供统一、标准的接口,并提供基于服务提供对象的数据构建的事件,从而业务的创建者可基于平台提供的事件创建各种业务,业务的灵活性较高。对于业务创建者而言,无需关注事件对应的事件数据源,也就是无需关注事件由哪个服务提供对象提供数据,从而无需关注服务提供对象的编程语言、通信协议等,直接使用平台提供的事件即可创建业务。而对于提醒、推送的用户而言,无需关注业务的创建者,以及服务提供对象,就可获取所需各种业务的提醒、推送等内容。
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请实施例并不受所描述的动作顺序的限制,因为依据本申请实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本申请实施例所必须的。
在上述实施例的基础上,本实施例还提供了一种提供业务的装置,可以应用于业务平台的服务器、用户设备等电子设备中。
参照图9,示出了本申请的一种提供业务的装置实施例的结构框图,具体可以包括如下模块:
事件提供模块902,用于提供事件的多个字段,其中,所述多个字段用于描述所述事件,所述字段的字段内容依据服务提供对象的数据确定。
事件确定模块904,用于确定业务所需的至少两个事件,并获取所述至少两个事件对应的多个字段。
业务生成模块906,用于将所述至少两个事件对应的多个字段进行组合,生成对应的业务。
综上,平台可提供事件的多个字段,其中,所述多个字段用于描述所述事件,所述字段的字段内容依据服务提供对象的数据确定,从而能够基于多种服务提供对象提供的数据确定各种事件,然后可确定业务所需的至少两个事件,并获取所述至少两个事件对应的多个字段,将所述至少两个事件对应的多个字段进行组合,生成对应的业务,灵活 的基于事件构建业务,事件的复用性较高。
参照图10,示出了本申请的另一种提供业务的装置实施例的结构框图,具体可以包括如下模块:
事件生成模块908,用于依据所述服务提供对象对应的接口,确定对应的一个或多个字段;依据多个字段,生成对应的事件。
事件提供模块902,用于提供事件的多个字段,其中,所述多个字段用于描述所述事件,所述字段的字段内容依据服务提供对象的数据确定。
事件确定模块904,用于确定业务所需的至少两个事件,并获取所述至少两个事件对应的多个字段。
业务生成模块906,用于业务将所述至少两个事件对应的多个字段进行组合,生成对应的业务。
所述业务生成模块906,用于对所述至少两个事件的对应的多个字段进行组合,得到所述业务的字段集合和行为信息,其中,所述字段集合包括多个字段,所述字段集合用于描述所述业务的状态,所述行为信息用于描述所述业务的行为。
所述行为信息包括:输出条件和输出方式;所述输出条件用于所述业务的行为的执行判断;所述输出方式用于输出所述业务的行为。
所述业务生成模块906,包括:字段合并子模块9062和行为确定子模块9064,其中:
字段合并子模块9062,用户合并所述至少两个事件的多个字段,并去除重复的字段,得到所述业务的字段集合;
行为确定子模块9064,用于依据所述字段集合中的字段,确定所述输出条件和输出方式。
所述至少两个事件包括第一事件和第二事件,所述行为确定子模块9064,用于依据第一事件的字段,确定对应的第一输出条件和第一输出方式;依据所述第一输出方式和第二事件的字段,确定对应的第二输出条件和第二输出方式。
所述事件确定模块904,用于在业务配置界面中显示事件的可视化节点;依据选择指示,确定至少两个可视化节点,以及所述两个可视化节点对应的事件。
所述事件的类别包括以下至少一种:气象类、票务类、电商类、定位类。
在上述实施例的基础上,本实施例还提供了一种业务处理装置,可以应用于业务平台的服务器、用户设备等电子设备中。
参照图11,示出了本申请的一种业务处理装置实施例的结构框图,具体可以包括如 下模块:
业务确定模块1102,用于依据业务对应至少两个事件的第一字段内容,确定所述业务对应的业务内容;其中,所述第一字段内容包括所述事件对应多个字段的字段内容,所述第一字段内容依据服务提供对象的数据确定。
业务执行模块1104,用于依据所述业务内容,向用户提供所述业务。
参照图12,示出了本申请的另一种业务处理装置实施例的结构框图,具体可以包括如下模块:
字段获取模块1106,用于依据所述服务提供对象对应接口的数据,确定所述事件中多个字段的第一字段内容。
业务确定模块1102,用于依据业务对应至少两个事件的第一字段内容,确定所述业务对应的业务内容。
业务执行模块1104,用于依据所述业务内容,向用户提供所述业务。
其中,所述第一字段内容包括所述事件对应多个字段的字段内容,所述第一字段内容依据服务提供对象的数据确定。所述业务内容包括:字段集合和执行信息。所述执行信息包括:执行条件、执行方式和输出内容。述执行方式包括以下至少一种:提醒方式、推送方式、通知方式。
所述业务确定模块1102,用于依据所述业务对应至少两个事件的第一字段内容,确定所述业务对应字段集合中多个字段的第二字段内容;依据所述第二字段内容,确定所述业务对应的执行信息,所述执行信息用于向用户输出所述业务。
所述业务执行模块1104,用于判断所述执行条件满足后,按照所述执行方式,发送所述输出内容给对应的用户。
所述业务执行模块1104,还用于依据所述输出内容对应的输出结果,对所述业务对应事件的服务提供对象进行反馈。
本申请实施例,通过业务平台对接服务提供对象,对该服务提供对象提供统一、标准的接口,并提供基于服务提供对象的数据构建的事件,从而业务的创建者可基于平台提供的事件创建各种业务,业务的灵活性较高。对于业务创建者而言,无需关注事件对应的事件数据源,也就是无需关注事件由哪个服务提供对象提供数据,从而无需关注服务提供对象的编程语言、通信协议等,直接使用平台提供的事件即可创建业务。而对于提醒、推送的用户而言,无需关注业务的创建者,以及服务提供对象,就可获取所需各种业务的提醒、推送等内容。
本申请实施例还提供了一种非易失性可读存储介质,该存储介质中存储有一个或多个模块(programs),该一个或多个模块被应用在终端设备时,可以使得该终端设备执行本申请实施例中各方法步骤的指令(instructions)。
本申请实施例提供了一个或多个机器可读介质,其上存储有可执行代码,当所述可执行代码被执行时,使得处理器执行如本申请实施例中一个或多个所述的数据处理方法。其中,所述电子设备包括终端设备、服务器(集群)等设备。本申请实施例中,终端设备指的是具有终端操作系统的设备,这些设备可支持音频、视频、数据等方面的功能,包括移动终端如智能手机、平板电脑、可穿戴设备,也可以是智能电视、个人计算机等设备。操作系统如AliOS、iOS、Android、Windows等。
图13为本申请一实施例提供的电子设备的硬件结构示意图,该电子设备可包括终端设备、服务器(集群)等设备。如图13所示,该电子设备可以包括输入设备130、处理器131、输出设备132、存储器133和至少一个通信总线134。通信总线134用于实现元件之间的通信连接。存储器133可能包含高速RAM(Random Access Memory,随机存取存储器),也可能还包括非易失性存储NVM(Non-Volatile Memory),例如至少一个磁盘存储器,存储器133中可以存储各种程序,用于完成各种处理功能以及实现本实施例的方法步骤。
可选的,上述处理器131例如可以为中央处理器(Central Processing Unit,简称CPU)、应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,该处理器131通过有线或无线连接耦合到上述输入设备130和输出设备132。
可选的,上述输入设备130可以包括多种输入设备,例如可以包括面向用户的用户接口、面向设备的设备接口、软件的可编程接口、摄像头、传感器中至少一种。可选的,该面向设备的设备接口可以是用于设备与设备之间进行数据传输的有线接口、还可以是用于设备与设备之间进行数据传输的硬件插入接口(例如USB接口、串口等);可选的,该面向用户的用户接口例如可以是面向用户的控制按键、用于接收语音输入的语音输入设备以及用户接收用户触摸输入的触摸感知设备(例如具有触摸感应功能的触摸屏、触控板等);可选的,上述软件的可编程接口例如可以是供用户编辑或者修改程序的入口,例如芯片的输入引脚接口或者输入接口等;可选的,上述收发信机可以是具有通信功能的射频收发芯片、基带处理芯片以及收发天线等。麦克风等音频输入设备可以接收语音 数据。输出设备132可以包括显示器、音响等输出设备。
在本实施例中,该设备的处理器包括用于执行各电子设备中网络管理装置各模块的功能,具体功能和技术效果参照上述实施例即可,此处不再赘述。
图14为本申请另一实施例提供的电子设备的硬件结构示意图。图14是对图13在实现过程中的一个具体的实施例。如图14所示,本实施例的电子设备包括处理器141以及存储器142。
处理器141执行存储器142所存放的计算机程序代码,实现上述实施例中图1至图8的提供业务的方法以及业务处理方法。
存储器142被配置为存储各种类型的数据以支持在电子设备的操作。这些数据的示例包括用于在电子设备上操作的任何应用程序或方法的指令,例如消息,图片,视频等。存储器142可能包含随机存取存储器RAM,也可能还包括非易失性存储器NVM,例如至少一个磁盘存储器。
可选地,处理器141设置在处理组件140中。该电子设备还可以包括:通信组件143,电源组件144,多媒体组件145,音频组件146,输入/输出接口147和/或传感器组件148。设备具体所包含的组件等依据实际需求设定,本实施例对此不作限定。
处理组件140通常控制设备的整体操作。处理组件140可以包括一个或多个处理器141来执行指令,以完成上述图1至图8方法的全部或部分步骤。此外,处理组件140可以包括一个或多个模块,便于处理组件140和其他组件之间的交互。例如,处理组件140可以包括多媒体模块,以方便多媒体组件145和处理组件140之间的交互。
电源组件144为设备的各种组件提供电力。电源组件144可以包括电源管理系统,一个或多个电源,及其他与为电子设备生成、管理和分配电力相关联的组件。
多媒体组件145包括在设备和用户之间的提供一个输出接口的显示屏。在一些实施例中,显示屏可以包括液晶显示器(LCD)和触摸面板(TP)。如果显示屏包括触摸面板,显示屏可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。
音频组件146被配置为输出和/或输入音频信号。例如,音频组件146包括一个麦克风(MIC),当设备处于操作模式,如语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器142或经由通信组件143发送。在一些实施例中,音频组件146还包括一个扬声器,用于输出音频信号。
输入/输出接口147为处理组件140和外围接口模块之间提供接口,上述外围接口模块可以是点击轮,按钮等。这些按钮可包括但不限于:音量按钮、启动按钮和锁定按钮。
传感器组件148包括一个或多个传感器,用于为设备提供各个方面的状态评估。例如,传感器组件148可以检测到设备的打开/关闭状态,组件的相对定位,用户与设备接触的存在或不存在。传感器组件148可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在,包括检测用户与设备间的距离。在一些实施例中,该传感器组件148还可以包括摄像头等。
通信组件143被配置为便于电子设备和其他电子设备之间有线或无线方式的通信。电子设备可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个实施例中,该电子设备中可以包括SIM卡插槽,该SIM卡插槽用于插入SIM卡,使得设备可以登录GPRS网络,通过互联网与服务器建立通信。
由上可知,在图14实施例中所涉及的通信组件143、音频组件146以及输入/输出接口147、传感器组件148均可以作为图13实施例中的输入设备的实现方式。
本申请实施例提供了一种电子设备,包括:处理器;和存储器,其上存储有可执行代码,当所述可执行代码被执行时,使得所述处理器执行如本申请实施例中一个或多个所述的数据处理方法。
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。
本领域内的技术人员应明白,本申请实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本申请实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请实施例是参照根据本申请实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设 备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本申请实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请实施例范围的所有变更和修改。
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。
以上对本申请所提供的一种提供业务的方法和装置,一种业务处理方法和装置,一种电子设备以及一种机器可读介质,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种提供业务的方法,其特征在于,包括:
    提供事件的多个字段,其中,所述多个字段用于描述所述事件,所述字段的字段内容依据服务提供对象的数据确定;
    确定业务所需的至少两个事件,并获取所述至少两个事件对应的多个字段;
    将所述至少两个事件对应的多个字段进行组合,生成对应的业务。
  2. 根据权利要求1所述的方法,其特征在于,还包括:
    依据所述服务提供对象对应的接口,确定对应的一个或多个字段;
    依据多个字段,生成对应的事件。
  3. 根据权利要求1所述的方法,其特征在于,所述将所述至少两个事件对应的多个字段进行组合,确定所述业务,包括:
    对所述至少两个事件的对应的多个字段进行组合,得到所述业务的字段集合和行为信息,其中,所述字段集合包括多个字段,所述字段集合用于描述所述业务的状态,所述行为信息用于描述所述业务的行为。
  4. 根据权利要求3所述的方法,其特征在于,所述行为信息包括:输出条件和输出方式;所述输出条件用于所述业务的行为的执行判断;所述输出方式用于输出所述业务的行为。
  5. 根据权利要求4所述的方法,其特征在于,所述对所述至少两个事件的对应的多个字段进行组合,得到所述业务的字段集合和输出信息,包括:
    合并所述至少两个事件的多个字段,并去除重复的字段,得到所述业务的字段集合;
    依据所述字段集合中的字段,确定所述输出条件和输出方式。
  6. 根据权利要求5所述的方法,其特征在于,所述至少两个事件包括第一事件和第二事件;所述依据所述字段集合中的字段,确定所述输出条件和输出方式,包括:
    依据第一事件的字段,确定对应的第一输出条件和第一输出方式;
    依据所述第一输出方式和第二事件的字段,确定对应的第二输出条件和第二输出方式。
  7. 根据权利要求1所述的方法,其特征在于,所述确定业务所需的至少两个事件,包括:
    在业务配置界面中显示事件的可视化节点;
    依据选择指示,确定至少两个可视化节点,以及所述两个可视化节点对应的事件。
  8. 根据权利要求1-7任一所述的方法,其特征在于,所述事件的类别包括以下至少一种:气象类、票务类、电商类、定位类。
  9. 一种业务处理方法,其特征在于,包括:
    依据业务对应至少两个事件的第一字段内容,确定所述业务对应的业务内容;其中,所述第一字段内容包括所述事件对应多个字段的字段内容,所述第一字段内容依据服务提供对象的数据确定;
    依据所述业务内容,向用户提供所述业务。
  10. 根据权利要求9所述的方法,其特征在于,还包括:
    依据所述服务提供对象对应接口的数据,确定所述事件中多个字段的第一字段内容。
  11. 根据权利要求9所述的方法,其特征在于,所述业务内容包括:字段集合和执行信息;所述依据业务对应至少两个事件的第一字段内容,确定所述业务对应的业务内容,包括:
    依据所述业务对应至少两个事件的第一字段内容,确定所述业务对应字段集合中多个字段的第二字段内容;
    依据所述第二字段内容,确定所述业务对应的执行信息,所述执行信息用于向用户输出所述业务。
  12. 根据权利要求11所述的方法,其特征在于,所述执行信息包括:执行条件、执行方式和输出内容,所述依据所述业务内容,向用户提供所述业务,包括:
    判断所述执行条件满足后,按照所述执行方式,发送所述输出内容给对应的用户。
  13. 根据权利要求11所述的方法,其特征在于,还包括:
    依据所述输出内容对应的输出结果,对所述业务对应事件的服务提供对象进行反馈。
  14. 根据权利要求12所述的方法,其特征在于,所述执行方式包括以下至少一种:提醒方式、推送方式、通知方式。
  15. 一种提供业务的装置,其特征在于,包括:
    事件提供模块,用于提供事件的多个字段,其中,所述多个字段用于描述所述事件,所述字段的字段内容依据服务提供对象的数据确定;
    事件确定模块,用于确定业务所需的至少两个事件,并获取所述至少两个事件对应的多个字段;
    业务生成模块,用于业务将所述至少两个事件对应的多个字段进行组合,生成对应的业务。
  16. 一种业务处理装置,其特征在于,包括:
    业务确定模块,用于依据业务对应至少两个事件的第一字段内容,确定所述业务对应的业务内容;其中,所述第一字段内容包括所述事件对应多个字段的字段内容,所述第一字段内容依据服务提供对象的数据确定;
    业务执行模块,用于依据所述业务内容,向用户提供所述业务。
  17. 一种电子设备,其特征在于,包括:处理器;和
    存储器,其上存储有可执行代码,当所述可执行代码被执行时,使得所述处理器执行如权利要求1-8中一个或多个所述的提供业务的方法。
  18. 一个或多个机器可读介质,其上存储有可执行代码,当所述可执行代码被执行时,使得处理器执行如权利要求1-8中一个或多个所述的提供业务的方法。
  19. 一种电子设备,其特征在于,包括:处理器;和
    存储器,其上存储有可执行代码,当所述可执行代码被执行时,使得所述处理器执行如权利要求9-14中一个或多个所述的业务处理方法。
  20. 一个或多个机器可读介质,其上存储有可执行代码,当所述可执行代码被执行时,使得处理器执行如权利要求9-14中一个或多个所述的业务处理方法。
PCT/CN2019/101911 2018-08-31 2019-08-22 提供业务、业务处理方法、装置、电子设备和介质 WO2020042991A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811014366.9A CN110874711A (zh) 2018-08-31 2018-08-31 提供业务、业务处理方法、装置、电子设备和介质
CN201811014366.9 2018-08-31

Publications (1)

Publication Number Publication Date
WO2020042991A1 true WO2020042991A1 (zh) 2020-03-05

Family

ID=69643897

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/101911 WO2020042991A1 (zh) 2018-08-31 2019-08-22 提供业务、业务处理方法、装置、电子设备和介质

Country Status (3)

Country Link
CN (1) CN110874711A (zh)
TW (1) TW202025018A (zh)
WO (1) WO2020042991A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064726A (zh) * 2011-10-19 2013-04-24 腾讯科技(深圳)有限公司 一种实现事件服务的方法及装置
US20150281320A1 (en) * 2014-03-31 2015-10-01 Alibaba Group Holding Limited Method and system for providing internet application services
CN106603601A (zh) * 2015-10-15 2017-04-26 阿里巴巴集团控股有限公司 服务处理方法、装置、系统及终端设备
CN107786659A (zh) * 2017-10-27 2018-03-09 中航信移动科技有限公司 服务展示方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064726A (zh) * 2011-10-19 2013-04-24 腾讯科技(深圳)有限公司 一种实现事件服务的方法及装置
US20150281320A1 (en) * 2014-03-31 2015-10-01 Alibaba Group Holding Limited Method and system for providing internet application services
CN106603601A (zh) * 2015-10-15 2017-04-26 阿里巴巴集团控股有限公司 服务处理方法、装置、系统及终端设备
CN107786659A (zh) * 2017-10-27 2018-03-09 中航信移动科技有限公司 服务展示方法和装置

Also Published As

Publication number Publication date
TW202025018A (zh) 2020-07-01
CN110874711A (zh) 2020-03-10

Similar Documents

Publication Publication Date Title
US11803819B2 (en) System and method of providing to-do list of user
WO2018099319A1 (zh) 信息展示方法及装置
WO2017092244A1 (zh) 信息处理方法、客户端和计算机存储介质
CN107967154B (zh) 提醒事项生成方法及装置
EP3726376B1 (en) Program orchestration method and electronic device
CN105787776A (zh) 信息处理方法及装置
TW201814545A (zh) 多服務集成方法、裝置、智慧型終端、伺服器和操作系統
US10931783B2 (en) Targeted profile picture selection
CN111597467A (zh) 展示方法、装置和电子设备
US10798460B2 (en) Device and method for crowd-sourcing movie screenings
CN110990090A (zh) 动态壁纸显示方法、设备以及计算机可读介质
CN104616143A (zh) 社交应用中虚拟票据转移方法及装置
CN114840163A (zh) 互动信息的显示方法、装置及设备
CN115037709A (zh) 信息处理方法、装置、电子设备和存储介质
CN115022269A (zh) 一种消息处理方法、装置、设备及介质
CN109768910B (zh) 信息处理方法、相关装置、设备和系统
CN110929132B (zh) 信息交互方法、装置、电子设备及计算机可读存储介质
WO2020042991A1 (zh) 提供业务、业务处理方法、装置、电子设备和介质
CN111641693A (zh) 会话数据处理方法、装置及电子设备
JP2024500300A (ja) 情報インタラクション方法、装置、及び機器
CN108139919B (zh) 外部进程用户界面隔离和监测
CN115379005A (zh) 一种消息处理方法、装置、存储介质及电子设备
CN114371895A (zh) 一种终端设备、邮件标记方法和存储介质
CN113114849A (zh) 闹钟提醒方法、装置、存储介质以及终端
US10645052B2 (en) Service integration into electronic mail inbox

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19855544

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19855544

Country of ref document: EP

Kind code of ref document: A1