CN111782243A - Service execution method and device of application program and electronic equipment - Google Patents

Service execution method and device of application program and electronic equipment Download PDF

Info

Publication number
CN111782243A
CN111782243A CN202010608861.3A CN202010608861A CN111782243A CN 111782243 A CN111782243 A CN 111782243A CN 202010608861 A CN202010608861 A CN 202010608861A CN 111782243 A CN111782243 A CN 111782243A
Authority
CN
China
Prior art keywords
service
service decision
information
decision
module
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
Application number
CN202010608861.3A
Other languages
Chinese (zh)
Inventor
朱培宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Baoqu Technology Co Ltd
Original Assignee
Zhuhai Baoqu Technology Co Ltd
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 Zhuhai Baoqu Technology Co Ltd filed Critical Zhuhai Baoqu Technology Co Ltd
Priority to CN202010608861.3A priority Critical patent/CN111782243A/en
Publication of CN111782243A publication Critical patent/CN111782243A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting

Abstract

The embodiment of the invention discloses a service execution method and device of an application program and electronic equipment, relates to the technical field of computers, and aims to improve the efficiency of application program development. The method comprises the following steps: loading service decision condition configuration information; analyzing the service decision condition configuration information to obtain analyzed service decision information, wherein the analyzed service decision information comprises a service decision and a corresponding service decision condition; initiating a service decision query request according to a service module, querying analyzed service decision information, and acquiring service decision information corresponding to the service decision query request; judging whether the current operating environment meets the service decision condition in the service decision information, and if the current operating environment meets the service decision condition in the service decision information, returning the service decision information in the service decision information to the service module; and executing the service decision according to the service decision information in the service decision information. The invention is suitable for service execution.

Description

