A decision-making method, device, electronic device and storage medium based on rules

By receiving terminal decision requests and determining rules based on target business and program version identification, the problem of inefficiency when decision rules are changed is solved, and rapid decision-making and rule configuration are achieved.

CN117055943BActive Publication Date: 2024-12-17THE PEOPLES BANK OF CHINA DIGITAL CURRENCY INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310878828.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-17
Publication Date
2024-12-17
Estimated Expiration
2043-07-17

AI Technical Summary

Technical Problem

In the prior art, when decision rules change, it is necessary to rewrite the code to generate new rules, resulting in a decrease in business decision efficiency.

Method used

By receiving the decision request sent by the terminal, the target rule is determined based on the version identification of the target service and the target program, the parameter value is entered to obtain the decision result, and only the execution node is modified when the rule is modified to maintain the decision efficiency.

Benefits of technology

It improves decision-making efficiency and rule configuration efficiency, and reduces the complexity and time of rule modification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117055943B_ABST
    Figure CN117055943B_ABST
Patent Text Reader

Abstract

The present application is about a rule-based decision-making method, device, electronic device and storage medium, which relates to the field of computer technology and can solve the technical problem that when the rules used for decision-making are changed, relevant personnel need to rewrite the code to generate the rules, and then make decisions based on the newly generated rules, which reduces the efficiency of business decision-making. The rule-based decision-making method includes: receiving a decision request sent by a terminal, the decision request includes the business identifier of the target business, the version identifier of the target program, and the input value of each input parameter in at least one input parameter; based on the business identifier of the target business and the version identifier of the target program, determining the target rule, the target rule includes at least one execution stage, and an execution stage includes at least one execution node; inputting the input value of each input parameter into the target rule to obtain the target output parameter; sending a decision response to the terminal.
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 a rule-based decision-making method, device, electronic device and storage medium. Background Art

[0002] Currently, the terminal can determine the decision results of the business based on the rules. The relevant business personnel can write codes to obtain the rules, and then get the decision results by running the rules.

[0003] However, in the above method, when the rules used for decision-making change, relevant personnel are required to rewrite the code to generate the rules, and then make decisions based on the newly generated rules, which reduces the efficiency of business decision-making. Summary of the invention

[0004] The present application provides a rule-based decision-making method, device, electronic device and storage medium, which are used to solve the problem that when the rules used for decision-making are changed, relevant personnel need to rewrite the code to generate the rules, and then make decisions based on the newly generated rules, which reduces the efficiency of business decision-making.

[0005] The technical solution of the embodiment of the present application is as follows:

[0006] According to a first aspect of an embodiment of the present application, a rule-based decision method is provided, the rule-based decision method comprising: receiving a decision request sent by a terminal, the decision request comprising a service identifier of a target service, a version identifier of a target program, and an input value of each input parameter in at least one input parameter, the decision request being used to request a decision for the target service, the target service being a service triggered based on the target program; determining a target rule based on the service identifier of the target service and the version identifier of the target program, the target rule comprising at least one execution stage, and an execution stage comprising at least one execution node; inputting the input value of each input parameter into the target rule to obtain a target output parameter, the target output parameter being used to characterize a decision result of the target service; and sending a decision response to the terminal, the decision response comprising the target output parameter.

[0007] Optionally, the above-mentioned determination of the target rule based on the business identifier of the target business and the version identifier of the target program may specifically include: determining the target rule based on the business identifier of the target business, the version identifier of the target program and a first corresponding relationship, the first corresponding relationship including multiple rules and preset conditions corresponding to each of the multiple rules, wherein a preset condition includes a business identifier and a version identifier.

[0008] Optionally, the above-mentioned input value of each input parameter is input into the target rule to obtain the target output parameter, which may specifically include: inputting the input value of each input parameter into the target rule, and based on the execution order of the at least one execution stage, obtaining the output result of each execution stage; determining the output result of the target execution stage as the target output parameter, and the target execution stage is the last one of the at least one execution stage.

[0009] Optionally, the above-mentioned target rule includes a target data dictionary, the input value of each input parameter is input into the target rule, and based on the execution order of the at least one execution stage, the output result of the first execution stage is obtained, which may specifically include: executing the target data dictionary to obtain multiple parameters and the value of each parameter in the multiple parameters; inputting the input value of each input parameter into the target data dictionary; based on the execution order of the at least one execution stage, obtaining the value of the first input parameter from the target data dictionary, the first input parameter is the input parameter corresponding to the first execution node, the first execution node is the execution node included in the first execution stage, and the first execution stage is one of the at least one execution stage; executing the first execution node to obtain the output parameter of the first execution node; arranging the output parameters of each execution node included in the first execution stage to obtain the output result of the first execution stage.

[0010] Optionally, the rule-based decision method further includes: updating the target data dictionary based on output parameters of each execution node included in the first execution stage.

[0011] Optionally, the rule-based decision-making method also includes: when the target duration is less than or equal to a duration threshold, processing each execution node included in the first execution stage based on a parallel executor to obtain an output parameter of each execution node included in the first execution stage, and the target duration is the maximum duration for obtaining the target output parameter.

[0012] Optionally, the rule-based decision method also includes: when the target duration is greater than a duration threshold, determining the execution order of at least one execution node included in the first execution stage; based on the serial executor and the execution order of the at least one execution node, processing the at least one execution node to obtain the output parameters of each execution node in the at least one execution node.

[0013] Optionally, the rule-based decision method further includes: sorting the at least one execution stage in order of priority from high to low to obtain an execution order of the at least one execution stage.

[0014] According to a second aspect of an embodiment of the present application, a rule-based decision-making device is provided, the rule-based decision-making device comprising: a receiving unit, a determining unit, a processing and sending unit; the receiving unit is used to receive a decision request sent by a terminal, the decision request comprising a service identifier of a target service, a version identifier of a target program, and an input value of each input parameter in at least one input parameter, the decision request being used to request a decision to be made on the target service, the target service being a service triggered based on the target program; the determining unit is used to determine a target rule based on the service identifier of the target service and the version identifier of the target program, the target rule comprising at least one execution stage, and an execution stage comprising at least one execution node; the processing unit is used to input the input value of each input parameter into the target rule to obtain a target output parameter, the target output parameter being used to characterize a decision result of the target service; the sending unit is used to send a decision response to the terminal, the decision response comprising the target output parameter.

