Rule execution result display method and device, electronic equipment and readable storage medium

By extracting and filling the templates of the execution results of the rule engine, the display chart is built, which solves the problem of unintuitive display of the rule engine execution results, and achieves a more intuitive display of the result.

CN119990284APending Publication Date: 2025-05-13CHINA CITIC BANK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411802315.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-09
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

In the prior art, the execution results of the rule engine are usually output in a fixed text format, resulting in unintuitive display and difficult to understand.

Method used

By obtaining the execution result description text of the target rule and the preset result description template, extracting the target metrics and variable names, populating the variable values, and building a presentation diagram and/or table.

Benefits of technology

It realizes automatic generation of visual charts for rule execution results, which improves the intuitiveness of the presentation and facilitates users' understanding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119990284A_ABST
    Figure CN119990284A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a rule execution result display method and device, electronic equipment and a readable storage medium, and relates to the technical field of computers, in particular to the technical field of rule engines. The method comprises the steps of obtaining an execution result description text of a target rule and a preset result description template; extracting an index name of the target index and a variable name of the target variable from the result description template; based on the variable name of the target variable, extracting a variable value of the target variable from the execution result description text; and constructing a display graph and / or a display table based on the index name of the target index, the variable name of the target variable and the variable value of the target variable. Based on the scheme, the visual chart can be automatically generated through intelligent analysis of the execution result description text of the target rule, the intuition of execution result display is effectively improved, and a user can more conveniently understand.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to the field of rule engine technology. Specifically, the present application relates to a method, device, electronic device and readable storage medium for displaying rule execution results. Background Art

[0002] A large amount of business data is generated during enterprise operations, and business data is generally analyzed through rule engines. The rule engine abstracts complex business logic into rules and implements business data analysis by executing rules.

[0003] After the rules are executed, how to effectively display the execution results of the rules to users to facilitate their business analysis has become an important technical issue.

[0004] In the related art, the execution results of the rules are generally output in a fixed text format. The execution results displayed in a fixed text format may not be easy for users to understand.

[0005] If after the execution results of the rules are output in a fixed text format, a visual chart is generated based on the execution results in the fixed text format, the intuitiveness of the display of the execution results can be improved, making it easier for users to understand. Summary of the invention

[0006] The purpose of this application is to solve at least one of the above technical defects, and to provide a method, device, electronic device and readable storage medium for displaying rule execution results. The technical solution adopted by this application is as follows:

[0007] In a first aspect, an embodiment of the present application provides a method for displaying rule execution results, the method comprising:

[0008] Obtaining the execution result description text of the target rule and the preset result description template; the target rule includes at least one target variable, and the target variable is calculated based on the target indicator; the result description template includes at least one slot, and the slot includes the variable name of the target variable, and the result description template also includes the indicator name of the target indicator, and the execution result description text is obtained by filling the variable value of the target variable into the corresponding slot in the result description template;

[0009] Extract the indicator name of the target indicator and the variable name of the target variable from the result description template;

[0010] Based on the variable name of the target variable, extract the variable value of the target variable from the execution result description text;

[0011] Construct a display graph and / or display table based on the indicator name of the target indicator, the variable name of the target variable, and the variable value of the target variable.

[0012] In a second aspect, an embodiment of the present application provides a rule execution result display device, the device comprising:

[0013] An execution result acquisition module is used to acquire the execution result description text of the target rule and a preset result description template; the target rule includes at least one target variable, and the target variable is calculated based on the target indicator; the result description template includes at least one slot, and the slot includes the variable name of the target variable, and the result description template also includes the indicator name of the target indicator. The execution result description text is obtained by filling the variable value of the target variable into the corresponding slot in the result description template;

[0014] A template analysis module is used to extract the indicator name of the target indicator and the variable name of the target variable from the result description template;

[0015] A variable value extraction module, used for extracting the variable value of the target variable from the execution result description text based on the variable name of the target variable;

[0016] The display module is used to construct a display graph and / or display table based on the indicator name of the target indicator, the variable name of the target variable, and the variable value of the target variable.

[0017] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a processor and a memory;

[0018] A memory, used for storing operation instructions;

[0019] The processor is used to execute the rule execution result display method shown in any implementation of the first aspect of the present application by calling an operation instruction.

[0020] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the rule execution result display method shown in any implementation of the first aspect of the present application.

