Configuration method and device of judgment logic, readable medium, electronic equipment and product

By displaying candidate variable names in the input area and allowing users to select target variable names and logical operators, the problem of cumbersome form editing and difficult-to-understand code editing is solved, achieving efficient and simplified editing of judgment logic expressions.

CN120950561APending Publication Date: 2025-11-14BEIJING YOUZHUJU NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511081012.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-01
Publication Date
2025-11-14

AI Technical Summary

Technical Problem

In existing technologies, the form editing method for business logic is cumbersome, error-prone, and inefficient, while the code editing method requires understanding variable identifiers, which is difficult for users to understand and maintain.

Method used

A method for configuring judgment logic is provided, which allows users to input the name of the judgment variable by displaying an input area, displays candidate variable names in response to variable input operations, and allows selection of the target variable name and input logic operators to construct the target logic expression.

Benefits of technology

It simplifies the editing process of logical expression judgments, reduces the error rate, improves editing efficiency, and eliminates the need to understand variable identifiers, making it easier for users to understand and maintain.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120950561A_ABST
    Figure CN120950561A_ABST
Patent Text Reader

Abstract

The invention discloses a judgment logic configuration method and device, a readable medium, electronic equipment and a product, and the method comprises the steps: displaying a judgment logic configuration page, and displaying an input region which is used for a user to construct a judgment logic expression in a mode of inputting a judgment variable name in the judgment logic configuration page; in response to a variable input operation in the input area, displaying a variable name of a candidate judgment variable corresponding to the variable input operation; in response to a selection operation on a target variable name in the variable names of the candidate judgment variables, displaying the target variable name in the input area; and in response to an input operation of inputting a logic operator and a target judgment parameter in the input region, obtaining a target logic expression comprising the target variable name, the logic relational symbol and the target judgment parameter. A user can construct the judgment logic expression in the mode of inputting the variable name in the input area, operation is easy, errors are not prone to occurring, and the editing efficiency of the judgment logic expression can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and more specifically, to a method, apparatus, readable medium, electronic device, and product for configuring judgment logic. Background Technology

[0002] Setting up branches in business logic is a crucial step in implementing complex functions and flexible processing. In related technologies, form editing is typically used when setting the conditional logic expressions for business branches.

[0003] However, the form editing method requires frequent switching between form editing boxes, which is cumbersome and repetitive, making it prone to errors and inefficient. Summary of the Invention

[0004] This summary section is provided to briefly introduce the concepts, which will be described in detail in the detailed description section below. This summary section is not intended to identify key or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0005] Firstly, this disclosure provides a method for configuring judgment logic, the method comprising: The judgment logic configuration page is displayed, and the judgment logic configuration page displays an input area, which is used for users to construct judgment logic expressions by inputting judgment variable names; In response to a variable input operation in the input area, the variable name of the candidate judgment variable corresponding to the variable input operation is displayed; In response to the selection operation of the target variable name among the variable names of the candidate judgment variables, the target variable name is displayed in the input area; In response to an input operation that inputs a logical operator and a target decision parameter into the input area, a target logical expression is obtained, including the target variable name, the logical relation, and the target decision parameter.

[0006] Secondly, this disclosure provides a configuration device for judgment logic, the configuration device for judgment logic comprising: The display module is used to display the judgment logic configuration page. The judgment logic configuration page displays an input area, which is used for users to construct judgment logic expressions by inputting judgment variable names. The first input module is used to respond to a variable input operation in the input area and display the variable name of the candidate judgment variable corresponding to the variable input operation; The selection module is used to display the target variable name in the input area in response to the selection operation of the target variable name among the variable names of the candidate judgment variables; The second input module is used to respond to an input operation in which a logical operator and a target judgment parameter are input in the input area to obtain a target logical expression including the target variable name, the logical relation, and the target judgment parameter.

[0007] Thirdly, this disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of the method described in the first aspect.

[0008] Fourthly, this disclosure provides an electronic device, comprising: A storage device on which computer programs are stored; A processing device for executing the computer program in the storage device to implement the steps of the method in the first aspect.

[0009] Fifthly, this disclosure provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the method described in the first aspect.