[0015] Optionally, the determination unit is specifically used to determine the target rule based on the business identifier of the target business, the version identifier of the target program and a first corresponding relationship, wherein the first corresponding relationship includes multiple rules and preset conditions corresponding to each of the multiple rules, wherein a preset condition includes a business identifier and a version identifier.

[0016] Optionally, the processing unit is further specifically used to determine the output result of each execution node set based on the input value of each input parameter and each execution node included in each execution node set in the at least one execution node set; the determination unit is further specifically used to determine the output result of the target execution stage as the target output parameter, and the target execution stage is the last one of the at least one execution stage.

[0017] Optionally, the target rule includes a target data dictionary, and the processing unit is specifically used to execute the target data dictionary to obtain multiple parameters and the value of each parameter in the multiple parameters; the processing unit is also specifically used to input the input numerical value of each input parameter into the target data dictionary; the processing unit is also specifically used to obtain the value of the first input parameter from the target data dictionary based on the execution order of the at least one execution stage, the first input parameter is the input parameter corresponding to the first execution node, the first execution node is the execution node included in the first execution stage, and the first execution stage is one of the at least one execution stage; the processing unit is also specifically used to execute the first execution node to obtain the output parameter of the first execution node; the processing unit is also specifically used to arrange the output parameters of each execution node included in the first execution stage to obtain the output result of the first execution stage.

[0018] Optionally, the processing unit is further used to update the target data dictionary based on the output parameters of each execution node included in the first execution stage.

[0019] Optionally, the processing unit is also used to process each execution node included in the first execution stage based on the parallel executor to obtain the output parameters of each execution node included in the first execution stage when the target duration is less than or equal to the duration threshold, and the target duration is the maximum duration for obtaining the target output parameter.

[0020] Optionally, the processing unit is further used to determine the execution order of at least one execution node included in the first execution stage when the target duration is greater than the duration threshold; the processing unit is also used to process the at least one execution node based on the serial executor and the execution order of the at least one execution node to obtain the output parameters of each execution node in the at least one execution node.

[0021] Optionally, the processing unit is further used to sort the at least one execution stage in order of priority from high to low to obtain an execution order of the at least one execution stage.

[0022] According to a third aspect of an embodiment of the present application, an electronic device is provided, which may include: a processor and a memory for storing processor executable instructions; wherein the processor is configured to execute instructions to implement any optional rule-based decision-making method in the above-mentioned first aspect.

[0023] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which instructions are stored. When the instructions in the computer-readable storage medium are executed by a processor of a rule-based decision-making device, the rule-based decision-making device is enabled to execute any one of the optional rule-based decision-making methods in the above-mentioned first aspect.

[0024] The technical solution provided by this application brings at least the following beneficial effects:

[0025] Based on any of the above aspects, in the rule-based decision method of the present application, the electronic device can receive a decision request sent by the terminal, the decision request includes the service identifier of the target service, the version identifier of the target program, and the input value of each input parameter in at least one input parameter, and the electronic device can determine the target rule based on the service identifier of the target service and the version identifier of the target program, and then input the input value of each input parameter into the target rule to obtain the target output parameter, and then send a decision response to the terminal. In the present application, since the target service is a service triggered based on the target program, the electronic device can determine the applicable rule (i.e., target rule) of the target service based on the service identifier of the target service and the version identifier of the target program, and since the target output parameter is used to characterize the decision result of the target service, the electronic device can make a decision on the target service quickly based on the input value of the at least one input parameter and the target rule, thereby improving the efficiency of making decisions on the target service.

[0026] In the present application, since the target rule is composed of at least one execution stage, and one execution stage includes at least one execution node, when the target rule needs to be modified (for example, the target output parameter needs to be modified), the electronic device can modify one or more execution nodes included in the target rule so that the modified target rule can obtain the target output parameter without modifying the entire target rule, and the efficiency of rule configuration can also be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute improper limitations on the present application.

[0028] Figure 1 A schematic diagram of a rule-based decision-making system provided in an embodiment of the present application is shown;

[0029] Figure 2 A schematic diagram of a process flow of a rule-based decision-making method provided in an embodiment of the present application is shown;

[0030] Figure 3 A schematic diagram of a process flow of another rule-based decision-making method provided in an embodiment of the present application is shown;

[0031] Figure 4 A schematic diagram of a process flow of another rule-based decision-making method provided in an embodiment of the present application is shown;

[0032] Figure 5 A schematic diagram of a process flow of another rule-based decision-making method provided in an embodiment of the present application is shown;

[0033] Figure 6 A schematic diagram of the structure of a rule-based decision-making device provided in an embodiment of the present application is shown;

[0034] Figure 7 A schematic diagram of the structure of another rule-based decision-making device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0035] In order to enable ordinary persons in the art to better understand the technical solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0036] It should be noted that the embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0037] It should also be understood that the term “comprising” indicates the presence of described 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 and / or components.

[0038] In risk control, the rapid iteration of rules and strategies is one of the most basic capabilities. Because in order to find loopholes in risk control rules, the black industry will inevitably test them at multiple levels and in various aspects; this puts forward two requirements for the iteration of risk control rules: offline data mining must be fast and online rule modification must be accurate. These two requirements have a common foundation: the rapid configuration and launch of risk control rules. As one of the most important basic capabilities of the risk control subsystem, the rapid configuration and launch of rules can directly shorten the security exposure time of the risk control subsystem and improve the security of the system; and as one of the most important subsystems in the financial system, the security of the risk control subsystem directly affects the overall security of the financial system.

[0039] In the related art, the terminal can determine the decision result of the business based on a certain rule, but when the rule used for decision-making changes, relevant personnel are required to rewrite the code to generate the rule, and then make a decision based on the newly generated rule, which reduces the efficiency of business decision-making.

