Data processing method and device, storage medium and electronic equipment

By using the rule engine to parse business rules and generate atomic operation combinations in the financial screening system, and combining it with the execution engine to determine the execution nodes, the problems of single screening logic and high database load in the existing technology are solved, and efficient and flexible multi-dimensional screening is achieved. and performance improvements.

CN118760699AInactive Publication Date: 2024-10-11CHINA BOND FINANCIAL VALUATION CENT CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411237827.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-05
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing financial screening tools or systems are single in screening logic and cannot meet investors' needs for multi-dimensional and complex screening conditions. Moreover, screening logic based on database queries leads to increased database load and reduced performance in high-concurrency scenarios.

Method used

Through data processing methods, the preset rule engine is used to parse business rules, generate atomic operation combinations, including custom attribute processing, attribute value filtering and set operation operations, generate data filtering requests, and determine execution nodes through the execution engine to separate filtering logic Reduce database load from database queries.

Benefits of technology

It achieves more complex and flexible rule definitions, avoids the impact on the underlying implementation, has clear layers, efficient process processing, and high-availability modules, which can meet users' needs for multi-dimensional and complex filtering conditions, reduce database load, and improve the system. performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760699A_ABST
    Figure CN118760699A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method and device, a storage medium and electronic equipment, and the method comprises the steps: receiving a business request which comprises a business rule configured by a user on a front-end page; analyzing the business rule through a rule engine to obtain an atomic operation combination corresponding to the business rule; the atomic operation combination comprises custom attribute processing operation, attribute value screening operation and set operation; generating a data screening request corresponding to the atomic operation combination; determining an execution node corresponding to the data screening request through an execution engine, and sending the data screening request to the execution node, so that the execution node executes an atomic operation in an atomic operation combination contained in the data screening request to obtain target data; and outputting the target data. By applying the method provided by the embodiment of the invention, the requirements of a user on multi-dimensional and complex screening conditions can be met.
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 data processing method, device, storage medium and electronic device. Background Art

[0002] In today's increasingly complex and sophisticated financial markets, while pursuing investment returns, investors are increasingly paying attention to multiple dimensions of asset selection, such as risk, return, liquidity, industry trends, etc. They hope to select investment targets that best meet their needs based on their own investment strategies and risk preferences.

[0003] However, existing financial screening tools or systems often have a single screening logic and cannot meet investors' needs for multi-dimensional and complex screening conditions. These tools usually only support screening based on a single attribute or a limited combination of attributes, lacking flexibility and scalability. Summary of the invention

[0004] The technical problem to be solved by this application is to provide a data processing method, device, storage medium and electronic device that can meet the user's needs for multi-dimensional and complex screening conditions. The specific solution is as follows: A data processing method, comprising: Receive a business request, wherein the business request includes a business rule configured by a user on a preset front-end page; The business rules are parsed and processed by a preset rule engine to obtain an atomic operation combination corresponding to the business rules; the atomic operation combination includes a custom attribute processing operation, an attribute value screening operation, and a set operation operation; the custom attribute processing operation is used to obtain a target data attribute according to the custom attribute parameter configuration in the business rules; the attribute value screening operation is used to perform data query according to the target data attribute; the set operation operation is used to perform a calculation operation on the query result set; Generate a data screening request corresponding to the atomic operation combination; Determine an execution node corresponding to the data screening request through a preset execution engine, and send the data screening request to the execution node, so that the execution node executes the atomic operation in the atomic operation combination included in the data screening request to obtain target data; The target data is output.

[0005] In the above method, optionally, the business rule is parsed by a preset rule engine to obtain an atomic operation combination corresponding to the business rule, including: Parsing the business rules through a preset rule engine to obtain basic rule content of the business rules; Perform logical conversion on the basic rule content of the business rule to obtain the atomic operation combination corresponding to the business rule.

[0006] Optionally, in the above method, parsing the business rule by a preset rule engine to obtain the basic rule content of the business rule includes: Obtaining request parameters in the service request; Verify whether the user has the operation authority according to the request parameters; In the case where the user has the operation authority, the business rules are parsed by a preset rule engine to obtain the basic rule content of the business rules.

[0007] In the above method, optionally, determining the execution node corresponding to the data screening request by using a preset execution engine includes: The query date of the data required by the data screening request is determined by a preset execution engine, and the execution node corresponding to the data screening request is determined in each of the candidate execution nodes according to the node quantity of each preset candidate execution node and the query date.

