CN107632840B - Task execution method and system of application program - Google Patents

Task execution method and system of application program Download PDF

Info

Publication number
CN107632840B
CN107632840B CN201710890660.5A CN201710890660A CN107632840B CN 107632840 B CN107632840 B CN 107632840B CN 201710890660 A CN201710890660 A CN 201710890660A CN 107632840 B CN107632840 B CN 107632840B
Authority
CN
China
Prior art keywords
task
client
file
service
execution
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.)
Active
Application number
CN201710890660.5A
Other languages
Chinese (zh)
Other versions
CN107632840A (en
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.)
Tianyi Digital Life Technology Co Ltd
Original Assignee
21cn Corp 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 21cn Corp ltd filed Critical 21cn Corp ltd
Priority to CN201710890660.5A priority Critical patent/CN107632840B/en
Publication of CN107632840A publication Critical patent/CN107632840A/en
Application granted granted Critical
Publication of CN107632840B publication Critical patent/CN107632840B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to a task execution method and system of an application program. The method comprises the following steps: determining a first service file required by a client to execute a task of an application program according to a task theme of the application program and a task execution history of the client; and sending a first service file to the client, so that the client executes the task of the corresponding task theme according to the first service file. According to the task execution method of the application program, the client executes the first service file by sending the first service file to complete the tasks of the corresponding functions and the service processes, so that the client application program is prevented from installing a new version program, and the cost is reduced.

Description