[0021] The technical solution provided by the embodiment of the present application brings the following beneficial effects: by obtaining the execution result description text of the target rule and the preset result description template; the target rule contains at least one target variable, and the target variable is calculated based on the target indicator; the result description template includes at least one slot, and the slot includes the variable name of the target variable, and the result description template also includes the indicator name of the target indicator, and the execution result description text is obtained by filling the variable value of the target variable into the corresponding slot in the result description template; extracting the indicator name of the target indicator and the variable name of the target variable from the result description template; based on the variable name of the target variable, extracting the variable value of the target variable from the execution result description text; constructing a display diagram and / or display table based on the indicator name of the target indicator, the variable name of the target variable and the variable value of the target variable. Based on this solution, a visual chart can be automatically generated based on the execution result description text of the target rule, which effectively improves the intuitiveness of the execution result display and is more convenient for users to understand. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.

[0023] Figure 1 A flowchart of a method for displaying rule execution results provided in an embodiment of the present application;

[0024] Figure 2 A schematic diagram of the structure of the core components in the rule engine provided in the embodiment of the present application;

[0025] Figure 3 A schematic diagram of the workflow of the rule engine provided in the embodiment of the present application;

[0026] Figure 4 A schematic diagram of the structure of a rule execution result display device provided in an embodiment of the present application;

[0027] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present invention.

[0029] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0030] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0031] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0032] Figure 1 A schematic diagram of a method for displaying rule execution results provided by an embodiment of the present application is shown in FIG. Figure 1 As shown, the method may mainly include:

[0033] Step S110: Obtain the execution result description text of the target rule and a preset result description template; the target rule includes at least one target variable, and the target variable is calculated based on the target indicator; the result description template includes at least one slot, and the slot includes the variable name of the target variable, and the result description template also includes the indicator name of the target indicator, and the execution result description text is obtained by filling the variable value of the target variable into the corresponding slot in the result description template;

[0034] Step S120: extracting the indicator name of the target indicator and the variable name of the target variable from the result description template;

[0035] Step S130: extracting the variable value of the target variable from the execution result description text based on the variable name of the target variable;

[0036] Step S140: construct a display graph and / or display table based on the indicator name of the target indicator, the variable name of the target variable, and the variable value of the target variable.

[0037] The rules in the embodiments of the present application may be implemented based on a rule engine, in which the core components may mainly include rules, variables, and indicators.

[0038] Among them, rules can be abstracted from specific business logic, and a specific business problem can correspond to multiple rules. Rules are described by rule expressions, and rule expressions can be composed of operators, time variables, and variables. Among them, time variables represent specific time periods, and variables are expanded on the basis of indicators, which can be understood as adding specific attributes on the basis of indicators.

[0039] Indicators can include basic indicators and derived indicators. A basic indicator corresponds to a Structured Query Language (SQL) statement fragment, which contains a time parameter. Through this SQL statement, the value of a business indicator at a specific time can be retrieved. A derived indicator is an indicator derived from a basic indicator, and its result is calculated by the basic indicator through four arithmetic operations.

[0040] For example, the variable "year-on-year growth rate of new card issuance" is composed of the basic indicator "new card issuance" plus the attribute "year-on-year growth rate".

[0041] The introduction of variables solves the problem of complicated definitions of various indicators in the rules, making business use more flexible.

[0042] A result description template can also be configured in the rule. The conclusion description template can be understood as a text containing variables, which is used to generate a conclusive description of the rule execution result.

[0043] In the implementation of this application, indicator configuration, variable configuration and rule configuration can be performed in the rule engine.

[0044] In the embodiment of the present application, the target rule can be understood as one or more rules for the current business problem. After executing the target rule, the rule engine can automatically generate a description text of the execution result of the target rule.

[0045] The rule expression of the target rule contains at least one target variable. The rule expression of the target rule is composed of the target variable and the operator. After the target rule is executed, the variable value of the target variable can be obtained.

[0046] The execution result description text is generated based on the result description template. Specifically, the result description template contains at least one slot, and the slot contains the variable name of the target variable. When generating the execution result description text, it can be achieved by filling the variable value corresponding to the variable name of the target variable into the slot containing the corresponding variable name in the result description template.