[0008] In the above method, optionally, the outputting the target data includes: The target data is output and displayed on the front-end page.

[0009] A data processing device, comprising: A receiving unit, configured to receive a service request, wherein the service request includes a service rule configured by a user on a preset front-end page; A parsing unit, used to parse the business rules through a preset rule engine to obtain an atomic operation combination corresponding to the business rules; the atomic operation combination includes a custom attribute processing operation, an attribute value screening operation, and a set operation operation; the custom attribute processing operation is used to obtain a target data attribute according to the custom attribute parameter configuration in the business rules; the attribute value screening operation is used to perform data query according to the target data attribute; the set operation operation is used to perform a calculation operation on the query result set; A generating unit, used for generating a data screening request corresponding to the atomic operation combination; A determination unit, configured to determine an execution node corresponding to the data screening request through a preset execution engine, and send the data screening request to the execution node, so that the execution node executes the atomic operation in the atomic operation combination included in the data screening request to obtain target data; An output unit is used to output the target data.

[0010] In the above device, optionally, the parsing unit comprises: A parsing subunit, used to parse the business rules through a preset rule engine to obtain the basic rule content of the business rules; The logic conversion subunit is used to perform logic conversion on the basic rule content of the business rule to obtain the atomic operation combination corresponding to the business rule.

[0011] In the above device, optionally, the parsing subunit includes: An acquisition module, used to acquire request parameters in the service request; A verification module, used to verify whether the user has the operation authority according to the request parameters; The parsing module is used to parse the business rules through a preset rule engine to obtain the basic rule content of the business rules when the user has the operation authority.

[0012] A storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned data processing method.

[0013] An electronic device includes a memory and one or more instructions, wherein the one or more instructions are stored in the memory and are configured to be executed by one or more processors to perform the above data processing method.

[0014] Based on the above-mentioned implementation of the present application, a data processing method, device, storage medium and electronic device are provided, the method comprising: receiving a business request, the business request comprising business rules configured by a user on a preset front-end page; parsing the business rules through a preset rule engine to obtain an atomic operation combination corresponding to the business rules; the atomic operation combination comprises a custom attribute processing operation, an attribute value screening operation and a set operation operation; the custom attribute processing operation is used to obtain target data attributes according to the custom attribute parameter configuration in the business rules; the attribute value screening operation is used to perform data query according to the target data attributes; the set operation operation is used to perform operation operations on the queried result set; generating a data screening request corresponding to the atomic operation combination; determining the execution node corresponding to the data screening request through a preset execution engine, and sending the data screening request to the execution node, so that the execution node executes the atomic operations in the atomic operation combination contained in the data screening request to obtain the target data; and outputting the target data. By applying the method provided in the embodiment of the present application, the decoupling of the top-level logic and the underlying implementation is achieved through the rule engine, which can provide a more complex and convenient rule definition function while avoiding the impact on the underlying implementation logic, making the hierarchy clear, the process processing efficient, the module highly available, and the expansion more flexible, which can meet the user's needs for multi-dimensional and complex screening conditions. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0016] Figure 1 A method flow chart of a data processing method provided in this application; Figure 2 A flowchart of a process for obtaining basic rule content of business rules provided by this application; Figure 3 A schematic diagram of a data processing system provided for this application; Figure 4 A schematic diagram of the structure of a data processing device provided by the present application; Figure 5 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION

[0017] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0018] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0019] Existing financial screening tools or systems often have a single screening logic and cannot meet investors' needs for multi-dimensional and complex screening conditions. These tools usually only support screening based on a single attribute or a limited combination of attributes, lacking flexibility and scalability.

[0020] Moreover, the implementation of relevant filtering logic mainly depends on database query. Database query language (such as SQL) provides powerful filtering and sorting functions, allowing developers to easily implement various complex filtering logic.

[0021] However, with the development of business and the growth of the number of users, especially in high-concurrency scenarios, the implementation of filtering logic based on database queries has gradually revealed its limitations. First, this method is overly dependent on the query performance of the database. When the concurrency is large, a large number of query requests will flood into the database at the same time, causing a sharp increase in the load of the database server, thereby significantly reducing the performance of the database, including query speed, response time, etc. This not only affects the user experience, but may also have an adverse impact on business operations.

[0022] Based on this, the embodiment of the present application provides a data processing method, which can be applied to electronic devices, such as computers, tablets, smart phones, and smart wearable devices. The method flow chart of the method is as follows: Figure 1 As shown, specifically including: S101: receiving a service request, wherein the service request includes a service rule configured by a user on a preset front-end page.

