Task processing method and apparatus, storage medium and processor

By calling the task handler of the software development toolkit in business applications to obtain and judge the tasks to be executed for business events, the problems of low development efficiency of event-driven instructions and inflexible execution methods are solved, and flexible screening and execution of tasks are achieved, and development efficiency and maintenance simplicity is improved.

WO2025130560A1PCT designated stage expired Publication Date: 2025-06-26CHINA TELECOM BESTPAY CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/135607
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-17
Filing Date
2024-11-29
Publication Date
2025-06-26

AI Technical Summary

Technical Problem

In the prior art, the development of event-driven instructions for business is inefficient, the method of executing tasks based on event-driven instructions is inflexible, and the project code needs to be frequently changed and project deployment is required during the iteration of business products, resulting in complex code logic and is not conducive to project maintenance.

Method used

Provide a task processing method, which calls the software development toolkit's processing program to execute tasks through business applications, obtains event data of business events, determines the task to be executed, and determines whether the task data contains target data variables and whether the data variable conditions are met, thereby controlling the execution of the task.

Benefits of technology

By configuring the data variables and data variable conditions of the task in advance, flexibly screening and executing tasks to be executed, the development efficiency and execution flexibility of event-driven instructions are improved, project maintenance is simplified, and labor and time costs are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024135607_26062025_PF_FP_ABST
    Figure CN2024135607_26062025_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present application are a task processing method and apparatus, a storage medium and a processor. The method comprises: acquiring event data of a service event, determining a task to be executed of the service event, and determining whether task data of the task to be executed comprises a target data variable, the task data being acquired from the event data, and the target data variable being a data variable of a configured task matched with the task to be executed; when the task data of the task to be executed comprises the target data variable, determining whether the task data of the task to be executed meets a data variable condition associated with the target data variable; and, when the task data of the task to be executed meets the data variable condition, determining the task to be executed as a task allowed to be executed and, when an execution condition of the matched configured task is met, performing control to execute the task to be executed. The present application solves the problems of low development efficiency of event-driven instructions of services and inflexible modes of executing tasks on the basis of the event-driven instructions.
Need to check novelty before this filing date? Find Prior Art

Description

Task processing method, device, storage medium and processor

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on December 17, 2023, with application number 2023117375437 and application name “Task processing method, device, storage medium and processor”, all contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of task management technology, and in particular to a task processing method, device, storage medium, and processor. Background Art

[0003] In recent years, with the rapid development of Internet financial services, higher requirements have been placed on traffic patterns and operational specifications. Customer-centric, product event-driven business architecture design models have been adopted by more and more Internet financial companies.

[0004] It should be noted that, on the one hand, many business products in the relevant technologies are driven by product events at the beginning of their design. However, the implementation of similar driving instructions in different business scenarios will result in repeated development, resulting in low R&D efficiency and high labor costs. On the other hand, in the actual business product iteration process, there is often a need to adjust the execution content of the instructions. Project developers need to frequently change project codes and frequently deploy projects to meet the demands of rapid iteration of business products, which ultimately leads to complex code logic and is not conducive to project maintenance. On the other hand, the operation of business products is mostly carried out by operations and customer service personnel, which are characterized by high personnel mobility and fast business response speed requirements. Users are usually unable to directly operate the execution content of instructions to meet business operation demands.

[0005] Currently, no effective solution has been proposed to address the problems of low efficiency in developing event-driven instructions for businesses and inflexible ways of executing tasks based on event-driven instructions in related technologies. Summary of the Invention

[0006] The present application provides a task processing method, device, storage medium and processor to solve the problems of low efficiency in the development of event-driven instructions for services in related technologies and inflexible methods for executing tasks based on event-driven instructions.

[0007] According to one aspect of the present application, a task processing method is provided. Applied in a business application, the business application calls a software development tool kit to execute a processing program of the following tasks: obtaining event data of a business event, determining a task to be executed of the business event, and judging whether the task data of the task to be executed contains a target data variable, wherein the task data is obtained from the event data, and the target data variable is a data variable of a configured task matched by the task to be executed; if the task data of the task to be executed contains the target data variable, judging whether the task data of the task to be executed satisfies a data variable condition associated with the target data variable; if the task data of the task to be executed satisfies the data variable condition, determining the task to be executed as a task allowed to be executed, and controlling the task to be executed to execute if the execution condition of the matched configured task is met.