[0047] The result description template can also include the indicator name. Since variables are composed of indicators adding specific attributes, multiple specific attributes can be added to one indicator to form multiple variables. Therefore, one indicator may derive multiple variables. In the result description template, multiple slots are generally placed after an indicator name, and the variable names of the variables derived from the indicator are written in each slot.

[0048] As an example, the result description template is: New Customer Volume {New Customer Volume in the Current Year - Trend - Actual Value}, Year-on-year {New Customer Volume in the Current Year - Trend - Year-on-year Increment}, {New Customer Volume in the Current Year - Trend - Year-on-year Increase}. Among them, "{}" represents the slot, "New Customer Volume in the Current Year - Trend - Actual Value", "New Customer Volume in the Current Year - Trend - Year-on-year Increase" and "New Customer Volume in the Current Year - Trend - Year-on-year Increase" are all variable names. When generating the execution result description text based on the result description template, fill the variable values ​​into the corresponding slots in the result description template to obtain the execution result description text: 10 million new customers, an increase of 1 million year-on-year, an increase of 20%.

[0049] In the embodiment of the present application, the indicator name of the target indicator and the variable name of the target variable can be extracted from the result description template according to the distribution pattern of the indicator name and the variable name in the result description template.

[0050] The variable value of the target variable exists in the execution result description text. Therefore, after obtaining the variable name of the target variable, the variable value of the target variable can be extracted from the execution result description text according to the variable name of the target variable.

[0051] After obtaining the indicator name of the target indicator, the variable name of the target variable, and the variable value of the target variable, a display graph and / or display table may be constructed for the indicator name of the target indicator, the variable name of the target variable, and the variable value of the target variable.

[0052] In an embodiment of the present application, after executing the target rule in the rule engine and obtaining the execution result description text of the target rule execution result, the indicator name of the target indicator, the variable name of the target variable, and the variable value of the target variable are automatically extracted through intelligent analysis of the execution result description text and the result description template of the target rule, thereby automatically constructing a display chart. Based on the execution result description text, it is possible to provide more display forms of the execution results, which are more intuitive and easy for users to understand, and effectively assist users in business analysis.

[0053] The method provided by the embodiment of the present application is obtained by obtaining the execution result description text of the target rule and the preset result description template; the target rule contains at least one target variable, and the target variable is calculated based on the target indicator; the result description template includes at least one slot, and the slot includes the variable name of the target variable, and the result description template also includes the indicator name of the target indicator, and the execution result description text is obtained by filling the variable value of the target variable into the corresponding slot in the result description template; extracting the indicator name of the target indicator and the variable name of the target variable from the result description template; based on the variable name of the target variable, extracting the variable value of the target variable from the execution result description text; based on the indicator name of the target indicator, the variable name of the target variable and the variable value of the target variable, constructing a display diagram and / or display table. Based on this scheme, it is possible to automatically generate a visual chart based on the execution result description text of the target rule, effectively improving the intuitiveness of the execution result display, and making it easier for users to understand.

[0054] In an optional manner of the embodiment of the present application, extracting the indicator name of the target indicator and the variable name of the target variable from the result description template includes:

[0055] Traverse the result description template and determine the indicator name of each target indicator;

[0056] For the indicator name of any target indicator, the variable names in the slots before the indicator name of the next target indicator of the indicator name of the target indicator are determined as the variable names of the target variables calculated based on the target indicator.

[0057] In the embodiment of the present application, the result description template generally includes multiple indicator names. Multiple slots are placed after an indicator name in the result description template, and the variable names of the variables derived from the indicator are written in each slot. Based on the above rules, all indicator names in the result description template can be traversed first, and then the variable names in each slot before the next indicator name in the result description template are used as the variable names corresponding to the previous indicator name. Thereby, the indicator name of the target indicator and the variable name of the target variable are determined respectively.

[0058] As an example, the result description template is: New Customer Volume {New Customer Volume in the Current Year - Trend - Actual Value}, Year-on-year {New Customer Volume in the Current Year - Trend - Year-on-year Increase}, {New Customer Volume in the Current Year - Trend - Year-on-year Increase}; Among them, the year-on-year increase in customer acquisition by sub-center channels {New Customer Volume in the Current Year - Trend - Year-on-year Increase}. By traversing the result description template, the indicator names "New Customer Volume" and "Customer Acquisition by Sub-center Channels" can be extracted, and the slot after "New Customer Volume" and before "Customer Acquisition by Sub-center Channels" in the result description template is used as the variable name of the variable derived from the indicator "New Customer Volume".