Task execution method and system of application program
Technical Field
The invention relates to the technical field of computers, in particular to a task execution method and system of an application program.
Background
In a C/S (Client/Server) architecture, a Client needs to be installed for management operation, and tasks are reasonably distributed to the Client and the Server, so that the communication overhead of the system is reduced, but the Client needs to be installed for management operation. For a long time, the application range of the application program under the C/S architecture is limited due to poor program maintainability, high maintenance cost, inconvenient upgrade and the like of the C/S architecture. For an application based on the C/S architecture, how to solve the problem of execution of a change function or a business process in a subsequent use process of the application needs to be considered.
In the traditional technology, when the application program based on the C/S framework changes the function or the business process each time, the client needs to be upgraded by periodically releasing a new version program installation package, so that the client executes the task of changing the function or the business process through the new version program, and the development and maintenance cost of the application program is high; moreover, the upgrading client also needs to test the performance of the client and test the stability and the safety, and the consumed time and the cost are high; the client side downloads the whole new version program installation package, so that the flow is not small, and the cost of transmission resources is high.
In summary, the function and business process change of the application based on the C/S architecture have the disadvantage of high cost.
Disclosure of Invention
Therefore, it is necessary to provide a method and a system for executing tasks of an application program, which are directed to the problem that updating a client function and a service change method by using an installation package for a C/S architecture application program is costly.
A task execution method of an application program, comprising the steps of:
determining a first service file required by the client to execute the task of the application program according to the task theme of the application program and the task execution history of the client, wherein the first service file is used for executing the corresponding task of the task theme;
and sending a first service file to the client, so that the client executes the task of the corresponding task theme according to the first service file.
According to the task execution method of the application program, the client executes the first service file to complete the task of the corresponding task theme by sending the first service file according to the task theme of the application program, wherein the task of the task theme is the function and the service flow corresponding to the task theme, namely, the client executes the first service file to complete the task of the corresponding function and the service flow by sending the first service file, so that the client application program is prevented from installing a new version program, and the cost is reduced.
Further, the task theme is to configure the operating environment of the client, and the first service file includes a data file package;
the step of sending the first service file to the client, and enabling the client to execute a corresponding task according to the first service file comprises the following steps:
sending a first service file containing the data file packet to the client, so that the client configures the operating environment according to the data file packet;
and/or
The task subject is an execution function and a business process, and the first business file comprises an instruction file;
the step of sending the first service file to the client, and enabling the client to execute a corresponding task according to the first service file comprises the following steps:
and sending a first service file containing the instruction file to the client, so that the client executes the function and the service process of the instruction file.
In the task execution method of the application program, when the task theme is the operation environment of the configuration client, the client configures the operation environment according to the data file packet by sending the first service file containing the data file packet to the client; when the task theme is an execution function and a business process, the client executes the function and the business process of the instruction file by sending a first business file containing the instruction file to the client; when the task theme simultaneously comprises an operating environment, an execution function and a business process, the client configures the operating environment according to the data file packet by sending a first business file comprising the data file packet and the instruction file to the client, and executes the function and the business process of the instruction file. According to the task theme, the sent data file packet has pertinence, the data volume transmitted in the subsequent process is reduced, and the cost is reduced.
Further, determining a first service file required by the client to execute the task of the application program according to the task topic of the application program and the task execution history of the client, comprising the following steps:
according to the task theme of the application program and the task execution history, acquiring a first execution record in the task execution history of the task theme, wherein the first execution record is an execution record corresponding to the data file packet;
and determining a first service file required by the client to execute the task of the application program according to the first execution record.
According to the task execution method of the application program, the execution record corresponding to the data file packet is obtained from the task execution history record of the task theme, the first service file required by the client to execute the task of the application program is determined according to the task theme and the first execution record, the first service file is determined in a targeted manner, the data volume transmitted in the subsequent process is reduced, and the cost is reduced.
Further, after sending a first service file to the client and enabling the client to execute a corresponding task according to the first service file, the method further includes the following steps:
and acquiring a second execution record, and storing the second execution record in the task execution history record of the client, wherein the second execution record is an execution record after the client completes execution of the first service file.
According to the task execution method of the application program, the accuracy of determining the first service file is increased for the next execution of the scheme by acquiring the second execution record of the client after the execution of the first service file is completed, and storing the second execution record in the task execution history record of the client, namely updating the task execution history record of the client.
Further, the sending the first service file to the client includes the following steps:
storing the first service file in a server;
the triggering server transmits the first service file to the client through long connection;
acquiring the execution record of the client for executing the first service file, including the following steps:
and receiving the second execution record forwarded by the server.
According to the task execution method of the application program, the first service file is sent to the client side and the second execution record of the client side is received through the long connection, so that the data transmission stability can be improved.
Further, before determining the first service file required by the client to execute the task of the application program according to the task theme of the application program and the task execution history of the client, the method further comprises the following steps:
receiving a task execution request sent by an application program of the client;
and determining a corresponding task theme according to the task execution request.
According to the task execution method of the application program, the execution request of the client is received, the execution request is responded, the execution request is determined, the corresponding task subject is determined, and the corresponding first service file is issued, so that the client completes execution of the corresponding task.
A task execution system for an application, comprising:
the system comprises a determining module, a processing module and a processing module, wherein the determining module is used for determining a first service file required by a client to execute a task of an application program according to a task theme of the application program and a task execution history of the client, and the first service file is used for executing a corresponding task of the task theme;
and the sending module is used for sending the first service file to the client so that the client executes the task of the corresponding task theme according to the first service file.
According to the task execution system of the application program, the client executes the first service file to complete the task of the corresponding task theme by sending the first service file according to the task theme of the application program, wherein the task of the task theme is the function and the service flow corresponding to the task theme, namely, the client executes the first service file to complete the task of the corresponding function and the service flow by sending the first service file, so that the client application program is prevented from installing a new version program, and the cost is reduced.
A task execution method of an application program, comprising the steps of:
receiving a first service file sent by a server, wherein the first service file is determined according to a task theme of an application program and a task execution history of a client;
and executing the task corresponding to the task theme according to the first service file.
According to the task execution method of the application program, the first service file is received, the task corresponding to the task theme is executed according to the first service file, the corresponding task is completed, installation of a new version of the application program is not needed, and cost is reduced.
Further, executing the task corresponding to the task topic according to the first service file, including the following steps:
the first service file comprises a data file packet, the task corresponding to the task theme is the operation environment for configuring the client, and the operation environment is configured according to the data file packet;
and/or
The first business file comprises an instruction file, the task corresponding to the task subject is an execution function and a business process, and the function and the business process of the instruction file are executed.
In the task execution method of the application program, when the task theme is the operation environment of the configuration client, the client configures the operation environment according to the data file packet by sending the first service file containing the data file packet to the client; when the task theme is an execution function and a business process, the client executes the function and the business process of the instruction file by sending a first business file containing the instruction file to the client; when the task theme simultaneously comprises an operating environment, an execution function and a business process, the client configures the operating environment according to the data file packet by sending a first business file comprising the data file packet and the instruction file to the client, and executes the function and the business process of the instruction file. According to the task theme, the sent data file packet has pertinence, the data volume transmitted in the subsequent process is reduced, and the cost is reduced.
A task execution system for an application, comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a first service file sent by a server, and the first service file is determined according to a task theme of an application program and a task execution history of a client;
and the task execution module is used for executing the task corresponding to the task theme according to the first service file.
According to the task execution system of the application program, the first service file is received, the task corresponding to the task theme is executed according to the first service file, the corresponding task is completed, installation of a new version application program is not needed, and cost is reduced.
Drawings
FIG. 1 is a schematic diagram of a first embodiment of an environment for a task execution method of an application according to the present invention;
FIG. 2 is a flowchart illustrating a task execution method according to a first embodiment of the present invention;
FIG. 3 is a diagram illustrating a second embodiment of an environment for a task execution method of an application according to the present invention;
FIG. 4 is a schematic diagram of a first embodiment of a task execution system of the application program of the present invention;
FIG. 5 is a flowchart illustrating a task execution method according to a second embodiment of the present invention;
FIG. 6 is a diagram illustrating a task execution system according to a second embodiment of the present invention;
fig. 7 is a flowchart illustrating a task execution method of an application according to a third embodiment of the present invention.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a first implementation environment of a task execution method of an application program according to an embodiment of the present invention.
The first implementation environment shown in fig. 1 is used to implement a task execution method of an application according to some embodiments or implementations of the present invention, and includes a client and a server, where the client and the server are connected through a network.
The client can comprise at least one of terminal devices such as a smart phone, a desktop computer, a notebook computer, a personal digital assistant and a tablet computer, the client is provided with an application program, and the device identification code of the client can be an ID (identity) address of the device, an international mobile equipment identification code and the like. The server may include a memory to store a history of client task execution.
The server 120 may determine a first service file required by the client to execute the task of the application according to the task theme of the application and the task execution history of the client, and send the first service file to the client.
The client 110 may receive the first service file sent by the server, and execute a task corresponding to the task topic according to the first service file.
According to the implementation environment, the server side sends the first service file required by executing the task of the application program to the client side, and the client side executes the task corresponding to the task theme according to the first service file to complete the task of the corresponding function and the service flow, so that the client side application program is prevented from installing a new version program, and the cost of the function of the application program and the cost of the service flow change are greatly reduced.
Referring to fig. 2, fig. 2 is a flowchart illustrating a task execution method of an application according to a first embodiment of the present invention.
The task execution method of the application program described in this embodiment, which runs on the server, may include the following steps:
step S201, determining a first service file required by a client to execute a task of an application program according to a task theme of the application program and a task execution history of the client, wherein the first service file is used for executing a corresponding task of the task theme;
step S202, a first service file is sent to the client, so that the client executes the task of the corresponding task theme according to the first service file.
Alternatively, the first file may be a data file package, an instruction file, or the like, the data file package may be a jar package, and the instruction file may be a script file.
Alternatively, the task theme may be client service or function update, service data configuration, instruction execution, function deletion, file backup, cache cleaning, and the like.
Optionally, the task of the corresponding task theme may be configuring an operating environment of the client, completing a function and a business process, and executing an instruction.
Alternatively, the application program may be application software installed in a smart phone, a desktop computer, a notebook computer, a personal digital assistant, a tablet computer, or the like.
In the embodiment, according to a task theme of an application program and a task execution history of a client, a first service file required by the client for executing a task of the application program is determined, and the first service file is sent to the client, so that the client executes a task of a corresponding task theme according to the first service file; according to the task theme of the application program, the first service file is sent to enable the client to execute the first service file to complete the task of the corresponding task theme, the task of the task theme is the function and the service process corresponding to the task theme, namely, the first service file is sent to enable the client to execute the first service file to complete the task of the corresponding function and the service process, installation of a new version program of the application program of the client is avoided, and cost is reduced.
Alternatively, the task topic may be actively determined by the server. The method comprises the steps that a server actively determines a task theme, the server actively pushes a first service file to a client, and the client executes a task of the task theme according to the first service file. The server side actively pushes to complete the function of the application program and the task of business process change, so that the function of the application program and the business process change mode are more flexible.
In one embodiment, the task topic is to configure an operating environment of the client, and the first service file includes a data file packet; the step of sending the first service file to the client, and enabling the client to execute a corresponding task according to the first service file comprises the following steps: and sending a first service file containing the data file packet to the client, so that the client configures the operating environment according to the data file packet.
According to the task execution method of the application program, the task theme is the operation environment of the configuration client, the first service file comprising the data file packet is sent through the first service file comprising the data file packet, so that the client configures the operation environment according to the data file packet.
In one embodiment, the task theme is an execution function and a business process, and the first business file comprises an instruction file; the step of sending the first service file to the client, and enabling the client to execute a corresponding task according to the first service file comprises the following steps: and sending a first service file containing the instruction file to the client, so that the client executes the function and the service process of the instruction file.
According to the task execution method of the application program, the task theme is an execution function and a business process, the first business file containing the instruction file is sent through the first business file comprising the instruction file, and the client executes the function and the business process of the instruction file.
In one embodiment, the task topic is to configure an operating environment of the client, and the first service file includes a data file packet; the step of sending the first service file to the client, and enabling the client to execute a corresponding task according to the first service file comprises the following steps: sending a first service file containing the data file packet to the client, so that the client configures the operating environment according to the data file packet;
the task subject is an execution function and a business process, and the first business file comprises an instruction file; the step of sending the first service file to the client, and enabling the client to execute a corresponding task according to the first service file comprises the following steps: and sending a first service file containing the instruction file to the client, so that the client executes the function and the service process of the instruction file.
According to the task execution method of the application program, a task subject is to configure the operating environment and the execution function and the business process of a client, the first business file comprising the data file packet and the instruction file is sent through the first business file comprising the data file packet and the instruction file, so that the client configures the operating environment and the function and the business process of executing the instruction file according to the data file packet.
In one embodiment, the task execution history of the client is searched according to the device identification number of the client. The task execution history of the current application program of the client can be accurately obtained.
According to the task execution method of the application program, the task execution history record corresponding to the equipment identification number can be searched according to the equipment identification number of the client. And corresponding execution records are stored in the task execution history record according to the task theme, the data file packet and the instruction file.
In one embodiment, determining a first service file required by the client to execute a task of the application according to the task topic of the application and the task execution history of the client includes: according to the task theme of the application program and the task execution history, acquiring a first execution record in the task execution history of the task theme, wherein the first execution record is an execution record corresponding to the data file packet; and determining a first service file required by the client to execute the task of the application program according to the first execution record.
According to the task execution method of the application program, the execution record corresponding to the data file packet is obtained from the task execution history record of the task theme, the first service file required by the client to execute the task of the application program is determined according to the task theme and the first execution record, the first service file is determined in a targeted manner, the data volume transmitted in the subsequent process is reduced, and the cost is reduced.
In one embodiment, the task theme is an execution function and a business process, and if an execution record of a data file package of which the task theme is used for configuring a required operating environment exists in the task execution history record, that is, if a first execution record exists, the first business file includes an instruction file.
In one embodiment, the task topic is an execution function and a business process, and in the task execution history record, the number of times of the execution record of the data file package of the task topic for configuring the required operation environment is 0, that is, if the first execution record does not exist, the operation environment required by the task topic needs to be configured first, so that the sent first business file includes the data file package and the instruction file.
In one embodiment, after sending a first service file to the client and enabling the client to execute a corresponding task according to the first service file, the method further includes the following steps: and acquiring a second execution record, and storing the second execution record in the task execution history record of the client, wherein the second execution record is an execution record after the client completes execution of the first service file.
Optionally, the second execution record is stored in the task execution history record responded by the device identification number according to the device identification number of the client.
According to the task execution method of the application program, the accuracy of determining the first service file is increased for the next execution of the scheme by acquiring the second execution record of the client after the execution of the first service file is completed, and storing the second execution record in the task execution history record of the client, namely updating the task execution history record of the client.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a second implementation environment of a task execution method of an application program according to an embodiment of the present invention.
The second implementation environment shown in fig. 3 is used to implement the task execution method of the application program according to some embodiments or implementation manners of the present invention, and includes a client, a server, and a server, where the client and the server are connected to each other by a short connection, the client and the server are connected to each other by a long connection, and the server are connected to each other by a long connection. The client can comprise at least one of terminal devices such as a smart phone, a desktop computer, a notebook computer, a personal digital assistant and a tablet computer, the client is provided with an application program, and the device identification code of the client can be an ID (identity) address of the device, an international mobile equipment identification code and the like. The server may include a memory to store a history of client task execution. The server may include a memory storing a first business file.
The server 320 may determine, according to the task theme of the application program and the task execution history of the client, a first service file required by the client to execute the task of the application program, store the first service file in the server, receive a second execution record forwarded by the server, and store the second execution record in the task execution history, where the second execution record is an execution record after the client completes execution of the first service file.
The server 330 stores the first service file of the server, sends the first service file to the client through the long connection, receives the second execution record sent by the client, and forwards the second execution record to the server.
The client 310 receives the first service file through the long connection, executes a task corresponding to the task theme according to the first service file, and sends the second execution record to the server through the long connection.
In the implementation environment, the server establishes long connection with the client through the server, and performs data transmission according to the long connection, so that the stability of data transmission can be improved.
In one embodiment, in the second implementation environment, sending the first service file to the client includes the following steps: storing the first service file in a server; the triggering server transmits the first service file to the client through long connection; acquiring the execution record of the client for executing the first service file, including the following steps: and receiving the second execution record forwarded by the server.
According to the task execution method of the application program, the first service file is sent to the client side and the second execution record of the client side is received through the long connection, so that the data transmission stability can be improved.
In one embodiment, before storing the first service file in the server, the method further includes encapsulating the first service file. The first service file can better adapt to the transmission of long connection after being packaged.
In one embodiment, before determining a first service file required by the client to execute the task of the application according to the task topic of the application and the task execution history of the client, the method further includes the following steps: receiving a task execution request sent by an application program of the client; and determining a corresponding task theme according to the task execution request.
According to the task execution method of the application program, the execution request of the client is received, the execution request is responded, the execution request is determined, the corresponding task subject is determined, and the corresponding first service file is issued, so that the client completes execution of the corresponding task.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a task execution system of an application according to a first embodiment of the present invention.
The task execution system of the application program according to this embodiment is deployed at a server, and may include a determining module and a sending module, where:
a determining module 401, configured to determine, according to a task topic of an application program and a task execution history of a client, a first service file required by the client to execute a task of the application program, where the first service file is used to execute a corresponding task of the task topic;
a sending module 402, configured to send a first service file to the client, so that the client executes a task of a corresponding task topic according to the first service file.
In the embodiment, according to a task theme of an application program and a task execution history of a client, a first service file required by the client for executing a task of the application program is determined, and the first service file is sent to the client, so that the client executes a task of a corresponding task theme according to the first service file; according to the task theme of the application program, the first service file is sent to enable the client to execute the first service file to complete the task of the corresponding task theme, the task of the task theme is the function and the service process corresponding to the task theme, namely, the first service file is sent to enable the client to execute the first service file to complete the task of the corresponding function and the service process, installation of a new version program of the application program of the client is avoided, and cost is reduced.
Referring to fig. 5, fig. 5 is a flowchart illustrating a task execution method of an application according to a second embodiment of the present invention.
The task execution method of the application program described in this embodiment, which runs on the client, may include the following steps:
step S501, receiving a first service file sent by a server, wherein the first service file is determined according to a task theme of an application program and a task execution history of a client;
step S502, executing the task corresponding to the task theme according to the first service file.
In this embodiment, a first service file sent by a server is received, where the first service file is determined according to a task topic of an application program and a task execution history of a client, and a task corresponding to the task topic is executed according to the first service file; by receiving the first service file, the corresponding task of the task theme is executed according to the first service file, the corresponding task is completed, installation of a new version application program is not needed, and cost is reduced.
In one embodiment, executing the task corresponding to the task topic according to the first service file includes the following steps: the first service file comprises a data file packet, the task corresponding to the task theme is the operation environment for configuring the client, and the operation environment is configured according to the data file packet.
According to the task execution method of the application program, the operation environment is configured according to the data file packet of the first service file, the configuration of the operation environment is completed, the installation of a new version of the application program is not needed, and the cost is reduced.
In one embodiment, executing the task corresponding to the task topic according to the first service file includes the following steps: the first business file comprises an instruction file, the task corresponding to the task subject is an execution function and a business process, and the function and the business process of the instruction file are executed.
According to the task execution method of the application program, the function and the business process are completed by executing the function and the business process of the instruction file of the first business file, installation of a new version of the application program is not needed, and cost is reduced.
In one embodiment, executing the task corresponding to the task topic according to the first service file includes the following steps: the first service file comprises a data file packet, the task corresponding to the task theme is the operation environment for configuring the client, and the operation environment is configured according to the data file packet; and the first service file comprises an instruction file, the task corresponding to the task subject is an execution function and a service flow, and the function and the service flow of the instruction file are executed.
In the task execution method of the application program, the first service file comprises a data file packet and an instruction file, the task corresponding to the task theme is to configure the operating environment of the client and execute the function and the service flow, and the operating environment and the function and the service flow are respectively configured according to the data file packet and the instruction file of the first service file; and respectively configuring the operating environment and executing the functions and the business process according to the data file package and the instruction file, without installing a new version application program, thereby reducing the cost.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a task execution system according to a second embodiment of the application program of the present invention.
The digital signature system according to this embodiment is deployed in a client, and may include a receiving module and a task execution module, where:
a receiving module 601, configured to receive a first service file sent by a server, where the first service file is determined according to a task topic of the application program and a task execution history of the client;
and the task execution module 602 is configured to execute a task corresponding to the task topic according to the first service file.
In this embodiment, a first service file sent by a server is received, where the first service file is determined according to a task topic of an application program and a task execution history of a client, and a task corresponding to the task topic is executed according to the first service file; by receiving the first service file, the corresponding task of the task theme is executed according to the first service file, the corresponding task is completed, installation of a new version application program is not needed, and cost is reduced.
Referring to fig. 7, fig. 7 is a flowchart illustrating a task execution method of an application program according to a third embodiment of the present invention, fig. 7.
The task execution method of the application program described in this embodiment is executed by a client, a server, and may include the following steps:
step S701, a client registers to a server, and the server acquires an equipment identification number;
step S702, according to the equipment identification number, the server triggers a long connection channel between the server and the TCP of the client;
step S703, the client subscribes a theme based on the equipment identification number to the server;
step S704, the server determines and issues a first service file of the topic to the server according to the topic subscribed by the client, wherein the first service file comprises a data file packet and/or an instruction file;
step S705, the server triggers the server to send a first service file to the client;
step S706, the client executes the data file packet and/or the instruction file of the first service file;
step S707, the client sends the execution result of the first service file to the server through long connection;
step S708, the server forwards the execution result of the first service file of the client to the server.
In this embodiment, the server determines and issues a first service file of the topic to the server according to the topic subscribed by the client, where the first service file includes a data file packet and/or an instruction file, the server sends the first service file to the client, receives an execution result of the first service file of the client, and forwards the received execution result to the server, and the client receives the first service file and executes the first service file to complete a task of subscribing the topic.
It should be noted that the upgrading method of the application program of the conventional C/S structure generally includes the following steps:
starting an upgrading program, connecting the upgrading program to a website, and downloading a new main program to a temporary folder, wherein optionally, the main program comprises a supported library file, an XM L configuration document and the like;
the upgrading program acquires the updating date or version number or file size of the new version program in the configuration file of the XM L server;
comparing the existing version program with the latest version program, prompting a user to upgrade if the latest version is found, specifically, acquiring the latest update date or version number or file size of the original client application program by the upgrade program, comparing the latest update date or version number or file size of the original client application program, and prompting the user to upgrade if the date of the upgrade program is found to be larger than the latest date of the original program;
if the user selects upgrading, acquiring a download file list and starting to download the documents in batches;
the upgrading program detects the state of the old main program, if the state of the old main program is an active state, the old main program is closed, the old main program is deleted, and the files in the temporary folder are copied to corresponding positions;
and checking the state of the main program, starting a new main program if the state is active, closing the upgrading program, and finishing upgrading.
Therefore, in the conventional technology, when the application program based on the C/S architecture changes the function or the service flow each time, the client needs to be upgraded by periodically releasing the new version program installation package, so that the client executes the task of changing the function or the service flow through the new version program, and the development and maintenance costs of the application program are high; moreover, the upgrading client also needs to test the performance of the client and test the stability and the safety, and the consumed time and the cost are high; the client side downloads the whole new version program installation package, so that the flow is not small, and the cost of transmission resources is high. The invention avoids the installation of a new version program by the client application program, and reduces the cost.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features. Those skilled in the art will appreciate that all or part of the steps in the method for implementing the above embodiments may be implemented by hardware instructions related to a program, the program may be stored in a computer-readable storage medium, and when executed, the program includes the steps of the above method, and the storage medium, such as: ROM/RAM, magnetic disk, optical disk, etc.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A task execution method for an application, comprising the steps of:
determining a first service file required by the client to execute the task of the application program according to the task theme of the application program and the task execution history of the client, wherein the first service file is used for executing the corresponding task of the task theme;
sending a first service file to the client, and enabling the client to execute a task of a corresponding task theme according to the first service file;
the task theme is the running environment for configuring the client, and the first service file comprises a data file packet;
the step of sending the first service file to the client, and enabling the client to execute a corresponding task according to the first service file comprises the following steps:
sending a first service file containing the data file packet to the client, so that the client configures the operating environment according to the data file packet to complete an executed task;
and/or
The task subject is an execution function and a business process, the first business file comprises an instruction file, and the instruction file comprises a script file;
the step of sending the first service file to the client, and enabling the client to execute a corresponding task according to the first service file comprises the following steps:
and sending a first service file containing the instruction file to the client, so that the client executes the function and the service process of the instruction file.
2. The method for executing the task of the application program according to claim 1, wherein determining the first service file required by the client to execute the task of the application program according to the task topic of the application program and the task execution history of the client comprises:
according to the task theme of the application program and the task execution history, acquiring a first execution record in the task execution history of the task theme, wherein the first execution record is an execution record corresponding to the data file packet;
and determining a first service file required by the client to execute the task of the application program according to the first execution record.
3. The method for executing task of application program according to claim 1, wherein after sending the first service file to the client and enabling the client to execute corresponding task according to the first service file, the method further comprises the following steps:
and acquiring a second execution record, and storing the second execution record in the task execution history record of the client, wherein the second execution record is an execution record after the client completes execution of the first service file.
4. The task execution method of the application program according to claim 3, wherein sending the first service file to the client comprises the following steps:
storing the first service file in a server;
the triggering server transmits the first service file to the client through long connection;
acquiring the execution record of the client for executing the first service file, including the following steps:
and receiving the second execution record forwarded by the server.
5. The method for executing the task of the application program according to claim 1 or 4, wherein before determining the first service file required by the client to execute the task of the application program according to the task topic of the application program and the task execution history of the client, the method further comprises the following steps:
receiving a task execution request sent by an application program of the client;
and determining a corresponding task theme according to the task execution request.
6. A task execution system for an application, comprising:
the system comprises a determining module, a task execution history recording module and a processing module, wherein the determining module is used for determining a first service file required by a client to execute a task of an application program according to a task theme of the application program and the task execution history recording of the client, the first service file is used for executing a corresponding task of the task theme, the task theme is used for configuring an operating environment and/or an execution function and a service flow of the client, the first service file comprises a data file packet and/or an instruction file, and the instruction file comprises a script file;
the sending module is used for sending a first service file to the client so that the client executes a task of a corresponding task theme according to the first service file;
the sending module is further configured to send a first service file including the data file packet to the client, so that the client configures the operating environment according to the data file packet to complete an executed task; and/or the client is further used for sending a first service file containing the instruction file to the client, so that the client executes the function and the service process of the instruction file.
7. A task execution method for an application, comprising the steps of:
receiving a first service file sent by a server, wherein the first service file is determined according to a task theme of an application program and a task execution history of a client;
executing a task corresponding to the task theme according to the first service file;
executing the task corresponding to the task theme according to the first service file, comprising the following steps:
the first service file comprises a data file packet, the task corresponding to the task subject is the operation environment for configuring the client, and the operation environment is configured according to the data file packet to complete the executed task;
and/or
The first business file comprises an instruction file, the instruction file comprises a script file, the task corresponding to the task theme is an execution function and a business process, and the function and the business process of the instruction file are executed.
8. A task execution system for an application, comprising:
the receiving module is used for receiving a first service file sent by a server, wherein the first service file is determined according to a task theme of the application program and a task execution history of a client; the task corresponding to the task theme is to configure the running environment and/or the execution function and the business process of the client, the first business file comprises a data file packet and/or an instruction file, and the instruction file comprises a script file;
the task execution module is used for executing the task corresponding to the task theme according to the first service file;
the task execution module is also used for configuring the operating environment according to the data file packet to complete the executed task; and/or the function and the business process of the instruction file are executed.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method as claimed in claim 7.
CN201710890660.5A 2017-09-27 2017-09-27 Task execution method and system of application program Active CN107632840B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710890660.5A CN107632840B (en) 2017-09-27 2017-09-27 Task execution method and system of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710890660.5A CN107632840B (en) 2017-09-27 2017-09-27 Task execution method and system of application program

