Processing task creation method and device, equipment and medium

Through automated task creation methods, preset task trigger rules and pending data messages are used to solve the problem of manually creating tasks when the amount of data is huge, and efficient and timely data processing task creation is achieved.

CN119902864APending Publication Date: 2025-04-29BEIJING MOMENTA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311413444.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-27
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

In data processing, when the amount of data is huge, the way of manually creating processing tasks cannot meet the needs.

Method used

By getting pending data messages and preset task trigger rules, find matching target task trigger rules, and create target processing tasks based on matching rules. In the preset task trigger rules, the condition fields are all strings, which simplifies the design and rule matching process of data tables.

Benefits of technology

It realizes automated task creation, reduces labor costs, and improves the timeliness of task creation and the speed of data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119902864A_ABST
    Figure CN119902864A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, and provides a processing task creation method and device, equipment and a medium, and the method comprises the steps: obtaining a to-be-processed data message; a preset task triggering rule is obtained, the preset task triggering rule comprises a triggering condition and a processing logic corresponding to the triggering condition, and the field content of each condition field in the triggering condition is a character string; searching a target task triggering rule matched with the to-be-processed data message in all preset task triggering rules; and when the target task triggering rule is found, creating a corresponding target processing task according to the to-be-processed data message and a processing logic corresponding to the target task triggering rule. According to the technical scheme, manpower cost is greatly saved, the task is created more timely, and the data output speed is higher.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present application relates to the field of data processing technology, and in particular to a method, device, equipment and medium for creating a processing task. [Background technology]

[0002] At present, after the data collected by the vehicle is unpacked by the data recovery service DIS, it will be processed by the system processor of the data computing service DCS by default, and the data files produced by the processing will be stored in the business party's data bucket. The business party can subsequently use the data in the business bucket as input to perform other data processing operations according to its actual needs. When the amount of data is small, the business party can manually create processing tasks manually. However, in some scenarios, the amount of data to be processed is huge, and the manual creation of tasks can no longer meet the needs. [Summary of the invention]

[0003] The embodiments of the present application provide a method, device, equipment and medium for creating a processing task, which are intended to solve technical problems in related technologies such as when the amount of data to be processed is huge and the manual method of creating tasks cannot meet the needs.

[0004] In a first aspect, an embodiment of the present application provides a method for creating a processing task, comprising:

[0005] Get the data message to be processed;

[0006] Obtaining a preset task triggering rule, wherein the preset task triggering rule includes a triggering condition and a processing logic corresponding thereto, and the field content of each condition field in the triggering condition is a string;

[0007] Searching for a target task triggering rule that matches the data message to be processed among all preset task triggering rules;

[0008] When the target task triggering rule is found, a corresponding target processing task is created according to the processing logic corresponding to the data message to be processed and the target task triggering rule.

[0009] In one embodiment, optionally, the character string includes a data type, an operator, and a value.

[0010] In one embodiment, optionally, the operator includes equal to, not equal to, greater than, greater than or equal to, less than, and less than or equal to.

[0011] In one embodiment, optionally, searching for a target task triggering rule that matches the data message to be processed among all preset task triggering rules includes:

[0012] Compare the data message to be processed with the trigger condition in each preset task trigger rule to determine whether the data message to be processed meets the trigger condition;

[0013] When it is determined that the data message to be processed meets the trigger condition, the task trigger rule corresponding to the trigger condition is determined as the target task trigger rule.

[0014] In one embodiment, optionally, comparing the data message to be processed with a trigger condition in each preset task trigger rule to determine whether the data message to be processed satisfies the trigger condition includes:

[0015] Parsing the data message to be processed to parse out each message field and its corresponding message field content from the data message to be processed;

[0016] Identify the character string in each preset task trigger rule to obtain the identified condition field and its corresponding field content;

[0017] Searching whether there is a target message field in the data message to be processed that matches the identified condition field;

[0018] When the target message field is found, obtaining the target message field content corresponding to the target message field;