[0008] In some embodiments, determining the tasks to be executed of a business event and determining whether the target data variables are included in the task data of the tasks to be executed include: obtaining business tags from event data, determining task groups based on the business tags, and determining the tasks in the task groups as tasks to be executed, wherein the task groups include at least one type of task; in the case where the tasks to be executed exist in a task list of configured tasks, determining the data variables of the configured tasks that match the tasks to be executed from the task list, obtaining the target data variables, and determining whether the target data variables are included in the task data of the tasks to be executed, wherein the task list contains multiple configured tasks, and each configured task is associated with at least one data variable.

[0009] In some embodiments, the data variable conditions include preset data types, preset operators, and preset values. Determining whether the task data of the task to be executed meets the data variable conditions associated with the target data variables includes: parsing the data type in the task data of the task to be executed, and determining whether the parsed data type covers the preset data types of all data variable conditions; if the parsed data type covers the preset data types of all data variable conditions, for each preset type, obtaining the value under the preset type from the task data, and determining whether the value meets the judgment condition consisting of the preset operator and the preset value. If the value meets the judgment condition, it is determined that the task data of the task to be executed meets the data variable condition corresponding to the preset type.

[0010] In some embodiments, when the software development tool is deployed in a business application, configuration data is queried from the database by locally calling the software development tool, and a task handler is executed based on the configuration data and event data of the business event, wherein the configuration data includes data of multiple configured tasks. When the software development tool is deployed in a task center, configuration data is queried from the database by remotely calling the software development tool, and a task handler is executed based on the configuration data and event data of the business event.

[0011] In some embodiments, configuration data is obtained in the following manner: adding a new task to the visualization page of the operation management platform; for each new task, selecting the data variables that need to be screened from the candidate data variable set in the operation management platform, and selecting a task executor from the candidate task executor set in the operation management platform, configuring the selected data variables and the selected task executor on the new task to obtain a configured task; and determining the data of all configured tasks as configured data.

[0012] In some embodiments, the candidate data variable set is obtained by: adding new data variables to the visualization page of the operation management platform, and the candidate data variable set is composed of all configured data variables; configuring metadata information for each newly added data variable, and determining the data variable conditions associated with the data variable by the metadata information, wherein the metadata information includes at least: a preset data type, a preset operator, and a preset value.

[0013] In some embodiments, the candidate task executor set is obtained in the following manner: adding a new task executor to the visualization page of the operation management platform, configuring execution condition information for each newly added task executor, and obtaining a configured task executor, wherein the execution condition information includes at least: effective time, executor switch; all configured task executors constitute the candidate task executor set.

[0014] According to another aspect of the present application, a task processing device is provided. The device includes: an acquisition unit, configured to acquire event data of a business event, determine a task to be executed of the business event, and determine whether the task data of the task to be executed contains a target data variable, wherein the task data is acquired from the event data, and the target data variable is a data variable of a configured task that matches the task to be executed; a judgment unit, configured to determine whether the task data of the task to be executed satisfies a data variable condition associated with the target data variable when the task data of the task to be executed contains the target data variable; and a control unit, configured to determine the task to be executed as a task that is allowed to be executed when the task data of the task to be executed satisfies the data variable condition, and to control the task to be executed when the execution condition of the matched configured task is met.

[0015] According to another aspect of an embodiment of the present invention, a computer storage medium is provided. The computer storage medium is used to store a program, wherein when the program is executed, the device where the non-volatile storage medium is located is controlled to execute a processing method of a task.

[0016] According to another aspect of an embodiment of the present invention, an electronic device is provided, comprising a processor and a memory; the memory stores computer-readable instructions, and the processor is used to run the computer-readable instructions, wherein the computer-readable instructions execute a task processing method when run.

[0017] Through this application, a business application calls a software development toolkit to execute the following task processing program: obtain event data of a business event, determine the task to be executed of the business event, and determine whether the task data of the task to be executed contains a target data variable, wherein the task data is obtained from the event data, and the target data variable is the data variable of the configured task matched by the task to be executed; when the task data of the task to be executed contains the target data variable, determine whether the task data of the task to be executed meets the data variable condition associated with the target data variable; when the task data of the task to be executed meets the data variable condition, determine the task to be executed as a task that is allowed to be executed, and when the execution condition of the matched configured task is met, control the task to be executed to be executed, thereby solving the problems of low efficiency in the development of event-driven instructions for businesses in related technologies and inflexible methods of executing tasks based on event-driven instructions. By configuring the data variables and data variable conditions of the tasks in advance, it is determined whether the task to be executed of the business event contains the target data variable of the configured task and whether it meets the data variable condition of the target data variable, so as to determine whether the task to be executed is allowed to be executed, thereby achieving the effect of flexibly screening the tasks allowed to be executed from the tasks to be executed and flexibly executing the tasks. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings, which constitute part of this application, are intended to provide a further understanding of this application. The exemplary embodiments and descriptions of this application are intended to explain this application and do not constitute an improper limitation on this application. In the accompanying drawings:

[0019] FIG1 is a flowchart of a method for processing a task according to an embodiment of the present application;

[0020] FIG2 is a flowchart of an optional task processing method provided according to an embodiment of the present application;

[0021] FIG3 is a schematic diagram of a task processing device according to an embodiment of the present application;

[0022] FIG4 is a schematic diagram of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0023] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in this application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0024] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0027] It should be noted that there is a need for promotion in scenarios such as credit and marketing. For example, in a credit scenario, both credit and borrowing require SMS promotion. The relevant technology is to write a promotion task execution script for each different event, and then execute the promotion task according to the script. The code logic is complex and not conducive to project maintenance.

[0028] In this embodiment, SMS promotion can be extracted into tasks, and data variables and variable conditions can be configured for the tasks to match different events in different scenarios with the configured tasks. For example, which SMS should match credit and which SMS should match loans. The data variables and data variable conditions can be filtered through the parameters in the event message body. Parameters such as amount and product type and the conditions that these parameters need to meet can be specified to filter out promotion tasks that need to be executed to match the configured tasks. The configured tasks are universal. The other party only needs to submit business events of credit and loan. This embodiment can filter out the corresponding promotion tasks, and then call the external interface to promote SMS, thereby greatly improving the flexibility of promotion. The following explains the task processing method provided in the embodiment of this application.

[0029] Figure 1 is a flow chart of a task processing method according to an embodiment of the present application. As shown in Figure 1, in a business application, the business application calls a software development kit to execute the following task processing program:

[0030] Step S102, obtain event data of the business event, determine the task to be executed of the business event, and determine whether the task data of the task to be executed contains the target data variable, wherein the task data is obtained from the event data, and the target data variable is the data variable of the configured task matched by the task to be executed.

[0031] In some embodiments, a business instruction is triggered based on a business event. A data packet of the business event is submitted to a business application. The business application converts the data in the data packet into a specific data format to obtain event data. The business application then determines the pending task and the task data of the pending task from the event data. For example, the business event may be a credit business event (a credit granting business event and a loan business event), and the pending task may be a promotion task.

[0032] In some embodiments, determining whether a pending task is an allowed task involves first determining whether the task data for the pending task contains a target data variable. The target data variable is determined based on the data variables of the configured task that matches the pending task. For example, if the pending task is a promotion task, and the configured task that matches the pending task is also a promotion task, the target data variable may include the loan amount, loan period, etc.

[0033] Step S104 : when the task data of the task to be executed includes the target data variable, it is determined whether the task data of the task to be executed meets the data variable condition associated with the target data variable.

[0034] For example, consider a loan business event, a pending task and its matching configured task, SMS marketing tasks. The target data variables include the loan amount and loan period. The data variable conditions associated with the loan amount can be "the loan amount is greater than the preset amount," and the data variable conditions associated with the loan period can be "the loan period is greater than the preset time." If the pending task data includes the loan amount and loan period, the task data is further evaluated to determine whether it satisfies the data variable conditions associated with the target data variables, specifically, whether the loan amount is greater than the preset amount and whether the loan period is greater than the preset time.

[0035] Step S106 : when the task data of the task to be executed meets the data variable conditions, the task to be executed is determined as a task that is allowed to be executed, and when the execution conditions of the matching configured tasks are met, the task to be executed is controlled to be executed.

[0036] When the loan amount is greater than the preset amount and the loan time is greater than the preset time, it means that the task data of the task to be executed meets the target data variable conditions, the task to be executed is a task that is allowed to be executed, and the execution condition of the matching configured task can be the preset execution time. After the preset execution time arrives, the task to be executed is controlled to be executed.

[0037] The task processing method provided by the embodiment of the present application is to call a software development tool kit to execute the following task processing program through a business application: obtain event data of a business event, determine the to-be-executed task of the business event, and judge whether the task data of the to-be-executed task contains a target data variable, wherein the task data is obtained from the event data, and the target data variable is a data variable of a configured task matched by the to-be-executed task; when the task data of the to-be-executed task contains the target data variable, judge whether the task data of the to-be-executed task satisfies the data variable condition associated with the target data variable; when the task data of the to-be-executed task satisfies the data variable condition, determine the to-be-executed task as a task that is allowed to be executed, and when the execution condition of the matched configured task is met, control the to-be-executed task to be executed, thereby solving the problems of low efficiency of event-driven instruction development of business in related technologies and inflexible method of executing tasks based on event-driven instructions. By configuring the data variables and data variable conditions of the task in advance, judging whether the to-be-executed task of the business event contains the target data variable of the configured task and whether it meets the data variable condition of the target data variable, it is determined whether the to-be-executed task is allowed to be executed, thereby achieving the effect of flexibly screening the tasks that are allowed to be executed from the to-be-executed tasks and flexibly executing the tasks.