[0059] In an embodiment of the present application, traversing the result description template to determine the indicator name of each target indicator includes: determining each slot in the result description template based on the characteristic characters corresponding to the slot; and determining the indicator name from the text outside the slot in the result description template. Specifically, the text outside the slot in the result description template, except for the pre-specified connecting words, can be determined as the indicator name. As an example, the connecting words can include "year-on-year".

[0060] In an optional manner of the embodiment of the present application, based on the variable name of the target variable, extracting the variable value of the target variable from the execution result description text includes:

[0061] Determine the variable position of the variable name of the target variable in the result description template;

[0062] The variable value of the target variable is determined from the data at the position corresponding to the variable position in the execution result description text.

[0063] In an embodiment of the present application, after obtaining the variable name of the target variable, the variable position of the variable name of the target variable in the result description template can be determined, and the position of the variable value of the target variable in the execution result description text corresponds to the variable position of the variable name of the target variable in the result description template, so that the data at the corresponding position can be extracted from the execution result description text as the variable value of the target variable based on the variable position.

[0064] In an optional manner of the embodiment of the present application, the above method further includes:

[0065] The slot is determined from the result description template based on the preset starting characteristic character and ending characteristic character of the slot.

[0066] In the embodiment of the present application, the slot is represented by a characteristic character. Specifically, the start characteristic character identifies the start point of the slot, and the end characteristic character identifies the end point of the slot.

[0067] The slot can be determined in the result description template by the start characteristic character and the end characteristic character of the slot.

[0068] As an example, the starting characteristic character and the ending characteristic character of the slot can be specified as needed, for example, the starting characteristic character of the slot is “{”, and the ending characteristic character is “}”.

[0069] In an optional manner of the embodiment of the present application, in response to constructing a display table, based on the indicator name of the target indicator, the variable name of the target variable, and the variable value of the target variable, constructing the display table includes:

[0070] Use the indicator name of the target indicator as the column title of the display table, and use the variable name of the target variable as the row title of the display table;

[0071] Fill in the variable values ​​of the target variable into each cell to build a display table.

[0072] In an embodiment of the present application, a specific form of a display table is: using the indicator name of the target indicator as the column title of the display table, and using the variable name of the target variable as the row title of the display table, and then filling the variable value of the target variable into each cell to construct a display table.

[0073] As an example, the display table can be shown as follows through Table 1:

[0074] Table 1

[0075] Indicator name Actual value Year-on-year increase Year-on-year growth New Customers 20 20 10 Sub-center 20 20 10 Branches 10 10 5 Online Sales 10 -1 -2

[0076] In an optional manner of the embodiment of the present application, the above method further includes:

[0077] Determine whether the target indicator is a positive indicator or a negative indicator;

[0078] Based on the display method corresponding to the positive indicator or the negative indicator, the variable value corresponding to the target indicator is displayed in the display diagram and / or the display table.

[0079] In the embodiments of the present application, the indicators have positive or negative attributes. Positive indicators are indicators that represent upward or forward development and growth. The larger the value of these indicators, the better the evaluation. Negative indicators are the opposite, that is, the lower the value, the better the performance.

[0080] Different display modes can be configured for positive indicators and negative indicators respectively, so that users can easily distinguish between indicators of these two attributes.

[0081] In the embodiment of the present application, the display mode includes but is not limited to font color, font size, font size, etc. For example, the display mode corresponding to the positive indicator is configured as a green font color, and the display mode corresponding to the negative indicator is configured as a red font color.

[0082] In the embodiment of the present application, the variable value corresponding to the target indicator can be displayed in the display diagram and / or display table through the display method corresponding to the positive indicator or the negative indicator.

[0083] In addition, the variable value may be displayed in the execution result description text using a display method corresponding to a positive indicator or a negative indicator.

[0084] In an optional manner of the embodiment of the present application, the result description template is configured in the configuration information of the target rule.

[0085] In the embodiments of the present application, the configuration of rules generally includes the configuration of rule expressions. In this case, the configuration of result description templates can be added to the rule configuration so that the execution result description text can be automatically generated based on the result description templates.