[0019] Compare the target message field content with the identified field content of the condition field to determine whether the target message field content conforms to the identified field content of the condition field;

[0020] When it is determined that the target message field content matches the identified field content of the condition field, it is determined that the to-be-processed data message meets the trigger condition.

[0021] In one embodiment, optionally, the method further comprises:

[0022] Receiving an input task trigger rule setting request, wherein the task trigger rule setting request includes a task trigger rule, and the task trigger rule includes a preset trigger condition and a processing logic;

[0023] Convert the data type, operator and value in the preset trigger condition in the task trigger rule into a string in a preset format to obtain a converted task trigger rule;

[0024] The converted task triggering rule is stored in the memory as the preset task triggering rule.

[0025] In one embodiment, optionally, the method further comprises:

[0026] Receiving input editing instructions for target preset task triggering rules;

[0027] The target preset task triggering rule is edited according to the editing instruction, and the target preset task triggering rule in the memory is updated.

[0028] In a second aspect, an embodiment of the present application provides a processing task creation device, comprising:

[0029] A first acquisition module, used to acquire a data message to be processed;

[0030] A second acquisition module is used to acquire a preset task triggering rule, wherein the preset task triggering rule includes a triggering condition and a processing logic corresponding thereto, and the field content of each condition field in the triggering condition is a string;

[0031] A search module, used to search for a target task trigger rule matching the data message to be processed among all preset task trigger rules;

[0032] The task creation module is used to create a corresponding target processing task according to the processing logic corresponding to the data message to be processed and the target task triggering rule when the target task triggering rule is found.

[0033] In one embodiment, optionally, the character string includes a data type, an operator, and a value.

[0034] In one embodiment, optionally, the operator includes equal to, not equal to, greater than, greater than or equal to, less than, and less than or equal to.

[0035] In one embodiment, optionally, the search module includes:

[0036] A comparison unit, used to compare the data message to be processed with the trigger condition in each preset task trigger rule to determine whether the data message to be processed meets the trigger condition;

[0037] A rule determination unit is used to determine the task triggering rule corresponding to the triggering condition as the target task triggering rule when it is determined that the data message to be processed meets the triggering condition.

[0038] In one embodiment, optionally, the comparison unit is used to:

[0039] Parsing the data message to be processed to parse out each message field and its corresponding message field content from the data message to be processed;

[0040] Identify the character string in each preset task trigger rule to obtain the identified condition field and its corresponding field content;

[0041] Searching whether there is a target message field in the data message to be processed that matches the identified condition field;

[0042] When the target message field is found, obtaining the target message field content corresponding to the target message field;

[0043] Compare the target message field content with the identified field content of the condition field to determine whether the target message field content conforms to the identified field content of the condition field;

[0044] When it is determined that the target message field content matches the identified field content of the condition field, it is determined that the to-be-processed data message meets the trigger condition.

[0045] In one embodiment, optionally, the device further comprises:

[0046] A request receiving module, used for receiving an input task trigger rule setting request, wherein the task trigger rule setting request includes a task trigger rule, and the task trigger rule includes a preset trigger condition and a processing logic;

[0047] A conversion module, used to convert the data type, operator and value in the preset trigger condition in the task trigger rule into a string in a preset format to obtain a converted task trigger rule;

[0048] The storage module is used to store the converted task triggering rule in the memory as the preset task triggering rule.

[0049] In one embodiment, optionally, the device further comprises:

[0050] An instruction receiving module, used for receiving an input editing instruction for a preset task triggering rule of a target;

[0051] The editing module is used to edit the preset task triggering rule of the target according to the editing instruction, and update the preset task triggering rule of the target in the memory.

[0052] In a third aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned processing task creation method when executing the computer program.

[0053] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned processing task creation method are implemented.