Publications (2)

Publication Number Publication Date
CN107632840A CN107632840A (en) 2018-01-26
CN107632840B true CN107632840B (en) 2020-07-10

Family

ID=61102861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710890660.5A Active CN107632840B (en) 2017-09-27 2017-09-27 Task execution method and system of application program

Country Status (1)

Country Link
CN (1) CN107632840B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8769526B2 (en) * 2012-06-19 2014-07-01 Google Inc. Automatic application updates
CN105740027B (en) * 2012-12-06 2019-07-19 北京奇虎科技有限公司 Application program update method and apparatus
CN105446768B (en) * 2015-11-05 2019-07-05 小米科技有限责任公司 Method for upgrading system and device
CN113360812B (en) * 2016-03-07 2024-02-06 创新先进技术有限公司 Service execution method and device

Also Published As

Publication number Publication date
CN107632840A (en) 2018-01-26

Similar Documents

Publication Publication Date Title
US10348861B2 (en) Software upgrade method and terminal
EP1697836B1 (en) Mobile device programming system and method
US9092286B2 (en) System to automatically process components on a device
CN107239295B (en) Software upgrading method and software upgrading device
EP2864873B1 (en) Auto-update while running a client software application with update handshake between versions and runtime validation of the successor version
EP3635547B1 (en) Systems and methods for preventing service disruption during software updates
CN102833350A (en) Processing method and processing device of WebApp updating
US10404568B2 (en) Agent manager for distributed transaction monitoring system
CN106886422A (en) Method for upgrading software and device, electronic equipment
CN103049287A (en) Mobile terminal and method for installing application programs of mobile terminal
CN109391673A (en) A kind of method, system and the terminal device of management update file
CN111125175A (en) Service data query method and device, storage medium and electronic device
CN103973745A (en) Mobile terminal operating system updating method and device
CN113434230A (en) Jump control method and device for H5 page, storage medium and electronic device
CN111752577B (en) Upgrading method and equipment for system version
CN103761126A (en) Method and device for upgrading application program
US11775274B2 (en) Application software installation method, device, and server
KR101119432B1 (en) - system for registry-based automatic installation and component handling on a device
CN106293814B (en) Upgrading method and device
CN107632840B (en) Task execution method and system of application program
CN104348646A (en) Configuration data processing method, device and system
CN109799997B (en) Management method for presetting third party application, intelligent terminal and storage medium
CN113434171A (en) Resource package updating method and device, storage medium and electronic device
JP6504000B2 (en) Data delivery control program, data delivery control method and data delivery apparatus
CN110659309A (en) Memory database communication method, device, server and storage 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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220216

Address after: Room 1423, No. 1256 and 1258, Wanrong Road, Jing'an District, Shanghai 200040

Patentee after: Tianyi Digital Life Technology Co.,Ltd.

Address before: 1 / F and 2 / F, East Garden, Huatian International Plaza, 211 Longkou Middle Road, Tianhe District, Guangzhou, Guangdong 510630

Patentee before: Century Dragon Information Network Co.,Ltd.

TR01 Transfer of patent right