Data dynamic analysis method, device and equipment and storage medium

CN122963538APending Publication Date: 2026-10-23CHINA CICC WEALTH MANAGEMENT SECURITIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611452381.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-18
Publication Date
2026-10-23

AI Technical Summary

Technical Problem

[0004]本申请的主要目的在于提供一种数据动态解析方法、装置、设备及存储介质,旨在解决现阶段风控指标的配置和解析时难以解析表达式组合,无法满足多指标配置和解析的技术问题

Benefits of technology

本申请提供了一种数据动态解析方法、装置、设备及存储介质,该方法通过接收用户构建的包含多个子表达式的表达式组合,通过对可视化配置的表达式组合进行解析,得到所述表达式组合引用的各子表达式的引用标识和各所述子表达式间的运算关系,通过解析得到的引用标识确定各所述子表达式的执行逻辑,再基于各所述子表达式的执行逻辑和各所述子表达式的运算关系构建表达式,使得所构建的表达式执行逻辑文本在执行时,仅需基于各所述子表达式的引用标识复用对应的子表达式执行逻辑,实现将表达式组合的解析拆分为多个子表达式的解析和多个子表达式解析结果间的运算,实现复用多个子表达式的执行逻辑对表达式组合的动态解析,适用于多指标配置和解析的场景,解决现阶段风控指标的配置和解析时难以解析表达式组合,无法满足多指标配置和解析的技术问题。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122963538A_ABST
    Figure CN122963538A_ABST
Patent Text Reader

Abstract

The application discloses a data dynamic analysis method and device, equipment and a storage medium, and relates to the technical field of data processing. The method comprises the following steps: receiving an expression combination constructed by a user in a visual expression configuration interface; analyzing the expression combination to obtain reference identifiers of each sub-expression referenced by the expression combination and operation relationships between the sub-expressions; determining the execution logic of each sub-expression according to the reference identifiers of the sub-expressions; constructing an expression execution logic text of the expression combination according to the execution logic of each sub-expression and the operation relationships between the sub-expressions; and executing the expression execution logic text to obtain the execution result of the expression combination. Through the implementation of the application, the technical problem that the expression combination cannot be analyzed when the configuration and analysis of the risk control index are performed at the present stage, the multi-index configuration and analysis cannot be met, the multi-index configuration of the risk control index is adapted, and the flexibility of the index configuration is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a method, apparatus, device and storage medium for dynamic data parsing. Background Technology

[0002] In the financial industry, risk control is a core element in ensuring business security and stability. Financial institutions face diverse types of risks, including credit risk, market risk, operational risk, and liquidity risk. Effective management of these risks directly impacts an institution's asset security, operational efficiency, and market competitiveness. Establishing risk control indicators is a fundamental and crucial component of the risk control system. The application of risk control indicators spans the entire lifecycle of financial business, including scenarios such as instruction approval, post-investment monitoring, and risk warning alerts.

[0003] However, the configuration and management of risk control indicators still face many challenges at present. Currently, most risk control indicators are configured and evaluated using rule engines, relying on predefined fixed business rules to complete risk control condition judgments and indicator calculations. These systems can only accept single execution expressions, which are suitable for simple risk verification scenarios. However, this fixed configuration mode has inherent limitations in flexibility. It does not support accepting user-defined expression combinations, nor can it dynamically parse expression combinations containing multiple sub-expressions. This makes it difficult to achieve the reuse, nesting, and free arrangement of multi-dimensional indicators, and cannot meet the complex and ever-changing custom configuration requirements of risk indicators in Fund of Funds (FOF). When configuring and parsing expression combinations containing multiple indicators, developers typically need to write the corresponding execution logic code in the underlying code to parse and compile the expression combinations and obtain the corresponding execution results. Summary of the Invention

[0004] The main purpose of this application is to provide a method, apparatus, device and storage medium for dynamic data parsing, which aims to solve the technical problem that it is difficult to parse expression combinations when configuring and parsing risk control indicators at the present stage, and cannot meet the technical requirements of multi-indicator configuration and parsing.