[0054] In the scheme implemented by the above processing task creation method, device, equipment and medium, a data message to be processed is obtained; a preset task trigger rule is obtained, wherein the preset task trigger rule includes a trigger condition and a processing logic corresponding thereto, and the field content of each condition field in the trigger condition is a string; among all preset task trigger rules, a target task trigger rule matching the data message to be processed is searched; when the target task trigger rule is found, a corresponding target processing task is created according to the processing logic corresponding to the data message to be processed and the target task trigger rule. In the present invention, in the preset task trigger rules, the condition fields are all stored in the form of strings. In this way, there is no need to pay attention to the data type of the field, which simplifies the design of the data table, and then the corresponding processing task is automatically created according to the preset task trigger rules and the data message to be processed. In this way, not only a large amount of labor costs are saved, but also the creation of tasks is more timely and the speed of outputting data is faster.

Brief Description of the Drawings

[0055] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0056] Figure 1 A schematic flowchart of a method for creating a processing task according to an embodiment of the present application is shown.

[0057] Figure 2 A schematic flowchart of step S103 in a method for creating a processing task according to an embodiment of the present application is shown.

[0058] Figure 3 A schematic flowchart of step S201 in a method for creating a processing task according to an embodiment of the present application is shown.

[0059] Figure 4 A schematic flowchart of a processing task creation method according to another embodiment of the present application is shown.

[0060] Figure 5 A schematic flowchart of a processing task creation method according to yet another embodiment of the present application is shown.

[0061] Figure 6A schematic diagram of a system architecture for processing task creation applications according to an embodiment of the present application is shown.

[0062] Figure 7 A schematic diagram of a system architecture for processing task creation applications according to another embodiment of the present application is shown.

[0063] Figure 8 A schematic structural diagram of a computer device according to an embodiment of the present application is shown.

[0064] Fig. 9 Another structural schematic diagram of a computer device according to an embodiment of the present application is shown. [Specific implementation method]

[0065] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0066] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0067] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0068] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0069] See also Figure 1 , Figure 1 A schematic flow chart of a processing task creation method according to an embodiment of the present application is shown. The processing task creation method is used to solve technical problems in related technologies such as when the amount of data to be processed is huge and the manual task creation method cannot meet the needs.

[0070] like Figure 1 As shown, according to a method for creating a processing task in one embodiment of the present application, the process includes:

[0071] Step S101, obtaining a data message to be processed;

[0072] The data message to be processed can be data obtained from various servers, such as data collected by the vehicle end, or basic information data of the user, etc.

[0073] Step S102, obtaining a preset task triggering rule, wherein the preset task triggering rule includes a triggering condition and a processing logic corresponding thereto, and the field content of each condition field in the triggering condition is a string;

[0074] In one embodiment, optionally, the character string includes a data type, an operator, and a value.

[0075] In this embodiment, each rule involves one or more fields. The value of each field is designed as a string. The string consists of three parts, namely the data type, the operator and the value, wherein the three parts can be separated by #. For example, the field content corresponding to the from_dip field is str#eq#true, wherein str represents the data type, eq represents the operator, and true represents the value. The overall meaning indicates that the from_dip field is a string type, and the matching rule is required to be equal to true (eq is the abbreviation of equal). Mysql is a storage system with strong data types, and each field requires a clear data type. Through this design, all Mysql fields are defined as strings, and there is no need to pay attention to the data type of the field at the rule storage level, simplifying the design of the data table.

[0076] In one embodiment, the operator may include equal, not equal, greater than, greater than or equal, less than, and less than or equal. Among them, equal can be represented by eq, not equal can be represented by nq, greater than can be represented by gt, greater than or equal can be represented by ge, less than can be represented by lt, less than or equal can be represented by le, and the operator match represents regular matching. With rich operator types, data search and rule matching under various conditions can be met to meet different data requirements of users.

[0077] In the above embodiment, the task triggering rules can be set as needed. For example, the triggering condition is set to the user's age being greater than 30 years old, and the corresponding processing logic can be to send a fitness course plan to the user. The field content of each condition field in the triggering condition is a string. In this way, the condition fields are all defined as strings. At the rule storage level, there is no need to pay attention to the data type of the field, which simplifies the design of the data table and can support a variety of rule types.