[0038] In order to improve the efficiency of determining whether a task to be executed is a task that is allowed to be executed, optionally, in the task processing method provided in the embodiment of the present application, in the task processing method provided in the embodiment of the present application, determining the task to be executed of the business event, and determining whether the task data of the task to be executed contains the target data variable includes: obtaining a business tag from the event data, determining a task group based on the business tag, and determining the tasks in the task group as tasks to be executed, wherein the task group includes at least one task; in the case where the task to be executed exists in the task list of configured tasks, determining the data variable of the configured task that matches the task to be executed from the task list, obtaining the target data variable, and determining whether the task data of the task to be executed contains the target data variable, wherein the task list contains multiple configured tasks, and each configured task is associated with at least one data variable.

[0039] In some embodiments, the event is accompanied by a business tag, and the task group to be screened and filtered for the current event is selected based on the business tag. The business tag is used to minimize which tasks need to be screened. For example, there are more than 20 tasks in a loan event. When filtering the task groups, the first group only has SMS tasks, the second group has marketing tasks and SMS tasks, and the third group has SMS tasks and data synchronization tasks. If the task group determined by the business tag is the third group, then the only tasks to be executed for the loan event are SMS tasks and data synchronization tasks. If the configured SMS task has 2 data variables (loan amount and loan time), and the configured data synchronization task has 1 data variable (data synchronization amount), then only the configured SMS tasks and data synchronization tasks need to be filtered, that is, to determine whether the task data of the SMS task contains the loan amount and loan time, and to determine whether the data synchronization task contains the data synchronization amount.

[0040] It should be noted that if there are more than 100 data variables for all 20 tasks, it is originally necessary to screen more than 100 data variables of 20 tasks. However, after grouping, the tasks and variables within the group corresponding to the events are limited, so only 3 data variables of 2 tasks need to be screened, which greatly reduces the efficiency of determining whether the task data of the task to be executed contains the target data variable.

[0041] In some embodiments, in the task processing method provided in the embodiments of the present application, the data variable conditions include preset data types, preset operators, and preset values. Determining whether the task data of the task to be executed meets the data variable conditions associated with the target data variables includes: parsing the data type in the task data of the task to be executed, and determining whether the parsed data type covers the preset data type of all data variable conditions; if the parsed data type covers the preset data type of all data variable conditions, for each preset type, obtaining the value under the preset type from the task data, and determining whether the value meets the judgment condition consisting of the preset operator and the preset value. If the value meets the judgment condition, it is determined that the task data of the task to be executed meets the data variable condition corresponding to the preset type.

[0042] In some embodiments, the task data submitted by the business event is compared with the data variable conditions associated with the data variables of the configured task to see whether they meet the data variable conditions of the configured task. For example, if the business event is a loan event, the task to be executed is a text message promotion task, the promotion content of the configured text message promotion task is to issue a 100 yuan interest-free coupon, and the data variable condition of the configured text message promotion task is "the loan amount is greater than 5,000 yuan", then the numerical data variable of 6,000 is extracted from the to-be-executed text message promotion task, and a determination is made as to whether 6,000 meets the data variable condition of "the loan amount is greater than 5,000 yuan". If the determination result is yes, then the to-be-executed text message promotion task meets the data variable condition of the configured text message promotion task.

[0043] In some embodiments, in the task processing method provided in the embodiments of the present application, when the software development tool is deployed in a business application, configuration data is queried from the database by locally calling the software development tool, and a task processing program is executed based on the configuration data and event data of the business event, wherein the configuration data includes data of multiple configured tasks. When the software development tool is deployed in a task center, configuration data is queried from the database by remotely calling the software development tool, and a task processing program is executed based on the configuration data and event data of the business event.

[0044] It should be noted that in a credit scenario, the business application can be a credit center, and software development tools can be deployed in the credit center. Calling the software development tool is equivalent to calling a local method class, and executing the task handler through the local method class. The task screening and task execution functions can also be separated to form a task center. When the software development tool is deployed in the task center, the task handler can be executed by remotely calling the software development tool.