Service execution method and device of application program and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for executing a service of an application program, an electronic device, and a readable storage medium.
Background
With the development of computer communication and internet technologies, more and more people have electronic devices capable of networking with the internet, in order to meet the requirements of users, various application programs are installed and run on the electronic devices, and the installation of the application programs and the execution of services in the application programs (service decisions) are related to the performance, network state and other running environments of the electronic devices.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for executing a service of an application program, an electronic device, and a readable storage medium, which can improve development efficiency of the application program.
In a first aspect, an embodiment of the present invention provides a method for executing a service of an application program, where the method includes: loading service decision condition configuration information, wherein the service decision condition configuration information comprises a service decision and a corresponding service decision condition; analyzing the service decision condition configuration information to obtain analyzed service decision information, wherein the analyzed service decision information comprises an analyzed service decision and a corresponding service decision condition; receiving a service decision query request initiated by a service module; inquiring the analyzed service decision information according to the service decision inquiry request to acquire service decision information corresponding to the service decision inquiry request; judging whether the current operating environment meets the service decision condition in the service decision information, and if the current operating environment meets the service decision condition in the service decision information, returning a service decision message in the service decision information to the service module; and executing the service according to the service decision information in the service decision information.
According to a specific implementation manner of the embodiment of the present invention, the service decision condition includes: device performance conditions, network conditions, and/or user operating conditions.
According to a specific implementation manner of the embodiment of the present invention, after analyzing the service execution condition configuration information to obtain analyzed service decision information, the method further includes: and classifying the analyzed service decision information to obtain different types of analyzed service decision information.
According to a specific implementation manner of the embodiment of the present invention, the method further includes: judging whether the current operation environment meets the service decision condition in the service decision information, if the current operation environment does not meet the service decision condition in the service decision information, returning a first service decision message to the service module, wherein the first service decision is opposite to the service decision in the service decision information; and executing the service according to the first service decision message.
According to a specific implementation manner of the embodiment of the present invention, the method further includes: acquiring updated service decision condition configuration information; and updating the service decision condition configuration information by using the updated service decision condition configuration information.
In a second aspect, an embodiment of the present invention provides a service execution apparatus for an application program, including: the system comprises a loading module, an analysis module, a receiving module, an inquiry module, a return module and an execution module, wherein the loading module is used for loading business decision condition configuration information, and the business decision condition configuration information comprises a business decision and a corresponding business decision condition; the analysis module is used for analyzing the service decision condition configuration information to obtain analyzed service decision information, wherein the analyzed service decision information comprises an analyzed service decision and a corresponding service decision condition; the receiving module is used for receiving a service decision query request initiated by the service module; the query module is used for querying the analyzed service decision information according to the service decision query request and acquiring the service decision information corresponding to the service decision query request; a returning module, configured to determine whether a current operating environment meets a service decision condition in the service decision information, and if the current operating environment meets the service decision condition in the service decision information, return a service decision message in the service decision information to the service module; and the execution module is used for executing the service according to the service decision information in the service decision information.
According to a specific implementation manner of the embodiment of the present invention, the service decision condition includes: device performance conditions, network conditions, and/or user operating conditions.
According to a specific implementation manner of the embodiment of the present invention, the method further includes: and the classification module is used for classifying the analyzed service decision information to obtain different types of analyzed service decision information.
According to a specific implementation manner of the embodiment of the present invention, the returning module is further configured to determine whether a current operating environment satisfies a service decision condition in the service decision information, and if the current operating environment does not satisfy the service decision condition in the service decision information, return a first service decision message to the service module, where the first service decision is opposite to a service decision in the service decision information; the execution module is further configured to execute the service according to the first service decision message.
According to a specific implementation manner of the embodiment of the present invention, the method further includes: the system comprises an acquisition module and an updating module, wherein the acquisition module is used for acquiring updated service decision condition configuration information; and the updating module is used for updating the service decision condition configuration information by using the updated service decision condition configuration information.
In a third aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes the program corresponding to the executable program code by reading the executable program code stored in the memory, and is used for executing the method of any one of the foregoing implementation modes.
In a fourth aspect, embodiments of the present invention also provide a readable storage medium, which stores one or more programs, where the one or more programs are executable by one or more processors to implement the method of any of the foregoing embodiments.
The method, the device, the electronic device and the readable storage medium for executing the service of the application program, provided by the embodiment of the invention, analyze the loaded service decision condition configuration information to obtain analyzed service decision information, wherein the analyzed service decision information comprises an analyzed service decision and a corresponding service decision condition, when a service decision query request initiated by a service module is received, the analyzed service decision information is queried according to the service decision query request, the service decision information corresponding to the service decision query request is obtained, whether the current operating environment meets the service decision condition in the service decision information is judged, if the current operating environment meets the service decision condition in the service decision information, the service decision information in the service decision information is returned to the service module, and then according to the service decision information in the service decision information, the service is executed, and the service decision is determined based on the service decision condition configuration information and the current operating environment, so that the service module can execute the corresponding service according to the returned service decision information without performing secondary development on the application program by loading different service decision condition configuration information in order to adapt to different operating environments, thereby improving the efficiency of application program development and avoiding the problem of low efficiency caused by performing secondary development on the application program.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a service execution method of an application according to an embodiment of the present invention;
FIG. 2 is a flow chart of an embodiment of the present invention;
FIG. 3 is a flow chart of parsing and determining service decision condition configuration information according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a service execution apparatus for an application according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an embodiment of an electronic device according to the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart illustrating a method for executing a service of an application according to an embodiment of the present invention, where as shown in fig. 1, the method according to this embodiment may include:
step 101, loading service decision condition configuration information, wherein the service decision condition configuration information comprises a service decision and a corresponding service decision condition.
The service may correspond to a function in the application, and if the application has a function of popping up a message box, the message box is a service. The service decision condition configuration information may be configured to configure a service decision and a corresponding condition, and the service decision condition configuration information may include a service decision of one or more services and a corresponding service decision condition. Each service decision condition configuration information may include a service decision and a corresponding service decision condition, for example, for a service of a message box, the corresponding service decision condition configuration information may be to pop up a message box if a network is connected, wherein the network is connected as the service decision condition, and the pop-up message box is a corresponding service decision result; of course, for the service of the message frame, the corresponding service decision condition configuration information may be that if the network is not connected, the message frame is not popped up, where the network is not connected as the service decision condition, and the message frame is not popped up as the corresponding service decision result.
The business decision conditions may relate to various aspects of files, registries, command lines, networks, and the like, and in one example, the business decision conditions include: the corresponding service decision configuration information may be, for example, that service a is not executed when the memory usage exceeds 50%, service B is not executed when the network is not connected, service C is executed when the user clicks, and service D is executed when the user hover.
In one example, the business decision condition configuration information may be written in a high-level language; in another example, the service execution condition configuration information may be written by pseudo code or custom code, and specifically, the pseudo code: support if.. Custom operations are supported, such as timeinteval, min: 10, max: 20, and the condition is satisfied when the time interval is [10, 20 ].
The service decision condition configuration information can be configured by an operator through a tool or manually and is issued to the user.
Step 102, analyzing the service decision condition configuration information to obtain analyzed service decision information, wherein the analyzed service decision information comprises an analyzed service decision and a corresponding service decision condition.
In order to enable the business decision condition configuration information to be recognized and executed in the application program of the electronic device, the business decision condition configuration information needs to be analyzed to obtain a machine language which can be recognized by the electronic device, namely, the analyzed business decision information can be recognized by a machine. The service decision condition configuration information includes decisions of multiple services and corresponding service decision conditions, and the analyzed service decision information also includes decisions of multiple services and corresponding service decision conditions correspondingly. If the service is a message frame and an automatic download picture, the service decision condition configuration information corresponding to the message frame can be a pop-up message frame if the network is on, the service decision condition configuration information corresponding to the automatic download picture can be an automatic download picture if the network speed is greater than or equal to 300kb/s, and correspondingly, the two service decision condition configuration information are analyzed to obtain a decision comprising two services and a corresponding service decision condition.
Step 103, receiving a service decision query request initiated by the service module.
The service module may be a functional module corresponding to a service, and before the service module triggers service execution, the service module initiates a service decision query request to determine whether the service execution may be triggered.
Step 104, inquiring the analyzed service decision information according to the service decision inquiry request, and acquiring the service decision information corresponding to the service decision inquiry request.
And inquiring and acquiring the service decision information corresponding to the service decision inquiry request initiated by the service module in the analyzed service decision information. If the service decision information includes two pieces of service decision information, namely a network access rule popup message frame and automatic downloading if the network speed is greater than or equal to 300kb/s, and the like, before the automatic downloading module executes the automatic downloading operation, a service decision query request for judging whether the automatic downloading is possible is initiated, and the service decision information corresponding to the service decision information is obtained, namely, the service decision information corresponding to the automatic downloading query request is automatically downloaded if the network speed is greater than or equal to 300 kb/s.
And 105, judging whether the current operating environment meets the service decision condition in the service decision information, and if the current operating environment meets the service decision condition in the service decision information, returning the service decision information in the service decision information to the service module.
And when the service decision condition in the service decision information obtained in the step 104 is that the network speed is greater than or equal to 300kb/s, acquiring and judging whether the network speed in the application program running environment is greater than or equal to 300kb/s, and if the network speed in the current running environment is 400kb/s, sending the automatic downloading message in the service decision information to an automatic downloading service module.
And 106, executing the service according to the service decision information in the service decision information.
The automatic downloading module executes an automatic downloading function according to the received automatic downloading message.
In this embodiment, the loaded service decision condition configuration information is analyzed to obtain analyzed service decision information, where the analyzed service decision information includes an analyzed service decision and a corresponding service decision condition, when a service decision query request initiated by a service module is received, the analyzed service decision information is queried according to the service decision query request to obtain service decision information corresponding to the service decision query request, and whether a current operating environment meets the service decision condition in the service decision information is judged, if the current operating environment meets the service decision condition in the service decision information, a service decision message in the service decision information is returned to the service module, and the service module executes the service decision according to the service decision message in the service decision information, because the service decision is determined based on the service decision condition configuration information and the current operating environment, in order to adapt to different operating environments, in the technical scheme of the application, the service module can execute corresponding services according to the returned service decision information by loading different service decision condition configuration information without carrying out secondary development on the application program, so that the efficiency of application program development is improved, the problem of low efficiency caused by carrying out secondary development on the application program is avoided, and the investment of application program testing and operators is further reduced.
In a specific embodiment, an application installed on an electronic device has service decision condition configuration information loaded for a current operating environment, and then the operating environment of the application changes, for example, when the performance of the electronic device changes, in order to make the application adapt to the change of the operating environment more flexibly, in an embodiment of the present invention, on the basis of the above embodiment, the method further includes:
and step 107, obtaining the updated service decision condition configuration information.
The updated service decision condition configuration information may be service decision condition configuration information corresponding to the changed operating environment.
And step 108, updating the service decision condition configuration information by using the updated service decision condition configuration information.
And updating and analyzing the service decision condition configuration information in the step 101 by using the updated service decision condition configuration information.
It is understood that step 107 and step 108 may precede step 101.
Another embodiment of the present invention is basically the same as the above embodiments, except that, after analyzing the service execution condition configuration information to obtain analyzed service decision information (step 102), the service decision method of this embodiment further includes:
and step 109, classifying the analyzed service decision information to obtain different types of analyzed service decision information.
The classification may be performed according to a service decision condition in the service decision information, and in an example, the analyzed service decision information may be divided into a file operation class, a network instruction class, a command line class, a registry class, and the like.
In this embodiment, the analyzed service decision information is classified to obtain different types of analyzed service decision information, so that an operator of an application program can conveniently check the current service decision information according to the types, and further, convenience is provided for modifying service decision condition configuration information.
In another embodiment of the present application, the method is substantially the same as the above embodiment, except that the steps 105 and 106 can be replaced by the following steps:
step 110, judging whether the current operating environment meets the service decision condition in the service decision information, if the current operating environment does not meet the service decision condition in the service decision information, returning a first service decision message to the service module, wherein the first service decision is opposite to the service decision in the service decision information.
And when the service decision corresponding to the condition meeting the service decision is downloading, the service decision corresponding to the decision is not downloading.
Taking an automatic downloading service as an example, before executing an automatic downloading operation, an automatic downloading module initiates a service decision query request whether to automatically download, acquires service decision information corresponding to the automatic downloading module, automatically downloads when the service decision information corresponding to the automatic downloading module is that the network speed is greater than or equal to 300kb/s, acquires that the network speed in the current operating environment is 200kb/s, and returns a message that the automatic downloading is not performed to the automatic downloading module when the current operating environment does not meet the service decision condition in the service decision information through judgment.
And step 111, executing the service according to the first service decision message.
And the automatic downloading module executes the non-automatic downloading service according to the received non-automatic downloading message.
In a specific embodiment, the protection mechanisms of the jinshang toxicant super-controller are different according to different computer models, information can be configured and issued to a user through configuration service decision conditions, the jinshang toxicant super-controller judges whether the current operating environment meets the conditions of a specific protection mechanism, and if so, the jinshang toxicant super-controller correspondingly protects the computer according to the specific protection mechanism.
Fig. 2 is a flowchart of an embodiment of the present invention, and fig. 3 is a flowchart of parsing and determining service decision condition configuration information according to an embodiment of the present invention. The technical solution of the present application is explained in detail below with a specific implementation, see fig. 2 and 3.
S1, loading service decision condition configuration information, wherein the service decision condition configuration information comprises machine performance, network condition and user operation.
S2, analyzing the service decision condition configuration information and classifying the analyzed service decision information.
S3, the service module A initiates a service decision query request, and the service module A corresponds to the service A.
S4, searching and obtaining service decision information a corresponding to the service a from the analyzed service decision information, where the decision information of the service a includes a service decision condition and a service decision, and specifically, if the memory proportion is not more than 40%, executing the service a.
And S5, acquiring the corresponding current operating environment, and specifically acquiring the current memory occupation ratio of the electronic equipment.
S6, judging whether the current memory ratio is not more than 40%, if not, matching the current operation environment with the service decision condition in the decision information corresponding to the service A, and returning the service decision of the corresponding execution service A, namely the execution service A information to the service module A.
S7, the service module A executes the service A according to the service decision.
Fig. 4 is a schematic structural diagram of a service execution device of an application according to an embodiment of the present invention, and as shown in fig. 4, the device of this embodiment may include: a loading module 11, a parsing module 12, a receiving module 13, a query module 14, a return module 15 and an execution module 16, wherein,
the loading module 11 is configured to load service decision condition configuration information, where the service decision condition configuration information includes a service decision and a corresponding service decision condition;
the analysis module 12 is configured to analyze the service decision condition configuration information to obtain analyzed service decision information, where the analyzed service decision information includes an analyzed service decision and a corresponding service decision condition;
the receiving module 13 is configured to receive a service decision query request initiated by a service module;
the query module 14 is configured to query the analyzed service decision information according to the service decision query request, and obtain service decision information corresponding to the service decision query request;
the returning module 15 is configured to determine whether the current operating environment meets a service decision condition in the service decision information, and if the current operating environment meets the service decision condition in the service decision information, return a service decision message in the service decision information to the service module;
the executing module 16 is configured to execute the service according to the service decision information in the service decision information.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
The device of this embodiment obtains parsed service decision information by parsing loaded service decision condition configuration information, where the parsed service decision information includes a parsed service decision and a corresponding service decision condition, and when receiving a service decision query request initiated by a service module, queries the parsed service decision information according to the service decision query request, obtains service decision information corresponding to the service decision query request, and determines whether a current operating environment satisfies the service decision condition in the service decision information, if the current operating environment satisfies the service decision condition in the service decision information, returns the service decision information in the service decision information to the service module, and the service module executes the service according to the service decision information in the service decision information, because the service decision is determined based on the service decision condition configuration information and the current operating environment, in order to adapt to different operating environments, in the technical scheme of the application, the service module can execute the corresponding service decision by loading different service decision condition configuration information without performing secondary development on the application program, so that the efficiency of application program development is improved, the problem of low efficiency caused by performing secondary development on the application program is avoided, and the investment of application program testing and operators is further reduced.
As an optional implementation, the service decision condition includes: device performance conditions, network conditions, and/or user operating conditions.
As an optional embodiment, the apparatus further comprises: further comprising: and the classification module is used for classifying the analyzed service decision information to obtain different types of analyzed service decision information.
As an optional implementation manner, the returning module is further configured to determine whether the current operating environment meets a service decision condition in the service decision information, and if the current operating environment does not meet the service decision condition in the service decision information, return a first service decision message to the service module, where the first service decision is opposite to a service decision in the service decision information; the execution module is further configured to execute the service according to the first service decision message.
As an optional implementation, the apparatus further includes: the system comprises an acquisition module and an updating module, wherein the acquisition module is used for acquiring updated service decision condition configuration information; and the updating module is used for updating the service decision condition configuration information by using the updated service decision condition configuration information.
The embodiment of the invention also provides electronic equipment, and the electronic equipment comprises the device in any one of the embodiments.
Fig. 5 is a schematic structural diagram of an embodiment of an electronic device of the present invention, which can implement the process of the embodiment shown in fig. 1 of the present invention, and as shown in fig. 5, the electronic device may include: the device comprises a shell 41, a processor 42, a memory 43, a circuit board 44 and a power circuit 45, wherein the circuit board 44 is arranged inside a space enclosed by the shell 41, and the processor 42 and the memory 43 are arranged on the circuit board 44; a power supply circuit 45 for supplying power to each circuit or device of the electronic apparatus; the memory 43 is used for storing executable program code; the processor 42 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 43, and is used for executing the method for robbing the red packet according to any of the foregoing embodiments.
The specific execution process of the above steps by the processor 42 and the steps further executed by the processor 42 by running the executable program code may refer to the description of the embodiment shown in fig. 1 of the present invention, and are not described herein again.
The electronic device exists in a variety of forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic equipment with data interaction function.
Embodiments of the invention also provide a readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement a method provided by any of the embodiments of the invention.
Embodiments of the present invention also provide an application program, which is executed to implement the method provided in any of the embodiments of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
For convenience of description, the above devices are described separately in terms of functional division into various units/modules. Of course, the functionality of the units/modules may be implemented in one or more software and/or hardware implementations of the invention.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for executing a service of an application program, comprising:
loading service decision condition configuration information, wherein the service decision condition configuration information comprises a service decision and a corresponding service decision condition;
analyzing the service decision condition configuration information to obtain analyzed service decision information, wherein the analyzed service decision information comprises an analyzed service decision and a corresponding service decision condition;
receiving a service decision query request initiated by a service module;
inquiring the analyzed service decision information according to the service decision inquiry request to acquire service decision information corresponding to the service decision inquiry request;
judging whether the current operating environment meets the service decision condition in the service decision information, and if the current operating environment meets the service decision condition in the service decision information, returning a service decision message in the service decision information to the service module;
and executing the service according to the service decision information in the service decision information.
2. The traffic decision method according to claim 1, wherein the traffic decision condition comprises: device performance conditions, network conditions, and/or user operating conditions.
3. The service decision method according to claim 1, wherein after parsing the service execution condition configuration information to obtain parsed service decision information, the method further comprises:
and classifying the analyzed service decision information to obtain different types of analyzed service decision information.
4. The traffic decision method according to claim 1, further comprising:
judging whether the current operation environment meets the service decision condition in the service decision information, if the current operation environment does not meet the service decision condition in the service decision information, returning a first service decision message to the service module, wherein the first service decision is opposite to the service decision in the service decision information;
and executing the service according to the first service decision message.
5. The traffic decision method according to claim 1, further comprising:
acquiring updated service decision condition configuration information;
and updating the service decision condition configuration information by using the updated service decision condition configuration information.
6. A service execution apparatus for an application program, comprising: a loading module, a parsing module, a receiving module, a query module, a return module, and an execution module, wherein,
the loading module is used for loading service decision condition configuration information, and the service decision condition configuration information comprises a service decision and a corresponding service decision condition;
the analysis module is used for analyzing the service decision condition configuration information to obtain analyzed service decision information, wherein the analyzed service decision information comprises an analyzed service decision and a corresponding service decision condition;
the receiving module is used for receiving a service decision query request initiated by the service module;
the query module is used for querying the analyzed service decision information according to the service decision query request and acquiring the service decision information corresponding to the service decision query request;
the return module is used for judging whether the current operating environment meets the service decision condition in the service decision information or not, and returning the service decision information in the service decision information to the service module if the current operating environment meets the service decision condition in the service decision information;
and the execution module is used for executing the service according to the service decision information in the service decision information.
7. The traffic decision device according to claim 6, wherein the traffic decision condition comprises: device performance conditions, network conditions, and/or user operating conditions.
8. The traffic decision device of claim 6, further comprising: and the classification module is used for classifying the analyzed service decision information to obtain different types of analyzed service decision information.
9. The service decision device according to claim 6, wherein the returning module is further configured to determine whether a current operating environment meets a service decision condition in the service decision information, and if the current operating environment does not meet the service decision condition in the service decision information, return a first service decision message to the service module, where the first service decision is opposite to the service decision in the service decision information;
the execution module is further configured to execute the service according to the first service decision message.
10. The traffic decision device of claim 6, further comprising: an acquisition module and an update module, wherein,
the acquisition module is used for acquiring the updated service decision condition configuration information;
and the updating module is used for updating the service decision condition configuration information by using the updated service decision condition configuration information.
CN202010608861.3A 2020-06-29 2020-06-29 Service execution method and device of application program and electronic equipment Pending CN111782243A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010608861.3A CN111782243A (en) 2020-06-29 2020-06-29 Service execution method and device of application program and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010608861.3A CN111782243A (en) 2020-06-29 2020-06-29 Service execution method and device of application program and electronic equipment