[0040] Based on this, an embodiment of the present application provides a rule-based decision-making method. Since the target business is a business triggered based on the target program, the electronic device can determine the rules applicable to the target business (i.e., target rules) based on the business identifier of the target business and the version identifier of the target program. Since the target output parameter is used to characterize the decision result for the target business, the electronic device can quickly make a decision on the target business based on the input value of at least one input parameter and the target rule, thereby improving the efficiency of making decisions on the target business.

[0041] In an embodiment of the present application, since the target rule is composed of at least one execution stage, and one execution stage includes at least one execution node, when the target rule needs to be modified (for example, the target output parameter needs to be modified), the electronic device can modify one or more execution nodes included in the target rule so that the modified target rule can obtain the target output parameter without modifying the entire target rule, thereby improving the efficiency of rule configuration.

[0042] The rule-based decision method, device, electronic device and storage medium provided in the embodiments of the present application are applied to the scenario of business decision. When the electronic device receives a decision request, it can determine the target rule based on the business identifier of the target business and the version identifier of the target program according to the method provided in the embodiments of the present disclosure; then input the input value of each input parameter into the target rule to obtain the target output parameter, and send a decision response to the terminal.

[0043] The following is an exemplary description of the rule-based decision-making method provided in the embodiment of the present application in conjunction with the accompanying drawings:

[0044] Figure 1 A schematic diagram of a rule-based decision-making system provided in an embodiment of the present application, such as Figure 1 As shown, the decision-making system may include: a terminal 101 and an electronic device 102, and the terminal 101 and the electronic device 102 may be connected via a wired network or a wireless network.

[0045] The terminal 101 may send a decision request to the electronic device 102 , where the decision request includes a service identifier of a target service, a version identifier of a target program, and an input value of each input parameter in at least one input parameter.

[0046] The electronic device 102 may input the input number of each input parameter into the target rule, obtain the target output parameter, and send a decision response to the terminal.

[0047] Exemplarily, the terminal 101 and the electronic device 102 may be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) or a virtual reality (VR) device, etc. The present application does not impose any special restrictions on the specific form of the terminal 101. It may perform human-computer interaction with the user through one or more methods such as a keyboard, a touchpad, a touch screen, a remote control, voice interaction, or a handwriting device.

[0048] Exemplarily, the electronic device 102 may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (content delivery network, CDN), as well as big data and artificial intelligence platforms.

[0049] like Figure 2 As shown, when the rule-based decision method is applied to the above electronic device, the rule-based decision method may include S101-S104.

[0050] S101. An electronic device receives a decision request sent by a terminal.

[0051] The decision request includes the service identifier of the target service, the version identifier of the target program, and the input value of each input parameter in at least one input parameter. The decision request is used to request a decision on the target service, which is a service triggered based on the target program.

[0052] Optionally, the version identifier of the target program may be a version number of the target program.

[0053] S102: The electronic device determines a target rule based on a service identifier of the target service and a version identifier of the target program.

[0054] The target rule includes at least one execution stage, and one execution stage includes at least one execution node.

[0055] It should be understood that the target rule is a rule corresponding to both the service identifier of the target service and the version identifier of the target program.

[0056] It is understandable that the electronic device can store multiple rules corresponding to multiple user types in multiple business scenarios, and after receiving the decision request sent by the terminal, the electronic device can determine the rules applicable to the target business.

[0057] In the embodiment of the present application, the electronic device can determine the rules applicable to the target service, that is, the minimum self-consistent rules under the target service, based on the version identifier of the target program included in the terminal.

[0058] Optionally, the decision request may also include the system version identifier of the terminal and the identifier of the region corresponding to the terminal, and then determine the rules applicable to the target service based on the version identifier of the target program, the system version identifier of the terminal and the identifier of the region corresponding to the terminal.

[0059] In an embodiment of the present application, an execution node may be a piece of standard code, a remote procedure call (RPC) call, a hypertext transfer protocol (HTTP) call, a database query, a Redis query, a single rule or multiple rule decisions, which can realize functions such as obtaining variables, generating labels, generating features, and generating policy packages.

[0060] It should be understood that the execution of an execution node is generally divided into three steps: organizing input parameters, business processing, and parsing output parameters. The execution node includes input parameters, execution node processing methods, and output parameters. Each execution node included in the target rule can independently perform execution node calculations. Specifically, it can obtain the input value of the input parameter, and then perform execution node processing based on the input value of the input parameter to obtain the output parameter.

[0061] For example, Figure 3 As shown, the target rule includes three execution stages, wherein execution stage 1 includes four execution nodes, execution stage 2 includes two execution nodes, and execution stage 3 includes one execution node. Specifically, execution node 1 and execution node 2 included in execution stage 1 are used to generate labels, execution node 3 and execution node 4 included in execution stage 1 are used to generate features, execution node 5 included in execution stage 2 is used to generate labels, execution node 6 included in execution stage 2 is used to generate policy package 1, and execution node 7 included in execution stage 3 is used to generate policy package 2.

[0062] In one implementation, the electronic device can also store multiple execution node templates, each execution node template includes a function processing method. The electronic device can select an execution node template based on the function processing method, and then configure input parameters and output parameters for the execution node template to generate the target rule. The target rule can be quickly configured to improve the efficiency of rule configuration.

[0063] S103: The electronic device inputs the input value of each input parameter into the target rule to obtain the target output parameter.

[0064] The target output parameter is used to characterize the decision result of the target business.

[0065] Specifically, the electronic device may process each execution node included in the target rule respectively to obtain the target output parameter that is finally output.

[0066] It can be understood that different output parameters are used to characterize different decision results.

[0067] Exemplarily, the decision result may be whitelist release, blacklist interception, trigger threshold, level of the target user account, requirement of SMS verification, requirement of face verification, etc.

[0068] The target user account is a user account corresponding to the target service.

[0069] Optionally, the target output parameter may be a numerical value or a string of characters.