[0023] In this embodiment, the user can perform the operation of configuring business rules in the front-end page. The business rules can be data screening rules; the data can be various types of data, for example, financial data, and in some embodiments, the data can be securities data. Business requests can be generated based on the business rules configured by the user, and can be used to request to query data according to the business rules.

[0024] In this embodiment, the user can customize the filtering conditions in the front-end page according to their own needs to form business rules, thereby realizing the combination of complex filtering conditions.

[0025] S102: The business rules are parsed and processed by a preset rule engine to obtain an atomic operation combination corresponding to the business rules; the atomic operation combination includes a custom attribute processing operation, an attribute value screening operation and a set operation operation; the custom attribute processing operation is used to obtain the target data attribute according to the custom attribute parameter configuration in the business rule; the attribute value screening operation is used to perform data query according to the target data attribute; the set operation operation is used to perform operation operations on the queried result set.

[0026] In this embodiment, the target data attributes may include original data attributes and user-defined data attributes; optionally, the number of original data attributes may be one or more; the number of customized data attributes may also be one or more; the number of specific attributes may be configured according to user needs.

[0027] Optionally, a custom attribute processing operation can be used to determine a custom attribute based on a custom attribute parameter, and then combine the custom attribute with the original attribute of the data to form a target data attribute.

[0028] In this embodiment, the attribute value screening operation may be specifically used to compare the target data attribute with the business setting parameter to screen and obtain a result set; the number of the result sets may be one or more.

[0029] Optionally, set operations can be used to perform operations such as union, intersection, difference, sorting, and extraction on the query result sets.

[0030] S103: Generate a data screening request corresponding to the atomic operation combination.

[0031] In this embodiment, after the original operation combination is performed, a data screening request is generated according to the original operation combination, and the request information of the data screening request includes the original operation combination.

[0032] S104: Determine the execution node corresponding to the data screening request through a preset execution engine, and send the data screening request to the execution node, so that the execution node executes the atomic operation in the atomic operation combination included in the data screening request to obtain the target data.

[0033] In this embodiment, the execution node corresponding to the data screening request may be determined from among the candidate execution nodes, and then the screening request may be sent to the execution node, which may be a server.

[0034] Optionally, after receiving a data filtering request, the execution node can read data from the in-heap cache; if the in-heap cache does not contain the data to be filtered or the data to be filtered has expired, the data loading logic is triggered to load the corresponding data to be filtered from the data layer, then write it into the in-heap cache and return the data to be filtered to the execution node. After obtaining the data to be filtered, the execution node executes the corresponding filtering logic according to the atomic operation combination in the request information, and quickly returns the result to complete the filtering operation.

[0035] S105: Output the target data.

[0036] Optionally, the queried target data may be returned to the user.

[0037] In some embodiments, a feasible way of outputting the target data is to output and display the target data on the front-end page.

[0038] By applying the method provided in the embodiment of the present application, the top-level logic and the bottom-level implementation are decoupled through the rule engine, which can provide a more complex and convenient rule definition function while avoiding the impact on the bottom-level implementation logic, making the hierarchy clear, the process processing efficient, the module highly available, and the expansion more flexible. In addition, the screening logic can be separated from the database query through the rule engine and the execution engine. This reduces the load pressure on the database and improves the overall performance of the system.

[0039] In an embodiment provided in the present application, based on the above solution, optionally, parsing the business rule by a preset rule engine to obtain an atomic operation combination corresponding to the business rule includes: Parsing the business rules through a preset rule engine to obtain basic rule content of the business rules; Perform logical conversion on the basic rule content of the business rule to obtain the atomic operation combination corresponding to the business rule.

[0040] In this embodiment, the way to parse the business rules may include at least one of lexical analysis, grammatical analysis, and parameter analysis. By performing lexical analysis, grammatical analysis, and parameter analysis on the business rules, the business rules can be split and refined to obtain the basic rule content.

[0041] Optionally, the basic rule content may include custom attribute parameters, screening rule content, logical operation rule content, etc.

[0042] In an embodiment provided in the present application, based on the above solution, optionally, the business rule is parsed by a preset rule engine to obtain the content of the basic rule content of the business rule, such as Figure 2 As shown, including: S201: Obtain request parameters in the service request.

[0043] Optionally, the request parameter may include at least one of the user's identity information, permission information, etc.

[0044] S202: Verify whether the user has operation authority according to the request parameters.

