Service logic implementation method and device
A technology of business logic and implementation method, applied in the direction of program control device, program loading/starting, etc., can solve the problem of consuming processing resources of mobile terminal equipment
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0023] The embodiment of the present application provides a method for implementing business logic, which is used to solve the problem in the prior art that a large amount of processing resources of the mobile terminal device may be consumed in order to enable the client to implement the business logic.
[0024] The implementation method of the business logic provided by the embodiment of the present application may be executed by, but not limited to, a mobile phone, a tablet computer, a personal computer (Personal Computer, PC), a smart TV, and a client (Client) installed on any terminal device. The client described here may be a life service application, an instant messaging application, a social networking application, a shopping application, and the like. It should be noted that the life service applications here may be applications related to the user's daily life (such as clothing, food, housing, transportation, and play) and daily services. For example, life service app...
Embodiment 2
[0086] The embodiment of the present application is a method for implementing business logic, which is used to solve the problem in the prior art that a large amount of processing resources of a mobile device may be consumed in order for a client to implement business logic. The specific implementation flow diagram of this method is as follows: figure 2 As shown, it mainly includes the following steps:
[0087] Step 21, the server issues business rules to the client;
[0088] When starting the client, the client requests the server to send business rules by initiating a HyperText Transfer Protocol (HTTP) request to the server, and the server sends the business rules to the client in response to the request.
[0089] Step 22, the client judges whether the received business rule is described by JS code;
[0090] When the judgment result is yes, then perform step 23;
[0091] When the judgment result is no, if it is assumed that the business rules are described by DSL codes, us...
Embodiment 3
[0108] This embodiment provides an apparatus for implementing service logic, which is used to solve the problem in the prior art that a large amount of processing resources of the mobile terminal device may be consumed in order to enable the client to implement the service logic. The specific implementation structure diagram of the device is as follows: image 3 As shown, a business rule search unit 31 and a business rule execution unit 32 are included.
[0109] Wherein, the business rule search unit 31 is configured to, when an event is detected, search the stored business rules for a business rule that can be triggered by the event according to the event; wherein the business rule is used to realize the Executable files that have business logic and are independent of the installation package of the client;
[0110] The business rule executing unit 32 is configured to execute the found business rule.
[0111] In one embodiment, the business rule execution unit 32 is configu...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