[0070] For example, the output parameter "1000" can be used to characterize the decision result "whitelist release", the output parameter "1001" can be used to characterize the decision result "blacklist interception", and the output parameter "1002" can be used to characterize the decision result "SMS verification required".

[0071] S104: The electronic device sends a decision response to the terminal.

[0072] The decision response includes the target output parameter.

[0073] In the embodiment of the present application, after obtaining the decision response, the terminal can determine the decision result of the target service based on the target output parameter, and then perform service processing based on the decision result.

[0074] In an optional implementation manner, after acquiring the decision response, the terminal may also generate target prompt information based on the target output parameter, and then display the target prompt information on the terminal.

[0075] Optionally, the terminal may store a decision result corresponding to each output parameter of the multiple output parameters, and then determine the decision result corresponding to the target output parameter based on the target output parameter.

[0076] In another optional implementation, the decision response may further include a result description, and the terminal (or a business person corresponding to the target business) may determine the decision result based on the result description.

[0077] The technical solution provided by the above embodiment brings at least the following beneficial effects: As can be seen from S101-S104, the electronic device can receive a decision request sent by the terminal, the decision request includes the service identifier of the target service, the version identifier of the target program, and the input value of each input parameter in at least one input parameter, the electronic device can determine the target rule based on the service identifier of the target service and the version identifier of the target program, and then input the input value of each input parameter into the target rule to obtain the target output parameter, and then send a decision response to the terminal. In the embodiment of the present application, since the target service is a service triggered based on the target program, the electronic device can determine the applicable rule (i.e., target rule) of the target service based on the service identifier of the target service and the version identifier of the target program, and since the target output parameter is used to characterize the decision result of the target service, the electronic device can make a decision on the target service quickly based on the input value of the at least one input parameter and the target rule, thereby improving the efficiency of making decisions on the target service.

[0078] In an embodiment of the present application, since the target rule is composed of at least one execution stage, and one execution stage includes at least one execution node, when the target rule needs to be modified (for example, the target output parameter needs to be modified), the electronic device can modify one or more execution nodes included in the target rule so that the modified target rule can obtain the target output parameter without modifying the entire target rule, thereby improving the efficiency of rule configuration.

[0079] In an implementation manner of the embodiment of the present application, the electronic device determines the target rule based on the service identifier of the target service and the version identifier of the target program, which may specifically include S1021.

[0080] S1021: The electronic device determines a target rule based on a service identifier of the target service, a version identifier of the target program, and the first corresponding relationship.

[0081] The first corresponding relationship includes a plurality of rules and a preset condition corresponding to each of the plurality of rules, and a preset condition includes a service identifier and a version identifier.

[0082] It should be understood that in the first corresponding relationship, a preset condition corresponds to a service identifier and a version identifier of a service, and the version identifier is a version identifier of a program that triggers the service.

[0083] Optionally, the electronic device may store the first corresponding relationship, or obtain the first corresponding relationship from other electronic devices.

[0084] In an optional implementation manner, after the electronic device completes configuring the one rule, the first corresponding relationship may be generated based on the rule and a preset condition corresponding to the rule.

[0085] The following Table 1 is an example of the first corresponding relationship.

[0086] As shown in Table 1, the first corresponding relationship includes 3 rules and preset conditions corresponding to each of the 3 rules (including preset condition 1, preset condition 2, preset condition 3 and preset condition 4). Specifically, the service identifier included in the preset condition 1 is service 1 and the version identifier is version a, the service identifier included in the preset condition 2 is service 1 and the version identifier is version b, and the service identifier included in the preset condition 3 is service 2 and the version identifier is version a.

[0087] Table 1

[0088] rule Pre-conditions Rule A Precondition 1 (Business 1 + Version A) Rule B Precondition 2 (Business 1 + Version B) Rule C Precondition 3 (Business 2 + Version A)

[0089] Exemplarily, assuming that the service identifier of the target service is service one, and the version identifier of the target program is version a, the electronic device may determine that rule A is the above target rule.

[0090] In the embodiment of the present application, since a preset condition includes a service identifier and a version identifier, the electronic device can accurately determine the target rule applicable to the target user account based on the service identifier of the target service and the version identifier of the target program.

[0091] In one implementation of the embodiment of the present application, the electronic device inputs the input value of each input parameter into the target rule to obtain the target output parameter, which may specifically include S1031-S1032.

[0092] S1031. The electronic device inputs an input value of each input parameter into a target rule, and obtains an output result of each execution stage based on an execution order of at least one execution stage.

[0093] It should be understood that the electronic device can execute the execution nodes included in each execution stage based on the execution order of the at least one execution stage. Specifically, the electronic device can obtain the input parameters of each execution node from the input values ​​of each input parameter, and then perform function processing on each execution node to obtain the output parameters of each execution node.

[0094] In the embodiment of the present application, the electronic device may determine the output parameters of the execution nodes included in each execution stage as the output results of each execution stage.

[0095] In the embodiment of the present application, the output parameters of each execution node in one execution stage may also be used as input parameters of the execution nodes included in other execution stages.

[0096] Specifically, when the identifier of the input parameter of an execution node (for example, execution node one) included in one execution stage is the same as the identifier of the output parameter of an execution node (for example, execution node two) in another execution stage, the output parameter of execution node two can also be used as the input parameter of execution node one.

[0097] S1032: Determine the output result of the target execution stage as the target output parameter, where the target execution stage is the last one of the at least one execution stage.

[0098] In the embodiment of the present application, the electronic device can determine the target execution stage based on the execution order of at least one execution stage, and determine the output result of the target execution stage as the output result of the entire target rule.

[0099] It can be understood that the output result of an execution stage is the output parameter of each execution node in the execution stage. Therefore, the electronic device can determine the output parameter of each execution node in the target execution stage as the target output parameter.

[0100] It should be noted that the output parameter of an execution node can be one or more, and the embodiment of the present application does not limit the number of input parameters and the number of output parameters of each execution node.