[0045] In this embodiment, when the request parameters include user identity information, it can be verified whether the user's identity information is in a preset blacklist or whitelist to determine whether the user has the operation authority. If the user's identity information is in the whitelist, or not in the blacklist, it is determined that the user has the operation authority; otherwise, it is determined that the user does not have the operation authority.

[0046] Optionally, when the request parameters include user authority information, it can be determined whether the authority level in the user authority information meets the preset operation authority level. If so, it is determined that the user has the operation authority; if not, it is determined that the user does not have the operation authority.

[0047] S203: When the user has the operation authority, the business rule is parsed by a preset rule engine to obtain the basic rule content of the business rule.

[0048] In an embodiment provided by the present application, based on the above solution, optionally, determining the execution node corresponding to the data screening request by a preset execution engine includes: The query date of the data required by the data screening request is determined by a preset execution engine, and the execution node corresponding to the data screening request is determined in each of the candidate execution nodes according to the node quantity of each preset candidate execution node and the query date.

[0049] In this embodiment, each candidate execution node has a corresponding node serial number, and the node serial number of each candidate execution node is different. The node serial number can be obtained by calculating the query date and the number of nodes; the execution node corresponding to the data screening request is determined in each candidate execution node according to the node serial number.

[0050] Optionally, the node number is calculated as follows:

[0051] Among them, i is the node number, Dr is the query date of the data required when the data screening request r is executed, and N is the total number of execution nodes providing screening execution services.

[0052] By applying the method provided in the embodiment of the present application, requests for the same query date will always be stably sent to the same execution node. Therefore, each execution node only needs to load the corresponding data into the heap cache according to the query date to quickly respond to all requests for the same date.

[0053] In this embodiment, the architecture design based on the rule engine makes the management and execution of rules simple and efficient. Through the combination of stable load balancing strategy, distributed multi-node deployment and server in-heap cache, efficient data reuse is achieved, which significantly reduces the query pressure of the database and can achieve rapid expansion and fault tolerance of nodes. At the same time, the screening logic is no longer executed by a single database, and the decoupling of logic execution and database is achieved. Therefore, multiple data sources can be accessed at the same time, with the characteristics of multi-source and multi-table, flexible configuration and diverse data.

[0054] The data processing method provided in the embodiment of the present application can be applied to various fields, for example, it can be applied to index screening in the field of financial investment. Figure 3 An example is given, in which Figure 3 A schematic diagram of a data processing system provided in an embodiment of the present application, the system includes a visualization front end, an access layer, an application layer, a rule engine, an execution engine and a data layer; specifically, the index screening process is as follows: Step 1: According to business needs, users complete the logic of the corresponding index screening rules through the convenient operations provided by the visual front-end, and submit the corresponding request (query request). After the request is sent to the external address of the access layer, the device at the access layer delivers it to the application that can handle the request according to the routing strategy of the intranet system. After the application layer completes the preliminary legitimacy check of the request parameters and verifies whether the user has the corresponding operation authority, it calls the rule engine to further parse the request content.

[0055] Step 2: After the rule engine obtains the rule content in the request, it needs to parse the rule first, including lexical analysis, syntax analysis, parameter analysis, etc. After analysis, all rule content is broken down into basic corpus, and further transformed into atomic operations such as custom attributes, attribute value screening, and set operations through conversion logic.

[0056] In this embodiment, the rule engine is the core for realizing the flexible configuration of the screening logic. It is responsible for breaking down the complex index screening logic one by one and converting it into atomic screening operations recognizable by the system, so that the system can combine rules that meet complex business demands through only a small number of efficient atomic screening operations. First of all, on the front-end page that the user directly contacts, a visual and convenient operation method is provided. The user only needs to configure the screening rules according to the intuitive business logic through mouse selection and keyboard input, and then submit them to the system for processing. After receiving the screening rules submitted by the user, the rule engine will parse the contents one by one, split and refine them into the atomic operation logic within the system, including three parts: custom attribute processing, attribute value screening, and set operations. These three parts cover all the atomic operations needed for index screening. Among them, the custom attribute processing part can realize the ability to quickly expand asset attributes according to user needs by combining existing attribute data with user-defined parameters, meeting the ever-changing investment needs; the attribute value screening part provides the basic ability to implement asset screening based on the comparison of multi-dimensional attribute values ​​of assets and business setting parameter values. Custom attributes can be used together with other attributes to filter out the corresponding result set according to needs; the set operation part supports composite operations between a single result set or multiple result sets, including operations such as union, intersection, difference, sorting, extraction, etc. The result set generated by the operation can also be used as the input of the set operation. Through the analysis and transformation of the rule engine, the originally complex screening rule logic can be split into a combination of atomic operations one by one, so as to realize the flexible configuration of the screening logic.