[0078] Step S103, searching for a target task triggering rule that matches the data message to be processed among all preset task triggering rules;

[0079] like Figure 2 As shown, in one embodiment, optionally, step S103 includes:

[0080] Step S201, comparing the data message to be processed with the trigger condition in each preset task trigger rule to determine whether the data message to be processed meets the trigger condition;

[0081] After obtaining a data message to be processed, the data messages to be processed can be compared with the preset task triggering rules one by one to determine whether the data messages to be processed meet the triggering conditions in the preset task triggering rules.

[0082] Step S202: When it is determined that the data message to be processed meets the trigger condition, the task trigger rule corresponding to the trigger condition is determined as the target task trigger rule.

[0083] like Figure 3 As shown, in one embodiment, optionally, step S201 includes:

[0084] Step S301, parsing the data message to be processed to parse out each message field and its corresponding message field content from the data message to be processed;

[0085] For example, the data message to be processed includes basic personal information of different users, such as name, age, height, weight, etc. The message fields that can be parsed are name, age, height, and weight, and the corresponding message field content is the corresponding content, such as Zhang San, 35 years old, 165cm, 60kg.

[0086] Step S302, identifying the character string in each preset task trigger rule to obtain the identified condition field and its corresponding field content;

[0087] For example, the age field in the preset task trigger rule has a corresponding string of int#gt#30, which means that the trigger condition is that the age is greater than 30 years old, and the corresponding processing logic is to issue a fitness course plan.

[0088] Step S303, searching whether there is a target message field matching the identified condition field in the data message to be processed;

[0089] As in the above example, the condition field is the age field, and the data message to be processed is checked to see whether there is also an age field.

[0090] Step S304, when the target message field is found, obtaining the target message field content corresponding to the target message field;

[0091] As in the above example, when an age field is found in the data message to be processed, the specific age content is obtained.

[0092] Step S305, comparing the target message field content with the identified field content of the condition field to determine whether the target message field content conforms to the identified field content of the condition field;

[0093] Step S306: When it is determined that the target message field content matches the identified condition field content, it is determined that the to-be-processed data message meets the trigger condition.

[0094] As in the above example, the target message field content is 35 years old, and the field content of the condition field is age greater than 30 years old. The target message field content meets the field content of the identified condition field. At this time, it can be determined that the data message to be processed meets the trigger condition, and the corresponding processing task can be created later, that is, a task to send a fitness course plan to the user.

[0095] Of course, users can also set other task trigger rules according to personal needs.

[0096] Step S104, when the target task triggering rule is found, a corresponding target processing task is created according to the processing logic corresponding to the data message to be processed and the target task triggering rule.

[0097] like Figure 4 As shown, in one embodiment, optionally, the method further includes:

[0098] Step S401, receiving an input task trigger rule setting request, wherein the task trigger rule setting request includes a task trigger rule, and the task trigger rule includes a preset trigger condition and a processing logic;

[0099] Step S402, converting the data type, operator and value in the preset trigger condition in the task trigger rule into a string in a preset format to obtain a converted task trigger rule;

[0100] Step S403, storing the converted task triggering rule in the memory as the preset task triggering rule.

[0101] In this embodiment, when the user needs to set a task trigger rule, he can input a task trigger rule setting request and set the preset trigger conditions and processing logic. After the user sets it, when storing, the data type, operator and numerical value in the preset trigger condition in the task trigger rule will be converted into a string in a preset format to obtain the converted task trigger rule, which is then stored in the memory as the preset task trigger rule.

[0102] In one embodiment, optionally, the method further comprises:

[0103] Receiving input editing instructions for target preset task triggering rules;

[0104] The target preset task triggering rule is edited according to the editing instruction, and the target preset task triggering rule in the memory is updated.

[0105] Among them, the editing operation includes modification, deletion and other operations, and the preset task triggering rules adopt an inert loading mechanism, that is, the preset task triggering rules are cached in the memory, and the rules will only be updated when the editing instructions are received.