[0010] The above technical solution, in response to variable input operations in the input area of ​​the judgment logic editing page, can display the variable names of candidate judgment variables corresponding to the variable input operation. Then, through selection and input operations, a target logical expression is obtained, including the selected target variable name, the input logical relation, and the target judgment parameters. Using this method, users can construct judgment logic expressions by inputting judgment variable names in the input area. Compared to form editing, this method eliminates the need for frequent switching between form editing boxes, making it simpler, less prone to errors, and improving the efficiency of editing judgment logic expressions. Furthermore, displaying candidate judgment variable names in response to user operations allows users to quickly fill in the required judgment variables for the judgment logic expression, further improving the efficiency of editing judgment logic expressions.

[0011] Other features and advantages of this disclosure will be described in detail in the following detailed description section. Attached Figure Description

[0012] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale. In the drawings: Figure 1This is a schematic diagram illustrating a business branch according to an exemplary embodiment of the present disclosure; Figure 2 This is a schematic diagram illustrating form editing and code editing according to an exemplary embodiment of this disclosure; Figure 3 This is a flowchart illustrating a configuration method for a judgment logic according to an exemplary embodiment of the present disclosure; Figure 4 This is a schematic diagram illustrating a judgment logic configuration page according to an exemplary embodiment of the present disclosure; Figure 5 This is a schematic diagram illustrating a logic code according to an exemplary embodiment of the present disclosure; Figure 6 This is a schematic diagram illustrating a form-like display according to an exemplary embodiment of the present disclosure; Figure 7 This is a schematic diagram showing a code form according to an exemplary embodiment of the present disclosure; Figure 8 This is a structural block diagram of a configuration device for a judgment logic according to an exemplary embodiment of the present disclosure; Figure 9 This is a schematic diagram of the structure of an electronic device according to an exemplary embodiment of the present disclosure. Detailed Implementation

[0013] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.

[0014] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0015] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.

[0016] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0017] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0018] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0019] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0020] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.

[0021] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0022] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.

[0023] Meanwhile, it is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.

[0024] like Figure 1 As shown, a certain business node has multiple business branches, and each business branch has corresponding judgment logic. Then, different business branches are executed according to the corresponding judgment logic. Figure 1The “XX<10”, “XX=10” and “XX>10” shown are expressions set by the user for the logical judgment of the corresponding business branch, where XX represents the variable name of the judgment variable.

[0025] In related technologies, setting the conditional logic expressions for business branches typically employs two methods: form editing and code editing. For example... Figure 2 The form editing method shown on the left allows you to directly combine input into each conditional expression. For example, the conditional variable on the left, the operator in the middle, and the variable value on the right are used to set the conditional expression. You can use dropdown selection boxes or input boxes, depending on the actual business scenario. Or, as shown... Figure 2 The code editing method shown on the right allows you to directly write logical expressions using the code editor. Here, "001" represents the variable identifier corresponding to the logical variable "XX" in the logical code.

[0026] However, form editing requires users to frequently switch between edit boxes for conditional variables, operators, and variable values. If multiple conditional logics need to be set, this requires multiple operations, making the process cumbersome. Furthermore, the form content is often extensive and not very intuitive, making it inconvenient for users to view. While code editing eliminates the need to switch between form selections, users need to understand the variable identifiers corresponding to the conditional variables in the logic code. If users don't know this, they need to look it up, which is error-prone and inefficient. Additionally, displaying partial information such as variable types and names when showing conditional expressions makes it difficult for users to understand and maintain.

[0027] In view of the above, embodiments of this disclosure provide a configuration method, apparatus, readable medium, electronic device, and product for determining logic, in order to solve the aforementioned technical problems.

[0028] The embodiments of this disclosure will be further explained below with reference to the accompanying drawings.

[0029] Figure 3 This is a flowchart illustrating a configuration method for judgment logic according to an exemplary embodiment of this disclosure, with reference to... Figure 3 The configuration method for this judgment logic may include the following steps: S301: Display the judgment logic configuration page. The judgment logic configuration page displays an input area, which is used by the user to construct the judgment logic expression by entering the judgment variable name.

[0030] For example, such as Figure 4 As shown, the judgment logic configuration page displays an input area 41, which allows users to construct judgment logic expressions by inputting the names of judgment variables, thereby quickly editing the judgment logic expressions within the input area.

[0031] S302: In response to a variable input operation in the input area, display the variable name of the candidate judgment variable corresponding to the variable input operation.