[0005] To achieve the above objectives, this application proposes a dynamic data parsing method, which includes: The system receives expression combinations constructed by a user in a visual expression configuration interface. The visual expression configuration interface includes an expression editing area, an indicator variable selection area, and an operator selection area. The construction of the expression combination includes: responding to the user's input of an indicator variable in the expression editing area or selection of an indicator variable in the indicator variable selection area, determining each sub-expression and its corresponding reference identifier for constructing the expression combination; responding to the user's selection of an operator in the operator selection area or input of an operator in the expression editing area, determining the operator used to connect the sub-expressions when constructing the expression combination; and determining the expression combination constructed by the user in the visual expression configuration interface based on each sub-expression, the reference identifier of each sub-expression, and the operator of each sub-expression. The expression combination is parsed to obtain the reference identifiers of each sub-expression referenced by the expression combination and the operational relationships between each sub-expression; The execution logic of each sub-expression is determined based on its reference identifier; Based on the execution logic of each sub-expression and the operational relationship of each sub-expression, construct the expression execution logic text of the expression combination; Executing the expression executes the logical text, resulting in the execution result of the expression combination.

[0006] In one feasible embodiment, the visual expression configuration interface further includes: an expression validation component; Before receiving the expression combinations constructed by the user in the visual expression configuration interface, it also includes: When a user completes the construction of an expression combination in the visual expression configuration interface, the system responds to the user's click on the expression validation component and performs regular expression validation on the expression combination. If the regular expression validation passes, then the expression combination is received; If the regular expression validation fails, the reason for the failure is obtained, and a visual prompt message is generated based on the reason for the failure.

[0007] In a feasible embodiment, parsing the expression combination to obtain the reference identifiers of each sub-expression referenced by the expression combination and the operational relationships between the sub-expressions includes: The preset parsing rules are determined based on the indicator variables selected from the region. The expression combination is parsed according to the preset parsing rules to obtain the reference identifiers of each sub-expression referenced by the expression combination and the operational relationships between each sub-expression.

[0008] In one feasible embodiment, the visual expression configuration interface further includes: a composite indicator variable configuration area; The dynamic data parsing method further includes: In response to a user's construction of a composite indicator variable in the composite indicator variable configuration area, the composite indicator variable and its corresponding reference identifier are obtained; wherein, the composite indicator variable is constructed based on each indicator variable in the indicator variable selection area; Add the composite indicator variable and its corresponding reference identifier to the indicator variable selection area, update each indicator variable in the indicator variable selection area and update the preset parsing rules.

[0009] In a feasible embodiment, the execution of the expression execution logic text to obtain the execution result of the expression combination includes: Obtain the real-time dynamic data corresponding to the execution logic of each sub-expression contained in the expression execution logic text, and the operational relationship between the real-time dynamic data of each sub-expression; Based on the real-time dynamic data of each sub-expression and the operational relationship between the real-time dynamic data of each sub-expression, the expression execution logic is executed to obtain the execution result of the expression combination.

[0010] In addition, to achieve the above objectives, this application also proposes a data dynamic parsing device, which includes: a data receiving module, a data parsing module, a logic splitting module, a logic reuse module, and a compilation and execution module; The data receiving module is used to receive expression combinations constructed by the user in the visual expression configuration interface; wherein, the visual expression configuration interface includes: an expression editing area, an indicator variable selection area, and an operator selection area; the construction of the expression combination includes: responding to the user's operation of inputting an indicator variable in the expression editing area, or selecting an indicator variable in the indicator variable selection area, determining each sub-expression and its corresponding reference identifier for constructing the expression combination; responding to the user's operation of selecting an operator in the operator selection area, or inputting an operator in the expression editing area, determining the operator used to connect each sub-expression when constructing the expression combination; and determining the expression combination constructed by the user in the visual expression configuration interface based on each sub-expression, the reference identifier of each sub-expression, and the operator of each sub-expression. The data parsing module is used to parse the expression combination to obtain the reference identifiers of each sub-expression referenced by the expression combination and the operation relationships between each sub-expression; The logic splitting module is used to determine the execution logic of each sub-expression based on the reference identifier of each sub-expression; The logic reuse module is used to construct the expression execution logic text of the expression combination based on the execution logic of each sub-expression and the operation relationship of each sub-expression. The compilation and execution module is used to execute the expression execution logic text to obtain the execution result of the expression combination.

[0011] In addition, to achieve the above objectives, this application also proposes a data dynamic parsing device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the data dynamic parsing method as described above.

[0012] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the data dynamic parsing method described above.

[0013] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the data dynamic parsing method described above.