[0045] In some embodiments, the software development tool encapsulates the process of querying the database, which stores configuration data. For loan events, event data is obtained, the software development tool is called to query the configuration data from the database, and a processing program is executed based on the configuration data and event data of the business event.

[0046] Through this embodiment, the software development tool can realize the plug-in use of components, and can be integrated into the project for local calling, enriching the usage scenarios, while effectively reducing the frequency of project deployment and further ensuring product stability.

[0047] The operation management platform is a back-end platform used to configure data and submit it to the database for storage. Optionally, in the task processing method provided in the embodiment of the present application, the configuration data is obtained in the following manner: adding a new task to the visualization page of the operation management platform; for each new task, selecting the data variables that need to be screened from the candidate data variable set in the operation management platform, and selecting a task executor from the candidate task executor set in the operation management platform, configuring the selected data variables and the selected task executor on the new task to obtain a configured task; and determining the data of all configured tasks as configured data.

[0048] It should be noted that all tasks require background management. You can first configure the candidate data variable set and candidate executor set on the operation management platform, then add a new task on the operation visualization page, and select the data variables that need to be filtered from the candidate data variable set to trigger the task. For example, if a new SMS promotion task is added, select the amount and time from the candidate data variable set to form the rule hit filtering conditions for the task, and further select the task executor for the task from the candidate task executor set to obtain the configured task. Among them, the data variables that need to be filtered can be flexibly modified, deleted and added, and accordingly, the task executors can also be flexibly modified, deleted and added.

[0049] This embodiment configures data variables, configures tasks, and associates task executors. It can distinguish different business scenarios by adding new data variables, supports multi-dimensional data variable cleaning, selects executable tasks based on business scenarios, meets multi-scenario business processing requirements, enhances the readability and maintainability of task codes, effectively shortens the development cycle, and quickly meets product iterations.

[0050] In some embodiments, in the task processing method provided in the embodiments of the present application, the candidate data variable set is obtained in the following manner: adding new data variables to the visualization page of the operation management platform, and the candidate data variable set is composed of all configured data variables; configuring metadata information for each newly added data variable, and determining the data variable conditions associated with the data variable by the metadata information, wherein the metadata information includes at least: a preset data type, a preset operator, and a preset value.

[0051] In some embodiments, new data variables are added to the operation management platform page, and the data variables support corresponding addition, modification, and deletion capabilities. Multiple data variables constitute a candidate data variable set. Each data variable needs to define the conditions that can be supported by the digital type, such as greater than, less than, or equal to conditions, and support operators (">", "<", "=") and other business metadata information. The data variable conditions associated with the data variables are determined by the metadata information. The metadata information supports corresponding addition, modification, and deletion capabilities, thereby realizing visual management of metadata information.

[0052] For example, if the SMS promotion task is to issue a 100-yuan interest-free coupon for loans greater than 5,000 yuan, the SMS promotion task's data variable includes the amount, and the amount's metadata includes the numeric type, a greater-than sign, and the number 5,000. Upon receiving a loan event with a loan amount of 6,000 yuan, the system first determines whether the loan event contains the target data variable, "amount," and whether the rule matches the filter condition. The system then compares the event data with the amount's data variable condition to determine the data type in the message body. The amount is numeric, the same data type as specified in the data variable condition, and the specific value is 6,000 yuan, meeting the data variable condition for an amount greater than 5,000 yuan. This satisfies the SMS promotion task's data variable condition, triggering the SMS promotion task and processing the task according to the executor.

[0053] In some embodiments, in the task processing method provided in the embodiments of the present application, the candidate task executor set is obtained in the following manner: adding a new task executor to the visualization page of the operation management platform, configuring execution condition information for each newly added task executor, and obtaining a configured task executor, wherein the execution condition information includes at least: effective time, executor switch; all configured task executors constitute the candidate task executor set.

[0054] In some embodiments, a new task executor is added to the operation platform, and the effective time, executor switch, and other processor execution conditions set according to business requirements are configured. The ability to add, modify, and delete task executors and their execution conditions is supported, thereby obtaining a set of candidate task executors. From this set, different executors can be selected and configured for corresponding tasks in different scenarios. Among them, the executor is the implementation class of the task and is a code logic block. The executor switch is used to make decisions about the task. For example, for a coupon issuance task, if the coupon is not issued, the executor switch is turned off. The coupon issuance task itself can be retained or reused. The executor switch can realize the free online and offline switching of task actions.

[0055] An embodiment of the present application also provides another method for processing tasks, which includes: setting trigger conditions for executable tasks through the configuration of data variables in the operation visualization interface, and flexibly processing tasks that meet the trigger conditions based on event-driven.