Publications (1)

Publication Number Publication Date
CN111782243A true CN111782243A (en) 2020-10-16

Family

ID=72761072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010608861.3A Pending CN111782243A (en) 2020-06-29 2020-06-29 Service execution method and device of application program and electronic equipment

Country Status (1)

Country Link
CN (1) CN111782243A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092967A (en) * 2013-01-22 2013-05-08 交通银行股份有限公司 Business rule decision-making method and device based on rule engine
US20150178625A1 (en) * 2013-12-23 2015-06-25 International Business Machines Corporation Method and apparatus for generating test scenarios for a set of business rules
CN105844422A (en) * 2016-04-01 2016-08-10 阿里巴巴集团控股有限公司 Business flow execution method and device
CN109086031A (en) * 2018-06-28 2018-12-25 阿里巴巴集团控股有限公司 A kind of operational decision making method and apparatus of rule-based engine
CN110347709A (en) * 2019-06-28 2019-10-18 苏宁云计算有限公司 A kind of construction method and system of regulation engine
CN111273891A (en) * 2020-01-19 2020-06-12 中国平安人寿保险股份有限公司 Business decision method and device based on rule engine and terminal equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092967A (en) * 2013-01-22 2013-05-08 交通银行股份有限公司 Business rule decision-making method and device based on rule engine
US20150178625A1 (en) * 2013-12-23 2015-06-25 International Business Machines Corporation Method and apparatus for generating test scenarios for a set of business rules
CN105844422A (en) * 2016-04-01 2016-08-10 阿里巴巴集团控股有限公司 Business flow execution method and device
CN109086031A (en) * 2018-06-28 2018-12-25 阿里巴巴集团控股有限公司 A kind of operational decision making method and apparatus of rule-based engine
CN110347709A (en) * 2019-06-28 2019-10-18 苏宁云计算有限公司 A kind of construction method and system of regulation engine
CN111273891A (en) * 2020-01-19 2020-06-12 中国平安人寿保险股份有限公司 Business decision method and device based on rule engine and terminal equipment