[0032] For example, such as Figure 4 As shown, in response to a variable input operation in the input area, the variable name of the candidate judgment variable is displayed in the floating layer 42. The specific display method can be set according to the requirements, and this disclosure does not limit it.

[0033] S303: In response to the selection operation of the target variable name among the variable names of the candidate judgment variables, display the target variable name in the input area.

[0034] For example, users can... Figure 4 In the floating layer 42 shown, the variable name of the desired judgment variable is selected and automatically filled into the input area, eliminating the need for the user to manually input the judgment variable and improving the efficiency of editing the judgment logic expression. Of course, the user can also manually input the variable name of the judgment variable, and this disclosure does not restrict this.

[0035] S304: In response to an input operation in which a logical operator and a target decision parameter are entered into the input area, a target logical expression is obtained, including the target variable name, logical relation, and target decision parameter.

[0036] For example, continue to refer to Figure 4 After determining the variable name, the user can continue to input logical operators such as "<", "=", ">" and target judgment parameters to obtain the final target logical expression. The target judgment parameters can be constant values ​​or variables. If they are variables, the system can also display candidate variable names for the user to choose from in response to user input; this disclosure does not impose any restrictions. This results in a target logical expression that includes the target variable name, logical operators, and target judgment parameters.

[0037] In real-world business scenarios, when the logical expression set for a certain business branch is satisfied, it means that the execution conditions of that business branch are met, and the business process of that business branch can be executed.

[0038] Using the above method, users can construct judgment logic expressions by entering the names of the judgment variables in the input area. Compared to form editing, this method eliminates the need to frequently switch between form editing boxes, making it simpler, less prone to errors, and improving the efficiency of editing judgment logic expressions. Furthermore, it can respond to user actions by displaying the names of candidate judgment variables for the user to select, thus helping the user quickly fill in the required judgment variables for the judgment logic expression, further improving the efficiency of editing judgment logic expressions.

[0039] In addition, compared to code editing, the above method does not require users to understand the variable identifiers of the judgment variables, making it easier for users to understand, less likely to cause errors in the judgment logic expression, and also improving the editing efficiency of the judgment logic expression.

[0040] In one possible manner, in response to a variable input operation in the input area, displaying the variable name of the candidate judgment variable corresponding to the variable input operation includes: in response to an input operation of inputting a preset symbol in the input area, displaying the variable name of a preset first judgment variable, where the preset symbol is the starting symbol of the judgment variable name entered by the user. In response to a selection operation of a target variable name among the candidate judgment variable names, displaying the target variable name in the input area includes: in response to a selection operation of a target variable name among the variable names of the first judgment variable, displaying the target variable name in the input area.

[0041] In this implementation, the preset symbol can be as follows: Figure 4 The "@" symbol indicates that the user is about to enter the name of the variable to be evaluated. This can be set according to needs, and this disclosure does not impose any restrictions. It should be noted that if the user manually enters the name of the variable to be evaluated, they need to manually enter the end symbol; that is, the content between the start and end symbols is the name of the variable to be evaluated. If the user selects the variable name from the candidate variable names, the end symbol is automatically substituted. The end symbol can be a space or other symbol, and this disclosure does not impose any restrictions.

[0042] For example, if the user inputs a preset symbol, the name of the preset first judgment variable is displayed for the user to select. The first judgment variable can be any judgment variable involved in the actual business scenario, a judgment variable that the user frequently uses in the past, or a judgment variable related to the currently set business node. It can be set according to needs, and this disclosure does not impose any restrictions on it. Judgment variables can be quickly filled in without the user having to manually input them, improving the efficiency of editing judgment logic expressions.

[0043] In possible ways, in response to a variable input operation in the input area, displaying the variable name of the candidate judgment variable corresponding to the variable input operation includes: in response to an input operation of target content after entering a preset symbol in the input area, displaying the variable name of the second judgment variable associated with the target content, where the preset symbol is the starting symbol of the judgment variable entered by the user. In response to a selection operation of the target variable name among the variable names of the candidate judgment variables, displaying the target variable name in the input area includes: in response to a selection operation of the target variable name among the variable names of the second judgment variable, displaying the target variable name in the input area.