[0101] In an embodiment of the present application, since the output result of an execution stage is the output parameter of each execution node in the execution stage, the electronic device can determine the output parameter of each execution node in the target execution stage as the output result of the target execution stage. Since the target execution node is the last execution stage in the at least one execution stage, after the electronic device obtains the output result of the target execution stage, it indicates that the target rule has been executed, and the electronic device does not need to perform other processing on the output result of the target execution stage. Therefore, the electronic device can determine the output result of the last execution stage as the target output parameter, which can improve the accuracy of obtaining the target output parameter.

[0102] In one implementation of an embodiment of the present application, the above-mentioned target rules include a target data dictionary, the electronic device inputs the input value of each input parameter into the target rule, and based on the execution order of at least one execution stage, obtains the output result of the first execution stage, which may specifically include S1031a-S1031e.

[0103] S1031a. The electronic device executes the target data dictionary to obtain multiple parameters and the value of each of the multiple parameters.

[0104] In an embodiment of the present application, the target data dictionary includes parameter names of multiple parameters and original numerical values ​​corresponding to the parameter names of the multiple parameters.

[0105] It should be understood that the multiple parameters included in the target data dictionary are input parameters of each execution node in the target rule and output parameters of each execution node.

[0106] In an embodiment of the present application, the target data dictionary can also be understood as an execution node. The electronic device can execute the execution node and then obtain the original value corresponding to the identifier of each parameter in the multiple parameters based on a local offline or online method.

[0107] Optionally, the target data dictionary may also include attribute information corresponding to the identifier of each parameter. The attribute information corresponding to the identifier of a parameter may include field type, input and output parameter types, whether to archive, whether it is a constant, etc.

[0108] Among them, when a parameter is one of at least one input parameter, the input and output parameter type of the parameter is the input parameter type; when the parameter is the target output parameter, the input and output parameter type of the parameter is the output parameter type; whether to archive is used to indicate whether the parameter is sent to other electronic devices.

[0109] S1031b. The electronic device inputs the input value of each input parameter into the target data dictionary.

[0110] It should be understood that the electronic device inputting the input value of the at least one input parameter can be understood as inputting the input value of each input parameter into the target data dictionary.

[0111] It can be understood that, when the original value of each input parameter is included in the data dictionary, the electronic device can update the original value of each input parameter in the target data dictionary to the input numerical value of each input parameter; when the original value of each input parameter is not included in the data dictionary, the electronic device can determine the input numerical value of each input parameter as the value of each input parameter.

[0112] S1031c: The electronic device obtains a value of a first input parameter from a target data dictionary based on an execution order of at least one execution phase.

[0113] The first input parameter is an input parameter corresponding to a first execution node, the first execution node is an execution node included in a first execution stage, and the first execution stage is one of the at least one execution stage;

[0114] It should be understood that the electronic device obtains the value of the first input parameter from the target data dictionary based on the execution order of the at least one execution stage when executing to the first execution stage.

[0115] S1031d. The electronic device executes the first execution node to obtain an output parameter of the first execution node.

[0116] In combination with the description of the above embodiments, it should be understood that the first execution node includes the function processing method of the first execution node. After the electronic device obtains the input value of the first input parameter, it can input the input value of the first input parameter into the first execution node, and perform execution node processing on the input value of the first input parameter to obtain the output result of the first execution node.

[0117] In an optional implementation, the electronic device may also parse the output result of the first execution node to determine whether the first execution node is executed successfully.

[0118] S1031e. The electronic device arranges the output parameters of each execution node included in the first execution stage to obtain an output result of the first execution stage.

[0119] It should be understood that the output result of the first execution node includes the output parameters of each execution node and the identifier of the output parameter of each execution node.

[0120] Optionally, the name of the output parameter of each execution node may be the Chinese name of the output result or the English name of the output result.

[0121] In an optional implementation, the electronic device may arrange the output parameters of each execution node according to the generation time of the output parameters of each execution node in the first execution stage to obtain the output result of the first execution stage.

[0122] In an embodiment of the present application, the target rule includes a target data dictionary. Since the target data dictionary includes multiple parameters and the original value of each parameter in the multiple parameters, the electronic device can execute the target data dictionary to obtain the original value of each parameter, and then update the target data dictionary with the input value of the at least one input parameter. When the electronic device executes a certain execution node (for example, the first execution node), the input parameter can be obtained from the target data dictionary, thereby eliminating the dependency between the execution nodes and decoupling the dependency relationship between different execution nodes. At the same time, it avoids the problem of affecting other execution nodes when one execution node needs to be adjusted, thereby improving the accuracy and orderliness of the output result acquisition and improving the configuration efficiency of the rules.

[0123] In one implementation of the embodiment of the present application, the electronic device may also update the target data dictionary based on the output parameters of each execution node included in the first execution stage.

[0124] In the embodiments of the present application, the electronic device updates the target data dictionary based on the output parameters of each execution node included in the first execution stage, so that when the input parameters of the execution nodes in the subsequent execution stage are the output parameters included in the first execution stage, the electronic device can obtain updated data from the target data dictionary, thereby improving the accuracy of data acquisition.

[0125] In one implementation of the embodiment of the present application, the number of execution nodes included in the first execution stage may be multiple.

[0126] In one implementation of an embodiment of the present application, when the target duration is less than or equal to the duration threshold, the electronic device can process each execution node included in the first execution stage based on the parallel executor to obtain the output parameters of each execution node included in the first execution stage.

[0127] The target duration is the maximum duration for obtaining the target output parameter.

[0128] It should be understood that when the target duration is less than or equal to the duration threshold, it means that the duration for the terminal to request to obtain the target output parameter is short. At this time, the electronic device can perform parallel executor-based processing on each execution node included in the first execution stage to increase the duration for obtaining the output result of the first execution stage, thereby increasing the duration for the electronic device to determine the target output parameter.

[0129] It is understandable that the electronic device can use a thread pool based on a parallel executor to process each execution node in each execution stage of at least one execution stage included in the target rule to improve the efficiency of the electronic device in making decisions on the target business.