[0014] One or more technical solutions proposed in this application have at least the following technical effects: This application provides a method, apparatus, device, and storage medium for dynamic data parsing. The method receives a user-constructed expression combination containing multiple sub-expressions. It parses the visually configured expression combination to obtain reference identifiers for each sub-expression referenced by the expression combination and the operational relationships between the sub-expressions. The execution logic of each sub-expression is determined using the parsed reference identifiers. Then, an expression is constructed based on the execution logic and operational relationships of each sub-expression. When the constructed expression execution logic text is executed, it only needs to reuse the corresponding sub-expression execution logic based on the reference identifiers of each sub-expression. This achieves the splitting of expression combination parsing into the parsing of multiple sub-expressions and the operations between the parsed results of multiple sub-expressions, enabling dynamic parsing of expression combinations by reusing the execution logic of multiple sub-expressions. This method is suitable for scenarios involving the configuration and parsing of multiple indicators, solving the current technical problem of difficulty in parsing expression combinations and failing to meet the requirements of multi-indicator configuration and parsing when configuring and parsing risk control indicators. Attached Figure Description

[0015] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0016] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a flowchart illustrating the first embodiment of the data dynamic parsing method of this application. Figure 2 This is a schematic diagram of the module structure of the data dynamic parsing device according to an embodiment of this application; Figure 3 This is a schematic diagram of the device structure of the hardware operating environment involved in the data dynamic parsing method in the embodiments of this application.

[0018] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0019] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0020] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0021] Currently, risk control indicators are mostly configured and evaluated using rule engines, relying on predefined, fixed business rules to determine risk control conditions and calculate indicators. This approach only accepts single execution expressions, suitable for simple risk verification scenarios. However, this fixed configuration mode inherently lacks flexibility, failing to support user-defined expression combinations or dynamically parse expressions containing multiple sub-expressions. It hinders the reuse, nesting, and flexible arrangement of multi-dimensional indicators, failing to meet the complex and ever-changing custom configuration requirements of Fund of Funds (FOF) risk indicators. When configuring and parsing expression combinations containing multiple indicators, developers typically need to write the corresponding execution logic code in the underlying code to parse and compile the expression combinations and obtain the corresponding execution results.

[0022] This application provides a solution that receives expression combinations containing multiple sub-expressions constructed by users in a visual expression configuration interface. By parsing the expression combination, it obtains the reference identifiers of each sub-expression referenced by the expression combination and the operational relationships between the sub-expressions. The execution logic of each sub-expression is determined by the parsed reference identifiers. Then, an expression is constructed based on the execution logic and operational relationships of each sub-expression. When the constructed expression execution logic text is executed, it only needs to reuse the corresponding sub-expression execution logic based on the reference identifiers of each sub-expression. This achieves the splitting of expression combination parsing into the parsing of multiple sub-expressions and the operations between the parsed results of multiple sub-expressions, enabling dynamic parsing of expression combinations by reusing the execution logic of multiple sub-expressions. This solution is suitable for scenarios involving the configuration and parsing of multiple indicators, solving the current technical problem of difficulty in parsing expression combinations and failing to meet the requirements of multi-indicator configuration and parsing when configuring and parsing risk control indicators.

[0023] In the following embodiments of this application, for ease of description, the execution subject is described using the identification of a computer device. It should be noted that the execution subject in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device or computer device capable of performing the above functions. The following description uses a computer device as an example to illustrate this embodiment and the subsequent embodiments.

[0024] This application provides a method for dynamic data parsing, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the data dynamic parsing method of this application.

[0025] In this embodiment, the dynamic data parsing method includes steps S10 to S50: Step S10: Receive the expression combination constructed by the user in the visual expression configuration interface; wherein the visual expression configuration interface includes: an expression editing area, an indicator variable selection area, and an operator selection area; the construction of the expression combination includes: responding to the user's operation of inputting an indicator variable in the expression editing area or selecting an indicator variable in the indicator variable selection area, determining each sub-expression and its corresponding reference identifier for constructing the expression combination; responding to the user's operation of selecting an operator in the operator selection area or inputting an operator in the expression editing area, determining the operator used to connect each sub-expression when constructing the expression combination; determining the expression combination constructed by the user in the visual expression configuration interface based on each sub-expression, the reference identifier of each sub-expression, and the operator of each sub-expression; Specifically, the system receives a combination of expressions constructed by the user. The combination of expressions is formed by concatenating at least one sub-expression with an operator. When only one sub-expression is included, the combination of expressions may not include an operator; when multiple sub-expressions are included, the combination of expressions includes at least one operator.