[0086] As an example, Figure 2 It is a structural diagram of the core components in the rule engine provided in the embodiment of the present application.

[0087] like Figure 2 As shown in , the business problem is abstracted into a rule tree, which contains a set of specific rules, namely Figure 2 Sub-rule 1, sub-rule 2...sub-rule N in .

[0088] Each rule contains at least one rule expression, namely, expression 1, expression 2, ..., expression N. The expressions are connected by "and" and "or".

[0089] A rule expression consists of operators, time variables, and derived variables. Derived variables are the aforementioned variables derived from indicators. Indicators correspond to a set of SQL statement fragments used to obtain business indicators within a specified period of time.

[0090] As an example, Figure 3 It is a schematic diagram of the workflow of the rule engine provided in the embodiment of the present application.

[0091] like Figure 3 As shown in the figure, the internal management is the management backend, where the administrator can configure indicators, variables, and rules. After completing the rule configuration, you can perform rule verification. After the rule verification passes, the rule can be put into use.

[0092] When the rules are executed, batch processing generates execution results, which are reviewed and published after review. Users can view the execution results through mobile phones or computers.

[0093] Based on Figure 1 The same principle as shown in the method, Figure 4 A schematic diagram of the structure of a rule execution result display device provided in an embodiment of the present application is shown. Figure 4 As shown, the rule execution result display device 40 may include:

[0094] The execution result acquisition module 410 is used to acquire the execution result description text of the target rule and the preset result description template; the target rule includes at least one target variable, and the target variable is calculated based on the target indicator; the result description template includes at least one slot, and the slot includes the variable name of the target variable, and the result description template also includes the indicator name of the target indicator. The execution result description text is obtained by filling the variable value of the target variable into the corresponding slot in the result description template;

[0095] The template analysis module 420 is used to extract the indicator name of the target indicator and the variable name of the target variable from the result description template;

[0096] A variable value extraction module 430 is used to extract the variable value of the target variable from the execution result description text based on the variable name of the target variable;

[0097] The display module 440 is used to construct a display graph and / or a display table based on the indicator name of the target indicator, the variable name of the target variable, and the variable value of the target variable.

[0098] The device provided by the embodiment of the present application, by obtaining the execution result description text of the target rule and the preset result description template; the target rule contains at least one target variable, and the target variable is calculated based on the target indicator; the result description template includes at least one slot, and the slot includes the variable name of the target variable, and the result description template also includes the indicator name of the target indicator, and the execution result description text is obtained by filling the variable value of the target variable into the corresponding slot in the result description template; extracting the indicator name of the target indicator and the variable name of the target variable from the result description template; based on the variable name of the target variable, extracting the variable value of the target variable from the execution result description text; based on the indicator name of the target indicator, the variable name of the target variable and the variable value of the target variable, constructing a display diagram and / or display table. Based on this scheme, it is possible to automatically generate a visual chart based on the execution result description text of the target rule, effectively improving the intuitiveness of the execution result display, and making it easier for users to understand.

[0099] Optionally, the template analysis module is specifically used for:

[0100] Traverse the result description template and determine the indicator name of each target indicator;

[0101] For the indicator name of any target indicator, the variable names in the slots before the indicator name of the next target indicator of the indicator name of the target indicator are determined as the variable names of the target variables calculated based on the target indicator.

[0102] Optionally, the variable value extraction module is specifically used for:

[0103] Determine the variable position of the variable name of the target variable in the result description template;

[0104] The variable value of the target variable is determined from the data at the position corresponding to the variable position in the execution result description text.

[0105] Optionally, the above device further includes:

[0106] The slot determination module is used to determine the slot from the result description template based on the preset starting characteristic character and ending characteristic character of the slot.

[0107] Optionally, in response to constructing the display table, the display module is specifically configured to:

[0108] Use the indicator name of the target indicator as the column title of the display table, and use the variable name of the target variable as the row title of the display table;

[0109] Fill in the variable values ​​of the target variable into each cell to build a display table.

[0110] Optionally, the display module is also used to:

[0111] Determine whether the target indicator is a positive indicator or a negative indicator;

[0112] Based on the display method corresponding to the positive indicator or the negative indicator, the variable value corresponding to the target indicator is displayed in the display diagram and / or the display table.

[0113] Optionally, the result description template is configured in the configuration information of the target rule.

