CN116795871A - Task state determining method and device and computer equipment - Google Patents

Task state determining method and device and computer equipment Download PDF

Info

Publication number
CN116795871A
CN116795871A CN202310904375.XA CN202310904375A CN116795871A CN 116795871 A CN116795871 A CN 116795871A CN 202310904375 A CN202310904375 A CN 202310904375A CN 116795871 A CN116795871 A CN 116795871A
Authority
CN
China
Prior art keywords
task
target
instruction
query object
information
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
CN202310904375.XA
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.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202310904375.XA priority Critical patent/CN116795871A/en
Publication of CN116795871A publication Critical patent/CN116795871A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present application relates to a task state determination method, apparatus, computer device, storage medium and computer program product. The task state determining method comprises the following steps: receiving a task state query instruction; the task state query instruction carries the identity information of the query object; when the query object does not have the completion information of the target task corresponding to the task state query instruction, acquiring the historical service information of the query object; matching the historical service information with a target task standard condition corresponding to the target task; according to the matching result, the task state of the target task corresponding to the query object is determined, and the repeated processing conditions of data acquisition, data matching and state judgment of the completed task of the query object are eliminated through the setting, so that the resource waste is prevented greatly.

Description

Task state determining method and device and computer equipment
Technical Field
The present application relates to the field of big data processing technology, and in particular, to a task state determining method, apparatus, computer device, storage medium, and computer program product.
Background
With the development of big data and mobile internet, more and more scenes related to data statistics and data analysis are more and more businesses can be represented in a data mode.
In order to grasp the actual development situation of each service, a service provider usually limits the staged targets of each service used by the service demander by setting a plurality of indexes such as quantity, quality and the like, so as to set up staged tasks related to the service for the service demander, and provide subsequent services for the service demander according to the completion situation of the staged tasks, however, the service diversity makes the task quantity become huge, the service provider needs to consume a great deal of time and resources in the process of counting the service data of each service demander and judging the completion situation of the task, and due to the huge data quantity, the mixed redundant data causes the resource utilization rate to be too low, thereby causing the resource waste.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a task state determination method, apparatus, computer device, storage medium, and computer program product that can expedite confirmation of a task state.
In a first aspect, the present application provides a task state determining method, including:
receiving a task state query instruction; the task state query instruction carries identity information of a query object;
when the query object does not have the completion information of the target task corresponding to the task state query instruction, acquiring the historical service information of the query object;
Matching the historical service information with a target task standard reaching condition corresponding to the target task;
and determining the task state of the target task corresponding to the query object according to the matching result.
In one embodiment, before receiving the task state query instruction, the method further includes:
receiving a configuration instruction;
and establishing a first mapping relation between the task corresponding to the configuration instruction and at least one task standard condition according to the configuration instruction.
In one embodiment, before the matching the historical service information with the target task standard reaching condition corresponding to the target task, the matching includes:
according to the target task, matching at least one corresponding task standard condition from the first mapping relation as the target task standard condition;
and determining the task state of the target task corresponding to the query object according to the matching result, wherein the determining comprises the following steps:
when the matched result shows that the historical service information meets the standard reaching conditions of each target task, determining that the task state is that the task is completed;
and when the matched result shows that the historical service information does not meet any target task standard condition, determining that the task state is task incompletion.
In one embodiment, after receiving the configuration instruction, the method further includes:
establishing a second mapping relation between the task corresponding to the configuration instruction, at least one task standard condition and virtual resource information;
after determining the task state of the target task corresponding to the query object according to the matching result, the method further comprises:
when the task state is task completion, matching corresponding virtual resource information from the second mapping relation according to the target task;
and transferring virtual resources from the first preset storage address to a second preset storage address corresponding to the query object according to the virtual resource information.
In one embodiment, the method further comprises:
receiving a change instruction;
according to the task corresponding to the change instruction, matching at least one task standard condition corresponding to the change instruction from the first mapping relation;
and updating the matched at least one task standard condition according to the at least one updated standard condition carried by the change instruction.
In one embodiment, the updating the matched at least one task standard condition according to the at least one updated standard condition carried by the change instruction includes:
Matching the task standard reaching conditions corresponding to the updated standard reaching conditions from at least one task standard reaching condition corresponding to the change instruction, and taking the task standard reaching conditions as the task standard reaching conditions to be updated;
and replacing the up-to-standard conditions of each task to be updated with the corresponding up-to-standard conditions.
In one embodiment, the updating the matched at least one task standard condition according to the at least one updated standard condition carried by the change instruction includes:
and replacing at least one task standard condition corresponding to the change instruction with at least one update standard condition carried by the change instruction.
In one embodiment, the target task comprises a single-shot task;
after determining the task state of the target task corresponding to the query object according to the matching result, the method further comprises:
and when the task state of the single-type task is that the task is completed, generating completion information corresponding to the query object according to the query object and the single-type task.
In one embodiment, the target task comprises a repetitive task;
after determining the task state of the target task corresponding to the query object according to the matching result, the method further comprises:
And when the task state of the repeated task is that the task is completed, the historical service information is used as judged historical service information.
In one embodiment, the matching the historical service information with the target task standard reaching condition corresponding to the target task further includes:
when the judged historical service information exists in the historical service information, the rest historical service information except the judged historical service information is matched with the target task standard condition corresponding to the target task.
In a second aspect, the present application further provides a task state determining apparatus, including:
the receiving module is used for receiving a task state query instruction; the task state query instruction carries identity information of a query object;
the acquisition module is used for acquiring historical service information of the query object when the query object does not have the completion information of the target task corresponding to the task state query instruction;
the matching module is used for matching the historical service information with a target task standard condition corresponding to the target task;
and the determining module is used for determining the task state of the target task corresponding to the query object according to the matching result.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the task state determination method according to any one of the above embodiments.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the task state determination method described in any of the above embodiments.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the task state determination method according to any of the above embodiments.
According to the task state determining method, the device, the computer equipment, the storage medium and the computer program product, after the task state query instruction is received, firstly, the query object and the target task corresponding to the task state query instruction are determined, then the related information of the query object-target task is searched from the prestored completion information, if the related information is not found, the historical service information of the query object is obtained continuously, and through the setting, the repeated processing conditions of data acquisition, data matching and state judgment of the completed task of the query object are eliminated, so that the resource waste is prevented, the automatic query of the state of the completed staged task of a service demander is realized, the high-automation confirmation of the staged task completion condition is realized, and the manpower and material resources are saved.
Drawings
FIG. 1 is an application environment diagram of a task state determination method in one embodiment;
FIG. 2 is a flow chart of a task state determination method in one embodiment;
FIG. 3 is a flow chart of a task state determination method in one embodiment;
FIG. 4 is a flow chart of a task state determination method in one embodiment;
FIG. 5 is a flow chart of a task state determination method in one embodiment;
FIG. 6 is a flow diagram of a method of task state determination in one embodiment;
FIG. 7 is a flow chart of a task state determination method in one embodiment;
FIG. 8 is a flow chart of a task state determination method in one embodiment;
FIG. 9 is a flow diagram of a method of task state determination in one embodiment;
FIG. 10 is a block diagram of a task state determination device in one embodiment;
FIG. 11 is an internal block diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The task state determining method provided by the embodiment of the application can be applied to an application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network.
For example, the task state determining method is applied to the terminal 102, and the terminal 102 receives a task state query instruction; the task state query instruction carries the identity information of the query object; when the query object does not have the completion information of the target task corresponding to the task state query instruction, the terminal 102 acquires the historical service information of the query object from the data storage system of the server 104; matching the historical service information with a target task standard condition corresponding to the target task; and finally, determining the task state of the target task corresponding to the query object according to the matching result, wherein the terminal 102 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things equipment and portable wearable equipment, and the internet of things equipment can be an intelligent sound box, an intelligent television, an intelligent air conditioner, intelligent vehicle-mounted equipment and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers. The terminal 102 and the server 104 may be connected directly or indirectly through wired or wireless communication means, for example, through a network connection.
For another example, the task state determining method is applied to the server 104, when the terminal 102 receives the task state query instruction, the terminal 102 sends the task state query instruction to the server 104, and then when the query object does not have the completion information of the target task corresponding to the task state query instruction, the server 104 acquires the historical service information of the query object from the data storage system; matching the historical service information with a target task standard condition corresponding to the target task; and finally, determining the task state of the target task corresponding to the query object according to the matching result. It will be appreciated that the data storage system may be a stand-alone storage device, or the data storage system may be located on a server, or the data storage system may be located on another terminal.
In one embodiment, a task state determining method is provided, and the task state determining method is applied to a terminal for illustration in this embodiment, it is to be understood that the method can also be applied to a server, and can also be applied to a system including the terminal and the server, and implemented through interaction between the terminal and the server.
As shown in fig. 2, the task state determining method includes:
Step 202, receiving a task state query instruction; the task state query instruction carries identity information of a query object.
In general, in order to grasp the actual development situation of each service, a service provider typically defines a staged goal of each service used by a service consumer by setting a number, a quality, and other indexes, so as to set up a staged task related to the service for the service consumer, and provide a subsequent service for the service consumer according to the completion situation of the staged task.
The task state query instruction refers to an instruction for querying the actual situation that the business demander completes the staged task.
The query object is used for indicating the service demander, and the query object can be specifically any account which is registered in advance on a platform appointed by the service provider. The identity information of the querying object may be composed of at least one of letters, characters, or numbers for uniquely identifying the service demander.
As an example, the task state query instruction may be issued by the user through a man-machine interaction interface of the terminal, or the terminal may automatically generate the task state query instruction according to a preset query frequency, so as to perform timing query on the task completion condition of the query object, or the task state query instruction may be generated by the terminal being automatically triggered when the user inputs a specific instruction through the man-machine interaction interface of the terminal. The specific instruction may be, for example, an interface conversion instruction, a page refresh instruction, etc., and in actual use, a user clicks on a man-machine interaction interface of the terminal to enter the specific interface, which may be understood as sending the interface conversion instruction, and at this time, the terminal is automatically triggered to generate a task state query instruction, or the user performs refresh on the specific interface displayed on the man-machine interaction interface of the terminal, which may be understood as sending the page refresh instruction, and at this time, the terminal is automatically triggered to generate the task state query instruction.
And 204, acquiring historical service information of the query object when the query object does not have the completion information of the target task corresponding to the task state query instruction.
The target tasks refer to at least one service-related staged task set by the service provider.
Completion information of the target task may be understood as information for indicating that the service demander completes the staged task set by the service provider.
The completion information may be pre-stored in a data storage system of the server for indicating information about each staged task that was completed by different service demander.
The historical service information can be interaction related data and operation related data generated on a platform appointed by the service provider by an account corresponding to the query object. The historical service information can reflect all operations that the account corresponding to the query object has done on the service provider designated platform. The terminal may acquire the historical service information according to a preset duration, for example, the terminal may acquire service information generated by the query object in a previous preset duration by using the current time as a starting point, as the historical service information.
As an example, the task status query instruction further carries task identity information, where the task identity information may be composed of at least one of letters, characters, or numbers, and is used to uniquely identify the staged task set by the service provider.
After receiving the task state query instruction, the terminal can determine a corresponding target task according to the task identity information carried by the task state query instruction.
As an example, when the data storage system of the server generates and stores the completion information according to the staged task completed by each service requiring party, the identity information of the corresponding service requiring party and the task identity information of the corresponding staged task may be marked in advance on each piece of completion information, and after the terminal receives the task state query instruction, the terminal may first match the identity information and the task identity information of the query object carried by the task state query instruction with the identity information of the service requiring party and the task identity information of the staged task carried by the completion information, so as to determine whether the current query object has completed the target task in the completion information, if not, then it may be considered that the query object has not completed the target task when the terminal receives the task state query instruction for the current query object to complete the target task in the previous time, and at this time, the terminal needs to reacquire the history service information to determine whether the query object has completed the target task.
And 206, matching the historical service information with the target task standard condition corresponding to the target task.
The target task standard condition refers to a completion condition judgment standard corresponding to the staged task set by the service provider.
The target task achievement condition may include an indicator that the business demander needs to meet when completing the target task.
And the terminal matches all operation related information of the account corresponding to the query object, which is carried out on the service provider designated platform in the past, with the completion condition judgment standard corresponding to the staged task set by the service provider, so as to judge whether the operation of the account corresponding to the query object in the past reaches the staged task standard formulated by the service provider.
Step 208, determining the task state of the target task corresponding to the query object according to the matching result.
The task state may include that the task is completed and the task is not completed.
When the terminal judges that all operation related information of the account corresponding to the query object, which is carried out on the service provider designated platform in the past, meets the completion condition judgment standard corresponding to the staged task set by the service provider, the matching result is that the query object has completed the target task, and the terminal determines that the task state of the target task corresponding to the query object is that the task has completed; when the terminal judges that all operation related information of the account corresponding to the query object, which is carried out on the appointed platform of the service provider in the past, does not meet the completion condition judgment standard corresponding to the staged task set by the service provider, the matching result is that the query object does not complete the target task, and at the moment, the terminal determines that the task state of the target task corresponding to the query object is task incompletion.
As an example, after determining the task state of the target task corresponding to the query object, the terminal may display the task state through a human-computer interaction interface of the terminal, and the service demander may directly obtain the completion situation of the target task through the human-computer interaction interface.
Or, the task state may further include a completion progress of the target task, for example, when the target task standard-reaching condition is an index related to the number corresponding to the staged task, the target task standard-reaching condition may be a preset value, and then the terminal may calculate, according to the actual value corresponding to the historical service information, a quotient of the actual value and the preset value as the completion progress of the target task.
In the task state determining method, after the terminal receives the task state query instruction, the terminal can firstly determine the query object and the target task corresponding to the task state query instruction, then search the related information of the query object-target task from the prestored completion information, and if the related information is not found, continue to acquire the historical service information of the query object, through the setting, the repeated processing conditions of data acquisition, data matching and state judgment of the completed task of the query object are eliminated, so that the resource waste is prevented to the greatest extent, and the task state determining method realizes the automatic query of the state of the completion of the staged task by the service demander, realizes the highly automatic confirmation of the completion condition of the staged task, and saves manpower and material resources.
As shown in fig. 3, in some alternative embodiments, prior to step 202, further comprising:
step 201a, receiving a configuration instruction;
step 201b, according to the configuration instruction, a first mapping relation between the task corresponding to the configuration instruction and at least one task standard condition is established.
The configuration instruction refers to an instruction for configuring and changing indexes which are required to be met and correspond to different staged tasks.
As an example, the configuration instruction may carry task information and at least one index content information of a staged task, where the task information may include task identity information and task content information, after receiving the configuration instruction, the terminal may first determine whether a task corresponding to the task identity information exists according to the task identity information carried by the configuration instruction, and if not, newly establish a task according to the task content information, and further establish at least one task standard condition according to at least one index content information carried by the configuration instruction, and then establish a first mapping relationship between the established task and the established at least one task standard condition. If the task identification information exists, the terminal directly establishes at least one task standard condition according to at least one index content information carried by the configuration instruction, and then establishes a first mapping relation between the task corresponding to the task identification information and the at least one task standard condition. The task content information may include a name, a number, and the like of the task.
In another optional embodiment, the terminal may further receive a deletion instruction, where the deletion instruction carries task identity information and index content information to be deleted, and after receiving the deletion instruction, the terminal matches the task according to the task identity information carried by the deletion instruction to a corresponding task, further matches the corresponding task standard condition according to the index content information to be deleted, and finally deletes the matched task standard condition.
As shown in fig. 4, in some alternative embodiments, prior to step 206, further comprising:
step 205, matching at least one corresponding task standard condition from the first mapping relation according to the target task, and taking the target task standard condition as the target task standard condition;
step 208 includes:
when the matched result shows that the historical service information meets the standard condition of each target task, determining the task state as that the task is completed;
and when the matched result shows that the history service information does not meet any target task standard condition, determining that the task state is task incompletion.
In this embodiment, it may be understood that there are multiple staged subtasks in one staged task, and each staged subtask has a corresponding target task standard condition. When the terminal determines that the historical service information accords with all the task standard-reaching conditions corresponding to the target task, the terminal can consider that the historical service information accords with all the stage subtasks in the stage tasks, at the moment, the task state can be confirmed to be that the task is completed, and when the terminal determines that the historical service information does not accord with any one of the task standard-reaching conditions corresponding to the target task and the target task, the terminal can consider that the historical service information does not accord with a certain stage subtask in the stage tasks, at the moment, the task state is confirmed to be that the task is incomplete.
In some alternative embodiments, step 201a may further include:
establishing a second mapping relation among tasks corresponding to the configuration instruction, at least one task standard condition and virtual resource information;
after step 208, the method further includes:
when the task state is that the task is completed, matching corresponding virtual resource information from the second mapping relation according to the target task;
and transferring the virtual resource from the first preset storage address to a second preset storage address corresponding to the query object according to the virtual resource information.
The virtual resource information indicates specific information corresponding to the virtual resource, and may include, for example, a storage address, numerical information, and the like of the virtual resource.
The service provider can issue virtual resources for the service demander according to the completion condition of the staged tasks of the service demander by presetting the virtual resource information corresponding to each staged task, so as to achieve the purpose of providing better service for the service demander.
As shown in fig. 5, in some alternative embodiments, the task state validation method further includes:
step 502, receiving a change instruction;
step 504, matching at least one task standard condition corresponding to the change instruction from the first mapping relation according to the task corresponding to the change instruction;
Step 506, updating the matched at least one task standard condition according to the at least one updated standard condition carried by the change instruction.
The change instruction refers to an instruction which is deleted and added aiming at indexes which are required to be met and correspond to different staged tasks.
As an example, the modification instruction may carry task identity information and modification task content information of a staged task that needs to modify a corresponding index, after receiving the modification instruction, the terminal may first determine whether a task corresponding to the task identity information exists according to the task identity information carried by the modification instruction, and if so, further match at least one task standard condition corresponding to the task from the first mapping relationship, that is, the at least one task standard condition corresponding to the modification instruction, then establish at least one update standard condition according to the modification task content information, and then update the at least one task standard condition corresponding to the task by adopting the update standard condition.
As shown in fig. 6, in some alternative embodiments, step 506 includes:
step 5062a, matching the task standard condition corresponding to each updated standard condition from at least one task standard condition corresponding to the change instruction as a task standard condition to be updated;
Step 5064a, replacing each task to be updated with a corresponding updated standard condition.
In this embodiment, after at least one task standard condition corresponding to the change instruction is matched from the first mapping relationship, the terminal may further obtain task content information of the at least one task standard condition corresponding to the change instruction, compare and match the task content information with the change task content information carried by the change instruction, and if there is task content information identical to the change task content information, take the task standard condition corresponding to the task content information as a task standard condition to be updated, and replace with an update standard condition corresponding to the change task content information, so as to complete partial change in multiple task standard conditions corresponding to a staged task.
As shown in fig. 7, in some alternative embodiments, step 506 includes:
step 5062b, replacing at least one task standard condition corresponding to the change instruction with at least one update standard condition carried by the change instruction.
In this embodiment, after at least one task standard condition corresponding to a change instruction is matched from the first mapping relation, the task standard condition is completely deleted, and according to change task content information carried by the change instruction, at least one update standard condition is established to replace the deleted task standard condition, so as to complete change of a plurality of task standard conditions corresponding to a staged task.
As shown in fig. 8, in some alternative embodiments, the target task comprises a single-type task;
after step 208, the method further includes:
in step 209a, when the task state of the single-type task is that the task is completed, completion information corresponding to the query object is generated according to the query object and the single-type task.
As an example, when the task state of the single-type task is that the task is completed, the task identity information of the single-type task and the identity information of the query object are packaged and stored in the data storage system where all the completion information is located, and when the terminal subsequently receives the task state confirmation instruction again, the terminal can judge whether the query object completes the target task according to all the latest completion information.
The completion information can be continuously updated according to the actual completion condition of the staged task, so that the terminal can accurately judge whether the target task is completed by the query object each time the terminal receives the task state confirmation instruction, and the repeated processes of data retrieval, data matching and state judgment of the completed task of the service demander are avoided.
As shown in fig. 9, in some alternative embodiments, the target task includes a repetitive task;
After step 208, the method further includes:
step 209b, when the task status of the repetitive task is that the task is completed, the historical service information is used as the judged historical service information.
The repetitive task refers to an index that a business demander can complete repeatedly. When the business demand side completes a repeated task, the terminal can judge the completion condition of the repeated task again according to the history business information newly generated by the business demand side.
In this embodiment, when the terminal confirms that the task state of the repeated task is that the task is completed, the terminal may encapsulate the historical service information of the query object, that is, the service demander, obtained in step 204, as the judged historical service information.
Further, step 206 matches the remaining historical service information except the judged historical service information with the target task standard condition corresponding to the target task when the judged historical service information exists in the historical service information, so as to prevent the repeated processing of the service information which accords with the index of the repetitive task in the past.
According to the task state determining method, a user can flexibly configure and change indexes corresponding to each staged task in real time through the terminal, the configuration flexibility and the universality of task standard reaching conditions corresponding to the staged tasks are improved, the development cost is reduced, the purposes of completing the staged tasks according to service demands and issuing corresponding virtual resources are achieved through presetting corresponding virtual resource information for each staged task, the task completion conditions and the high automation of virtual resource issuing are improved through the mode, further, the task state determining method packages historical service data of repeated tasks through packaging historical service data of single-type tasks, differentiation of different types of staged tasks is achieved, and the flexibility of task configuration is improved.
It should be understood that, although the steps in the flowcharts related to the above embodiments are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a task state determining device for realizing the task state determining method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the task state determining device or task state determining devices provided below may be referred to the limitation of the task state determining method hereinabove, and will not be described herein.
In one embodiment, as shown in fig. 10, there is provided a task state determination device 1000 including: a receiving module 1002, an acquiring module 1004, a matching module 1006, and a determining module 1008, wherein:
the receiving module 1002 is configured to receive a task state query instruction; the task state query instruction carries the identity information of the query object;
the obtaining module 1004 is configured to obtain, when the query object does not have the completion information of the target task corresponding to the task state query instruction, historical service information of the query object;
the matching module 1006 is configured to match the historical service information with a target task standard condition corresponding to the target task;
the determining module 1008 is configured to determine, according to the matching result, a task state of a target task corresponding to the query object.
In some alternative embodiments, the receiving module 1002 is further configured to:
receiving a configuration instruction;
and establishing a first mapping relation between the task corresponding to the configuration instruction and at least one task standard condition according to the configuration instruction.
In some alternative embodiments, the matching module 1006 is further configured to:
according to the target task, matching at least one corresponding task standard condition from the first mapping relation as a target task standard condition;
The determination module 1008 is further configured to:
when the matched result shows that the historical service information meets the standard condition of each target task, determining the task state as that the task is completed;
and when the matched result shows that the history service information does not meet any target task standard condition, determining that the task state is task incompletion.
In some alternative embodiments, the receiving module 1002 is further configured to:
establishing a second mapping relation among tasks corresponding to the configuration instruction, at least one task standard condition and virtual resource information;
the determination module 1008 is further configured to:
when the task state is that the task is completed, matching corresponding virtual resource information from the second mapping relation according to the target task;
and transferring the virtual resource from the first preset storage address to a second preset storage address corresponding to the query object according to the virtual resource information.
In some alternative embodiments, the receiving module 1002 is further configured to:
receiving a change instruction;
according to the task corresponding to the change instruction, at least one task standard condition corresponding to the change instruction is matched from the first mapping relation;
and updating the matched at least one task standard condition according to the at least one updated standard condition carried by the change instruction.
In some alternative embodiments, the receiving module 1002 is further configured to:
matching the task standard condition corresponding to each updated standard condition from at least one task standard condition corresponding to the change instruction as the task standard condition to be updated;
and replacing the up-to-standard conditions of each task to be updated with the corresponding up-to-standard conditions.
In some alternative embodiments, the receiving module 1002 is further configured to:
and replacing at least one task standard condition corresponding to the change instruction with at least one update standard condition carried by the change instruction.
In some alternative embodiments, the target task comprises a single-type task;
the determination module 1008 is further configured to:
and when the task state of the single-type task is that the task is completed, generating completion information corresponding to the query object according to the query object and the single-type task.
In some alternative embodiments, the target task comprises a repetitive task;
the determination module 1008 is further configured to:
and when the task state of the repeated task is that the task is completed, the historical service information is used as judged historical service information.
In some alternative embodiments, the matching module 1006 is further configured to:
when the judged historical service information exists in the historical service information, the rest historical service information except the judged historical service information is matched with the target task standard condition corresponding to the target task.
The respective modules in the task state determination device described above may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 11. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a task state determination method. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 11 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon which, when executed by a processor, implements the steps of the task state determination method described above.
In one embodiment, a computer program product is provided comprising a computer program product which, when executed by a processor, implements the steps of the task state determination method described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (11)