[0056] First, a new dictionary of data operators supported by data variables is added to the operation visualization interface, including but not limited to multiple types of data operators such as "==", ">=", and "<=", and supports operations such as adding, modifying, and deleting. A new dictionary of data variables is added to the operation visualization interface. The source of variable parameters in actual business is calculated through products, channels, and business data, and supports operations such as adding, modifying, and deleting. A new task executor is added to the operation visualization interface, which can be business logic or methods that need to be executed such as sending text messages and deducting fees. It also supports operations such as adding, modifying, and deleting. New executor-related configurations are added, which can include the task processing system, task online and offline switches, task priority, task validity period, and task extension parameters. The relevant configurations can be flexibly set according to business requirements.

[0057] Next, add a new task in the operation visualization interface, select the data variables that need to be cleaned to trigger task execution from the data variable dictionary, and select a task executor for the task to obtain the configured task.

[0058] It should be noted that the task processing program is integrated into the engineering project in the form of an SDK, and can be flexibly integrated into various business applications to meet the local calls of each module to achieve the requirements of improving performance. When an event occurs, the SDK package is called to perform task processing on the event data. Figure 2 is a flow chart of an optional task processing method provided according to an embodiment of the present application. As shown in Figure 2, the method includes: asynchronously sending event instructions, encapsulating them into business parameters executable by the task executor, filtering out task groups that need to be executed based on event business tags, and then searching for online tasks that meet the requirements of this project, filtering out executable tasks based on event parameters and parameter variables, finding the task executor corresponding to the executable tasks, and submitting them to the thread pool for asynchronous processing.

[0059] In this embodiment, a visual operation page with independent data variables, variable cleaning operators, and task management metadata information is provided. It has operation management capabilities based on data variables, tasks, etc., and can adjust the trigger conditions arbitrarily by adjusting the variable screening conditions, so that operators can achieve visual and effective control of task execution. Through the visual operation management platform, you can view, add, modify, and delete variables that require data cleaning when executing tasks, and filter the necessary conditions when executing tasks to achieve the purpose of task execution filtering. The data variable cleaning set is applied to the task processor, which is provided in the form of a project dependency package and can be quickly integrated and built into different project projects. It can realize configurable management and configurable screening of task execution, while maximizing the savings in manpower and time costs and improving work efficiency.

[0060] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0061] The embodiment of the present application further provides a task processing device. It should be noted that the task processing device of the embodiment of the present application can be used to execute the task processing method provided in the embodiment of the present application. The task processing device provided in the embodiment of the present application is introduced below.

[0062] FIG3 is a schematic diagram of a task processing device according to an embodiment of the present application. As shown in FIG3 , the device includes: an acquisition unit 302 , a judgment unit 304 , and a control unit 306 .

[0063] In some embodiments, the acquisition unit 302 is configured to acquire event data of a business event, determine a task to be executed for the business event, and determine whether the task data of the task to be executed includes a target data variable, wherein the task data is acquired from the event data, and the target data variable is a data variable of a configured task that matches the task to be executed;

[0064] A judging unit 304 is configured to judge whether the task data of the task to be executed satisfies a data variable condition associated with the target data variable when the task data of the task to be executed includes the target data variable;

[0065] The control unit 306 is configured to determine the task to be executed as a task allowed to be executed when the task data of the task to be executed meets the data variable conditions, and control the task to be executed to execute when the execution conditions of the matching configured tasks are met.

[0066] The task processing device provided in the embodiment of the present application obtains event data of a business event through an acquisition unit 302, determines a to-be-executed task of the business event, and determines whether the task data of the to-be-executed task contains a target data variable, wherein the task data is obtained from the event data, and the target data variable is a data variable of a configured task matched by the to-be-executed task; the judgment unit 304 determines whether the task data of the to-be-executed task satisfies a data variable condition associated with the target data variable when the task data of the to-be-executed task contains the target data variable; the control unit 306 determines the to-be-executed task as a task allowed for execution when the task data of the to-be-executed task satisfies the data variable condition, and controls the to-be-executed task to be executed when the execution condition of the matched configured task is met. This solves the problems of low efficiency in the development of event-driven instructions for businesses and inflexible methods of executing tasks based on event-driven instructions in related technologies. By pre-configuring the data variables and data variable conditions of the tasks, it is determined whether the to-be-executed task of the business event contains the target data variable of the configured task and whether it meets the data variable condition of the target data variable, so as to determine whether the to-be-executed task is allowed for execution, thereby achieving the effect of flexibly screening allowed tasks from the to-be-executed tasks and flexibly executing the tasks.