Similar Documents

Publication Publication Date Title
CN108829378B (en) Application software development method and device and electronic equipment
US20140006434A1 (en) Method and system to recommend applications from an application market place to a new device
CN109960521B (en) Application program upgrading method and device, electronic equipment and storage medium
CN103425926A (en) Application program starting method, list configuring method, terminal and server
US20150032714A1 (en) Method and system for searching for applications respective of a connectivity mode of a user device
CN109800030B (en) Application program running method and device and terminal
CN106250182B (en) File processing method and device and electronic equipment
CN109800367A (en) Webpage loading method, device, computer equipment and storage medium
CN106203092B (en) Method and device for intercepting shutdown of malicious program and electronic equipment
CN114756306A (en) Service calling method, device, equipment and storage medium
CN110888658B (en) Method and device for dynamically changing function modules in application program and storage medium
CN103593233A (en) Method and system for pushing software information
CN110652728A (en) Game resource management method and device, electronic equipment and storage medium
CN111078424A (en) Information interaction method and device, computer equipment and storage medium
CN107450951B (en) Application processing method and device, storage medium and terminal
US11262995B2 (en) Method and apparatus for downloading installation-free application
WO2015003570A1 (en) Data downloading method,device and system thereof
CN111782243A (en) Service execution method and device of application program and electronic equipment
CN107291543B (en) Application processing method and device, storage medium and terminal
CN110489677A (en) A kind of application market jump method and system based on mobile device identification
CN111679842A (en) Application program hot update processing method, device and system
CN104794165B (en) A kind of webpage representation method, apparatus and system
CN114168937A (en) Resource access method, computing device and readable storage medium
CN113157348A (en) Game starting method and device, computer equipment and storage medium
CN113609349A (en) Rental vehicle inventory detection method, apparatus and medium

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