[0114] It can be understood that the above modules of the rule execution result display device in this embodiment have the function of realizing Figure 1 The functions of the corresponding steps of the rule execution result display method in the embodiment shown in . This function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. The above modules can be software and / or hardware, and the above modules can be implemented separately or integrated with multiple modules. For the functional description of each module of the above rule execution result display device, please refer to Figure 1 The corresponding description of the rule execution result display method in the embodiment shown in will not be repeated here.

[0115] An embodiment of the present application provides an electronic device, including a processor and a memory;

[0116] A memory, used for storing operation instructions;

[0117] The processor is used to execute the rule execution result display method provided in any embodiment of the present application by calling an operation instruction.

[0118] As an example, Figure 5 A schematic diagram of the structure of an electronic device applicable to the embodiment of the present application is shown. Figure 5 As shown, the electronic device 2000 includes: a processor 2001 and a memory 2003. The processor 2001 and the memory 2003 are connected, such as through a bus 2002. Optionally, the electronic device 2000 may also include a transceiver 2004. It should be noted that in actual applications, the transceiver 2004 is not limited to one, and the structure of the electronic device 2000 does not constitute a limitation on the embodiments of the present application.

[0119] The processor 2001 is applied in the embodiment of the present application to implement the method shown in the above method embodiment. The transceiver 2004 may include a receiver and a transmitter. The transceiver 2004 is applied in the embodiment of the present application to implement the function of the electronic device of the embodiment of the present application communicating with other devices when executed.

[0120] Processor 2001 may be a CPU (Central Processing Unit), a general purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 2001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0121] The bus 2002 may include a path to transmit information between the above components. The bus 2002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 2002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0122] The memory 2003 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0123] Optionally, the memory 2003 is used to store application code for executing the solution of the present application, and the execution is controlled by the processor 2001. The processor 2001 is used to execute the application code stored in the memory 2003 to implement the rule execution result display method provided in any embodiment of the present application.

[0124] The electronic device provided in the embodiment of the present application is applicable to any embodiment of the above method and will not be described in detail here.

[0125] The embodiment of the present application provides an electronic device, compared with the prior art, by obtaining the execution result description text of the target rule and the preset result description template; the target rule contains at least one target variable, and the target variable is calculated based on the target indicator; the result description template includes at least one slot, and the slot includes the variable name of the target variable, and the result description template also includes the indicator name of the target indicator, and the execution result description text is obtained by filling the variable value of the target variable into the corresponding slot in the result description template; extracting the indicator name of the target indicator and the variable name of the target variable from the result description template; based on the variable name of the target variable, extracting the variable value of the target variable from the execution result description text; based on the indicator name of the target indicator, the variable name of the target variable and the variable value of the target variable, constructing a display diagram and / or display table. Based on this scheme, it is possible to automatically generate a visual chart based on the execution result description text of the target rule, effectively improving the intuitiveness of the execution result display, and making it easier for users to understand.

[0126] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the rule execution result display method shown in the above method embodiment is implemented.

[0127] The computer-readable storage medium provided in the embodiments of the present application is applicable to any embodiment of the above method and will not be described in detail here.

[0128] The embodiment of the present application provides a computer-readable storage medium, compared with the prior art, by obtaining the execution result description text of the target rule and the preset result description template; the target rule contains at least one target variable, and the target variable is calculated based on the target indicator; the result description template includes at least one slot, the slot includes the variable name of the target variable, and the result description template also includes the indicator name of the target indicator, and the execution result description text is obtained by filling the variable value of the target variable into the corresponding slot in the result description template; extracting the indicator name of the target indicator and the variable name of the target variable from the result description template; based on the variable name of the target variable, extracting the variable value of the target variable from the execution result description text; based on the indicator name of the target indicator, the variable name of the target variable and the variable value of the target variable, constructing a display diagram and / or display table. Based on this scheme, it is possible to automatically generate a visual chart based on the execution result description text of the target rule, effectively improving the intuitiveness of the execution result display, and making it easier for users to understand.