[0044] For example, if a user inputs a preset symbol and continues inputting, the system displays the names of the judgment variables associated with the target content for the user to select from. Furthermore, the names of the associated judgment variables are dynamically updated as the user's input changes. For instance, if the user inputs "@X", the displayed names of the judgment variables associated with "X" include "X1", "XX2", and "XXX3". If the user continues inputting, changing from "@X" to "@XX", the displayed names of the judgment variables associated with "XX" include "XX2" and "XXX3". The specific names can be determined based on the actual business scenario, and this disclosure does not impose any restrictions on this.

[0045] Therefore, users no longer need to manually enter the full name of the variable. The associated variable names can be displayed for users to choose from based on partial variable names. In other words, the selection of judgment variables is realized through text input, which helps users quickly fill in the judgment variables and improves the editing efficiency of judgment logic expressions.

[0046] In one possible approach, the configuration method for the judgment logic further includes: in response to the determination operation of the target logical expression, determining the variable identifier of the third judgment variable based on the variable name of the third judgment variable in the target logical expression; querying the variable information of the third judgment variable based on the variable identifier of the third judgment variable; parsing the target logical expression and the variable information of the third judgment variable, and filling the parsed content into a preset code template to obtain the target code corresponding to the target logical expression; and displaying the target logical expression in the form of a form on the judgment logic configuration page based on the target code, wherein, when the target logical expression includes multiple logical sub-expressions, identifiers for representing logical relationships are displayed between the multiple logical sub-expressions.

[0047] In this embodiment, if it is necessary to input multiple logical sub-expressions to form a single logical expression, logical operators can be entered between the logical sub-expressions to represent the logical relationship between them. For example, "&&" represents logical AND, "||" represents logical OR, etc. This disclosure does not impose any restrictions on this.

[0048] For example, in response to the determination operation of the target logical expression, the target logical expression entered by the user in the input area is obtained. Then, according to the correspondence between variable names and variable identifiers, the variable identifier corresponding to the variable name of the judgment variable in the target logical expression can be determined, such as the unique identifier of the variable. Thus, an expression in a code format that the computer can recognize can be obtained, such as converting "XX<10" to "001<10". The specific conversion can be determined according to the actual business scenario, and this disclosure does not impose any restrictions on it.

[0049] Exemplarily, corresponding variable information such as variable type, variable name, etc. can be queried in the database based on the variable identifier. The present disclosure does not limit this. Then, the target logical expression is parsed in combination with the queried variable information, and the parsed content is filled into a preset code template to obtain the target code. For example Figure 5 The code in json format shown, and the code format can be determined according to requirements. The present disclosure does not limit this. Thus, the logical code corresponding to the target logical expression that can be recognized by the computer is obtained, so as to perform page display according to the logical code subsequently, or execute the logical code in a business scenario to implement the corresponding judgment logic.

[0050] Exemplarily, such as Figure 6 shown, the target logical expression can be displayed in the form of a form on the judgment logic configuration page based on the target code, meeting the user's need to view the target logical expression in the form of a form, retaining the structure of the judgment logic, being simple and intuitive. And when the target logical expression includes multiple logical sub-expressions, identifiers for representing logical relationships are displayed between the multiple logical sub-expressions, such as Figure 6 the identifier 61 in, for example, logical AND can be represented by the Chinese character "and", or by the English word "AND", or by the operator "&&", or other forms of identifiers. The present disclosure does not limit this, so as to intuitively display the logical relationships between different logical sub-expressions to the user.

[0051] In a possible way, the configuration method of the judgment logic further includes: in response to a hovering operation on the fourth judgment variable in the target logical expression displayed in the form of a form, displaying the variable information of the fourth judgment variable around the fourth judgment variable.

[0052] Exemplarily, continue to refer to Figure 6 , in response to a hovering operation on the judgment variable A in the target logical expression displayed in the form of a form, displaying the variable information of the judgment variable A around the judgment variable A, such as the variable name, variable identifier, variable type of the judgment variable A, etc. The present disclosure does not limit this. So as to display more detailed information related to the judgment variable while keeping the page simple.

[0053] In a possible way, the configuration method of the judgment logic further includes: in response to a triggering operation on the target logical expression displayed in the form of a form, displaying an editing area for editing the target logical expression in the form of a form; in response to an editing operation on the target logical expression in the editing area, obtaining a new logical expression corresponding to the editing operation.