[0057] Step 3: After receiving the atomic operation request, the execution engine calculates the execution node that should be used for this request based on the stable load balancing strategy, and sends the request to the node. After receiving the request, the execution node reads the data from the in-heap cache. If the data in the in-heap cache does not exist or has expired, the data loading logic is triggered, and after loading the corresponding data from the data layer, it is written to the in-heap cache and returned. After obtaining the data, the execution node executes the corresponding filtering logic according to the request content, and quickly returns the result to complete the filtering operation. After all the filtering logic is executed, the final index sample can be obtained, and the application layer returns the result to the front end and displays it to the user for viewing. At this point, a complete index screening function call is completed.

[0058] In this embodiment, the execution engine is the key to ensuring the efficient execution of the screening logic. Through a stable load balancing strategy, the execution requests are distributed to different servers of the screening microservice deployed on multiple nodes. Combined with the server's local heap cache strategy, fast data reading is achieved, reducing database query pressure. When the workload is high, service nodes can be dynamically added to achieve rapid expansion.

[0059] and Figure 1 Corresponding to the method described above, the embodiment of the present application further provides a data processing device for Figure 1 The specific implementation of the method in the embodiment of the present invention is shown in the structural diagram of the device. Figure 4 As shown, including: The receiving unit 401 is used to receive a service request, wherein the service request includes a service rule configured by a user on a preset front-end page; The parsing unit 402 is used to parse the business rules through a preset rule engine to obtain an atomic operation combination corresponding to the business rules; the atomic operation combination includes a custom attribute processing operation, an attribute value screening operation, and a set operation operation; the custom attribute processing operation is used to obtain a target data attribute according to the custom attribute parameter configuration in the business rule; the attribute value screening operation is used to perform data query according to the target data attribute; the set operation operation is used to perform a calculation operation on the query result set; A generating unit 403 is used to generate a data screening request corresponding to the atomic operation combination; A determination unit 404 is used to determine an execution node corresponding to the data screening request through a preset execution engine, and send the data screening request to the execution node, so that the execution node executes the atomic operation in the atomic operation combination included in the data screening request to obtain target data; The output unit 405 is used to output the target data.

[0060] In an embodiment provided in the present application, based on the above solution, optionally, the parsing unit 402 includes: A parsing subunit, used to parse the business rules through a preset rule engine to obtain the basic rule content of the business rules; The logic conversion subunit is used to perform logic conversion on the basic rule content of the business rule to obtain the atomic operation combination corresponding to the business rule.

[0061] In an embodiment provided in the present application, based on the above solution, optionally, the parsing subunit includes: An acquisition module, used to acquire request parameters in the service request; A verification module, used to verify whether the user has the operation authority according to the request parameters; The parsing module is used to parse the business rules through a preset rule engine to obtain the basic rule content of the business rules when the user has the operation authority.

[0062] In an embodiment provided in the present application, based on the above solution, optionally, the determining unit 404 includes: A determination subunit is used to determine the query date of the data required by the data screening request through a preset execution engine, and determine the execution node corresponding to the data screening request in each candidate execution node according to the node number of each preset candidate execution node and the query date.

[0063] In an embodiment provided in the present application, based on the above solution, optionally, the output unit 405 includes: The output subunit is used to output the target data and display it on the front-end page.

[0064] The specific principles and execution processes of each unit and module in the data processing device disclosed in the above-mentioned embodiment of the present application are the same as the data processing method disclosed in the above-mentioned embodiment of the present application. Please refer to the corresponding parts of the data processing method provided in the above-mentioned embodiment of the present application, and will not be repeated here.

[0065] An embodiment of the present application further provides a storage medium, which includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned data processing method.

[0066] The present application also provides an electronic device, whose structural diagram is as follows: Figure 5 As shown, it specifically includes a memory 501 and one or more instructions 502, wherein the one or more instructions 502 are stored in the memory 501 and are configured to be executed by one or more processors 503 to perform the following operations: Receive a business request, wherein the business request includes a business rule configured by a user on a preset front-end page; The business rules are parsed and processed by a preset rule engine to obtain an atomic operation combination corresponding to the business rules; the atomic operation combination includes a custom attribute processing operation, an attribute value screening operation, and a set operation operation; the custom attribute processing operation is used to obtain a target data attribute according to the custom attribute parameter configuration in the business rules; the attribute value screening operation is used to perform data query according to the target data attribute; the set operation operation is used to perform a calculation operation on the query result set; Generate a data screening request corresponding to the atomic operation combination; Determine an execution node corresponding to the data screening request through a preset execution engine, and send the data screening request to the execution node, so that the execution node executes the atomic operation in the atomic operation combination included in the data screening request to obtain target data; The target data is output.