[0026] Furthermore, the received expression combination is the expression combination constructed by the user in the visual expression configuration interface.

[0027] Specifically, when users construct expression combinations, they do so through a visual expression configuration interface built on a third-party Monaco plugin.

[0028] The visual expression configuration interface, built on the Monaco plugin, allows users to concatenate variables, subexpressions, and operators by selecting or manually entering them, quickly generating expression combinations with reference markers. It also provides syntax pre-validation to reduce the probability of configuration errors. Risk control logic can be reused and nested without writing underlying code, enabling non-technical personnel to get started quickly and reducing reliance on technical developers.

[0029] The aforementioned visual expression configuration interface may include: an expression editing area, an indicator variable selection area, and an operator selection area.

[0030] Specifically, the visual expression configuration interface is deployed on the front end of the risk control indicator configuration system, including an expression editing area, an indicator variable selection area, and an operator selection area.

[0031] The expression editing area provides users with input boxes for customizing expressions, allowing them to write custom indicator variables, their value ranges, and operators. It's important to note that the indicator variables entered in the expression editing area must adhere to the following rules: non-numeric inputs must be enclosed in curly braces {}, such as {Latest Net Asset Value per Unit of the Fund of Funds}; numeric inputs must be enclosed in single quotes, such as '0.5', to distinguish specific categories. For example, the constructed expression combination would be: {Fund of Funds Industry Concentration}>'0.6' OR {Latest Net Asset Value per Unit of the Fund of Funds}<'1'.

[0032] The indicator variable selection area includes several predefined risk control indicator variables and their respective values. These predefined risk control indicator variables and their values ​​can all be selected as individual indicator variables by the user. The values ​​of the risk control indicator variables depend on the indicator variable itself. For example, if a risk control indicator variable is an enumerated value, clicking on that variable will expand all its enumerated values, binding each enumerated value to the original variable to form several possible values ​​for that risk control indicator variable. These values ​​are then displayed in the indicator variable selection area for users to select the risk control indicator variable for which they wish to limit the value. Within the indicator variable selection area, risk control indicator variables are categorized into parent funds and sub-funds. All indicator variables are displayed in an indicator tree format. Specifically, the first level of the indicator tree in the selection area displays the risk control indicator variables corresponding to the parent fund. Clicking on the parent fund expands the selection to choose the risk control indicator variables corresponding to each sub-fund under that parent fund. Users select the desired risk control indicator variables from the indicator selection area. The system then returns the corresponding indicator variable in the expression editing area based on the selected variable. Users can adaptively modify the returned indicator variable in the expression editing area. Furthermore, when the selected risk control indicator variable is a sub-fund's risk control indicator variable, the indicator variable returned in the expression editing area carries the identifier of its corresponding parent fund.

[0033] The operator selection area includes several built-in visual operators, including but not limited to addition, subtraction, multiplication, division, AND, OR, equal to, not equal to, and absolute value.

[0034] When constructing expression combinations based on the above-mentioned visual expression configuration interface, steps A11 to A13 may be included: Step A11: In response to the user's operation of inputting an indicator variable in the expression editing area or selecting an indicator variable in the indicator variable selection area, determine each sub-expression that constructs the expression combination and its corresponding reference identifier. Specifically, in response to the user's input of an indicator variable in the expression editing area, the system front-end interface generates a sub-expression of the corresponding indicator variable in the indicator variable selection area, and the system back-end determines the reference identifier corresponding to the sub-expression; in response to the user's selection of an indicator variable in the indicator variable selection area, based on the indicator variable object selected by the user, the system front-end generates a sub-expression of the corresponding indicator variable in the expression editing area, and the system back-end determines the reference identifier corresponding to the sub-expression.

[0035] Step A12: In response to the user's operation of selecting an operator in the operator selection area or entering an operator in the expression editing area, determine the operator used to connect the sub-expressions when constructing the expression combination; Specifically, in response to the user's selection of an operator in the operator selection area or input of an operator in the expression editing area, the system front-end generates the corresponding operator in the expression editing area, and the system back-end retrieves the corresponding operator.

[0036] Step A13: Determine the expression combination constructed by the user in the visual expression configuration interface based on each of the sub-expressions, the reference identifier of each of the sub-expressions, and the operator of each of the sub-expressions.