[0130] In another implementation of the embodiment of the present application, when the target duration is greater than the duration threshold, the electronic device can determine the execution order of at least one execution node included in the first execution stage, and then execute at least one execution node based on the serial executor and the execution order of at least one execution node to obtain the output parameters of each execution node in at least one execution node.

[0131] It should be understood that when the target duration is greater than the duration threshold, it means that the duration for the terminal to request to obtain the target output parameter is long. At this time, the electronic device can serially process each execution node included in the first execution stage. First, the electronic device can determine the execution order of the at least one execution node, and then serially process the at least one execution node based on the execution order of the at least one execution node.

[0132] In an optional implementation, the electronic device may determine the execution order of the at least one execution node based on the numbering size of the at least one execution node.

[0133] In an embodiment of the present application, when the terminal takes a long time to request the electronic device to obtain the target output parameter, the electronic device executes the at least one execution node based on the serial executor and the execution order of the at least one execution node, which can improve the accuracy of execution node processing and the utilization of system resources.

[0134] In an implementation manner of the embodiment of the present application, the electronic device may also sort the at least one function set in order of priority from high to low to obtain an execution order of the at least one function set.

[0135] It can be understood that when the priority of an execution stage is higher, it means that the electronic device needs to execute the execution stage first, specifically, to process the execution nodes included in the first execution stage first.

[0136] In the embodiment of the present application, the execution stage of the next priority level can be executed only after all execution nodes in the execution stage with a higher priority level have been processed.

[0137] It can be understood that the above-mentioned target execution phase can also be understood as the execution phase with the lowest priority among at least one execution phase.

[0138] In an optional implementation, the target rule includes coding information of each execution stage in the at least one execution stage, and when the coding information of the first execution stage is less than or equal to the coding information of the second execution stage, the electronic device can determine that the priority of the first execution stage is higher than the priority of the second execution stage.

[0139] Optionally, the coded information may be a number.

[0140] Exemplarily, assuming that the at least one execution stage includes execution stage 1, execution stage 2 and execution stage 3, the coding information of the execution stage 1 is the number 0, the coding information of the execution stage 2 is the number 1, and the coding information of the execution stage 3 is the number 2, then the electronic device can determine that the priority of the execution stage 1 is higher than the priority of the execution stage 2, and the priority of the execution stage 2 is higher than the priority of the execution stage 3, and determine the execution order of the at least one execution stage to execute execution stage 1 first, execute execution stage 2 after all execution nodes included in execution stage 1 are processed, and execute execution stage 3 after all execution nodes included in execution stage 2 are processed.

[0141] In combination with the description of the above embodiments, the electronic device can obtain the original values ​​of the input parameters of the execution node from the target data dictionary, and store the output results of the execution node in the target data dictionary. It should be understood that the output results of the execution stage with a higher priority can also be used as input parameters of the execution stage with a lower priority.

[0142] Optionally, after the execution stage with a higher priority is processed, the electronic device may store the output result of the execution stage with a higher priority into the target data dictionary, and then the execution stage with a lower priority may obtain the value of the input parameter from the target data dictionary.

[0143] In an optional implementation, the electronic device may determine the priority of the at least one execution stage based on the output result of each execution stage and the association relationship between the input parameters.

[0144] Exemplary, combined Figure 3 ,like Figure 4As shown, assuming that the priority of the execution stage 2 is greater than the priority of the execution stage 3, the execution node 5 included in the execution stage 2 is used to obtain the number of users who have logged in to the device within 180 days, and the execution node 6 is used to query the Internet Protocol Address (IP) location. The execution node 7 included in the execution stage 3 is used to obtain the target output parameter based on Rule 1 and Rule 2. The Rule 1 is: if the number of users who have logged in to the device within 180 days exceeds 10, the device will be blocked, and the Rule 2 is: if the IP location is located abroad, the device will be blocked.

[0145] The input parameters of the execution node 5 are the user account identifier, the interface name and the decision result, and the output parameter is the number of users who have logged in to the device within 180 days. The electronic device can obtain the input parameters of the user account identifier (i.e., identifier 1), the interface name (i.e., interface 1), and the decision result code (i.e., LL1000) from the target data dictionary, and then obtain the output parameters and store them in the target data dictionary; the input parameter of the execution node 6 is the IP, and the output parameter is the IP location. The electronic device can obtain the input parameter IP from the target data dictionary, and then store the output parameter IP location in the target data dictionary; after the execution stage 2 is completed, the electronic device can obtain the execution stage 3. Specifically, the electronic device can obtain the input parameter IP location of the execution node 7 and the number of users who have logged in to the device within 180 days from the target data dictionary, and then obtain the output parameters of the decision result code, the decision result information and the rule code, and update the output parameters of the decision result code, the decision result information and the rule code to the target data dictionary respectively.

[0146] The following is an example to illustrate the rule-based decision-making method provided in an embodiment of the present application.

[0147] Combination Figure 3 ,like Figure 5 As shown, the electronic device can input the input value of at least one input parameter included in the decision request into the target data dictionary, and then the electronic device obtains the input parameters of the execution node 1, the input parameters of the execution node 2, the input parameters of the execution node 3, and the input parameters of the execution node 4 included in the execution stage 1 from the target data dictionary, and processes the execution node 1, the execution node 2, the execution node 3, and the execution node 4 to obtain the output result of the execution node 1, the output result of the execution node 2, the output result of the execution node 3, and the output result of the execution node 4, and updates the output result of the execution node 1, the output result of the execution node 2, the output result of the execution node 3, and the output result of the execution node 4 to the target data dictionary.

[0148] The electronic device can then obtain the input parameters of the execution node 5 and the input parameters of the execution node 6 included in the execution stage 2 from the target data dictionary, and process the execution node 5 and the execution node 6 to obtain the output result of the execution node 5 and the output result of the execution node 6, and update the output result of the execution node 5 and the output result of the execution node 6 to the target data dictionary.

[0149] Finally, the electronic device can obtain the input parameters of the execution node 7 included in the execution stage 3 from the target data dictionary, and process the execution node 7 to obtain the output result of the execution node 7, and update the output result of the execution node 7 to the target data dictionary, and determine the output result of the execution node 7 as the target output parameter.