1. A task state determination method, characterized by comprising:
receiving a task state query instruction; the task state query instruction carries identity information of a query object;
when the query object does not have the completion information of the target task corresponding to the task state query instruction, acquiring the historical service information of the query object;
matching the historical service information with a target task standard reaching condition corresponding to the target task;
According to the matching result, determining the task state of the target task corresponding to the query object;
the target tasks comprise a single-type task and a repeated-type task;
when the task state of the single-type task is that the task is completed, generating completion information corresponding to the query object according to the query object and the single-type task;
when the task state of the repeated task is that the task is completed, the historical service information is used as judged historical service information;
the matching of the historical service information with the target task standard reaching condition corresponding to the target task further comprises:
when the judged historical service information exists in the historical service information, the rest historical service information except the judged historical service information is matched with the target task standard condition corresponding to the target task.
2. The method of claim 1, further comprising, prior to receiving a task state query instruction:
receiving a configuration instruction;
and establishing a first mapping relation between the task corresponding to the configuration instruction and at least one task standard condition according to the configuration instruction.
3. The method according to claim 2, wherein before the matching the historical service information with the target task achievement condition corresponding to the target task, the method comprises:
according to the target task, matching at least one corresponding task standard condition from the first mapping relation as the target task standard condition;
and determining the task state of the target task corresponding to the query object according to the matching result, wherein the determining comprises the following steps:
when the matched result shows that the historical service information meets the standard reaching conditions of each target task, determining that the task state is that the task is completed;
and when the matched result shows that the historical service information does not meet any target task standard condition, determining that the task state is task incompletion.
4. The method of claim 2, wherein after receiving the configuration instruction, further comprising:
establishing a second mapping relation between the task corresponding to the configuration instruction, at least one task standard condition and virtual resource information;
after determining the task state of the target task corresponding to the query object according to the matching result, the method further comprises:
When the task state is task completion, matching corresponding virtual resource information from the second mapping relation according to the target task;
and transferring virtual resources from the first preset storage address to a second preset storage address corresponding to the query object according to the virtual resource information.
5. The method according to claim 2, wherein the method further comprises:
receiving a change instruction;
according to the task corresponding to the change instruction, matching at least one task standard condition corresponding to the change instruction from the first mapping relation;
and updating the matched at least one task standard condition according to the at least one updated standard condition carried by the change instruction.
6. The method of claim 5, wherein updating the matched at least one task compliance condition based on the at least one updated compliance condition carried by the change instruction comprises:
matching the task standard reaching conditions corresponding to the updated standard reaching conditions from at least one task standard reaching condition corresponding to the change instruction, and taking the task standard reaching conditions as the task standard reaching conditions to be updated;
and replacing the up-to-standard conditions of each task to be updated with the corresponding up-to-standard conditions.
7. The method of claim 6, wherein updating the matched at least one task compliance condition based on the at least one updated compliance condition carried by the change instruction comprises:
and replacing at least one task standard condition corresponding to the change instruction with at least one update standard condition carried by the change instruction.
8. A task state determination device, characterized by comprising:
the receiving module is used for receiving a task state query instruction; the task state query instruction carries identity information of a query object;
the acquisition module is used for acquiring historical service information of the query object when the query object does not have the completion information of the target task corresponding to the task state query instruction;
the matching module is used for matching the historical service information with a target task standard condition corresponding to the target task;
and the determining module is used for determining the task state of the target task corresponding to the query object according to the matching result.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the task state determination method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the task state determination method of any one of claims 1 to 7.
11. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the task state determination method of any one of claims 1 to 7.
CN202310904375.XA 2023-07-21 2023-07-21 Task state determining method and device and computer equipment Pending CN116795871A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310904375.XA CN116795871A (en) 2023-07-21 2023-07-21 Task state determining method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310904375.XA CN116795871A (en) 2023-07-21 2023-07-21 Task state determining method and device and computer equipment