[0067] In some embodiments, in the task processing device provided in the embodiments of the present application, the acquisition unit 302 includes: an acquisition module, used to obtain business tags from event data, determine task groups based on the business tags, and determine the tasks in the task groups as tasks to be executed, wherein the task groups include at least one task; a first determination module, used to determine the data variables of the configured tasks that match the task to be executed from the task list when the task to be executed exists in the task list of configured tasks, obtain the target data variables, and determine whether the target data variables are included in the task data of the task to be executed, wherein the task list contains multiple configured tasks, and each configured task is associated with at least one data variable.

[0068] In some embodiments, in the task processing device provided in the embodiments of the present application, the data variable conditions include preset data types, preset operators and preset values, and the judgment unit 304 includes: a parsing module, which is used to parse the data types in the task data of the task to be executed, and to judge whether the parsed data types cover the preset data types of all data variable conditions; a second determination module, which is used to obtain the value under the preset type from the task data for each preset type if the parsed data type covers the preset data types of all data variable conditions, and to judge whether the value satisfies the judgment conditions consisting of the preset operator and the preset value. If the value satisfies the judgment conditions, it is determined that the task data of the task to be executed meets the data variable conditions corresponding to the preset type.

[0069] In some embodiments, in the task processing device provided in the embodiments of the present application, when the software development tool is deployed in a business application, configuration data is queried from the database by locally calling the software development tool, and the task processing program is executed based on the configuration data and the event data of the business event, wherein the configuration data includes data of multiple configured tasks. When the software development tool is deployed in a task center, configuration data is queried from the database by remotely calling the software development tool, and the task processing program is executed based on the configuration data and the event data of the business event.

[0070] In some embodiments, in the task processing device provided in the embodiments of the present application, the configuration data is obtained in the following manner: adding a new task to the visualization page of the operation management platform; for each new task, selecting the data variables that need to be screened from the candidate data variable set in the operation management platform, and selecting a task executor from the candidate task executor set in the operation management platform, configuring the selected data variables and the selected task executor on the new task to obtain a configured task; and determining the data of all configured tasks as configured data.

[0071] In some embodiments, in the task processing device provided in the embodiments of the present application, the candidate data variable set is obtained in the following manner: adding new data variables to the visualization page of the operation management platform, and the candidate data variable set is composed of all configured data variables; configuring metadata information for each newly added data variable, and determining the data variable conditions associated with the data variable by the metadata information, wherein the metadata information includes at least: a preset data type, a preset operator, and a preset value.

[0072] In some embodiments, in the task processing device provided in the embodiments of the present application, the candidate task executor set is obtained in the following manner: adding a new task executor to the visualization page of the operation management platform, configuring execution condition information for each newly added task executor, and obtaining a configured task executor, wherein the execution condition information includes at least: effective time, executor switch; all configured task executors constitute the candidate task executor set.

[0073] The processing device for the above tasks includes a processor and a memory. The above acquisition unit 302, judgment unit 304 and control unit 306 are all stored in the memory as program units, and the processor executes the above program units stored in the memory to realize the corresponding functions.

[0074] The processor includes a kernel, which retrieves the corresponding program unit from memory. One or more kernels can be configured, and kernel parameters can be adjusted to address the low efficiency of event-driven instruction development and the inflexible execution of tasks based on event-driven instructions in related technologies.

[0075] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0076] An embodiment of the present application further provides a computer storage medium for storing a program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to perform a processing method of a task.

[0077] The present application also provides an electronic device. FIG4 is a schematic diagram of an electronic device according to an embodiment of the present application. As shown in FIG4 , the electronic device 40 includes a processor and a memory. The memory stores computer-readable instructions, and the processor is configured to execute the computer-readable instructions. When the computer-readable instructions are executed, a method for processing a task is executed. The electronic device in this context may be a server, a PC, a PAD, a mobile phone, or the like.

[0078] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0079] The present application is described with reference to the flow chart and / or block diagram of the method, device (system), and computer program product according to the embodiment of the present application. It should be understood that each flow process and / or box in the flow chart and / or block diagram and the combination of the flow process and / or box in the flow chart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processing machine or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one flow chart flow or multiple flows and / or one box or multiple boxes of the block diagram.

[0080] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0081] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0082] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0083] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0084] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0085] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

[0086] The above are merely embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.

Claims