[0150] In an embodiment of the present application, the electronic device divides the execution process according to execution stages, and determines the execution order of at least one execution stage according to the priority of each execution stage, which can ensure that different execution stages are executed in sequence and improve the accuracy of references between input parameters and output parameters of execution nodes in different execution node sets.

[0151] It is understandable that, in actual implementation, the rule-based decision-making device described in the embodiment of the present application may include one or more hardware structures and / or software modules for implementing the aforementioned corresponding rule-based decision-making method, and these execution hardware structures and / or software modules may constitute an electronic device. It should be easily appreciated by those skilled in the art that, in conjunction with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.

[0152] Based on this understanding, an embodiment of the present application also provides a rule-based decision-making device. Figure 6 FIG. 1 shows a schematic diagram of a rule-based decision-making device provided in an embodiment of the present application. Figure 6 As shown, the rule-based decision-making device 20 includes: a receiving unit 201 , a determining unit 202 , a processing unit 203 and a sending unit 204 .

[0153] The receiving unit 201 is used to receive a decision request sent by the terminal, which includes a service identifier of a target service, a version identifier of a target program, and an input value of each input parameter in at least one input parameter. The decision request is used to request a decision for the target service, the target service is a service triggered based on the target program, and the target user account is a user account corresponding to the terminal.

[0154] A determination unit 202, configured to determine a target rule based on a service identifier of the target service and a version identifier of the target program, wherein the target rule includes at least one execution stage, and an execution stage includes at least one execution node;

[0155] A processing unit 203 is used to input the input value of each input parameter into the target rule to obtain a target output parameter, and the target output parameter is used to characterize the decision result of the target business;

[0156] The sending unit 204 is configured to send a decision response to the terminal, where the decision response includes the target output parameter.

[0157] Optionally, the determination unit 202 is specifically used to determine at least one rule based on the business identifier of the target business, the version identifier of the target program and a first corresponding relationship, wherein the first corresponding relationship includes multiple rules and preset conditions corresponding to each of the multiple rules, wherein a preset condition includes a business identifier and a version identifier.

[0158] Optionally, the processing unit 203 is further specifically configured to determine an output result of each function set based on an input value of each input parameter and each function included in each function set in the at least one function set;

[0159] The determining unit 202 is further specifically configured to determine an output result of a target execution phase as the target output parameter, wherein the target execution phase is the last one of the at least one execution phase.

[0160] Optionally, the target rule includes a target data dictionary.

[0161] The processing unit 203 is specifically configured to execute the target data dictionary to obtain multiple parameters and a value of each parameter in the multiple parameters;

[0162] The processing unit 203 is further specifically configured to input the input value of each input parameter into the target data dictionary;

[0163] The processing unit 203 is further specifically configured to obtain a value of a first input parameter from the target data dictionary based on the execution order of the at least one execution stage, where the first input parameter is an input parameter corresponding to a first execution node, the first execution node is an execution node included in a first execution stage, and the first execution stage is one of the at least one execution stage;

[0164] The processing unit 203 is further specifically configured to input the input value of the first input parameter into the first execution node to obtain the output parameter of the first execution node;

[0165] The processing unit 203 is further specifically configured to arrange the output parameters of each execution node included in the first execution stage to obtain the output result of the first execution stage.

[0166] Optionally, the processing unit 203 is further configured to update the target data dictionary based on output parameters of each execution node included in the first execution stage.

[0167] Optionally, the processing unit 203 is further configured to process each execution node included in the first execution stage based on the parallel executor when the target duration is less than or equal to the duration threshold, so as to obtain an output parameter of each execution node included in the first execution stage, and the target duration is the maximum duration for obtaining the target output parameter.

[0168] Optionally, the processing unit 203 is further configured to determine, when the target duration is greater than the duration threshold, an execution order of at least one execution node included in the first execution stage;

[0169] The processing unit 203 is further configured to process the at least one execution node based on the serial executor and the execution order of the at least one execution node to obtain an output parameter of each execution node in the at least one execution node.

[0170] Optionally, the processing unit 203 is further configured to sort the at least one execution stage in descending order of priority to obtain an execution order of the at least one execution stage.

[0171] Those skilled in the art will understand that Figure 6 The structure shown in the figure does not constitute a limitation on the rule-based decision-making device, and may include more or less components than those shown in the figure, or combine certain components, or adopt a different component arrangement.

[0172] Regarding the rule-based decision-making device in the above embodiment, the specific manner in which each module performs operations and the beneficial effects possessed have been described in detail in the aforementioned method embodiment and will not be repeated here.

[0173] The embodiment of the present application also provides a rule-based decision-making device. Figure 7 A schematic diagram of the structure of another rule-based decision-making device provided in an embodiment of the present application is shown. The rule-based decision-making device may include at least one processor 321, a communication bus 322, a memory 323 and at least one communication interface 324.

[0174] The processor 321 may be a central processing unit (CPU), a microprocessing unit, an ASIC, or one or more integrated circuits for controlling the execution of the program of the present application.

[0175] The communication bus 322 may include a pathway for transmitting information between the above-mentioned components.

[0176] The communication interface 324 uses any transceiver-like device for communicating with other devices or communication networks, such as electronic devices, Ethernet, radio access networks (RAN), wireless local area networks (WLAN), etc.

[0177] The memory 323 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, 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 an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processing unit through a bus. The memory may also be integrated with the processing unit.

[0178] The memory 323 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 321. The processor 321 is used to execute the application code stored in the memory 323, so as to realize the functions in the method of the present application.

[0179] In a specific implementation, as an embodiment, the processor 321 may include one or more CPUs, such as Figure 7 Processor 0 and processor 1 in.

[0180] In a specific implementation, as an embodiment, the rule-based decision-making device may include multiple processors, such as Figure 7 321 and processor 325 in the embodiment of the present invention. Each of these processors can be a single-CPU processor or a multi-CPU processor. The processor here can refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).