[0129] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0130] The above descriptions are only some embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for displaying rule execution results, characterized in that: include: Obtain the execution result description text of the target rule and the preset result description template; The target rule includes at least one target variable, and the target variable is calculated based on the target indicator; the result description template includes at least one slot, and the slot includes the variable name of the target variable, and the result description template also includes the indicator name of the target indicator, and the execution result description text is obtained by filling the variable value of the target variable into the corresponding slot in the result description template; Extracting the indicator name of the target indicator and the variable name of the target variable from the result description template; Based on the variable name of the target variable, extracting the variable value of the target variable from the execution result description text; Based on the indicator name of the target indicator, the variable name of the target variable, and the variable value of the target variable, a display graph and / or a display table is constructed.

2. The method according to claim 1, characterized in that The step of extracting the indicator name of the target indicator and the variable name of the target variable from the result description template includes: Traversing the result description template to determine the indicator name of each target indicator; For the indicator name of any target indicator, the variable name in each slot before the indicator name of the next target indicator of the indicator name of the target indicator is determined as the variable name of the target variable calculated based on the target indicator.

3. The method according to claim 1, characterized in that The step of extracting the variable value of the target variable from the execution result description text based on the variable name of the target variable includes: Determine the variable position of the variable name of the target variable in the result description template; The variable value of the target variable is determined from the data at the position corresponding to the variable position in the execution result description text.

4. The method according to any one of claims 1 to 3, characterized in that Also includes: The slot is determined from the result description template based on a preset starting characteristic character and an ending characteristic character of the slot.

5. The method according to any one of claims 1 to 3, characterized in that: In response to constructing a display table, constructing the display table based on the indicator name of the target indicator, the variable name of the target variable, and the variable value of the target variable includes: Using the indicator name of the target indicator as the column title of the display table, and using the variable name of the target variable as the row title of the display table; Fill the variable value of the target variable into each cell to construct a display table.

6. The method according to any one of claims 1 to 3, characterized in that Also includes: Determining whether the target indicator is a positive indicator or a negative indicator; Based on the display mode corresponding to the positive indicator or the negative indicator, the variable value corresponding to the target indicator is displayed in the display diagram and / or display table.

7. The method according to claims 1-3, characterized in that The result description template is configured in the configuration information of the target rule.

8. A rule execution result display device, characterized in that: include: An execution result acquisition module is used to obtain the execution result description text of the target rule and a preset result description template; The target rule includes at least one target variable, and the target variable is calculated based on the target indicator; the result description template includes at least one slot, and the slot includes the variable name of the target variable, and the result description template also includes the indicator name of the target indicator, and the execution result description text is obtained by filling the variable value of the target variable into the corresponding slot in the result description template; A template analysis module, used to extract the indicator name of the target indicator and the variable name of the target variable from the result description template; A variable value extraction module, used for extracting the variable value of the target variable from the execution result description text based on the variable name of the target variable; The display module is used to construct a display diagram and / or a display table based on the indicator name of the target indicator, the variable name of the target variable and the variable value of the target variable.

9. The device according to claim 8, characterized in that The template analysis module is specifically used for: Traversing the result description template to determine the indicator name of each target indicator; For the indicator name of any target indicator, the variable name in each slot before the indicator name of the next target indicator of the indicator name of the target indicator is determined as the variable name of the target variable calculated based on the target indicator.

10. The device according to claim 8, characterized in that The variable value extraction module is specifically used for: Determine the variable position of the variable name of the target variable in the result description template; The variable value of the target variable is determined from the data at the position corresponding to the variable position in the execution result description text.

11. The device according to any one of claims 8 to 10, characterized in that Also includes: The slot determination module is used to determine the slot from the result description template based on the preset starting characteristic character and ending characteristic character of the slot.

12. The device according to any one of claims 8 to 10, characterized in that In response to constructing the display table, the display module is specifically used to: Using the indicator name of the target indicator as the column title of the display table, and using the variable name of the target variable as the row title of the display table; Fill the variable value of the target variable into each cell to construct a display table.

13. The device according to any one of claims 8 to 10, characterized in that The display module is also used for: Determining whether the target indicator is a positive indicator or a negative indicator; Based on the display mode corresponding to the positive indicator or the negative indicator, the variable value corresponding to the target indicator is displayed in the display diagram and / or display table.

14. The device according to any one of claims 8 to 10, characterized in that The result description template is configured in the configuration information of the target rule.

15. An electronic device, characterized in that: including a processor and a memory; The memory is used to store operation instructions; The processor is used to execute the method according to any one of claims 1 to 7 by calling the operation instruction.

16. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.