Task management method, device and computer readable storage medium
By dynamically rendering the conditional configuration table and generating conditional logical expressions, the problem that traditional task management methods cannot adapt to market changes is solved, and the task configuration is quickly responded and efficiently executed.
Patent Information
- Application Number
- CN202411914793.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-04-04
AI Technical Summary
Traditional task management methods rely on hard-coded logic, resulting in manual modification of code when task type or triggering conditions change. Operations personnel cannot directly modify the code to configure tasks, resulting in task management solutions being unable to adapt to market changes.
By dynamically rendering the conditional configuration table that matches the task type, a conditional logical expression is generated and associated with the active task, and the conditional logical expression is updated in response to the operator's configuration operations to adapt to the activity adjustment.
It reduces the difficulty of task configuration, improves the accuracy of task execution, realizes rapid response to active task configuration, and improves the efficiency of task configuration.
Smart Images

Figure CN119759532A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a task management method, device, and computer-readable storage medium. Background Art
[0002] Traditional task management methods rely on hard-coded logic. When the task type or trigger condition changes, the code needs to be modified manually. Operations personnel usually need to respond quickly to market changes and adjust task configurations to meet business needs. However, there is a division of labor between operations personnel and developers, and there are technical barriers to modifying the code. Therefore, operations personnel cannot directly modify the code to configure tasks, which in turn makes the current task management solution unable to adapt to market changes.
[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of this application is to provide a task management method, device and computer-readable storage medium, aiming to solve the technical problem that the task configuration process is complex and leads to low efficiency of task configuration.
[0005] To achieve the above objectives, the present application proposes a task management method, wherein the method comprises: According to the task type of the activity task, a condition configuration table corresponding to the task type is rendered to the configuration interface; In response to a configuration operation of the configuration interface, generating a conditional logic expression corresponding to the configuration operation; Associating and storing the conditional logic expression with the active task; If it is detected that the activity task triggers a preset task change condition, the conditional logic expression associated with the activity task is updated according to the modification operation of the configuration interface to respond to the activity adjustment.
[0006] In one embodiment, the task condition configuration method further includes: receiving event data sent by the server, formatting and processing the event data, and determining adaptation data; According to the task progress corresponding to the adaptation data, the corresponding conditional logic expression is read from the database and compared; If the adaptation data satisfies the update progress condition in the conditional logic expression, the task progress value is increased.
[0007] In one embodiment, if the adaptation data satisfies the update progress condition in the conditional logic expression, the step of increasing the task progress value further includes: Comparing the task progress value with the task setting value of the active task; If the task progress value reaches the task setting value, the status of the active task is marked as completed.
[0008] In one embodiment, the step of rendering the condition configuration table corresponding to the task type to the configuration interface according to the task type of the active task includes: According to the task type of the activity task, searching the database for the condition configuration table corresponding to the task type; Based on the condition configuration table, extracting configuration data related to the activity task; Fill the configuration data into the preset configuration interface template and render the configuration interface.
[0009] In one embodiment, before the step of rendering the condition configuration table corresponding to the task type to the configuration interface according to the task type of the active task, the step includes: Analyze each of the task types to determine condition fields associated with the active tasks corresponding to the task type; The condition configuration table corresponding to the task type is generated according to the corresponding relationship between the task type and the condition field.
[0010] In one embodiment, the step of generating a conditional logic expression corresponding to the configuration operation in response to the configuration operation of the configuration interface includes: Capturing and parsing the configuration operation; According to the order and logical relationship of conditions in the configuration operation, the conditions are connected by logical operators to form a conditional logic expression.
[0011] In one embodiment, the step of associating and storing the conditional logic expression with the active task comprises: In a record related to the activity task in a database, a field for storing the conditional logic expression is added to establish an association relationship between the conditional logic expression and the activity task; The conditional logic expression and the data of the active task are stored in a database.
[0012] In one embodiment, after the step of associating the conditional logic expression with the active task and storing the conditional logic expression, the following steps are performed: monitoring the state of the conditional logic expression; When the state of the conditional logic expression is true, triggering the execution of the activity task; Log information of the association between the conditional logic expression and the active task is recorded.
[0013] In addition, to achieve the above objectives, the present application also proposes a task management device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the task management method described above.
[0014] In addition, to achieve the above objectives, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the task management method described above are implemented.
[0015] The present application provides a task management method. The present application first renders the conditional configuration table corresponding to the task type to the configuration interface according to the task type of the active task; generates the conditional logic expression corresponding to the configuration operation in response to the configuration operation of the configuration interface; associates the conditional logic expression with the active task and stores it; if it is detected that the active task triggers the preset task change condition, the conditional logic expression associated with the active task is updated according to the modification operation of the configuration interface to respond to the activity adjustment. By dynamically rendering the conditional configuration table that matches the task type, it is flexibly adapted to various types of active tasks, without the need to develop different configuration interfaces for each task type. The conditional logic expression is generated according to the simple operation of the operator in the configuration interface, which reduces the difficulty of configuration. By associating the conditional logic expression with the active task, the execution time and method of the task are automatically determined according to the preset conditions, which improves the accuracy of task execution. The conditional logic expression associated with the active task is updated through the modification operation of the configuration interface, so as to achieve a rapid response to the configuration of the active task and improve the efficiency of the configuration of the active task. The present application achieves the technical effect of improving the configuration efficiency of the active task. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0018] Figure 1 A flowchart of the first embodiment of the task management method of this application is provided; Figure 2 A flowchart of the second embodiment of the task management method of this application is provided; Figure 3A flowchart of the third embodiment of the task management method of this application is provided; Figure 4 A flowchart of the fourth embodiment of the task management method of this application is provided; Figure 5 This is a schematic diagram of the device structure of the hardware operating environment involved in the task management method in the embodiment of the present application.
[0019] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0020] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0021] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0022] The main solutions of the embodiments of this application are: At present, traditional task management methods rely on hard-coded logic. Whenever the task type or trigger conditions change, developers are required to manually modify the code. Operations personnel usually need to respond quickly to market changes and adjust task configurations to meet business needs. However, due to the limitations of technical barriers, operations personnel cannot directly modify the code to configure tasks, resulting in excessive dependence on developers. This task management method is time-consuming and error-prone.
[0023] This application dynamically renders a conditional configuration table that matches the task type, flexibly adapts to various types of activity tasks, and does not need to develop different configuration interfaces for each task type. It generates conditional logic expressions based on simple operations of operators in the configuration interface, which reduces the difficulty of configuration. By associating conditional logic expressions with activity tasks, the timing and method of task execution are automatically determined according to preset conditions, which improves the accuracy of task execution. The conditional logic expressions associated with the activity tasks are updated through modification operations on the configuration interface, achieving a rapid response to the activity task configuration and improving the efficiency of the activity task configuration. This application has achieved the technical effect of improving the configuration efficiency of activity tasks.
[0024] It should be noted that the execution subject of this embodiment can be an activity task management system, or a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a control device of an activity task management system capable of realizing the above functions, etc., and this embodiment does not specifically limit this. The following takes the activity task management system as an example of the execution subject to illustrate this embodiment and the following embodiments.
[0025] Embodiment 1 Based on this, this application proposes a task management method of the first embodiment, please refer to Figure 1 , the task management method comprises: Step S10: Rendering a condition configuration table corresponding to the task type to a configuration interface according to the task type of the activity task.
[0026] Provides an intuitive configuration interface that enables operators to quickly and accurately configure the conditions required for task execution based on different types of activity tasks. By matching the task type with the corresponding condition configuration table, it ensures that each task can be triggered and executed according to the preset rules and conditions, thereby improving the efficiency and accuracy of task management.
[0027] In this embodiment, activity tasks refer to specific tasks that need to be performed as defined in the system, such as user login rewards, gifts for spending a certain amount, and completion of specified tasks within a certain period of time. These tasks are associated with the operational activities of the game or application. Task type is a label for classifying activity tasks, which is used to distinguish different types of tasks. Task types are divided based on factors such as the nature of the task, trigger conditions, and execution logic. The condition configuration table is a table used to define task execution conditions, which contains multiple configuration fields and options, allowing users to configure corresponding conditions based on task types. The configuration interface is a graphical user interface used to display and modify system configurations. Users can view and edit task types and their corresponding conditions through the configuration interface.
[0028] As an optional implementation, according to the task type selected by the user, the corresponding condition configuration table is retrieved from the database or dynamically generated, and the fields and options of the condition configuration table are converted into input elements on the interface for the user to configure. Among them, the condition configuration table contains all the configuration fields and options required for the task type.
[0029] Optionally, according to the active task selected by the user, the task type corresponding to the active task is automatically identified.
[0030] Optionally, step S10 includes: Step S11, according to the task type of the activity task, searching the database for the condition configuration table corresponding to the task type.
[0031] In this embodiment, the condition configuration table is a table stored in a database, which is used to define and record configuration conditions related to task types. The configuration conditions involve multiple aspects such as user behavior, system status, and time conditions.
[0032] Exemplarily, the task type of the active task that needs to be configured is identified, and according to the task type, a query request is sent to the database to retrieve the condition configuration table corresponding to the task type. The database returns the condition configuration table, which contains all configuration fields and options related to the task type.
[0033] Step S12: extracting configuration data related to the activity task based on the condition configuration table.
[0034] In this embodiment, the configuration data is extracted from the condition configuration table and is configuration information related to the activity task, including task triggering conditions, execution logic, reward settings, etc.
[0035] Exemplarily, the condition configuration table is parsed to identify and extract configuration data related to the current active task, including key information such as task triggering conditions, execution logic, reward settings, etc. The extracted configuration data is stored in memory for subsequent use.
[0036] Optionally, before extracting the configuration data, the condition configuration table is preprocessed, including data cleaning, format conversion, etc., to ensure the accuracy and consistency of the data.
[0037] Step S13, filling the configuration data into a preset configuration interface template and rendering the configuration interface.
[0038] In this embodiment, the configuration interface template is a preset graphical user interface (GUI) template used to display and edit configuration data. The template defines the layout, style, and interaction method of the interface. Rendering the configuration interface is to combine the configuration data and the configuration interface template to generate the final user interface for the operator to perform configuration operations.
[0039] Exemplarily, a preset configuration interface template is loaded, the extracted configuration data is filled into the corresponding position in the template, a customized configuration interface is generated, and after rendering is completed, the configuration interface is displayed to the user, allowing the user to view and edit.
[0040] Optionally, provide configuration interface optimization functions, including adjusting the layout, adding shortcut keys, providing drag-and-drop sorting and other functions.
[0041] Optionally, a version management function is added to the configuration interface to allow users to view and restore previous configuration versions by storing version records of configuration data in the database.
[0042] Step S20: In response to the configuration operation of the configuration interface, a conditional logic expression corresponding to the configuration operation is generated.
[0043] The configuration operations performed by the user on the configuration interface are converted into corresponding conditional logic expressions. These expressions will be used to determine whether the task should be triggered or how to execute it according to the preset conditional logic when the active task is executed.
[0044] In this embodiment, configuration operations are various operations performed by the user on the configuration interface, including clicking a button, selecting an option, entering text, etc., and configuration operations are used to define the configuration information of the activity task. Conditional logic expressions are mathematical or logical expressions used to describe and express conditions and logical operations, and are composed of variables, operators, and logical conjunctions, and are used to make conditional judgments when the activity task is executed.
[0045] As an optional implementation, a rule set is defined to describe the mapping relationship between user configuration operations and conditional logic expressions. When the user performs operations on the configuration interface, these operations are parsed in real time and converted into corresponding conditional logic expression fragments according to the rule set, and these fragments are combined into a complete conditional logic expression.
[0046] As another optional implementation, a visual expression builder interface is provided, which includes various logical operators, conditional judgment symbols, variable input boxes and other components. Users can build conditional logical expressions by dragging these components. The interface displays the expressions built by the user in real time and provides instant feedback and error prompts. When the user completes the construction, the corresponding conditional logical expressions are automatically generated based on the components dragged by the user and the connection relationship between them.
[0047] Optionally, after the conditional logic expression is generated, the generated expression is verified to ensure that its syntax is correct and its logic is reasonable, the verified conditional logic expression is stored in a database, and these expressions are called and applied when the activity task is executed.
[0048] Optionally, step S20 includes: Step S21, capturing and parsing the configuration operation.
[0049] For example, when a user performs an operation, the user's operation is captured and the data is parsed. If the user sets a condition, information such as the type and parameters of the condition needs to be parsed.
[0050] Optionally, store the parsed data in a data structure, such as an object, array, or database table, for subsequent processing.
[0051] Furthermore, the user's configuration operation is verified. If the operation is invalid or does not meet expectations, an error prompt is given and the user is allowed to re-operate.
[0052] Step S22, according to the condition sequence and logical relationship in the configuration operation, the conditions are connected by logical operators to form a conditional logical expression.
[0053] In this embodiment, the conditional logic expression is a mathematical or logical expression composed of conditions, logical operators, and brackets, etc., which is used to describe a series of conditions and the logical relationship between the conditions. These expressions are used to determine whether the task should be triggered or how to execute when the active task is executed. Logical operators are symbols used to connect conditions and describe the relationship between conditions, such as "AND", "OR", "NOT", etc. These operators determine the logical relationship between the conditions, thereby affecting the execution result of the task.
[0054] Exemplarily, according to the order and logical relationship of the conditions set by the user, the order and connection method between the conditions are determined, and according to the logical relationship between the conditions, appropriate logical operators are selected to connect the conditions to form a conditional logical expression.
[0055] Optionally, the generated expression is optimized, including removing redundant conditions, simplifying the logical structure, etc., to improve the execution efficiency of the expression.
[0056] Furthermore, the generated expression is subjected to syntax and logic verification to ensure the correctness of the expression, the conditional logic expression that passes the verification is stored in the database, and the expression is referenced for conditional judgment when the active task is executed.
[0057] Step S30: Associating the conditional logic expression with the active task and storing the same.
[0058] The main purpose of associating and storing conditional logic expressions with activity tasks is to realize condition-based automated task execution. In the operation of games or applications, there are often various promotional activities, user reward programs, etc. These activities trigger task execution based on certain conditions, such as user login rewards, gifts for spending a certain amount, and completing specified tasks within a certain period of time. By associating and storing conditional logic expressions with these activity tasks, the corresponding tasks can be automatically executed when the conditions are met, thereby improving operational efficiency and enhancing user experience.
[0059] In this embodiment, association is to establish a connection or mapping relationship between the conditional logic expression and the activity task, so that when the conditional logic expression is true, the corresponding activity task can be automatically triggered and executed. Storage is to save the associated conditional logic expression and activity task information in a storage medium so that they can be retrieved and executed when needed.
[0060] As an optional implementation, in the backend database, a field pointing to the conditional logic expression is added to the activity task record, and the generated conditional logic expression is associated with the corresponding activity task.
[0061] Optionally, a rule editor is provided to enable developers to programmatically define associations between conditional logic expressions and activity tasks.
[0062] Optionally, the activity task is divided into several stages. For each stage to the next stage, there is a conditional logic expression. The stage of the task can be updated only when the conditional logic expression is satisfied.
[0063] Optionally, step S30 includes: Step S31, adding a field for storing the conditional logic expression to a record related to the activity task in a database, so as to establish an association relationship between the conditional logic expression and the activity task.
[0064] In this embodiment, a field is a component of a table in a database, which is used to store the value of a row of data in the table. The field has a name, a data type, and possible constraints. An association relationship refers to a connection or mapping between a conditional logic expression and an activity task, so that when the conditional logic expression is true, the corresponding activity task can be automatically triggered and executed.
[0065] Optionally, according to the requirements of the activity tasks and conditional logic expressions, the database table structure is designed to ensure that the table contains sufficient fields to store the information of the activity tasks, the text or reference of the conditional logic expressions, and the like.
[0066] Exemplarily, in a database table related to the active task, one or more fields are added to store conditional logic expressions, and attributes such as data type, length limit, and whether to allow null are set for the added fields to ensure that the fields can accurately store conditional logic expressions.
[0067] Optionally, the added field can be of text type, used to store a string representation of the conditional logic expression; or it can be a foreign key, pointing to another table storing the conditional logic expression.
[0068] Step S32: storing the conditional logic expression and the data of the active task into a database.
[0069] Optionally, before storing the conditional logic expression and the data of the activity task into the database, the conditional logic expression is converted into a string representation, and the information of the activity task is ensured to be complete.
[0070] Exemplarily, the conditional logic expression and the data of the activity task are stored in the database, ensuring that the data is correctly inserted into the corresponding table and field.
[0071] Step S40: if it is detected that the activity task triggers a preset task change condition, the conditional logic expression associated with the activity task is updated according to the modification operation of the configuration interface to respond to the activity adjustment.
[0072] When an activity task triggers a preset change condition due to external or internal factors, the conditional logic expression associated with the activity task can be quickly updated through the modification operation of the operator in the configuration interface, ensuring that the task configuration can reflect the latest business needs and project status in real time, thereby achieving rapid response to the activity task configuration and improving project execution efficiency and accuracy.
[0073] In this embodiment, the preset task change conditions are a set of rules or conditions pre-set in the activity task management system for determining whether the activity task needs to be changed. The preset task change conditions are based on multiple factors such as time, user behavior, resource status, etc. Time includes activity expiration time, task completion time, etc. User behavior includes user login frequency, consumption amount, etc. Resource status includes item inventory, server load, etc.
[0074] As an optional implementation, according to the operation strategy of the game or application and the analysis of user behavior, set the task change conditions, including changes in user login frequency, changes in consumption amount, inventory of specific props, changes in server load, etc. Monitor the status of the active task and user behavior data. When it is detected that the status of the active task or the user behavior data meets the preset change conditions, trigger the change process and present the configuration interface of the relevant active task to the operator so that the operator can view the conditional logic expression and other relevant configuration information of the current task. According to the modification operation of the operator on the configuration interface, update the conditional logic expression associated with the active task.
[0075] Optionally, after detecting that an activity task triggers a preset task change condition, a notification is sent to the operator to remind the operator to modify the activity task configuration, and then the configuration data of the relevant activity task is rendered to the operator's configuration interface.
[0076] Optionally, the configuration updated by the operations staff takes effect immediately without waiting for manual matching or modification by the developers.
[0077] For example, a "Limited Time Copy" activity is run in the game, which includes multiple tasks, such as "daily login to receive rewards", "complete copy challenges within a specific time period", and "collect limited items to exchange for rare equipment". Set time conditions. The activity is set to last for one month, but if user participation is lower than expected within two weeks after the start of the activity, it is necessary to extend the activity time or adjust the task rewards to attract more users to participate. Set user behavior conditions. If the completion rate of the "Limited Time Copy" activity is too low, it means that the task difficulty is too high or the reward is not attractive enough. At this time, it is necessary to adjust the task difficulty or increase the reward. Set resource conditions. If the inventory of limited items decreases too quickly, it may indicate that the rarity of the items is improperly set or user demand exceeds expectations. At this time, it is necessary to adjust the drop rate of the items or increase the inventory.
[0078] Optionally, operators can monitor the status of active tasks and user behavior data in real time through the configuration interface of the game management background. When it is detected that a task triggers a preset change condition, operators can quickly adjust the task configuration on the configuration interface, which can take effect immediately without waiting for the intervention of developers.
[0079] The present embodiment provides a task management method. The present embodiment first dynamically renders a condition configuration table that matches the task type to flexibly adapt to various types of active tasks. There is no need to develop different configuration interfaces for each task type. Conditional logic expressions are generated based on simple operations of operators in the configuration interface, which reduces the difficulty of configuration. By associating conditional logic expressions with active tasks, the execution timing and method of tasks are automatically determined according to preset conditions, thereby improving the accuracy of task execution. The conditional logic expressions associated with active tasks are updated through modification operations on the configuration interface, thereby achieving rapid response to active task configuration and improving the efficiency of active task configuration.
[0080] Based on the first embodiment, the second embodiment of the present application proposes a task management method, referring to Figure 2 , the task management method further includes: Step S50: receiving the event data sent by the server, formatting and processing the event data, and determining the adaptation data.
[0081] Receive event data sent from the server and format it to determine which data is compatible with the current task or system logic. This step ensures that subsequent processing and analysis are based on accurate, valid and uniformly formatted data, thereby improving system stability.
[0082] In this embodiment, the server refers to the game server or the mall server, which is responsible for running the logic of the game or the mall and generating event data. The game server refers to the environment for running the game logic and the server, and is responsible for processing various events and data in the game. The mall server refers to the server environment that provides in-game mall functions and services, including product purchases, transactions, etc.
[0083] Event data is data generated by events that occur in the game or mall, including users completing tasks, purchasing goods, etc. Formatting is the process of converting raw event data into adapted data in a standard format that the activity system can understand and process, so as to facilitate subsequent processing and analysis.
[0084] As an optional implementation, the game server or the shopping mall server sends the event data to the activity system through the network communication protocol, parses the received event data, extracts key information, and formats the extracted information to generate adaptation data to meet the format requirements of the activity system for event data.
[0085] Exemplarily, the received raw event data is parsed to extract key information such as event type, timestamp, user ID, event parameters, etc., and formatting processing such as data type conversion, data cleaning, and data reorganization is performed. In addition, data mapping, conversion, verification and other operations are performed to ensure data consistency.
[0086] Optionally, after receiving the event data, the event data is stored in a temporary storage area or queue to wait for processing.
[0087] Optionally, the formatted adaptation data is passed to the task decision logic.
[0088] Step S60, according to the task progress corresponding to the adaptation data, read the corresponding conditional logic expression in the database and compare it.
[0089] According to the task progress reflected by the adaptation data, the corresponding conditional logic expression is retrieved from the database and compared to determine whether the task meets specific completion conditions or triggers certain logic branches.
[0090] In this embodiment, the adaptation data is data associated with the active task after processing and conversion, reflecting the current progress or status of the active task. Task progress refers to the stage or status of the active task from start to completion, expressed as a percentage, number of completed steps, or other metrics. Comparison is the process of comparing the adaptation data with the conditional logic expression to determine whether the task meets the condition or triggers a logic branch.
[0091] As an optional implementation, the adaptation data is parsed to determine the specific stage of the task, and the conditional logic expression related to the stage is retrieved from the database according to the stage of the task. The retrieved conditional logic expression is parsed to determine its structure and logic, and the information in the adaptation data is compared with the parsed conditional logic expression, and the corresponding logic branch is executed according to the comparison result.
[0092] Exemplarily, parse the adaptation data, calculate the percentage of the active task progress to determine the stage the task is in, retrieve all related conditional logic expressions from the database through the task identifier, determine the corresponding conditional logic expression according to the stage of the task, parse the syntax of the expression, identify variables and operators, compare the information in the adaptation data with the conditional logic expression, calculate the value of the expression, and evaluate whether the logical condition is met. If the condition is met, trigger the task of the next stage. If the condition is not met, continue to execute the task of the current stage.
[0093] Optionally, record key information during task progress comparison and logical branch execution.
[0094] Step S70: If the adaptation data satisfies the update progress condition in the conditional logic expression, the task progress value is increased.
[0095] In this embodiment, the update progress condition is a specific update progress condition defined in the conditional logic expression, and when the condition is met, the task progress value will be updated. The task progress value represents a numerical value or measurement of the degree of task completion, and the stage of the active task can be determined according to the task progress value.
[0096] As an optional implementation, the conditional logic expression is evaluated to determine whether the adaptation data meets the update progress condition, and the new task progress value is calculated according to the specific requirements of the update progress condition, and the calculated new task progress value is stored in the database of the task management system.
[0097] Exemplarily, each stage of the activity task corresponds to a progress percentage, and as each stage task is completed, the progress percentage of each stage task is accumulated to calculate the progress of the overall task.
[0098] Optionally, calculate progress based on the total effort required for the active task and the effort completed, using the formula "Completed Effort / Total Effort" to calculate the progress value.
[0099] Exemplarily, based on the task progress indicated by the adaptation data, the conditional logic expression corresponding to the task progress is retrieved and read from the database, and these conditional logic expressions are compared and analyzed. If the adaptation data meets one or more update progress conditions set in the conditional logic expression, the active task management system will increase the progress value of the task accordingly.
[0100] Optionally, the update progress condition can be a single one or a combination. For the combination of update progress conditions, it can be that only one of the conditions needs to be completed to increase the task progress value, or each condition in the combination needs to be completed to increase the task progress value.
[0101] Optionally, step S70 further includes: Step S71, comparing the task progress value with the task setting value of the active task.
[0102] In this embodiment, the task setting value is a preset task completion standard or target value, which is set when the task is created or assigned, and is used to measure whether the task has been completed or achieved the expected results. The task setting value is expressed in percentage, quantity, time or other measurement units.
[0103] Exemplarily, after the task progress value increases, the task progress value is compared with the task setting value.
[0104] Step S72: if the task progress value reaches the task setting value, the status of the active task is marked as completed.
[0105] Exemplarily, when the task progress value reaches the task setting value, the status of the active task is automatically marked as completed, the status field in the database is modified, and related notifications are triggered.
[0106] Optionally, if the activity task completion is associated with a reward, the reward is automatically issued.
[0107] The present embodiment provides a task management method. The present embodiment first ensures that the subsequently processed data is accurate and consistent through formatting processing and screening of adaptation data, thereby improving the overall efficiency of data processing. According to the comparison results of the adaptation data and the conditional logic expression, it is possible to determine in real time whether the task meets the update conditions and realize dynamic update of the task progress, which helps to timely reflect the progress of the task. By comparing the task progress value with the task setting value, the completion status of the task can be understood in real time, thereby improving the overall efficiency and accuracy of task management.
[0108] Based on the first embodiment, the third embodiment of the present application proposes a task management method, referring to Figure 3 , before step S10, including: Step S80: Analyze each of the task types to determine the condition fields related to the active tasks corresponding to the task type.
[0109] In the process of configuring task conditions, different types of tasks are analyzed in depth to clarify the specific conditions that each task type needs to meet when executing its corresponding activity task, ensuring that the task can be correctly executed according to the expected logic and rules. By determining the condition field, appropriate trigger conditions, execution logic and indicators can be configured for the task, thereby improving the efficiency of task execution.
[0110] In this embodiment, the condition field is a data field related to the execution of the activity task, which is used to determine whether the task meets the execution condition or triggers the reward, including the user's login status, consumption amount, task completion progress, timestamp, etc.
[0111] Optionally, organize all active tasks in your game or app, with clear definitions, goals, and reward mechanisms for each task type.
[0112] As an optional implementation, for each task type, the condition fields that need to be relied upon during the execution process are analyzed, and according to the analysis results, corresponding condition fields are configured for each task type.
[0113] Optionally, the condition field should be able to fully reflect the logic and rules of task execution, such as the trigger condition of a login task is the user's login status and timestamp, and the trigger condition of a consumption task is the user's consumption amount, etc.
[0114] Step S90: generating the condition configuration table corresponding to the task type according to the corresponding relationship between the task type and the condition field.
[0115] In the activity task management system, create a detailed and structured condition configuration table for each task type, clearly listing the conditions that each task type needs to meet when executing, as well as the fields corresponding to these conditions.
[0116] In this embodiment, the condition configuration table is a table generated according to the correspondence between the task type and the condition field, which is used to record the conditions and corresponding fields that each task type needs to meet when executing. The condition configuration table is an important part of the activity task management system, ensuring that the task can be correctly executed according to the expected logic and rules.
[0117] As an optional implementation, according to the correspondence between the task type and the condition field, the structure of the condition configuration table is designed, the storage method of the condition configuration table is determined, and according to the designed structure, the correspondence between the task type and the condition field is entered into the condition configuration table to ensure that each task type has a corresponding condition field. Among them, the condition configuration table includes columns such as task type, condition field, field type, and field description.
[0118] Optionally, conduct integration testing and system testing to ensure that the task type can be correctly executed in the system according to the expected logic and rules, and make necessary adjustments and optimizations to the condition configuration table based on the test results.
[0119] This embodiment provides a task management method. This embodiment first analyzes the task type to clarify which condition fields are required for each task to evaluate its triggering condition. By determining the condition fields related to the active task corresponding to the task type and generating a condition configuration table based on these corresponding relationships, the accuracy of the active task management system can be significantly improved.
[0120] Based on the first embodiment, the fourth embodiment of the present application proposes a task management method, referring to Figure 4 , after step S30, comprising: Step S100, monitoring the state of the conditional logic expression.
[0121] By continuously monitoring the status of conditional logic expressions, the corresponding tasks are automatically triggered when specific conditions are met, ensuring that the task triggering mechanism in the task management or automation system can accurately and promptly respond to changes in preset conditions, thereby achieving automated execution of tasks.
[0122] In this embodiment, the conditional logic expression is a mathematical or logical formula used to describe the task triggering condition, which is composed of variables, operators and logical connectives and is used to determine whether a certain event or state meets the condition.
[0123] As an optional implementation, the variable values involved in the conditional logic expression are read in real time or periodically, the state of the conditional logic expression is calculated based on the read variable values, and it is determined whether the condition is met.
[0124] For example, for time-sensitive tasks, real-time monitoring of the status of conditional logic expressions is adopted, such as user login, transaction completion, etc.; for tasks that are not time-sensitive, regular monitoring of the status of conditional logic expressions is adopted, such as daily report generation, regular maintenance, etc.
[0125] Step S110: When the state of the conditional logic expression is true, the execution of the active task is triggered.
[0126] As an optional implementation, when the state of the conditional logic expression is true, that is, the condition is met, the task associated with the conditional logic expression is automatically triggered. After the task is triggered, the system executes the corresponding business logic.
[0127] Optionally, task execution involves calling functions, executing scripts, or triggering other system components.
[0128] Step S120: Record log information of the association between the conditional logic expression and the active task.
[0129] In this embodiment, the log information records the file or database record of system activities, events or error information, including key information such as the state change time, state value, triggered activity task name, task execution time, etc. of the conditional logic expression.
[0130] As an optional implementation, during the process of monitoring and triggering task execution, relevant log information is recorded for subsequent auditing and tracking.
[0131] This embodiment provides a task management method. This embodiment first continuously monitors the status of conditional logic expressions. The system can automatically trigger corresponding active tasks when specific conditions are met, thereby realizing automatic execution of tasks without manual intervention. At the same time, recording log information associated with conditional logic expressions and active tasks is helpful for subsequent tracking, auditing and troubleshooting of the task execution process, ensuring the accuracy of task execution.
[0132] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the task management method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0133] The present application provides a task management device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the task management method in the above-mentioned embodiment one.
[0134] Reference below Figure 5, which shows a schematic diagram of the structure of a task management device suitable for implementing an embodiment of the present application. The task management device in the embodiment of the present application may include, but is not limited to, a mobile phone, a laptop computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Portable Application Description), and a PMP (Portable Media Player). Figure 5 The task management device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0135] like Figure 5 As shown, the task management device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the task management device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the task management device to communicate with other devices wirelessly or by wire to exchange data. Although the task management device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0136] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0137] The task management device provided by the present application adopts the task management method in the above embodiment, which can solve the technical problem that the task configuration process is complicated and leads to low efficiency of task configuration. Compared with the prior art, the beneficial effects of the task management device provided by the present application are the same as the beneficial effects of the task management method provided by the above embodiment, and the other technical features in the task management device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0138] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0139] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0140] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, the computer-readable program instructions being used to execute the task management method in the above-mentioned embodiment.
[0141] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0142] The computer-readable storage medium may be included in the task management device; or may exist independently without being assembled into the task management device.
[0143] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the task management device, the task management device can write computer program codes for performing the operations of the present application in one or more programming languages or a combination thereof. The programming languages include object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0144] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0145] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0146] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned task management method, and can solve the technical problem that the task configuration process is complicated and leads to low efficiency of task configuration. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the task management method provided by the above-mentioned embodiment, and will not be repeated here.
[0147] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A task management method, characterized in that: The task management method comprises: According to the task type of the activity task, a condition configuration table corresponding to the task type is rendered to the configuration interface; In response to a configuration operation of the configuration interface, generating a conditional logic expression corresponding to the configuration operation; Associating and storing the conditional logic expression with the active task; If it is detected that the activity task triggers a preset task change condition, the conditional logic expression associated with the activity task is updated according to the modification operation of the configuration interface to respond to the activity adjustment.
2. The task management method according to claim 1, characterized in that: The task management method further includes: receiving event data sent by the server, formatting and processing the event data, and determining adaptation data; According to the task progress corresponding to the adaptation data, the corresponding conditional logic expression is read from the database and compared; If the adaptation data satisfies the update progress condition in the conditional logic expression, the task progress value is increased.
3. The task management method according to claim 2, characterized in that: If the adaptation data satisfies the update progress condition in the conditional logic expression, the step of increasing the task progress value further includes: Comparing the task progress value with the task setting value of the active task; If the task progress value reaches the task setting value, the status of the active task is marked as completed.
4. The task management method according to claim 1, characterized in that: The step of rendering the condition configuration table corresponding to the task type to the configuration interface according to the task type of the activity task includes: According to the task type of the activity task, searching the database for the condition configuration table corresponding to the task type; Based on the condition configuration table, extracting configuration data related to the activity task; Fill the configuration data into the preset configuration interface template and render the configuration interface.
5. The task management method according to claim 1, characterized in that: Before the step of rendering the condition configuration table corresponding to the task type to the configuration interface according to the task type of the active task, the method includes: Analyze each of the task types to determine condition fields associated with the active tasks corresponding to the task type; The condition configuration table corresponding to the task type is generated according to the corresponding relationship between the task type and the condition field.
6. The task management method according to claim 1, characterized in that: The step of generating a conditional logic expression corresponding to the configuration operation in response to the configuration operation of the configuration interface includes: Capturing and parsing the configuration operation; According to the order and logical relationship of conditions in the configuration operation, the conditions are connected by logical operators to form a conditional logic expression.
7. The task management method according to claim 1, characterized in that: The step of associating and storing the conditional logic expression with the active task comprises: In a record related to the activity task in a database, a field for storing the conditional logic expression is added to establish an association relationship between the conditional logic expression and the activity task; The conditional logic expression and the data of the active task are stored in a database.
8. The task management method according to claim 1, characterized in that: After the step of associating the conditional logic expression with the active task and storing the same, the method further comprises: monitoring the state of the conditional logic expression; When the state of the conditional logic expression is true, triggering the execution of the activity task; Log information of the association between the conditional logic expression and the active task is recorded.
9. A task management device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the task management method according to any one of claims 1 to 8.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the task management method according to any one of claims 1 to 8 are implemented.