[0067] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0068] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations.

[0069] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0070] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.

[0071] The above is a detailed introduction to a data processing method provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A data processing method, characterized in that: include: Receive a business request, wherein the business request includes a business rule configured by a user on a preset front-end page; The business rules are parsed and processed by a preset rule engine to obtain an atomic operation combination corresponding to the business rules; the atomic operation combination includes a custom attribute processing operation, an attribute value screening operation, and a set operation operation; The custom attribute processing operation is used to obtain the target data attribute according to the custom attribute parameter configuration in the business rule; the attribute value screening operation is used to perform data query according to the target data attribute; the set operation operation is used to perform operation operation on the query result set; Generate a data screening request corresponding to the atomic operation combination; Determine an execution node corresponding to the data screening request through a preset execution engine, and send the data screening request to the execution node, so that the execution node executes the atomic operation in the atomic operation combination included in the data screening request to obtain target data; The target data is output.

2. The method according to claim 1, characterized in that The business rule is parsed by a preset rule engine to obtain an atomic operation combination corresponding to the business rule, including: Parsing the business rules through a preset rule engine to obtain basic rule content of the business rules; Perform logical conversion on the basic rule content of the business rule to obtain the atomic operation combination corresponding to the business rule.

3. The method according to claim 2, characterized in that The business rules are parsed by a preset rule engine to obtain the basic rule content of the business rules, including: Obtaining request parameters in the service request; Verify whether the user has the operation authority according to the request parameters; In the case where the user has the operation authority, the business rules are parsed by a preset rule engine to obtain the basic rule content of the business rules.

4. The method according to claim 1, characterized in that: The determining the execution node corresponding to the data screening request by a preset execution engine includes: The query date of the data required by the data screening request is determined by a preset execution engine, and the execution node corresponding to the data screening request is determined in each of the candidate execution nodes according to the node quantity of each preset candidate execution node and the query date.

5. The method according to claim 1, characterized in that The outputting the target data comprises: The target data is output and displayed on the front-end page.

6. A data processing device, characterized in that: include: A receiving unit, configured to receive a service request, wherein the service request includes a service rule configured by a user on a preset front-end page; A parsing unit, used to parse the business rules through a preset rule engine to obtain an atomic operation combination corresponding to the business rules; the atomic operation combination includes a custom attribute processing operation, an attribute value screening operation, and a set operation operation; The custom attribute processing operation is used to obtain the target data attribute according to the custom attribute parameter configuration in the business rule; the attribute value screening operation is used to perform data query according to the target data attribute; the set operation operation is used to perform operation operation on the query result set; A generating unit, used for generating a data screening request corresponding to the atomic operation combination; A determination unit, configured to determine an execution node corresponding to the data screening request through a preset execution engine, and send the data screening request to the execution node, so that the execution node executes the atomic operation in the atomic operation combination included in the data screening request to obtain target data; An output unit is used to output the target data.

7. The device according to claim 6, characterized in that The parsing unit comprises: A parsing subunit, used to parse the business rules through a preset rule engine to obtain the basic rule content of the business rules; The logic conversion subunit is used to perform logic conversion on the basic rule content of the business rule to obtain the atomic operation combination corresponding to the business rule.

8. The device according to claim 7, characterized in that The parsing subunit comprises: An acquisition module, used to acquire request parameters in the service request; A verification module, used to verify whether the user has the operation authority according to the request parameters; The parsing module is used to parse the business rules through a preset rule engine to obtain the basic rule content of the business rules when the user has the operation authority.

9. A storage medium, characterized in that: The storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the data processing method according to any one of claims 1 to 5.

10. An electronic device, characterized in that: The device comprises a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by one or more processors to perform the data processing method as claimed in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Data permission configuration method and device and computer equipment

    CN111552678A

  • Method and device for processing consultation request

    CN113704442A

  • Service request processing method and device, equipment and storage medium

    CN117555927A

  • Business processing method and device based on process engine and electronic equipment

    CN117608680A

  • Business data processing method and device, computer equipment and storage medium

    CN117827902A