[0037] Specifically, the system front-end generates a corresponding visual expression combination based on the arrangement relationship of each sub-expression and its operator in the expression editing area, and binds the visual expression combination and the reference identifier of each sub-expression to the system back-end.

[0038] When the constructed expression combination is: {Fund of Funds Industry Concentration}>'0.6' OR {Fund of Funds Latest Net Asset Value per Unit}<'1', the system backend translates the received content, removes the curly braces {}, represents the fund of funds industry concentration as the corresponding reference identifier A, and represents the fund of funds latest net asset value per unit as the corresponding reference identifier B, resulting in the expression combination A>'0.6' OR B<'1'. This expression combination is the expression combination constructed by the user in the visual expression configuration interface and received by the system backend.

[0039] In one feasible implementation, the visual expression configuration interface in step S10 further includes an expression validation component. Before executing step S10, steps S01-S02 are also included: Step S01: When the user completes the construction of the expression combination in the visual expression configuration interface, respond to the user's click operation on the expression verification component and perform regular expression verification on the expression combination; Step S02: If the regular expression validation passes, the expression combination is received; if the regular expression validation fails, the reason for the regular expression validation failure is obtained, and a visual prompt message is generated based on the reason for the regular expression validation failure.

[0040] Specifically, the visual expression configuration interface also includes an expression validation component, which performs prior verification on user-constructed expression combinations to prevent non-compliant expression combinations from being transmitted to the system backend for execution, thus avoiding situations where they cannot be executed or parsed.

[0041] In this application, the expression validation component is set as a necessary validation component. That is, the system resets the validation result of the expression validation component after detecting that the user has completed the expression combination construction in the visual expression configuration interface, or after each change of the expression combination. Only when the expression validation component outputs a passing validation result is the expression combination provided by the user considered compliant, and only then can the expression combination be transmitted to the system backend for reception. If the expression combination validation fails, the reason for the regular expression validation failure is obtained, and a visual prompt message is generated based on the reason for the regular expression validation failure. The validation result of the expression validation component is reset, informing the user that the expression combination needs to be modified again, and explaining why the expression combination is non-compliant. Specifically, this application uses regular expression validation during validation, mainly checking whether the expression format is correct, such as whether numbers are enclosed in single quotes (''), whether subexpressions are enclosed in curly braces ({}), and whether there are conflicts or anomalies in the operator connection relationships between multiple subexpressions. The regular expression validation failure reason output based on this regular expression validation can include any one or a combination of the following: abnormal number enclosing, abnormal subexpression enclosing, and abnormal operator settings.

[0042] By implementing this method, front-end pre-validation can be performed using regular expressions before submission to the back-end for execution. This can identify issues such as mismatched brackets, syntax errors, and invalid references in advance, and provide timely feedback to users. It also reduces the number of invalid requests sent to the back-end, lowers the back-end processing pressure, and improves the efficiency of expression configuration and debugging.

[0043] Step S20: Parse the expression combination to obtain the reference identifiers of each sub-expression referenced by the expression combination and the operational relationships between each sub-expression; Specifically, an expression engine built by integrating JEXL (Java Expression Language) and QLExpress (QuickLanguage Express) is used to parse expression combinations, obtaining reference identifiers for each sub-expression referenced by the expression combination and the operational relationships between these sub-expressions. It should be noted that QLExpress has optimized algorithms and data structures, rich built-in functions and operators, supports custom extensions, and can adapt to complex business logic, but it consumes more resources in some scenarios; JEXL3 has a concise and lightweight syntax, enabling the processing of complex expressions, but its performance is insufficient for large-scale data processing. The expression engine used in this application integrates both engines: simple compound variable expressions are executed using JEXL, while complex expressions containing built-in logic are executed using QLExpress, achieving flexible engine adaptation.

[0044] For example, when parsing the expression combination A OR B, the expression engine executes based on JEXL, obtaining references to its subexpressions A and B, and the OR operation between A and B. When parsing the expression combination A OR (B AND C AND D), the expression engine executes based on QLExpress, obtaining references to its subexpressions A, B, C, and D, and the OR operation between A and (B AND C AND D), the AND operation between B and C, and the AND operation between C and D.

[0045] In one feasible implementation, step S20 may include steps B11-B12: Step B11: Determine the preset parsing rules based on the indicator variables included in the selected region of the indicator variables; Step B12: Parse the expression combination according to the preset parsing rules to obtain the reference identifiers of each sub-expression referenced by the expression combination and the operational relationships between each sub-expression.

