The present disclosure claims priority to Chinese Patent Application No. 202110688135.1, titled “TASK PROCESSING METHOD, ELECTRONIC DEVICE AND STORAGE MEDIUM,” filed on Jun. 21, 2021, in the China National Intellectual Property Administration, the content of which is incorporated herein by reference in its entirety.
The present disclosure relates to the field of Internet technology and, in particular, to task processing methods.
With the current rapid development of mobile Internet, mobile terminal-based task processing has become increasingly more mature. Usually there is only one task in a framework, or a task is triggered by only a single condition, which makes users feel monotonous and dull when completing tasks on mobile terminals, and affects user experience over time.
The present disclosure relate to task processing methods. The technical solutions of the present disclosure are as follows.
According to some arrangements of the present disclosure, a task processing method includes displaying, by a client, first task information for a first task and second task information for a second task in an application, where a first subtask in the first task corresponds to same event information as a second subtask in the second task, the first task information includes a first task progress parameter, and the second task information includes a second task progress parameter, and updating, by the client, in response to a received event processing command having pending event information that matches the first subtask or the second subtask, the first task progress parameter and the second task progress parameter based on the pending event information.
According to some arrangements of the present disclosure, an electronic device includes a processor, and a memory for storing instructions executable by the processor, where the processor is configured to execute the instructions to implement one of the methods as described herein.
According to some arrangements of the present disclosure, a non-transitory computer-readable storage medium stores computer-readable instructions, such that, when executed by the processor of the electronic device, enables the electronic device to perform one of the methods described herein.
According to some arrangements of the present disclosure, a computer program product including a computer program stored in the readable storage media. At least one processor of the computer device reads and executes the computer program from the readable storage medium, causing the computer device to perform one of the methods described herein.
It should be understood that the foregoing general description and the following detailed description are examples and explanatory only and do not limit the present disclosure.
The accompanying drawings, incorporated into and form part of the specification, illustrate arrangements consistent with the present disclosure, and are used in conjunction with the specification to explain the principles of the present disclosure and do not constitute an undue limitation of the present disclosure.
In order to enable a person of ordinary skill in the art to better understand the technical solutions of the present disclosure, the technical solutions in the arrangements of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms “first,” “second,” etc. in the specification, claims and the above accompanying drawings of the present disclosure are used to distinguish similar objects, but not necessarily be used to describe a particular order or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances so that the arrangements of the disclosure described herein can be practiced in sequences other than those illustrated or described herein. The implementations described in the example arrangements below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure, as detailed in the appended claims.
Referring to
In an alternative arrangement, the above-mentioned client 02 may display first task information for a first task and second task information for a second task in an application. A first subtask in the first task corresponds to the same event information as a second subtask in the second task. The first task information includes a first task progress parameter, and the second task information includes a second task progress parameter. In response to an event processing command received by the client 02 having pending event information that matches the first subtask or the second subtask, the first task progress parameter and the second task progress parameter are updated according to the pending event information. The above-mentioned client may include, but is not limited to, a smartphone, desktop computer, tablet computer, laptop computer, smart speaker, digital assistant, Augmented Reality (AR)/Virtual Reality (VR) device, smart wearable device, and other types of electronic devices. It can also be software running on the above electronic device, such as applications, applets, etc. In some arrangements, the operating system running on the electronic device may include, but is not limited to, Android, IOS, Linux, windows, Unix, etc.
In some arrangements, the server 01 may be a device that sends event processing commands to the client 02. The server 01 may be a standalone physical server or a server cluster or distributed system composed of multiple physical servers, and may also be a cloud server that provides cloud services, cloud database, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, Content Delivery Network (CDN), big data and artificial intelligence platforms, and other basic cloud computing services.
In some arrangements, the client and server can be connected to each other via a wired link, or via a wireless link.
At S201, displaying, by the client, first task information for a first task and second task information for a second task in an application, where a first subtask in the first task corresponds to same event information as a second subtask in the second task, the first task information includes a first task progress parameter, and the second task information includes a second task progress parameter.
In the arrangements of this application, the client may display the first task information for the first task and the second task information for the second task on the application, or the client may also display the first task information for the first task and the second task information for the second task on an opened browser website.
In some arrangements, the first task may include one or more subtasks, and the second task may include one or more subtasks. For example, the first task may include a first subtask and a third subtask, and the second task may include a second subtask (e.g., there may be only one subtask included in the second task). Of course, in addition to the first and second tasks mentioned above, the application or website may also be provided with a third task, a fourth task, a fifth task, etc., where the third, fourth, and fifth tasks may also include one or more subtasks.
For the convenience of description, the first task and the second task are used as examples for description in the arrangements of the present application. It is assumed that the first task includes a first subtask (e.g., sales task) and a third subtask (e.g., gain followers task), and the second task includes one subtask, i.e., the second subtask (e.g., sales task). In some arrangements, the above-mentioned sales task or the gain followers task is only an optional implementation, and there may be other tasks, including tasks related to the length of video playback, the number of hours spent watching live broadcasts, following the anchor, the number of posts, the number of times the app was opened, the number of interactions between the host and the host's audience, etc.
In some arrangements, the first subtask in the first task and the second subtask in the second task may correspond to the same event information. For example, the event information of both the first subtask and the second subtask is sales event information, and thus the sales event information can correspond to the first subtask in the first task and the second subtask in the second task. That is, the same event information can satisfy the subtasks in both tasks.
At S203, updating, by the client, in response to a received event processing command having pending event information that matches the first subtask or the second subtask, the first task progress parameter and the second task progress parameter based on the pending event information.
Based on the above example that both the first subtask and the second subtask are sales tasks, and that the event information is sales event information to proceed to describe S203. Assuming that the pending event information included in the received event processing command is the above-mentioned sales event information, since the first subtask in the first task and the second subtask in the second task correspond to the same event information, when there is pending event information (sales event information) matching the first subtask or the second subtask in the received event processing command, the client can update the first task progress parameter and the second task progress parameter based on the pending event information.
In some arrangements, the client may display the first task information for the first task on the task page.
Taking
In the arrangements of this application, based on the first subtask and the third subtask described above, if there is first pending event information (e.g., sales event information) that matches the first subtask or the second subtask in an event processing command received by the client, the client can update the first sub-progress parameter based on the first pending event information since the first subtask and the second subtask correspond to the same event information. And/or, if there is second pending event information (e.g., gain followers event information) that matches the third subtask in the event processing command received by the client, the client can update the third sub-progress parameter based on the second pending event information.
That is, there can be pending event information corresponding to one subtask in an event processing command, or there can be pending event information corresponding to multiple sub-tasks in an event processing command.
In this way, a task may include multiple subtasks and the corresponding sub-progress parameter of each subtask may be updated according to the pending event information corresponding to each subtask, which makes the arrangements of the present application applicable to more scenarios and provides the possibility for a task to carry more information and thus improve the efficiency of event processing while increasing the flexibility of the application.
In some arrangements, the event processing command may be received from other clients, or from the server.
In some arrangements, the task information may include a task target parameter and resource information corresponding to the task target parameter.
In some arrangements, the task target parameters may be reflected by the task target parameters in the task description information (e.g., XX RMB and XX followers), and also by the first target parameter 401 corresponding to the first subtask and the third target parameter 402 corresponding to the third subtask included in the first task information 302 of the first task.
As shown in
For example, if the first sub-progress parameter AA RMB matches the first target parameter XX RMB (e.g., AA is equal to XX) and the third sub-progress parameter BB followers matches the third target parameter XX followers (e.g., BB is equal to XX), the client can send the resource allocation command to the resource allocation device, and the resource allocation command is used to instruct the resource allocation device to complete the processing of allocating the virtual resources corresponding to the resource information (e.g., a CC MB data package) to the client.
In this way, only when the target parameters corresponding to the two subtasks are satisfied at the same time, the client can send the resource allocation command to the resource allocation device. The above method can motivate the client users to try to balance the resource allocation (including time, manpower) between the two subtasks, to provide better services to the audience and create a positive operating environment while trying to improve their own business.
In some arrangements, as shown in
The third target parameter includes a plurality of third node parameters, such as the first one third node parameter “XX3 followers,” the second one third node parameter “XX4 followers,” and the third one third parameter “XX followers” in
The resource information includes amounts of node resource information, such as the first piece of node resource information “CC1 MB,” the second piece of node resource information “CC2 MB” and the third piece of node resource information “CC MB,” where CC1 MB is smaller than CC2 MB and CC2 MB is smaller than CC MB.
In the arrangements of this application, if there is a target first node parameter among the plurality of first node parameters that matches the first sub-progress parameter, and there is a target third node parameter among the plurality of third node parameters that matches the third sub-progress parameter, the client may determine the target resource information from the amounts of node resource information based on the target first node parameter and the target third node parameter. Then, the client may send to the resource allocation device the resource allocation command which is used to instruct the resource allocation device to complete the processing of allocating the virtual resources corresponding to the target resource information to the client.
In an alternative arrangement, it can be shown in
In some arrangements, if the current sales amount AA RMB matches XX1 RMB and the current number of followers matches XX4, a CC1 MB data package allocated by the resource allocation device can be obtained. In this case, only if the two node parameters corresponding to the node resource information are reached at the same time, can the node resource information be obtained.
In some arrangements, as shown in
In the arrangements of this application, if there is a target first node parameter among the plurality of first node parameters that matches the first sub-progress parameter within the time duration (e.g., “D days”) indicated by the task duration information, and there is a target third node parameter among the plurality of third node parameters that matches the third sub-progress parameter within the time duration (e.g., “D days”) indicated by the task duration information, the client may determine the target resource information from the amounts of node resource information based on the target first node parameter and the target third node parameter. Then, the client may send to the resource allocation device the resource allocation command which is used to instruct the resource allocation device to complete the processing of allocating the virtual resources corresponding to the target resource information to the client.
Therefore, in the arrangements of the present application, task progress parameters corresponding to different node parameters, enables the client users to work flexibly in order to achieve the milestones and to be able to provide better services to the audience and create a positive operating environment while improving their own business.
In the arrangements of the present disclosure, the task page may be a task page in an application on the client, or may be a task page in a website on the client. In an alternative arrangement, the client may display the first task information for the first task and the second task information for the second task on the task page of the application.
In the arrangements of this application,
In the arrangements of this application, taking into account the size of the page occupied by the task information of the first task and the second task, both the first task and the second task can be arranged on a single page, making it more intuitive and convenient for the user to access.
In the arrangements of this application, taking into account the size of the task page, the first task and the second task may not be on the same task page, so that S201 may be represented as follows: the client displays the task information for the first task on a first task page of the application, and in response to a page switching command for the second task being detected, switches the first task page to a second task page, and displays the second task information for the second task on the second task page.
In some arrangements, the first task page includes a page skipping control.
In some arrangements, in response to gesture information corresponding to the page switching command for the second task being detected, client may switch the first task page (e.g., task page 301 in
In this way, in the arrangements of this application, taking into account the size of the page occupied by the task information of the first task and the second task, the first task and the second task can be arranged on different pages, and the pages can be switched in a certain way to provide the user with a convenient and quick operation.
In the arrangements of this application, there is also provided an implementation for updating task progress parameters corresponding to subtasks.
At S2031, receiving an event processing command.
At S2033, obtaining the pending event information by paring the event processing command, the pending event information including an event identifier and an event process parameter.
In the arrangements of this application, the event identifier can be used to indicate which event is mainly included in the pending event information, for example, the event identifier for the sales event information can be 0001, and the event identifier for the gain followers event information can be 0002. The above event identifiers are only alternative arrangements, and other feasible event identifiers may also be included.
At S2035, updating, in response to the event identifier matching a task identifier of the first subtask or a task identifier of the second subtask, the first sub-progress parameter corresponding to the first subtask and the second sub-progress parameter corresponding to the second subtask based on the event process parameter.
In some arrangements, the event process parameter may be the parameter on a current stage of the event corresponding to the sales event information. For example, when the event identifier matches the task identifier of the first subtask in the first task and the event process parameter may be determined as 500 RMB, the first sub-progress parameter is 5000 RMB and the updated first sub-progress parameter is 5500 RMB, and the second sub-progress parameter is 6000 RMB and the updated first sub-progress parameter is 6500 RMB.
In some arrangements, the first task and the second task may not be tasks started at the same point in time, for example, the first task may be the task started first and the second task planned by the planner after the first task is started, so that even if the first subtask in the first task and the second subtask in the second task correspond to the same event information, the sub-progress parameters of the first subtask and the second subtask may be inconsistent.
In view of above, the arrangements of this application, the subtasks of two tasks can be processed simultaneously by one kind of event information, which provides more application scenarios while improving the efficiency for the interaction between devices.
In the arrangements of this application, the organization information to which the first task belongs is the first organization information, and the organization information to which the second task belongs is the second organization information. In some arrangements, the first organization information and the second organization information can be the same organization information or different organization information. When they are different organization information, it means that the two tasks belong to different business lines or product lines, etc., and tasks from different departments or business or product lines are integrated in one framework to improve the interaction and communication across departments.
In summary, in the arrangements of the present application, multiple tasks (e.g. the first task and the second task) can be integrated in a single framework, multiple subtasks cam be integrated in a total task, which can improve the connection between different tasks while enriching the task application scenario, thereby improving the efficiency of task completion for the user who completes the task, thus enhancing user participation and user experience.
The display module 901 is configured to display, in an application, first task information for a first task and second task information for a second task, where a first subtask in the first task corresponds to same event information as a second subtask in the second task, the first task information includes a first task progress parameter, and the second task information includes a second task progress parameter.
The update module 902 is configured to update, in response to a received event processing command having pending event information that matches the first subtask or the second subtask, the first task progress parameter and the second task progress parameter based on the pending event information.
In some arrangements, the first task progress parameter includes a first sub-progress parameter corresponding to the first subtask and the second task progress parameter includes a second sub-progress parameter corresponding to the second subtask. The update module 902 includes a receiving sub-module configured to receive an event processing command; a parsing sub-module configured to obtain the pending event information by parsing the event processing command, the pending event information including an event identifier and an event process parameter; and an update sub-module configured to update, in response to the event identifier matching a task identifier of the first subtask or a task identifier of the second subtask, the first sub-progress parameter corresponding to the first subtask and the second sub-progress parameter corresponding to the second subtask based on the event process parameter.
In some arrangements, the above-mentioned display module 901 is configured to display, on a task page of the application, the first task information for the first task and the second task information for the second task.
In some arrangements, the above-mentioned display module 901 includes a first display module configured to display, on a first task page of the application, the first task information for the first task; a switching module configured to switch, in response to a page switching command for the second task being detected, the first task page to a second task page; and a second display module configured to display, on the second task page, the second task information for the second task.
In some arrangements, the first task page includes a page skipping control; and the above-mentioned switching module is configured to switch, in response to a page skipping command triggered based on the page skipping control being detected, the first task page to the second task page.
In some arrangements, the above-mentioned switching module is configured to switch, in response to gesture information corresponding to the page switching command for the second task being detected, the first task page to the second task page.
In some arrangements, the first task further includes a third subtask, and the first task progress parameter includes a first sub-progress parameter corresponding to the first subtask and a third sub-progress parameter corresponding to the third subtask; and the update module 902 is configured to update, in response to the received event processing command having a first pending event information that matches the first subtask or the second subtask, the first sub-progress parameter based on the first pending event information; and/or update, in response to the received event processing command having a second pending event information that matches the third subtask, the third sub-progress parameter based on the second pending event information.
In some arrangements, the first task information comprises a task target parameter and resource information corresponding to the task target parameter; and the task target parameter includes a first target parameter corresponding to the first subtask and a third target parameter corresponding to the third subtask; and the above apparatus further includes: a sending module configured to send, in response to the first sub-progress parameter matching the first target parameter and the third sub-progress parameter matching the third target parameter, a resource allocation command to a resource allocation device, the resource allocation command being configured to instruct the resource allocation device to allocate virtual resources corresponding to the resource information to the client.
In some arrangements, the first target parameter includes a plurality of first node parameters and the third target parameter includes a plurality of third node parameters; and the resource information includes amounts of node resource information; and the above sending module includes a resource information determination module configured to determine, in response to the plurality of first node parameters including a target first node parameter that matches the first sub-progress parameter and the plurality of third node parameters comprising a target third node parameter that matches the third sub-progress parameter, target resource information from the amounts of node resource information based on the target first node parameter and the target third node parameter; and a command sending module configured to send the resource allocation command to the resource allocation device, the resource allocation command being configured to instruct the resource allocation device to allocate virtual resources corresponding to the target resource information to the client.
Regarding the apparatus in the above arrangements, the specific way in which each module performs its operation has been described in detail in the arrangements concerning the method, and will not be described in detail here.
The electronic device can be a server or a terminal device, the internal structure of which can be shown in
It will be understood by those skilled in the art that the structure illustrated in
In example arrangements, there is also provided an electronic device including a processor; a memory for storing instructions executable by the processor; where the processor is configured to execute the instructions to implement the task processing method as described in the arrangements of the present disclosure.
In example arrangements, there is also provided a non-transitory computer-readable storage medium that, when the instructions in the computer-readable storage medium are executed by a processor of the electronic device, enables the electronic device to perform the task processing method of arrangements of the present disclosure.
In example arrangements, there is also provided a computer program product, the computer program product including a computer program, the computer program stored in a readable storage medium, and at least one processor of the computer device reading and executing the computer program from the readable storage medium causing the computer device to perform the task processing method of arrangements of the present disclosure.
One of ordinary skill in the art can understand that achieving all or part of the processes in the methods of the above arrangements is accomplished by directing the associated hardware by means of a computer program, which may be stored in a non-transitory computer readable storage medium, which computer program, when executed, may include processes such as those of the arrangements of the methods described above. Any references to memory, storage, databases, or other media used in the arrangements provided in this application may include non-transitory and/or transitory memory. Non-transitory memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Other arrangements of the present disclosure will readily be anticipated by those skilled in the art upon consideration of the specification and practice of the arrangements disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure. The specification and examples are to be regarded as example only, and the true scope and spirit of the disclosure being indicated by the following claims.
It should be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
202110688135.1 | Jun 2021 | CN | national |