[0054] Exemplarily, such as Figure 6As shown, a logical subexpression that is to be edited can be triggered to enter the form editing mode. The judgment variables, operators, and judgment parameters of that logical subexpression then become operable edit boxes, allowing the user to edit the individual logical subexpression. This disclosure does not limit the ability to trigger a single logical subexpression to enter form editing mode.

[0055] Alternatively, the page can display editing controls for the entire form and / or editing controls for individual logical sub-expressions, making it easier for users to trigger the corresponding controls to perform editing operations according to their editing needs.

[0056] This allows it to be compatible with form editing methods and flexibly meet the editing needs of different users.

[0057] In one possible manner, the judgment logic configuration page displays both code-mode controls and form-mode controls. The configuration method for the judgment logic further includes: in response to a trigger operation on the code-mode control, displaying the target logical expression in code form on the judgment logic configuration page, wherein the code form is used to display the target logical expression according to the input form corresponding to the target logical expression; and in response to a trigger operation on the form-mode control, displaying the target logical expression in form form on the judgment logic configuration page, wherein the form form is used to display identifiers representing logical relationships between multiple logical sub-expressions when the target logical expression includes multiple logical sub-expressions.

[0058] For example, such as Figure 7 As shown, the decision logic configuration page displays both code-mode and form-mode controls. Triggering the code-mode control displays the target logical expression in the input format corresponding to the target logical expression; for example, inputting "XX>10" displays "XX>10," which is a user-recognizable code format with variable names. Triggering the form-mode control displays... Figure 6 The target logical expression is shown in form. Correspondingly, different editing modes can be supported in different modes, thus flexibly meeting users' various viewing and editing needs.

[0059] It should be noted that the code mode in this disclosure is different from the code editing method in related technologies. This disclosure supports constructing judgment logic expressions by inputting the name of the judgment variable, while related technologies require inputting the variable identifier of the judgment variable that the computer can recognize to construct the judgment logic expression. Therefore, the code mode provided by this disclosure is easier for users to understand and operate, and has high editing efficiency.

[0060] Additionally, in code mode, it also supports displaying a message such as `<script>` in response to hovering over the conditional variable. Figure 6The variable information shown is not limited in this disclosure. This is to display more detailed information related to the judgment variables while keeping the page concise and simple.

[0061] Of course, two display modes can be supported simultaneously, such as displaying a code-mode input area at the top of the page and a form-style logical expression at the bottom. This disclosure does not impose any restrictions on this.

[0062] Based on the same concept, embodiments of this disclosure provide a configuration device for judgment logic, such as... Figure 8 As shown, the configuration device 800 for the judgment logic includes: Display module 801 is used to display a judgment logic configuration page. The judgment logic configuration page displays an input area, which is used for users to construct judgment logic expressions by inputting judgment variable names. The first input module 802 is used to display the variable name of the candidate judgment variable corresponding to the variable input operation in response to the variable input operation in the input area; Selection module 803 is used to display the target variable name in the input area in response to the selection operation of the target variable name among the variable names of the candidate judgment variables; The second input module 804 is used to respond to an input operation in which a logical operator and a target judgment parameter are input in the input area to obtain a target logical expression including the target variable name, the logical relation, and the target judgment parameter.

[0063] Optionally, the first input module 802 is used for: In response to an input operation in which a preset symbol is entered in the input area, the variable name of a preset first judgment variable is displayed, wherein the preset symbol is the starting symbol of the judgment variable name entered by the user; The selection module 803 is used for: In response to the selection operation of the target variable name from the variable names of the first judgment variable, the target variable name is displayed in the input area.

[0064] Optionally, the first input module 802 is used for: In response to the input operation of the target content after the preset symbol is entered in the input area, the variable name of the second judgment variable associated with the target content is displayed, wherein the preset symbol is the starting symbol of the judgment variable entered by the user; The selection module 803 is used for: In response to the selection operation of the target variable name in the variable names of the second judgment variable, the target variable name is displayed in the input area.