[0046] Specifically, user-constructed expression combinations are typically built upon the selection of various indicator variables within the indicator variable selection area. Therefore, before parsing the expression combination, the sub-expressions corresponding to which indicator variables need to be extracted are determined based on which indicator variables are included in the indicator variable selection area. This extraction mapping method is a preset parsing rule. When parsing the expression combination using this preset parsing rule, the reference identifiers of the sub-expressions in the expression combination can be accurately extracted. Based on this, the operational relationships between the sub-expressions can be obtained.

[0047] In one feasible implementation, the visual expression configuration interface further includes: a composite indicator variable configuration area; the data dynamic parsing method further includes steps S101~S201: Step S101: Respond to the composite indicator variable constructed by the user in the composite indicator variable configuration area, and obtain the composite indicator variable and its corresponding reference identifier; wherein, the composite indicator variable is constructed based on each indicator variable in the indicator variable selection area; Step S201: Add the composite indicator variable and its corresponding reference identifier to the indicator variable selection area, update each indicator variable in the indicator variable selection area and update the preset parsing rules.

[0048] Specifically, the composite indicator variable configuration area is associated with the indicator variable selection area. Composite indicator variables are constructed by selecting and combining the indicator variables within the selection area. For example, indicator variables 'a' and 'b' are selected in the indicator variable selection area to construct a composite indicator variable (a AND b). The constructed composite indicator variable is stored as an independent whole, indicator variable X, in the indicator variable selection area, updating the selectable indicator variables in the area. Simultaneously, upon completing the construction of the composite indicator variable, a reference identifier 'x' corresponding to the composite indicator variable X needs to be constructed based on the reference identifiers of indicator variables 'a' and 'b'. The preset parsing rules are updated so that when the preset parsing rules detect a subexpression corresponding to X, they map to the reference identifier 'x' corresponding to X.

[0049] By constructing composite indicator variables, the number of backend parsing steps can be reduced. For example, when the expression combination is (a AND b) OR C, and (a AND b) is the composite indicator vector X, the expression combination is parsed according to preset parsing rules to obtain X, C, and the OR operator. At this point, there is no need to further parse a AND b to obtain a and b, thus reducing parsing efficiency. Furthermore, constructing composite indicator vectors allows business users to quickly configure expressions and flexibly configure indicators, greatly enriching the configuration efficiency of similar indicators.

[0050] Step S30: Determine the execution logic of each sub-expression based on its reference identifier; Specifically, based on the reference identifiers of each extracted sub-expression, a preset expression database is queried to obtain the execution logic of the sub-expression corresponding to each reference identifier. This process only completes the acquisition of the logic text and does not perform business numerical calculations. Subsequently, operators are combined to complete the overall assembly and generate the complete execution expression logic text.

[0051] Step S40: Based on the execution logic of each sub-expression and the operational relationship of each sub-expression, construct the expression execution logic text of the expression combination; Specifically, based on the execution logic of each sub-expression obtained from the query, and combined with the operational relationships between the parsed sub-expressions, replacement and concatenation processes are performed to generate expression execution logic text that can be directly sent to the expression engine for execution after removing reference markers.

[0052] Step S50: Execute the expression execution logic text to obtain the execution result of the expression combination.

[0053] In one feasible implementation, step S50 may include steps C11-C12: Step C11: Obtain the real-time dynamic data corresponding to the execution logic of each sub-expression contained in the expression execution logic text and the operation relationship between the real-time dynamic data of each sub-expression; Step C12: Based on the real-time dynamic data of each sub-expression and the operational relationship between the real-time dynamic data of each sub-expression, execute the expression execution logic to obtain the execution result of the expression combination.

[0054] Specifically, when executing the expression execution logic text, to ensure the acquisition of the latest data, it is necessary to obtain the real-time dynamic risk variable data of FOF corresponding to each sub-expression in the expression execution logic text, as well as the operational relationships between the sub-expressions. The real-time dynamic data is then substituted into the expression execution logic text as input parameters, and logical operations are performed according to the operational relationships to ultimately obtain the risk control execution result corresponding to the expression combination. The generated execution result can assist in instruction approval and execution.

[0055] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the data dynamic parsing method of this application. Any simple transformations based on this technical concept are within the protection scope of this application.

