A data processing method and device based on a task graph element
By obtaining configuration requirement requests and generating element configuration instructions using function setting rules, the system redundancy problem caused by traditional element logic expansion is solved, improving the convenience and performance of system operation and maintenance.
Patent Information
- Application Number
- CN202111287107.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-02
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2041-11-02
AI Technical Summary
Traditional methods of extending primitive logic lead to system redundancy, affecting the ease of system operation and maintenance and performance.
By obtaining configuration requirement requests, determining the set of configuration function information using function setting rules, and generating element configuration instructions, the element logic extension program is simplified.
Reduce system redundancy and improve system operation and maintenance convenience and performance.
Smart Images

Figure CN114153428B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a data processing method and apparatus based on task primitives. Background Technology
[0002] Currently, traditional primitive logic extension is usually implemented through function plugins via interfaces, which easily leads to system redundancy and inconveniences in system operation and maintenance. Therefore, it is particularly important to provide a data processing method and device based on task primitives to simplify the primitive logic extension program, reduce system redundancy, and thus improve the ease of system operation and maintenance and enhance system performance. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to provide a data processing method and apparatus based on task primitives, which can obtain configuration function information by processing configuration request by utilizing function setting rules, and then determine primitive configuration instructions for instructing function configuration of task primitives. This is beneficial to simplify primitive logic extension programs, reduce system redundancy, and thus improve the convenience of system operation and maintenance and improve system performance.
[0004] To address the aforementioned technical problems, a first aspect of the present invention discloses a data processing method based on task primitives, the method comprising:
[0005] Obtain a configuration requirement request; the configuration requirement request includes several configuration requirement information; the configuration requirement information is related to task primitives;
[0006] Based on the configuration requirement request and the preset function setting rules, a set of configuration function information is determined; the set of configuration function information includes several configuration function information; the configuration function information is used to filter the user information corresponding to the task primitive;
[0007] Based on the configuration function information set, a set of graphic element configuration instructions is determined; the set of graphic element configuration instructions is used to instruct on function configuration for the task graphic element.
[0008] As an optional implementation, in the first aspect of the present invention, determining the configuration function information set according to the configuration requirement request and preset function setting rules includes:
[0009] Based on the configuration requirement request and the set of candidate functions, a set of backup functions is determined; the set of backup functions includes several backup functions.
[0010] Based on the set of backup functions, a set of configuration function information is determined.
[0011] As an optional implementation, in the first aspect of the present invention, determining the set of backup functions based on the configuration requirement request and the set of candidate functions includes:
[0012] For any configuration requirement information, the requirement feature information corresponding to the configuration requirement information is matched with the function feature information corresponding to all candidate functions in the candidate function set to obtain a first matching result; the requirement feature information includes M requirement information elements; M is an odd positive integer; the function feature information includes N function information elements; N is an odd positive integer; the requirement element information corresponding to the first requirement information element and the requirement element information corresponding to the second requirement information element in the requirement feature information are matched; the requirement element information corresponding to the category information element in the second requirement information and the requirement element information corresponding to the last requirement information element in the requirement feature information are matched; the requirement element information corresponding to the first requirement information element and the requirement element information corresponding to the last requirement information element in the requirement feature information are not matched;
[0013] When the first matching result indicates that there is target function feature information in the set of candidate functions that matches the requirement feature information corresponding to the configuration requirement information, the candidate function corresponding to the target function feature information is determined as a backup function.
[0014] As an optional implementation, in the first aspect of the present invention, determining the configuration function information set based on the spare function set includes:
[0015] Based on the set of backup functions, an initial function information set is determined; the initial function information set includes several initial function information sets.
[0016] Get function configuration information;
[0017] The initial function information set is processed using the function configuration information to obtain a configuration function set.
[0018] As an optional implementation, in a first aspect of the present invention, determining the initial function set based on the backup function set includes:
[0019] For any spare function, determine whether the condition for importing the function is met in the spare function, and obtain the first judgment result;
[0020] When the first judgment result indicates that the backup function meets the import function condition, the import function information set corresponding to the backup function is determined; the import function information set includes several import function information;
[0021] Based on the imported function information set, the corresponding set of reference functions for the backup function is determined; the set of reference functions includes several reference functions.
[0022] Based on the set of referenced functions and the backup function, the initial function information corresponding to the backup function is determined.
[0023] As an optional implementation, in the first aspect of the present invention, the function configuration information includes initialization configuration information and function parameter information; the initialization configuration information includes P initialization elements; where P is a positive integer greater than or equal to 7; the function parameter information includes Q parameter elements; where Q is a positive integer greater than or equal to 6.
[0024] The step of processing the initial function information set using the function configuration information to obtain a configuration function set includes:
[0025] For any initial function information, the initial configuration information is used to process the initial function information to obtain the function to be configured corresponding to the initial function information;
[0026] The function parameter information is used to process the function to be configured corresponding to the initial function information to obtain the configuration function corresponding to the initial function information.
[0027] As an optional implementation, in the first aspect of the present invention, before determining the set of primitive configuration instructions based on the set of configuration function information, the method further includes:
[0028] Obtain a set of node filtering information; the set of node filtering information includes node filtering information corresponding to several task primitives;
[0029] Based on the configuration function information set and the node filtering information set, a set of element configuration instructions is determined.
[0030] A second aspect of this invention discloses a data processing apparatus based on task primitives, the apparatus comprising:
[0031] The acquisition module is used to acquire configuration requirement requests; the configuration requirement requests include several configuration requirement information; the configuration requirement information is related to task primitives;
[0032] The first determining module is used to determine a set of configuration function information based on the configuration requirement request and preset function setting rules; the set of configuration function information includes several configuration function information; the configuration function information is used to filter user information corresponding to the task primitive;
[0033] The second determining module is used to determine a set of primitive configuration instructions based on the set of configuration function information; the set of primitive configuration instructions is used to instruct the function configuration of the task primitive.
[0034] As an optional implementation, in a second aspect of the present invention, the first determining module includes a first determining submodule and a second determining submodule, wherein:
[0035] The first determining submodule is used to determine a set of backup functions based on the configuration requirement request and the set of candidate functions; the set of backup functions includes several backup functions;
[0036] The second determining submodule is used to determine the configuration function information set based on the set of backup functions.
[0037] As an optional implementation, in a second aspect of the present invention, the first determining submodule determines the set of backup functions based on the configuration requirement request and the set of candidate functions in the following specific manner:
[0038] For any configuration requirement information, the requirement feature information corresponding to the configuration requirement information is matched with the function feature information corresponding to all candidate functions in the candidate function set to obtain a first matching result; the requirement feature information includes M requirement information elements; M is an odd positive integer; the function feature information includes N function information elements; N is an odd positive integer; the requirement element information corresponding to the first requirement information element and the requirement element information corresponding to the second requirement information element in the requirement feature information are matched; the requirement element information corresponding to the category information element in the second requirement information and the requirement element information corresponding to the last requirement information element in the requirement feature information are matched; the requirement element information corresponding to the first requirement information element and the requirement element information corresponding to the last requirement information element in the requirement feature information are not matched;
[0039] When the first matching result indicates that there is target function feature information in the set of candidate functions that matches the requirement feature information corresponding to the configuration requirement information, the candidate function corresponding to the target function feature information is determined as a backup function.
[0040] As an optional implementation, in a second aspect of the present invention, the second determining submodule determines the configuration function information set based on the spare function set in the following specific manner:
[0041] Based on the set of backup functions, an initial function information set is determined; the initial function information set includes several initial function information sets.
[0042] Get function configuration information;
[0043] The initial function information set is processed using the function configuration information to obtain a configuration function set.
[0044] As an optional implementation, in a second aspect of the present invention, the second determining submodule determines the initial function set based on the spare function set in the following specific manner:
[0045] For any spare function, determine whether the condition for importing the function is met in the spare function, and obtain the first judgment result;
[0046] When the first judgment result indicates that the backup function meets the import function condition, the import function information set corresponding to the backup function is determined; the import function information set includes several import function information;
[0047] Based on the imported function information set, the corresponding set of reference functions for the backup function is determined; the set of reference functions includes several reference functions.
[0048] Based on the set of referenced functions and the backup function, the initial function information corresponding to the backup function is determined.
[0049] As an optional implementation, in a second aspect of the present invention, the function configuration information includes initialization configuration information and function parameter information; the initialization configuration information includes P initialization elements; where P is a positive integer greater than or equal to 7; the function parameter information includes Q parameter elements; where Q is a positive integer greater than or equal to 6.
[0050] The second determining submodule uses the function configuration information to process the initial function information set to obtain the configuration function set in the following specific way:
[0051] For any initial function information, the initial configuration information is used to process the initial function information to obtain the function to be configured corresponding to the initial function information;
[0052] The function parameter information is used to process the function to be configured corresponding to the initial function information to obtain the configuration function corresponding to the initial function information.
[0053] As an optional implementation, in a second aspect of the present invention, before the second determining module determines the set of primitive configuration instructions based on the set of configuration function information, the obtaining module is further configured to obtain a set of node filtering information; the set of node filtering information includes node filtering information corresponding to several of the task primitives;
[0054] The second determining module determines the specific implementation method of the primitive configuration instruction set based on the configuration function information set as follows:
[0055] Based on the configuration function information set and the node filtering information set, a set of element configuration instructions is determined.
[0056] A third aspect of the present invention discloses another data processing apparatus based on task primitives, the apparatus comprising:
[0057] Memory containing executable program code;
[0058] A processor coupled to the memory;
[0059] The processor calls the executable program code stored in the memory to execute some or all of the steps in the data processing method based on task primitives disclosed in the first aspect of the present invention.
[0060] The fourth aspect of the present invention discloses a computer storage medium storing computer instructions, which, when invoked, are used to execute some or all of the steps in the data processing method based on task primitives disclosed in the first aspect of the present invention.
[0061] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0062] In this embodiment of the invention, a configuration requirement request is obtained; the configuration requirement request includes several configuration requirement information; the configuration requirement information is related to task elements; a set of configuration function information is determined based on the configuration requirement request and preset function setting rules; the set of configuration function information includes several configuration function information; the configuration function information is used to filter user information corresponding to task elements; a set of element configuration instructions is determined based on the set of configuration function information; the set of element configuration instructions is used to instruct function configuration for task elements. Therefore, this invention can obtain configuration function information by processing the configuration requirement request using function setting rules, and then determine the element configuration instructions used to instruct function configuration for task elements. This simplifies element logic extension procedures, reduces system redundancy, and thus improves system operation and maintenance convenience and system performance. Attached Figure Description
[0063] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0064] Figure 1This is a flowchart illustrating a data processing method based on task primitives disclosed in an embodiment of the present invention;
[0065] Figure 2 This is a flowchart illustrating another data processing method based on task primitives disclosed in an embodiment of the present invention;
[0066] Figure 3 This is a schematic diagram of the structure of a data processing device based on task primitives disclosed in an embodiment of the present invention;
[0067] Figure 4 This is a schematic diagram of another data processing device based on task primitives disclosed in an embodiment of the present invention;
[0068] Figure 5 A schematic diagram of the structure of another data processing device based on task primitives disclosed in this embodiment of the invention. Detailed Implementation
[0069] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0070] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.
[0071] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0072] This invention discloses a data processing method and apparatus based on task primitives. It can process configuration request requests using function setting rules to obtain configuration function information, and then determine primitive configuration instructions for instructing function configuration of task primitives. This simplifies primitive logic extension procedures, reduces system redundancy, and thus improves system operation and maintenance convenience and system performance. Detailed descriptions follow.
[0073] Example 1
[0074] Please see Figure 1 , Figure 1 This is a flowchart illustrating a data processing method based on task primitives disclosed in an embodiment of the present invention. Figure 1 The described task-based primitive-based data processing method is applied to data processing systems, such as local servers or cloud servers used for task-based primitive-based data processing, and this embodiment of the invention is not limited thereto. Figure 1 As shown, the data processing method based on task primitives may include the following operations:
[0075] 101. Obtain configuration requirement request.
[0076] In this embodiment of the invention, the above configuration requirement request includes several configuration requirement information.
[0077] In this embodiment of the invention, the above configuration requirements information is related to task primitives.
[0078] 102. Based on the configuration requirement request and the preset function setting rules, determine the set of configuration function information.
[0079] In this embodiment of the invention, the above-mentioned configuration function information set includes several configuration function information.
[0080] In this embodiment of the invention, the above-mentioned configuration function information is used to filter user information corresponding to task primitives.
[0081] 103. Determine the set of graphic element configuration instructions based on the set of configuration function information.
[0082] In this embodiment of the invention, the above-mentioned set of primitive configuration instructions is used to instruct the function configuration of task primitives.
[0083] Optionally, the above configuration requirements include querying user information, and / or specifying user role information, and / or obtaining user ID information, and / or obtaining organization ID information, and / or obtaining department ID information, and / or associating user information. This embodiment of the invention does not impose any limitations.
[0084] As can be seen, the data processing method based on task graph elements described in the embodiments of the present invention can obtain configuration function information by processing configuration requirement requests using function setting rules, and then determine the graph element configuration instruction used to instruct the function configuration of task graph elements. This is beneficial to simplify the graph element logic extension program, reduce system redundancy, and thus improve the system's ease of operation and maintenance and improve system performance.
[0085] In an optional embodiment, step 102 above determines a set of configuration function information based on the configuration requirement request and preset function setting rules, including:
[0086] Based on the configuration requirement request and the set of candidate functions, a set of backup functions is determined; the set of backup functions includes several backup functions.
[0087] Based on the set of backup functions, the set of configuration function information is determined.
[0088] Optionally, the above alternative functions are Java-based functions.
[0089] Optionally, the above candidate functions are Java-based functions and are obtained using static methods.
[0090] Optionally, the parameters in the above candidate functions cannot be generic.
[0091] As can be seen, the data processing method based on task primitives described in the embodiments of the present invention can first determine the backup functions from the candidate functions, and then process the backup functions to obtain the configuration function information. This is beneficial to simplify the primitive logic extension program, reduce system redundancy, and thus improve the system's operation and maintenance convenience and system performance.
[0092] In another optional embodiment, the set of backup functions determined based on the configuration requirement request and the set of candidate functions includes:
[0093] For any configuration requirement information, the requirement feature information corresponding to that configuration requirement information is matched with the function feature information corresponding to all candidate functions in the candidate function set to obtain the first matching result; the requirement feature information includes M requirement information elements; M is an odd positive integer; the function feature information includes N function information elements; N is an odd positive integer; the requirement element information corresponding to the first requirement information element and the requirement element information corresponding to the second requirement information element in the order are matched; the requirement element information corresponding to the category information element in the second order and the requirement element information corresponding to the last requirement information element in the order are matched; the requirement element information corresponding to the first requirement information element and the requirement element information corresponding to the last requirement information element in the order are not matched;
[0094] When the first matching result indicates that there is target function feature information in the set of candidate functions that matches the requirement feature information corresponding to the configuration requirement information, the candidate function corresponding to the target function feature information is determined as the backup function.
[0095] Optionally, the above-mentioned requirement characteristic information includes requirement code information, and / or requirement name information, and / or requirement IP information, which are not limited in this embodiment of the invention.
[0096] Optionally, M is an odd positive integer greater than or equal to 5.
[0097] Optionally, the above-mentioned demand feature information is in the form of A1-a-A3-A2-b, where A1, A2, A3, a, and b are the demand element information corresponding to the demand information elements.
[0098] Optionally, 'a' can be composed of A1 and A2. Further, 'a' can have the form A1-A1-A2-A2.
[0099] Optionally, b can be composed of A2 and A3. Further, b can be in the form A2-A3-A2-A3.
[0100] Optionally, A1 above is the requirement code information.
[0101] Optionally, A2 above is the requirement name information.
[0102] Optionally, A3 above contains the required IP information.
[0103] Optionally, the above-mentioned function feature information includes function code information, and / or function name information, and / or function IP information, which are not limited in this embodiment of the invention.
[0104] Optionally, N is an odd positive integer greater than or equal to 5.
[0105] Optionally, the above function feature information is in the form of B1-c-B3-B2-d, where B1, B2, B3, c, and d are the function element information corresponding to the function information elements.
[0106] Optionally, c consists of B1 and B2. Further, c can be in the form of B1-B1-B2-B2.
[0107] Optionally, d can be composed of B2 and B3. Further, d can take the form B2-B3-B2-B3.
[0108] Optionally, B1 above contains function identifier information.
[0109] Optionally, B2 above contains function name information.
[0110] Optionally, B3 above is the function IP information.
[0111] As can be seen, the data processing method based on task primitives described in the embodiments of the present invention can determine the backup function by matching the demand feature information and the function feature information, which is beneficial to simplify the primitive logic extension program, reduce system redundancy, and thus improve the system's operation and maintenance convenience and system performance.
[0112] In yet another optional embodiment, the above-described determination of the configuration function information set based on the set of alternative functions includes:
[0113] Based on the set of backup functions, the set of initial function information is determined; the set of initial function information includes several initial function information.
[0114] Get function configuration information;
[0115] By using the function configuration information, the initial function information set is processed to obtain the configuration function set.
[0116] Optionally, the function configuration information includes the function configuration name and / or function configuration feature information, which is not limited in this embodiment of the invention.
[0117] As can be seen, the data processing method based on task primitives described in the embodiments of the present invention can process the backup function to obtain the initial function information, and then combine the initial function information and the function configuration information to determine the configuration function. This is more conducive to simplifying the primitive logic extension program, reducing system redundancy, and thus improving the system's ease of operation and maintenance and improving system performance.
[0118] In yet another optional embodiment, the determination of the initial function set based on the set of alternative functions includes:
[0119] For any spare function, determine whether the condition for importing the function is met in the spare function, and obtain the first judgment result;
[0120] When the first judgment result indicates that the backup function meets the import function condition, the import function information set corresponding to the backup function is determined; the import function information set includes several import function information;
[0121] Based on the set of imported function information, the set of reference functions corresponding to the standby function is determined; the set of reference functions includes several reference functions.
[0122] Based on the set of referenced functions and the spare function, the initial function information corresponding to the spare function is determined.
[0123] Optionally, the above import function condition is that the standby function contains dependent JAR files.
[0124] Optionally, the above determination of whether the backup function meets the import function conditions is achieved by retrieving the jar feature information in the backup function.
[0125] Optionally, when the standby function meets the import function conditions, all JAR files in the standby function are imported into the engine.
[0126] Optionally, any of the above initial function information includes a spare function and a set of imported function information corresponding to the spare function.
[0127] Optionally, the above set of initialization functions can be placed in the engine's lib directory.
[0128] As can be seen, the data processing method based on task primitives described in the embodiments of the present invention can obtain the referenced function by judging whether the backup function meets the import function condition, and then determine the initial function information. This provides an implementation path for determining the initial function information, which is more conducive to simplifying the primitive logic extension program, reducing system redundancy, and thus improving the system's operation and maintenance convenience and system performance.
[0129] In an optional embodiment, the above function configuration information includes initialization configuration information and function parameter information; the initialization configuration information includes P initialization elements; P is a positive integer greater than or equal to 7; the function parameter information includes Q parameter elements; Q is a positive integer greater than or equal to 6;
[0130] The above process utilizes function configuration information to process the initial function information set, resulting in a configuration function set, including:
[0131] For any initial function information, the initial configuration information is used to process the initial function information to obtain the function to be configured corresponding to the initial function information;
[0132] The function parameter information is used to process the function to be configured corresponding to the initial function information to obtain the configuration function corresponding to the initial function information.
[0133] Optionally, the above initialization elements include initialization ID, and / or CLASS name, and / or function code, and / or function name, and / or annotation information, and / or query name, and / or function type. This embodiment of the invention does not impose any limitations.
[0134] Optionally, the above parameter elements include parameter ID, and / or parameter editing type, and / or parameter type, and / or parameter name, and / or error code, and / or byte size, which are not limited in this embodiment of the invention.
[0135] As can be seen, the data processing method based on task primitives described in the embodiments of the present invention can comprehensively process the initial function information using initialization configuration information and function parameter information to obtain the configuration function, which is more conducive to simplifying the primitive logic extension program, reducing system redundancy, and thus improving the system's ease of operation and maintenance and improving system performance.
[0136] Example 2
[0137] Please see Figure 2 , Figure 2 This is a flowchart illustrating another data processing method based on task primitives disclosed in an embodiment of the present invention. Figure 2 The described task-based primitive-based data processing method is applied to data processing systems, such as local servers or cloud servers used for task-based primitive-based data processing, and this embodiment of the invention is not limited thereto. Figure 2 As shown, the data processing method based on task primitives may include the following operations:
[0138] 201. Obtain configuration requirement request.
[0139] 202. Based on the configuration requirement request and the preset function setting rules, determine the set of configuration function information.
[0140] 203. Obtain the set of node filtering information.
[0141] In this embodiment of the invention, the above-mentioned node filtering information set includes node filtering information corresponding to several task primitives.
[0142] 204. Based on the set of configuration function information and the set of node filtering information, determine the set of graphic element configuration instructions.
[0143] In this embodiment of the invention, the specific technical details and explanations of technical terms for steps 201-202 can be found in the detailed description of steps 101-102 in Embodiment 1, and will not be repeated here.
[0144] Optionally, the above node filtering information includes function name information, and / or function function information, and / or filter object information, and / or primitive code information, which are not limited in this embodiment of the invention.
[0145] Optionally, the above-mentioned filtering object information includes the current user department ID information, and / or the current user ID information, and / or the main process instance ID information, and / or the main process ID information, and / or the process initiator information. This embodiment of the invention does not limit the information.
[0146] Optionally, each of the above task primitives corresponds to a unique node filtering information.
[0147] Optionally, each of the above task primitives corresponds to at least one primitive configuration instruction.
[0148] Optionally, each of the above element configuration instructions corresponds to a unique configuration function.
[0149] As can be seen, the data processing method based on task graph elements described in the embodiments of the present invention can obtain configuration function information by processing configuration requirement requests using function setting rules, and then determine the graph element configuration instruction for instructing function configuration of task graph elements by comprehensively processing the configuration function information and node filtering information. This is beneficial to simplify the graph element logic extension program, reduce system redundancy, and thus improve the system's operation and maintenance convenience and system performance.
[0150] Example 3
[0151] Please see Figure 3 , Figure 3 This is a schematic diagram of the structure of a data processing device based on task primitives disclosed in an embodiment of the present invention. Figure 3 The described apparatus can be applied to data processing systems, such as local servers or cloud servers for task-based primitive data processing, and the embodiments of the present invention are not limited thereto. Figure 3 As shown, the device may include:
[0152] The acquisition module 301 is used to acquire configuration requirement requests; the configuration requirement requests include several configuration requirement information; the configuration requirement information is related to task primitives;
[0153] The first determining module 302 is used to determine a set of configuration function information based on the configuration requirement request and the preset function setting rules; the set of configuration function information includes several configuration function information; the configuration function information is used to filter the user information corresponding to the task primitives;
[0154] The second determining module 303 is used to determine the set of graphic element configuration instructions based on the set of configuration function information; the set of graphic element configuration instructions is used to instruct on the function configuration of task graphic elements.
[0155] It is evident that implementation Figure 3 The described task-based graph element data processing device can process configuration request requests using function setting rules to obtain configuration function information, and then determine the graph element configuration instructions used to instruct the function configuration of task graph elements. This helps to simplify the graph element logic extension program, reduce system redundancy, and thus improve the system's ease of operation and maintenance and enhance system performance.
[0156] In another alternative embodiment, such as Figure 4As shown, the first determining module 302 includes a first determining submodule 3021 and a second determining submodule 3022, wherein:
[0157] The first determining submodule 3021 is used to determine the set of backup functions based on the configuration requirement request and the set of candidate functions; the set of backup functions includes several backup functions;
[0158] The second determining submodule 3022 is used to determine the configuration function information set based on the spare function set.
[0159] It is evident that implementation Figure 4 The described data processing device based on task primitives can first determine the backup functions from the candidate functions, and then process the backup functions to obtain configuration function information. This helps to simplify the primitive logic extension program, reduce system redundancy, and thus improve the system's ease of operation and maintenance and improve system performance.
[0160] In yet another alternative embodiment, such as Figure 4 As shown, the first determining submodule 3021 determines the set of backup functions based on the configuration requirement request and the set of candidate functions in the following specific way:
[0161] For any configuration requirement information, the requirement feature information corresponding to that configuration requirement information is matched with the function feature information corresponding to all candidate functions in the candidate function set to obtain the first matching result; the requirement feature information includes M requirement information elements; M is an odd positive integer; the function feature information includes N function information elements; N is an odd positive integer; the requirement element information corresponding to the first requirement information element and the requirement element information corresponding to the second requirement information element in the order are matched; the requirement element information corresponding to the category information element in the second order and the requirement element information corresponding to the last requirement information element in the order are matched; the requirement element information corresponding to the first requirement information element and the requirement element information corresponding to the last requirement information element in the order are not matched;
[0162] When the first matching result indicates that there is target function feature information in the set of candidate functions that matches the requirement feature information corresponding to the configuration requirement information, the candidate function corresponding to the target function feature information is determined as the backup function.
[0163] It is evident that implementation Figure 4 The described data processing device based on task primitives can determine backup functions by matching demand feature information and function feature information, which helps to simplify primitive logic extension programs, reduce system redundancy, and thus improve the ease of system operation and maintenance and enhance system performance.
[0164] In yet another alternative embodiment, such as Figure 4 As shown, the second determining submodule 3022 determines the configuration function information set based on the spare function set in the following specific way:
[0165] Based on the set of backup functions, the set of initial function information is determined; the set of initial function information includes several initial function information.
[0166] Get function configuration information;
[0167] By using the function configuration information, the initial function information set is processed to obtain the configuration function set.
[0168] It is evident that implementation Figure 4 The described data processing device based on task primitives can process backup functions to obtain initial function information, and then combine the initial function information and function configuration information to determine the configuration function. This is more conducive to simplifying primitive logic extension programs, reducing system redundancy, and thus improving the system's ease of operation and maintenance and system performance.
[0169] In yet another alternative embodiment, such as Figure 4 As shown, the second determining submodule 3022 determines the initial function set based on the spare function set in the following specific way:
[0170] For any spare function, determine whether the condition for importing the function is met in the spare function, and obtain the first judgment result;
[0171] When the first judgment result indicates that the backup function meets the import function condition, the import function information set corresponding to the backup function is determined; the import function information set includes several import function information;
[0172] Based on the set of imported function information, the set of reference functions corresponding to the standby function is determined; the set of reference functions includes several reference functions.
[0173] Based on the set of referenced functions and the spare function, the initial function information corresponding to the spare function is determined.
[0174] It is evident that implementation Figure 4 The described data processing device based on task primitives can obtain the referenced function by determining whether the backup function meets the import function condition, and then determine the initial function information. It provides an implementation path for determining the initial function information, which is more conducive to simplifying the primitive logic extension program, reducing system redundancy, and thus improving the system's operation and maintenance convenience and system performance.
[0175] In yet another alternative embodiment, such as Figure 4As shown, the function configuration information includes initialization configuration information and function parameter information; the initialization configuration information includes P initialization elements; P is a positive integer greater than or equal to 7; the function parameter information includes Q parameter elements; Q is a positive integer greater than or equal to 6;
[0176] The second determining submodule 3022 uses function configuration information to process the initial function information set to obtain the configuration function set in the following specific way:
[0177] For any initial function information, the initial configuration information is used to process the initial function information to obtain the function to be configured corresponding to the initial function information;
[0178] The function parameter information is used to process the function to be configured corresponding to the initial function information to obtain the configuration function corresponding to the initial function information.
[0179] It is evident that implementation Figure 4 The described data processing device based on task primitives can comprehensively process initial function information using initialization configuration information and function parameter information to obtain configuration functions, which is more conducive to simplifying primitive logic extension programs, reducing system redundancy, and thus improving the ease of system operation and maintenance and improving system performance.
[0180] In yet another alternative embodiment, such as Figure 4 As shown, before the second determining module 303 determines the set of primitive configuration instructions based on the set of configuration function information, the obtaining module 301 is also used to obtain the set of node filtering information; the set of node filtering information includes node filtering information corresponding to several task primitives;
[0181] The second determining module 303 determines the specific implementation method of the set of element configuration instructions based on the set of configuration function information as follows:
[0182] Based on the set of configuration function information and the set of node filtering information, the set of graphic element configuration instructions is determined.
[0183] It is evident that implementation Figure 4 The described task-based graph element data processing device can process configuration request requests using function setting rules to obtain configuration function information, and then comprehensively process the configuration function information and node filtering information to determine the graph element configuration instruction used to instruct the function configuration of the task graph element. This helps to simplify the graph element logic extension program, reduce system redundancy, and thus improve the system's ease of operation and maintenance and improve system performance.
[0184] Example 4
[0185] Please see Figure 5 , Figure 5This is a schematic diagram of another data processing device based on task primitives disclosed in an embodiment of the present invention. Figure 5 The described apparatus can be applied to data processing systems, such as local servers or cloud servers for task-based primitive data processing, and the embodiments of the present invention are not limited thereto. Figure 5 As shown, the device may include:
[0186] Memory 401 storing executable program code;
[0187] Processor 402 coupled to memory 401;
[0188] The processor 402 calls the executable program code stored in the memory 401 to execute the steps in the data processing method based on task primitives described in Embodiment 1 or Embodiment 2.
[0189] Example 5
[0190] This invention discloses a computer read storage medium that stores a computer program for electronic data interchange, wherein the computer program causes a computer to execute the steps of the data processing method based on task primitives described in Embodiment 1 or Embodiment 2.
[0191] Example 6
[0192] This invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the steps in the task primitive-based data processing method described in Embodiment 1 or Embodiment 2.
[0193] The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0194] Through the detailed description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0195] Finally, it should be noted that the data processing method and apparatus based on task primitives disclosed in the embodiments of the present invention are merely preferred embodiments of the present invention and are only used to illustrate the technical solutions of the present invention, not to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A data processing method based on task primitives, characterized in that, The method includes: Obtain a configuration requirement request; the configuration requirement request includes several configuration requirement information; the configuration requirement information is related to task primitives; Based on the configuration requirement request and the preset function setting rules, a set of configuration function information is determined; the set of configuration function information includes several configuration function information; the configuration function information is used to filter the user information corresponding to the task primitive; Based on the configuration function information set, a set of graphic element configuration instructions is determined; the set of graphic element configuration instructions is used to instruct on function configuration for the task graphic element. The step of determining the configuration function information set based on the configuration requirement request and preset function setting rules includes: Based on the configuration requirement request and the set of candidate functions, a set of backup functions is determined; the set of backup functions includes several backup functions. Based on the set of backup functions, a set of configuration function information is determined; And, determining the set of backup functions based on the configuration requirement request and the set of candidate functions includes: For any configuration requirement information, the requirement feature information corresponding to that configuration requirement information is matched with the function feature information corresponding to all candidate functions in the candidate function set to obtain a first matching result; the requirement feature information includes M requirement information elements; M is an odd positive integer; the function feature information includes N function information elements; N is an odd positive integer; the requirement element information corresponding to the first requirement information element and the requirement element information corresponding to the second requirement information element in the order are matched; the requirement element information corresponding to the second requirement information element and the requirement element information corresponding to the last requirement information element in the order are matched; the requirement element information corresponding to the first requirement information element and the requirement element information corresponding to the last requirement information element in the order are not matched. When the first matching result indicates that there is target function feature information in the set of candidate functions that matches the requirement feature information corresponding to the configuration requirement information, the candidate function corresponding to the target function feature information is determined as a backup function.
2. The data processing method based on task primitives according to claim 1, characterized in that, The step of determining the configuration function information set based on the set of backup functions includes: Based on the set of backup functions, an initial function information set is determined; the initial function information set includes several initial function information sets. Get function configuration information; The initial function information set is processed using the function configuration information to obtain a configuration function set.
3. The data processing method based on task primitives according to claim 2, characterized in that, The step of determining the initial function set based on the backup function set includes: For any spare function, determine whether the condition for importing the function is met in the spare function, and obtain the first judgment result; When the first judgment result indicates that the backup function meets the import function condition, the import function information set corresponding to the backup function is determined; the import function information set includes several import function information; Based on the imported function information set, the corresponding set of reference functions for the backup function is determined; the set of reference functions includes several reference functions. Based on the set of referenced functions and the backup function, the initial function information corresponding to the backup function is determined.
4. The data processing method based on task primitives according to claim 2, characterized in that, The function configuration information includes initialization configuration information and function parameter information; the initialization configuration information includes P initialization elements; where P is a positive integer greater than or equal to 7; the function parameter information includes Q parameter elements; Q is a positive integer greater than or equal to 6; The step of processing the initial function information set using the function configuration information to obtain a configuration function set includes: For any initial function information, the initial configuration information is used to process the initial function information to obtain the function to be configured corresponding to the initial function information; The function parameter information is used to process the function to be configured corresponding to the initial function information to obtain the configuration function corresponding to the initial function information.
5. The data processing method based on task primitives according to claim 1, characterized in that, Before determining the set of primitive configuration instructions based on the set of configuration function information, the method further includes: Obtain a set of node filtering information; the set of node filtering information includes node filtering information corresponding to several task primitives; The step of determining the set of element configuration instructions based on the configuration function information set includes: Based on the configuration function information set and the node filtering information set, a set of element configuration instructions is determined.
6. A data processing device based on task primitives, characterized in that, The apparatus is configured to perform the data processing method based on task primitives as described in any one of claims 1-5; and the apparatus comprises: The acquisition module is used to acquire configuration requirement requests; the configuration requirement requests include several configuration requirement information; the configuration requirement information is related to task primitives; The first determining module is used to determine a set of configuration function information based on the configuration requirement request and preset function setting rules; the set of configuration function information includes several configuration function information; the configuration function information is used to filter user information corresponding to the task primitive; The second determining module is used to determine a set of primitive configuration instructions based on the set of configuration function information; the set of primitive configuration instructions is used to instruct the function configuration of the task primitive.
7. A data processing device based on task primitives, characterized in that, The device includes: Memory containing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the data processing method based on task primitives as described in any one of claims 1-5.
8. A computer-storable medium, characterized in that, The computer storage medium stores computer instructions, which, when invoked, are used to execute the data processing method based on task primitives as described in any one of claims 1-5.
Citation Information
Patent Citations
Model-based code generation method and device, computer equipment and medium
CN112947914A