[0181] In a specific implementation, as an embodiment, the rule-based decision-making device may further include an input device 327 and an output device 326. The input device 327 communicates with the output device 326 and may receive user input in a variety of ways. For example, the input device 327 may be a mouse, a keyboard, a touch screen device, or a sensor device. The output device 326 communicates with the processor 321 and may display information in a variety of ways. For example, the output device 326 may be a liquid crystal display (LCD), a light emitting diode (LED) display device, etc.

[0182] Those skilled in the art will understand that Figure 7 The structure shown in the figure does not constitute a limitation on the rule-based decision-making device, and may include more or less components than those shown in the figure, or combine certain components, or adopt a different component arrangement.

[0183] The present application also provides a computer-readable storage medium including instructions, wherein the computer-readable storage medium stores instructions, and when the instructions in the computer-readable storage medium are executed by a processor of a rule-based decision-making device, the rule-based decision-making device can execute the rule-based decision-making method provided in the above-mentioned embodiment. For example, the computer-readable storage medium may be a memory 623 including instructions, and the above instructions may be executed by a processor 621 of the rule-based decision-making device to complete the above method.

[0184] Optionally, the computer-readable storage medium may be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.

[0185] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0186] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A rule-based decision-making method, characterized in that: include: receiving a decision request sent by a terminal, the decision request including a service identifier of a target service, a version identifier of a target program, and an input value of each input parameter of at least one input parameter, the decision request being used to request a decision to be made on the target service, the target service being a service triggered by the target program; Determining a target rule based on the service identifier of the target service and the version identifier of the target program, wherein the target rule includes at least one execution stage, and an execution stage includes at least one execution node; Inputting the input value of each input parameter into the target rule to obtain the target output parameter includes: Inputting the input value of each input parameter into a target rule, and obtaining an output result of each execution stage based on the execution order of the at least one execution stage; the target rule includes a target data dictionary, and the target data dictionary includes parameter names of multiple parameters and original values ​​corresponding to the parameter names of the multiple parameters; Determining an output result of a target execution phase as the target output parameter, wherein the target execution phase is the last one of the at least one execution phase; the target output parameter is used to characterize a decision result of the target business; Sending a decision response to the terminal, wherein the decision response includes the target output parameter; The step of inputting the input value of each input parameter into the target rule and obtaining the output result of each execution stage based on the execution order of the at least one execution stage includes: Executing the target data dictionary to obtain a plurality of parameters and a value of each of the plurality of parameters; Inputting the input value of each input parameter into the target data dictionary; Based on the execution order of the at least one execution phase, obtaining a value of a first input parameter from the target data dictionary, where the first input parameter is an input parameter corresponding to a first execution node, the first execution node is an execution node included in a first execution phase, and the first execution phase is one of the at least one execution phase; Executing the first execution node to obtain an output parameter of the first execution node; The output parameters of each execution node included in the first execution stage are arranged to obtain the output result of the first execution stage.

2. The decision-making method according to claim 1, characterized in that: The determining of the target rule based on the service identifier of the target service and the version identifier of the target program includes: The target rule is determined based on the business identifier of the target business, the version identifier of the target program and the first corresponding relationship, wherein the first corresponding relationship includes multiple rules and preset conditions corresponding to each of the multiple rules, wherein a preset condition includes a business identifier and a version identifier.

3. The decision-making method according to claim 1, characterized in that: The method further comprises: The target data dictionary is updated based on the output parameters of each execution node included in the first execution stage.

4. The decision-making method according to claim 1, characterized in that: The method further comprises: When the target duration is less than or equal to the duration threshold, each execution node included in the first execution stage is processed based on the parallel executor to obtain the output parameters of each execution node included in the first execution stage, and the target duration is the maximum duration for obtaining the target output parameters.

5. The decision-making method according to claim 3, characterized in that: The method further comprises: When the target duration is greater than the duration threshold, determining an execution order of at least one execution node included in the first execution stage; Based on the serial executor and the execution order of the at least one execution node, the at least one execution node is processed to obtain an output parameter of each execution node in the at least one copy of the execution nodes.

6. The decision-making method according to any one of claims 1 to 5, characterized in that: The method further comprises: The at least one execution phase is sorted in descending order of priority to obtain an execution order of the at least one execution phase.

7. A rule-based decision-making device, characterized in that: The rule-based decision-making device includes: a receiving unit, a determining unit, a processing unit and a sending unit; The receiving unit is configured to receive a decision request sent by a terminal, the decision request including a service identifier of a target service, a version identifier of a target program, and an input value of each input parameter of at least one input parameter, the decision request being used to request a decision to be made on the target service, the target service being a service triggered by the target program; The determining unit is configured to determine a target rule based on the service identifier of the target service and the version identifier of the target program, wherein the target rule includes at least one execution stage, and an execution stage includes at least one execution node; The processing unit is configured to input the input value of each input parameter into the target rule to obtain a target output parameter, wherein the target output parameter is used to represent a decision result of the target business; The sending unit is configured to send a decision response to the terminal, wherein the decision response includes the target output parameter; The processing unit is further configured to: input the input value of each input parameter into a target rule, and obtain an output result of each execution stage based on the execution order of the at least one execution stage; the target rule includes a target data dictionary, and the target data dictionary includes parameter names of multiple parameters and original values ​​corresponding to the parameter names of the multiple parameters; determining an output result of a target execution phase as the target output parameter, wherein the target execution phase is the last one of the at least one execution phase; Executing the target data dictionary to obtain a plurality of parameters and a value of each of the plurality of parameters; Inputting the input value of each input parameter into the target data dictionary; Based on the execution order of the at least one execution phase, obtaining a value of a first input parameter from the target data dictionary, where the first input parameter is an input parameter corresponding to a first execution node, the first execution node is an execution node included in a first execution phase, and the first execution phase is one of the at least one execution phase; Executing the first execution node to obtain an output parameter of the first execution node; The output parameters of each execution node included in the first execution stage are arranged to obtain the output result of the first execution stage.

8. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the rule-based decision-making method according to any one of claims 1 to 6.

9. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the rule-based decision-making method according to any one of claims 1 to 6.