[0065] Optionally, the configuration device 800 for the judgment logic further includes a determining module, the determining module being used for: In response to the determination operation of the target logical expression, the variable identifier of the third judgment variable is determined based on the variable name of the third judgment variable in the target logical expression; Based on the variable identifier of the third judgment variable, query the variable information of the third judgment variable; The variable information of the target logical expression and the third judgment variable is parsed, and the parsed content is filled into a preset code template to obtain the target code corresponding to the target logical expression; Based on the target code, the target logic expression is displayed in the form of a form on the judgment logic configuration page. When the target logic expression includes multiple logical sub-expressions, identifiers representing logical relationships are displayed between the multiple logical sub-expressions.

[0066] Optionally, the configuration device 800 for the judgment logic further includes a hovering module, which is used for: In response to a hover operation on the fourth judgment variable in the target logical expression displayed in the form, variable information of the fourth judgment variable is displayed around the fourth judgment variable.

[0067] Optionally, the configuration device 800 for the judgment logic further includes a form editing module, which is used for: In response to a triggering operation on the target logical expression displayed in the form, an editing area for editing the target logical expression in the form is displayed; In response to an editing operation on the target logical expression in the editing area, a new logical expression corresponding to the editing operation is obtained.

[0068] Optionally, the judgment logic configuration page displays code mode controls and form mode controls, and the judgment logic configuration device 800 further includes a display submodule, which is used for: In response to a trigger operation on the code mode control, the target logic expression is displayed in code form on the judgment logic configuration page, wherein the code form is used to display the target logic expression according to the input form corresponding to the target logic expression; In response to a trigger operation on the form mode control, the target logical expression is displayed in form form on the judgment logic configuration page, wherein the form form is used to display identifiers representing logical relationships among the multiple logical sub-expressions when the target logical expression includes multiple logical sub-expressions.

[0069] Based on the same concept, embodiments of this disclosure also provide a computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of the configuration method for the above-described judgment logic.

[0070] Based on the same concept, this disclosure also provides an electronic device that may include: A storage device on which computer programs are stored; A processing device is configured to execute the computer program in the storage device to implement the steps of the configuration method for the above-described judgment logic.

[0071] Based on the same concept, this disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the configuration method for the above-described judgment logic.

[0072] The following is for reference. Figure 9 The diagram illustrates a structural schematic of an electronic device 900 suitable for implementing embodiments of the present disclosure. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 9 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0073] like Figure 9 As shown, electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 901, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 902 or a program loaded from storage device 908 into random access memory (RAM) 903. RAM 903 also stores various programs and data required for the operation of electronic device 900. Processing device 901, ROM 902, and RAM 903 are interconnected via bus 904. Input / output (I / O) interface 905 is also connected to bus 904.

[0074] Typically, the following devices can be connected to I / O interface 905: input devices 906 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 907 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 908 including, for example, magnetic tapes, hard disks, etc.; and communication devices 909. Communication device 909 allows electronic device 900 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 9An electronic device 900 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

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

[0076] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0077] In some implementations, communication can be conducted using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol), and can be interconnected with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.

[0078] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0079] The aforementioned computer-readable medium carries one or more programs. When the electronic device executes the aforementioned one or more programs, the electronic device causes the following: It displays a judgment logic configuration page, which includes an input area for a user to construct a judgment logic expression by inputting judgment variable names; in response to a variable input operation in the input area, it displays the variable names of candidate judgment variables corresponding to the variable input operation; in response to a selection operation of a target variable name among the candidate judgment variable names, it displays the target variable name in the input area; and in response to an input operation of inputting a logical operator and a target judgment parameter in the input area, it obtains a target logical expression including the target variable name, the logical relation, and the target judgment parameter.

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

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

[0082] The modules described in the embodiments of this disclosure can be implemented in software or hardware. The names of the modules are not, in some cases, intended to limit the functionality of the module itself.

[0083] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.

[0084] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0085] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0086] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0087] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative forms of implementing the claims. Regarding the apparatus in the above embodiments, the specific manner in which the various modules perform their operations has been described in detail in the embodiments relating to the method, and will not be elaborated upon here.

Claims

1. A method for configuring judgment logic, characterized in that, The configuration method for the judgment logic includes: The judgment logic configuration page is displayed. The judgment logic configuration page has an input area, which is used by the user to construct the judgment logic expression by inputting the judgment variable name. In response to a variable input operation in the input area, the variable name of the candidate judgment variable corresponding to the variable input operation is displayed; In response to the selection operation of the target variable name among the variable names of the candidate judgment variables, the target variable name is displayed in the input area; In response to an input operation that inputs a logical operator and a target decision parameter into the input area, a target logical expression is obtained, including the target variable name, the logical relation, and the target decision parameter.