Publications (1)

Publication Number Publication Date
CN116795871A true CN116795871A (en) 2023-09-22

Family

ID=88048143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310904375.XA Pending CN116795871A (en) 2023-07-21 2023-07-21 Task state determining method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN116795871A (en)

Similar Documents

Publication Publication Date Title
CN114611481A (en) Template configuration method and device, computer equipment and storage medium
CN112860953A (en) Data importing method, device, equipment and storage medium of graph database
CN113094125A (en) Business process processing method, device, server and storage medium
CN116795871A (en) Task state determining method and device and computer equipment
CN114254278A (en) User account merging method and device, computer equipment and storage medium
CN112231377A (en) Data mapping method, system, device, server and storage medium
CN116595054A (en) Interaction state determining method and device and computer equipment
CN117435651A (en) Test data processing method, device, computer equipment and storage medium
CN117194036A (en) Contract information processing method and device and computer equipment
CN116228346A (en) Order task processing method, device, system and storage medium
CN117009104A (en) Asynchronous request processing method, device, computer equipment and storage medium
CN116451965A (en) Service request processing method and device, computer equipment and storage medium
CN116433422A (en) Service processing method, device and computer equipment
CN116701895A (en) Information comparison method, device and computer equipment
CN117151841A (en) Service processing method, device, computer equipment, storage medium and program product
CN116663907A (en) Method and device for generating early warning information, computer equipment and storage medium
CN117171098A (en) Document sorting method, device, computer equipment and storage medium
CN117216164A (en) Financial data synchronous processing method, apparatus, device, medium and program product
CN118018545A (en) Data exchange method, device, computer equipment and storage medium
CN115599968A (en) Transaction data processing method and device, computer equipment and storage medium
CN117056220A (en) Batch job testing method and device, computer equipment and storage medium
CN117422459A (en) Resource transfer method, device, computer equipment and storage medium
CN116757176A (en) Different version business bill comparison method and related products
CN116700969A (en) Task processing method, device, computer equipment and storage medium
CN117749817A (en) Data synchronization method, device, computer equipment 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