[0056] This application also provides a data dynamic parsing device; please refer to... Figure 2 The data dynamic parsing data receiving module 10, data parsing module 20, logic splitting module 30, logic multiplexing module 40, and compilation and execution module 50 are mentioned. The data receiving module 10 is used to receive expression combinations constructed by the user in the visual expression configuration interface; wherein, the visual expression configuration interface includes: an expression editing area, an indicator variable selection area, and an operator selection area; the construction of the expression combination includes: responding to the user's operation of inputting an indicator variable in the expression editing area, or selecting an indicator variable in the indicator variable selection area, determining each sub-expression and its corresponding reference identifier for constructing the expression combination; responding to the user's operation of selecting an operator in the operator selection area, or inputting an operator in the expression editing area, determining the operator used to connect each sub-expression when constructing the expression combination; and determining the expression combination constructed by the user in the visual expression configuration interface based on each sub-expression, the reference identifier of each sub-expression, and the operator of each sub-expression. The data parsing module 20 is used to parse the expression combination to obtain the reference identifiers of each sub-expression referenced by the expression combination and the operation relationships between each sub-expression; The logic splitting module 30 is used to determine the execution logic of each sub-expression based on the reference identifier of each sub-expression; The logic reuse module 40 is used to construct the expression execution logic text of the expression combination based on the execution logic of each sub-expression and the operation relationship of each sub-expression. The compilation and execution module 50 is used to execute the expression execution logic text to obtain the execution result of the expression combination.

[0057] The data dynamic parsing device provided in this application, employing the data dynamic parsing method described in the above embodiments, can solve the technical problem that it is difficult to parse expression combinations when configuring and parsing risk control indicators at the current stage, and that it cannot meet the technical requirements for multi-indicator configuration and parsing. Compared with the prior art, the beneficial effects of the data dynamic parsing device provided in this application are the same as those of the data dynamic parsing method provided in the above embodiments, and other technical features in the data dynamic parsing device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0058] This application provides a data dynamic parsing device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the data dynamic parsing method in the first embodiment described above.

[0059] The following is for reference. Figure 3 The diagram illustrates a structural schematic of a data dynamic parsing device suitable for implementing embodiments of this application. The data dynamic parsing device in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 3 The data dynamic parsing device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0060] like Figure 3As shown, the data dynamic parsing device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.) that can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the data dynamic parsing device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. Communication device 1009 allows the data dynamic parsing device to communicate wirelessly or wiredly with other devices to exchange data. Although the figures show data dynamic parsing devices with various systems, it should be understood that implementing or having all of the systems shown is not required. More or fewer systems may be implemented alternatively.

[0061] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0062] The data dynamic parsing device provided in this application, employing the data dynamic parsing method described in the above embodiments, can solve the technical problem that it is difficult to parse expression combinations when configuring and parsing risk control indicators at the current stage, thus failing to meet the technical requirements for multi-indicator configuration and parsing. Compared with the prior art, the beneficial effects of the data dynamic parsing device provided in this application are the same as those of the data dynamic parsing method provided in the above embodiments, and other technical features in this data dynamic parsing device are the same as those disclosed in the method of the previous embodiment, and will not be repeated here.

[0063] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0064] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0065] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, which are used to execute the data dynamic parsing method described in the above embodiments.

[0066] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0067] The aforementioned computer-readable storage medium may be included in the data dynamic resolution device; or it may exist independently and not assembled into the data dynamic resolution device.

[0068] The aforementioned computer-readable storage medium carries one or more programs, which, when executed by the data dynamic parsing device, cause the data dynamic parsing device to execute the data dynamic parsing method.

[0069] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0070] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0071] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0072] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described dynamic data parsing method. This solves the technical problem that current risk control indicators are difficult to parse when configuring and parsing expression combinations, and cannot meet the requirements for multi-indicator configuration and parsing. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the dynamic data parsing method provided in the above embodiments, and will not be repeated here.

[0073] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the data dynamic parsing method described above.

[0074] The computer program product provided in this application can solve the technical problem that it is difficult to parse expression combinations when configuring and parsing risk control indicators at the current stage, and it cannot meet the technical requirements for configuring and parsing multiple indicators. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the data dynamic parsing method provided in the above embodiments, and will not be repeated here.

[0075] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.

Claims