2. The configuration method for the judgment logic according to claim 1, characterized in that, The variable name of the candidate judgment variable corresponding to the variable input operation, in response to a variable input operation in the input area, includes: In response to an input operation in which a preset symbol is entered in the input area, the variable name of a preset first judgment variable is displayed, wherein the preset symbol is the starting symbol of the judgment variable name entered by the user; The step of displaying the target variable name in the input area in response to the selection operation of the target variable name among the variable names of the candidate judgment variables includes: In response to the selection operation of the target variable name from the variable names of the first judgment variable, the target variable name is displayed in the input area.

3. The configuration method for the judgment logic according to claim 1, characterized in that, The variable name of the candidate judgment variable corresponding to the variable input operation, in response to a variable input operation in the input area, includes: In response to the input operation of the target content after the preset symbol is entered in the input area, the variable name of the second judgment variable associated with the target content is displayed, wherein the preset symbol is the starting symbol of the judgment variable entered by the user; The step of displaying the target variable name in the input area in response to the selection operation of the target variable name among the variable names of the candidate judgment variables includes: In response to the selection operation of the target variable name in the variable names of the second judgment variable, the target variable name is displayed in the input area.

4. The configuration method for the judgment logic according to any one of claims 1-3, characterized in that, The configuration method for the judgment logic also includes: In response to the determination operation of the target logical expression, the variable identifier of the third judgment variable is determined based on the variable name of the third judgment variable in the target logical expression; Based on the variable identifier of the third judgment variable, query the variable information of the third judgment variable; The variable information of the target logical expression and the third judgment variable is parsed, and the parsed content is filled into a preset code template to obtain the target code corresponding to the target logical expression; Based on the target code, the target logic expression is displayed in the form of a form on the judgment logic configuration page. When the target logic expression includes multiple logical sub-expressions, identifiers representing logical relationships are displayed between the multiple logical sub-expressions.

5. The configuration method for the judgment logic according to claim 4, characterized in that, The configuration method for the judgment logic also includes: In response to a hover operation on the fourth judgment variable in the target logical expression displayed in the form, variable information of the fourth judgment variable is displayed around the fourth judgment variable.

6. The configuration method for the judgment logic according to claim 4, characterized in that, The configuration method for the judgment logic also includes: In response to a triggering operation on the target logical expression displayed in the form, an editing area for editing the target logical expression in the form is displayed; In response to an editing operation on the target logical expression in the editing area, a new logical expression corresponding to the editing operation is obtained.

7. The configuration method for the judgment logic according to any one of claims 1-3, characterized in that, The judgment logic configuration page displays code mode controls and form mode controls, and the configuration method for the judgment logic further includes: In response to a trigger operation on the code mode control, the target logic expression is displayed in code form on the judgment logic configuration page, wherein the code form is used to display the target logic expression according to the input form corresponding to the target logic expression; In response to a trigger operation on the form mode control, the target logical expression is displayed in form form on the judgment logic configuration page, wherein the form form is used to display identifiers representing logical relationships among the multiple logical sub-expressions when the target logical expression includes multiple logical sub-expressions.

8. A configuration device for judgment logic, characterized in that, The configuration device for the judgment logic includes: The display module is used to display the judgment logic configuration page. The judgment logic configuration page displays an input area, which is used for users to construct judgment logic expressions by inputting judgment variable names. The first input module is used to respond to a variable input operation in the input area and display the variable name of the candidate judgment variable corresponding to the variable input operation; The selection module is used to display the target variable name in the input area in response to the selection operation of the target variable name among the variable names of the candidate judgment variables; The second input module is used to respond to an input operation in which a logical operator and a target judgment parameter are input in the input area to obtain a target logical expression including the target variable name, the logical relation, and the target judgment parameter.

9. A computer-readable medium having a computer program stored thereon, characterized in that, When executed by a processing device, the computer program performs the steps of the method according to any one of claims 1-7.

10. An electronic device, characterized in that, include: A storage device on which computer programs are stored; A processing device for executing the computer program in the storage device to implement the steps of the method according to any one of claims 1-7.

11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1-7.