[0106] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0107] Figure 5 A block diagram of a processing task creation device according to an embodiment of the present application is shown.

[0108] like Figure 5 As shown, in a second aspect, an embodiment of the present application provides a processing task creation device 50, comprising:

[0109] A first acquisition module 51, used to acquire a data message to be processed;

[0110] A second acquisition module 52 is used to acquire a preset task triggering rule, wherein the preset task triggering rule includes a triggering condition and a processing logic corresponding thereto, and the field content of each condition field in the triggering condition is a string;

[0111] A search module 53 is used to search for a target task trigger rule that matches the data message to be processed among all preset task trigger rules;

[0112] The task creation module 54 is used to create a corresponding target processing task according to the processing logic corresponding to the data message to be processed and the target task triggering rule when the target task triggering rule is found.

[0113] In one embodiment, optionally, the character string includes a data type, an operator, and a value.

[0114] In one embodiment, optionally, the operator includes equal to, not equal to, greater than, greater than or equal to, less than, and less than or equal to.

[0115] In one embodiment, optionally, the search module 53 includes:

[0116] A comparison unit, used to compare the data message to be processed with the trigger condition in each preset task trigger rule to determine whether the data message to be processed meets the trigger condition;

[0117] A rule determination unit is used to determine the task triggering rule corresponding to the triggering condition as the target task triggering rule when it is determined that the data message to be processed meets the triggering condition.

[0118] In one embodiment, optionally, the comparison unit is used to:

[0119] Parsing the data message to be processed to parse out each message field and its corresponding message field content from the data message to be processed;

[0120] Identify the character string in each preset task trigger rule to obtain the identified condition field and its corresponding field content;

[0121] Searching whether there is a target message field in the data message to be processed that matches the identified condition field;

[0122] When the target message field is found, obtaining the target message field content corresponding to the target message field;

[0123] Compare the target message field content with the identified field content of the condition field to determine whether the target message field content conforms to the identified field content of the condition field;

[0124] When it is determined that the target message field content matches the identified field content of the condition field, it is determined that the to-be-processed data message meets the trigger condition.

[0125] In one embodiment, optionally, the device further comprises:

[0126] A request receiving module, used for receiving an input task trigger rule setting request, wherein the task trigger rule setting request includes a task trigger rule, and the task trigger rule includes a preset trigger condition and a processing logic;

[0127] A conversion module, used to convert the data type, operator and value in the preset trigger condition in the task trigger rule into a string in a preset format to obtain a converted task trigger rule;

[0128] The storage module is used to store the converted task triggering rule in the memory as the preset task triggering rule.

[0129] In one embodiment, optionally, the device further comprises:

[0130] An instruction receiving module, used for receiving an input editing instruction for a preset task triggering rule of a target;

[0131] The editing module is used to edit the preset task triggering rule of the target according to the editing instruction, and update the preset task triggering rule of the target in the memory.

[0132] For the specific definition of the processing task creation device, please refer to the definition of the processing task creation method in the above text, which will not be repeated here. The various modules in the above-mentioned processing task creation device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0133] The above technical solution of the present invention is described in detail below with two specific embodiments.

[0134] Embodiment 1

[0135] like Figure 6 As shown in the figure, the trigger service can passively receive or actively subscribe to messages from the task processing system. The message parsing module will parse the source message and obtain the value of the field. The rule storage system is used to store various trigger rules. The rule matching engine is responsible for the complex matching process between specific messages and rules. When the match is successful, the task processing system interface can be called to create a new task. Other service interfaces can also be called to perform specified operations. The rule management system implements functions such as creating, modifying, deleting and querying rules.

[0136] Embodiment 2

[0137] like Figure 7 As shown, the present invention can be applied to the data continuous processing flow of the DCS (Data Computing Service) system, and the TriggerService service implements and applies the present invention. The main function of the TriggerService service is to use the parameters sent by the DSS (Data Storage Service) to match the existing trigger rules. When the match is successful, the DCS is called to create a data processing task. The data processing flow is as follows:

[0138] 1)DIS system analysis production decision support system (Decision Support System).

[0139] 2) DCS processes the dataview parsed by DIS and creates a new dataview in DSS after the data is processed.

[0140] 3) When creating a new dataview, DSS will call back the trigger-service interface to notify the trigger-service that the new dataview has been created and also carry the meta information of the new dataview.

[0141] 4) Trigger-service will load the trigger rules from the database into memory. When receiving a callback from DSS, it will use the meta information in the request to match the existing rules. When a rule is successfully matched, Trigger-service will call the DCS task creation interface and use the dataview to create a new DCS processing task. Through the Trigger-service service, multi-stage automated processing of data is achieved, improving data processing efficiency.

[0142] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile and / or volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external client via a network connection. When the computer program is executed by the processor, it implements a function or step on the server side of a processing task creation method.

[0143] In one embodiment, a computer device is provided. The computer device may be a client, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external server through a network connection. When the computer program is executed by the processor, it realizes the functions or steps of a client side of a processing task creation method.

[0144] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0145] The computer device of the embodiment of the present application exists in various forms, including but not limited to:

[0146] (1) Mobile communication devices: These devices are characterized by their mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.

[0147] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, such as iPad.

[0148] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as iPods), handheld game consoles, e-books, as well as smart toys and portable car navigation devices.

[0149] (4) Server: A device that provides computing services. The server consists of a processor, hard disk, memory, system bus, etc. The server is similar to a general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.

[0150] (5) Other electronic devices with data interaction functions.

[0151] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0152] Get the data message to be processed;

[0153] Obtaining a preset task triggering rule, wherein the preset task triggering rule includes a triggering condition and a processing logic corresponding thereto, and the field content of each condition field in the triggering condition is a string;

[0154] Searching for a target task triggering rule that matches the data message to be processed among all preset task triggering rules;

[0155] When the target task triggering rule is found, a corresponding target processing task is created according to the processing logic corresponding to the data message to be processed and the target task triggering rule.

[0156] In one embodiment, optionally, the character string includes a data type, an operator, and a value.

[0157] In one embodiment, optionally, the operator includes equal to, not equal to, greater than, greater than or equal to, less than, and less than or equal to.

[0158] In one embodiment, optionally, searching for a target task triggering rule that matches the data message to be processed among all preset task triggering rules includes:

[0159] Compare the data message to be processed with the trigger condition in each preset task trigger rule to determine whether the data message to be processed meets the trigger condition;

[0160] When it is determined that the data message to be processed meets the trigger condition, the task trigger rule corresponding to the trigger condition is determined as the target task trigger rule.

[0161] In one embodiment, optionally, comparing the data message to be processed with a trigger condition in each preset task trigger rule to determine whether the data message to be processed satisfies the trigger condition includes:

[0162] Parsing the data message to be processed to parse out each message field and its corresponding message field content from the data message to be processed;

[0163] Identify the character string in each preset task trigger rule to obtain the identified condition field and its corresponding field content;

[0164] Searching whether there is a target message field in the data message to be processed that matches the identified condition field;

[0165] When the target message field is found, obtaining the target message field content corresponding to the target message field;

[0166] Compare the target message field content with the identified field content of the condition field to determine whether the target message field content conforms to the identified field content of the condition field;

[0167] When it is determined that the target message field content matches the identified field content of the condition field, it is determined that the to-be-processed data message meets the trigger condition.

[0168] In one embodiment, optionally, the method further comprises:

[0169] Receiving an input task trigger rule setting request, wherein the task trigger rule setting request includes a task trigger rule, and the task trigger rule includes a preset trigger condition and a processing logic;

[0170] Convert the data type, operator and value in the preset trigger condition in the task trigger rule into a string in a preset format to obtain a converted task trigger rule;

[0171] The converted task triggering rule is stored in the memory as the preset task triggering rule.

[0172] In one embodiment, optionally, the method further comprises:

[0173] Receiving input editing instructions for target preset task triggering rules;