1. A method for dynamic data parsing, characterized in that, The dynamic data parsing method includes: The system receives expression combinations constructed by a user in a visual expression configuration interface. The visual expression configuration interface includes an expression editing area, an indicator variable selection area, and an operator selection area. The construction of the expression combination includes: responding to the user's input of an indicator variable in the expression editing area or selection of an indicator variable in the indicator variable selection area, determining each sub-expression and its corresponding reference identifier for constructing the expression combination; responding to the user's selection of an operator in the operator selection area or input of an operator in the expression editing area, determining the operator used to connect the sub-expressions when constructing the expression combination; and determining the expression combination constructed by the user in the visual expression configuration interface based on each sub-expression, the reference identifier of each sub-expression, and the operator of each sub-expression. The expression combination is parsed to obtain the reference identifiers of each sub-expression referenced by the expression combination and the operational relationships between each sub-expression; The execution logic of each sub-expression is determined based on its reference identifier. Based on the execution logic of each sub-expression and the operational relationship of each sub-expression, construct the expression execution logic text of the expression combination; Executing the expression executes the logical text, resulting in the execution result of the expression combination.

2. The data dynamic parsing method as described in claim 1, characterized in that, The visual expression configuration interface also includes: an expression validation component; Before receiving the expression combinations constructed by the user in the visual expression configuration interface, it also includes: When a user completes the construction of an expression combination in the visual expression configuration interface, the system responds to the user's click on the expression validation component and performs regular expression validation on the expression combination. If the regular expression validation passes, then the expression combination is received; If the regular expression validation fails, the reason for the failure is obtained, and a visual prompt message is generated based on the reason for the failure.

3. The data dynamic parsing method as described in claim 2, characterized in that, The step of parsing the expression combination to obtain the reference identifiers of each sub-expression referenced by the expression combination and the operational relationships between the sub-expressions includes: The preset parsing rules are determined based on the indicator variables selected from the region. The expression combination is parsed according to the preset parsing rules to obtain the reference identifiers of each sub-expression referenced by the expression combination and the operational relationships between each sub-expression.

4. The data dynamic parsing method as described in claim 3, characterized in that, The visual expression configuration interface also includes: a composite indicator variable configuration area; The dynamic data parsing method further includes: In response to a user's construction of a composite indicator variable in the composite indicator variable configuration area, the composite indicator variable and its corresponding reference identifier are obtained; wherein, the composite indicator variable is constructed based on each indicator variable in the indicator variable selection area; Add the composite indicator variable and its corresponding reference identifier to the indicator variable selection area, update each indicator variable in the indicator variable selection area and update the preset parsing rules.

5. The data dynamic parsing method as described in claim 1, characterized in that, The execution of the expression execution logic text to obtain the execution result of the expression combination includes: Obtain the real-time dynamic data corresponding to the execution logic of each sub-expression contained in the expression execution logic text, and the operational relationship between the real-time dynamic data of each sub-expression; Based on the real-time dynamic data of each sub-expression and the operational relationship between the real-time dynamic data of each sub-expression, the expression execution logic text is executed to obtain the execution result of the expression combination.

6. A data dynamic parsing device, characterized in that, The device includes: a data receiving module, a data parsing module, a logic splitting module, a logic multiplexing module, and a compilation and execution module; The data receiving module is used to receive expression combinations constructed by the user in the visual expression configuration interface; wherein, the visual expression configuration interface includes: an expression editing area, an indicator variable selection area, and an operator selection area; the construction of the expression combination includes: responding to the user's operation of inputting an indicator variable in the expression editing area, or selecting an indicator variable in the indicator variable selection area, determining each sub-expression and its corresponding reference identifier for constructing the expression combination; responding to the user's operation of selecting an operator in the operator selection area, or inputting an operator in the expression editing area, determining the operator used to connect each sub-expression when constructing the expression combination; and determining the expression combination constructed by the user in the visual expression configuration interface based on each sub-expression, the reference identifier of each sub-expression, and the operator of each sub-expression. The data parsing module is used to parse the expression combination to obtain the reference identifiers of each sub-expression referenced by the expression combination and the operation relationships between each sub-expression; The logic splitting module is used to determine the execution logic of each sub-expression based on the reference identifier of each sub-expression; The logic reuse module is used to construct the expression execution logic text of the expression combination based on the execution logic of each sub-expression and the operation relationship of each sub-expression. The compilation and execution module is used to execute the expression execution logic text to obtain the execution result of the expression combination.

7. A data dynamic parsing device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the data dynamic parsing method as described in any one of claims 1 to 5.

8. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the data dynamic parsing method as described in any one of claims 1 to 5.