1. A task processing method is applied in a business application, wherein the business application calls a software development kit to execute a processing program of the following tasks: Acquire event data of a business event, determine a task to be executed of the business event, and determine whether the task data of the task to be executed contains a target data variable, wherein: The task data is obtained from the event data, and the target data variable is a data variable of a configured task matched by the task to be executed; In a case where the task data of the task to be executed includes the target data variable, determining whether the task data of the task to be executed satisfies a data variable condition associated with the target data variable; When the task data of the task to be executed meets the data variable condition, the task to be executed is determined as a task that is allowed to be executed, and when the execution condition of the matching configured task is met, the task to be executed is controlled to be executed.

2. The method according to claim 1, wherein: Determining the to-be-executed task of the business event and judging whether the task data of the to-be-executed task contains the target data variable comprises: Acquire a service tag from the event data, determine a task group according to the service tag, and determine the tasks in the task group as the tasks to be executed, wherein the task group includes at least one type of task; In the case that the task to be executed exists in the task list of configured tasks, the data variable of the configured task that matches the task to be executed is determined from the task list, the target data variable is obtained, and it is determined whether the task data of the task to be executed contains the target data variable, wherein the task list contains multiple configured tasks, and each configured task is associated with at least one data variable.

3. The method according to claim 1, wherein: The data variable condition includes a preset data type, a preset operator, and a preset value. Judging whether the task data of the task to be executed satisfies the data variable condition associated with the target data variable includes: Parsing the data type in the task data of the task to be executed, and determining whether the parsed data type covers the preset data type of all data variable conditions; If the parsed data type covers the preset data types of all data variable conditions, for each preset type, obtain the value under the preset type from the task data, and judge whether the value satisfies the judgment condition composed of the preset operator and the preset value. When the value satisfies the judgment condition, determine that the task data of the task to be executed satisfies the data variable condition corresponding to the preset type.

4. The method according to claim 1, wherein: When the software development tool is deployed in the business application, querying configuration data from a database by locally calling the software development tool, and executing a processing program for the task based on the configuration data and event data of the business event, wherein the configuration data includes data of a plurality of configured tasks; In the case where the software development tool is deployed in the task center, configuration data is queried from the database by remotely calling the software development tool, and the processing program of the task is executed based on the configuration data and the event data of the business event.

5. The method according to claim 4, wherein: The configuration data is obtained in the following way: Add new tasks to the visualization page of the operation management platform; For each newly added task, a data variable to be screened is selected from a candidate data variable set in the operation management platform, and a task executor is selected from a candidate task executor set in the operation management platform, and the selected data variable and the selected task executor are configured on the newly added task to obtain a configured task; The data of all configured tasks are determined as the data of the configuration.

6. The method according to claim 5, wherein: The candidate data variable set is obtained in the following way: Adding a new data variable in the visualization page of the operation management platform, and forming the candidate data variable set from all configured data variables; Metadata information is configured for each newly added data variable, and a data variable condition associated with the data variable is determined by the metadata information, wherein the metadata information at least includes: a preset data type, a preset operator, and a preset value.

7. The method according to claim 5, wherein: The candidate task executor set is obtained in the following way: Adding a task executor to the visualization page of the operation management platform, configuring execution condition information for each newly added task executor, and obtaining a configured task executor, wherein the execution condition information at least includes: effective time, executor switch; The candidate task executor set is composed of all configured task executors.

8. A task processing device, comprising: an acquisition unit, configured to acquire event data of a business event, determine a task to be executed of the business event, and determine whether the task data of the task to be executed contains a target data variable, wherein the task data is acquired from the event data, and the target data variable is a data variable of a configured task matched by the task to be executed; A judging unit, configured to judge whether the task data of the task to be executed satisfies a data variable condition associated with the target data variable when the task data of the task to be executed includes the target data variable; The control unit is used to determine the task to be executed as a task allowed to be executed when the task data of the task to be executed meets the data variable condition, and control the task to be executed to execute when the execution condition of the matching configured task is met.

9. A computer storage medium for storing a program, wherein: A processing method for controlling the device where the computer storage medium is located to perform the task described in any one of claims 1 to 7 when the program is running.

10. An electronic device comprising a memory and a processor, wherein: The memory stores a computer program, and the processor is configured to execute the processing method of any one of claims 1 to 7 through the computer program.

Citation Information

Patent Citations

  • System flow control method, device and apparatus and computer storage medium

    CN110321111A

  • Data processing method and device, electronic equipment and storage medium

    CN116303811A

  • Activity task execution method and device, electronic equipment and storage medium

    CN116841533A

  • Task processing method and device, storage medium and processor

    CN117724815A

  • Event-handler for selecting responsive actions

    US20110072442A1