[0174] The target preset task triggering rule is edited according to the editing instruction, and the target preset task triggering rule in the memory is updated.

[0175] It should be noted that the above functions or steps that can be implemented by the computer-readable storage medium or electronic device can refer to the relevant description in the aforementioned method embodiment. To avoid repetition, they will not be described one by one here.

[0176] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0177] It should be understood that, although the terms first, second, etc. may be used to describe the setting unit in the embodiments of the present application, these setting units should not be limited to these terms. These terms are only used to distinguish the setting units from each other. For example, without departing from the scope of the embodiments of the present application, the first setting unit may also be referred to as the second setting unit, and similarly, the second setting unit may also be referred to as the first setting unit.

[0178] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0179] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0180] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0181] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0182] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for creating a processing task, characterized in that: include: Get the data message to be processed; Obtaining a preset task triggering rule, wherein the preset task triggering rule includes a triggering condition and a processing logic corresponding thereto, and the field content of each condition field in the triggering condition is a string; Searching for a target task triggering rule that matches the data message to be processed among all preset task triggering rules; When the target task triggering rule is found, a corresponding target processing task is created according to the processing logic corresponding to the data message to be processed and the target task triggering rule.

2. The processing task creation method according to claim 1, characterized in that: The string includes a data type, an operator, and a value.

3. The processing task creation method according to claim 1, characterized in that: The operators include equal to, not equal to, greater than, greater than or equal to, less than, and less than or equal to.

4. The processing task creation method according to claim 1, characterized in that: Among all preset task triggering rules, searching for a target task triggering rule that matches the data message to be processed includes: Compare the data message to be processed with the trigger condition in each preset task trigger rule to determine whether the data message to be processed meets the trigger condition; When it is determined that the data message to be processed meets the trigger condition, the task trigger rule corresponding to the trigger condition is determined as the target task trigger rule.

5. The processing task creation method according to claim 4, characterized in that: Comparing the data message to be processed with the trigger condition in each preset task trigger rule to determine whether the data message to be processed meets the trigger condition, including: Parsing the data message to be processed to parse out each message field and its corresponding message field content from the data message to be processed; Identify the character string in each preset task trigger rule to obtain the identified condition field and its corresponding field content; Searching whether there is a target message field in the data message to be processed that matches the identified condition field; When the target message field is found, obtaining the target message field content corresponding to the target message field; Compare the target message field content with the identified field content of the condition field to determine whether the target message field content conforms to the identified field content of the condition field; When it is determined that the target message field content matches the identified field content of the condition field, it is determined that the to-be-processed data message meets the trigger condition.

6. The processing task creation method according to claim 1, characterized in that: The method further comprises: Receiving an input task trigger rule setting request, wherein the task trigger rule setting request includes a task trigger rule, and the task trigger rule includes a preset trigger condition and a processing logic; Convert the data type, operator and value in the preset trigger condition in the task trigger rule into a string in a preset format to obtain a converted task trigger rule; The converted task triggering rule is stored in the memory as the preset task triggering rule.

7. The processing task creation method according to claim 6, characterized in that: The method further comprises: Receiving input editing instructions for target preset task triggering rules; The target preset task triggering rule is edited according to the editing instruction, and the target preset task triggering rule in the memory is updated.

8. A processing task creation device, characterized in that: include: A first acquisition module, used to acquire a data message to be processed; A second acquisition module is used to acquire a preset task triggering rule, wherein the preset task triggering rule includes a triggering condition and a processing logic corresponding thereto, and the field content of each condition field in the triggering condition is a string; A search module, used to search for a target task trigger rule matching the data message to be processed among all preset task trigger rules; The task creation module is used to create a corresponding target processing task according to the processing logic corresponding to the data message to be processed and the target task triggering rule when the target task triggering rule is found.

9. A computer device, characterized in that: include: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions executable by the at least one processor, wherein the instructions are configured to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Computer executable instructions are stored, and the computer executable instructions are used to execute the method according to any one of claims 1 to 7.