Initialization method and system of multi-dimensional configuration condition grading structure
By automatically identifying and mapping the tiered status of configuration conditions, a multi-dimensional tiered structure is generated, which solves the problems of cumbersome operation and inconsistent data in the existing technology, realizes intelligent tiered structure generation, and improves configuration efficiency and data processing capabilities.
Patent Information
- Application Number
- CN202511323880.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-17
- Publication Date
- 2026-01-23
- Estimated Expiration
- 2045-09-17
AI Technical Summary
Existing software systems lack automatic identification of tier status when configuring rules with multiple conditions, resulting in cumbersome and error-prone operations. Furthermore, they cannot generate complete tier structures, and the user interface lacks dynamic responsiveness, affecting configuration efficiency and data consistency.
By automatically recognizing the tier status of configuration conditions, performing structured mapping and interface response, and generating a multi-dimensional tier structure, including dynamically hiding input controls of unused dimensions, extracting target values, or generating Cartesian product matrices, intelligent tier structure generation is achieved.
It improves the level of automation and data processing capabilities in multi-condition combination configuration scenarios, and significantly improves user operation efficiency and the integrity and consistency of configuration structure.
Smart Images

Figure CN120832166B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of application software business rule automation, in particular to a multi-dimensional configuration condition grading structure initialization method and system. BACKGROUND
[0002] The statements in this section merely provide background information related to the present disclosure and do not necessarily constitute the prior art.
[0003] With the wide application of enterprise information systems, rebate configuration functions, as common business rules of enterprises, have been widely integrated into business systems such as ERP and supply chain management. In actual application, such configurations usually involve multiple statistical dimensions, such as sales, customer quantity, order quantity, etc., and often need to be combined with grading intervals and target values for combined judgment.
[0004] In the existing software system, the following technical problems exist in the configuration process: first, when the user needs to set multi-condition combination rules, there is a lack of automatic recognition ability of grading state, and the corresponding structured data cannot be generated according to whether the condition is graded, resulting in the user having to manually input all combination positions one by one, which is tedious and prone to errors; second, for ungraded conditions (such as only setting target values), the system cannot include them in the initialization process of the grading structure, resulting in incomplete configuration structure; third, when neither of the two conditions is graded, the system still allows the configuration to be saved, but the generated "point-to-point" structure does not have hierarchical division, causing subsequent processing logic to be abnormal; finally, the user interface lacks a dynamic response mechanism, and even if only one condition is configured, the input control of the other dimension is still displayed, causing interface redundancy and operation confusion.
[0005] Although some systems implement subsequent amount calculation functions, their input relies on manually configured grading structures, and the front-end modeling link is still in an inefficient and unstructured state, making it difficult to meet the requirements of enterprises for rule configuration efficiency and data consistency. SUMMARY
[0006] To solve the above problems, the present disclosure proposes a multi-dimensional configuration condition grading structure initialization method and system, which automatically analyzes the grading state of one or two selected conditions when configuring strategy type rules, and executes corresponding structured initialization logic according to the state combination, thereby realizing intelligent generation of multi-dimensional grading structure through automatic recognition of input state, execution of structure mapping and interface response, solving the technical problems of relying on manual work, low efficiency and inconsistent structure in the existing configuration process, and improving the automation level and data processing capability in the multi-condition combination configuration scenario.
[0007] According to some embodiments, the present disclosure adopts the following technical solutions:
[0008] An initialization method for a multi-dimensional configuration condition tier structure includes:
[0009] Obtain user instructions and initiate the rule configuration process;
[0010] After the rule configuration is started, select one or more configuration conditions based on statistical dimensions, divide the initialization mode based on the configuration conditions, identify the tiered state of each condition configuration in each initialization mode, and execute the corresponding structured mapping and interface response process according to the state combination to generate a multi-dimensional tiered structure.
[0011] The specific content of the structured mapping and interface response process based on the state combination includes: when only one graded condition is configured, its grade ranges are mapped to the corresponding dimensions, and the input controls of unused dimensions are dynamically hidden; when the configured condition is not graded, its set target value is extracted as the matching value of the condition; when multiple conditions are configured, if none of the conditions are graded, a validation error is returned; if there are graded conditions and ungraded conditions, the intervals of the graded conditions and the target values of the ungraded conditions are mapped to a combined structure; if all conditions are graded, the Cartesian product matrix of each grade range is generated.
[0012] According to some embodiments, the present disclosure adopts the following technical solutions:
[0013] An initialization system for a multi-dimensional configuration condition tiering structure includes:
[0014] The startup module is used to obtain user commands and start the rule configuration process;
[0015] The rule configuration initialization module is used to select one or more configuration conditions based on statistical dimensions after the rule configuration is started, divide the initialization mode based on the configuration conditions, identify the tiered state of each condition configuration in each initialization mode, and execute the corresponding structured mapping and interface response process according to the state combination to generate a multi-dimensional tiered structure.
[0016] The specific content of the structured mapping and interface response process based on the state combination includes: when only one graded condition is configured, its grade ranges are mapped to the corresponding dimensions, and the input controls of unused dimensions are dynamically hidden; when the configured condition is not graded, its set target value is extracted as the matching value of the condition; when multiple conditions are configured, if none of the conditions are graded, a validation error is returned; if there are graded conditions and ungraded conditions, the intervals of the graded conditions and the target values of the ungraded conditions are mapped to a combined structure; if all conditions are graded, the Cartesian product matrix of each grade range is generated.
[0017] According to some embodiments, the present disclosure adopts the following technical solutions:
[0018] An electronic device includes a processor, a memory, and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory to cause the electronic device to execute an initialization method for implementing a multi-dimensional configuration condition grading structure.
[0019] Compared with the prior art, the beneficial effects of this disclosure are as follows:
[0020] This disclosure discloses an initialization method for a multi-dimensional configuration condition tiered structure. When a user configures policy rules, this method automatically parses the tiered state of one or two selected conditions and executes corresponding structured initialization logic based on the state combination: when only one tiered condition is configured, the system maps its tier ranges to the corresponding dimensions and dynamically hides input controls for unused dimensions; when the condition is not tiered, its set target value is extracted as the matching value for that condition; when two conditions are configured, if neither is tiered, a validation error is returned; if only one is tiered, the tiered condition's interval and the target value of the untiered condition are mapped to a combined structure; if both are tiered, a Cartesian product matrix of each tier range is generated. By automatically recognizing input states, executing structure mapping, and responding to the interface, intelligent generation of multi-dimensional tiered structures is achieved, solving the technical problems of reliance on manual processes, low efficiency, and inconsistent structures in existing configuration processes, and improving the system's automation level and data processing capabilities in multi-condition combination configuration scenarios.
[0021] This disclosure discloses a method for initializing a multi-dimensional configuration conditional tiered structure. After initialization, the generated tiered structure is output to the configuration interface for use by subsequent modules. This disclosure achieves automated construction of the tiered structure through a collaborative mechanism of tiered state recognition, structure mapping, error checking, and dynamic interface control, significantly improving the data processing capabilities and user operation efficiency of enterprise-level application systems in complex rule configuration scenarios. Attached Figure Description
[0022] The accompanying drawings, which form part of this disclosure, are used to provide a further understanding of this disclosure. The illustrative embodiments of this disclosure and their descriptions are used to explain this disclosure and do not constitute an undue limitation of this disclosure.
[0023] Figure 1 This is a flowchart of an initialization method for a multi-dimensional configuration condition grading structure according to an embodiment of the present disclosure. Detailed Implementation
[0024] The present disclosure will be further described below with reference to the accompanying drawings and embodiments.
[0025] It should be noted that the following detailed descriptions are illustrative and intended to provide further explanation of this disclosure. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure pertains.
[0026] It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the exemplary embodiments according to this disclosure. As used herein, the singular form is intended to include the plural form as well, unless the context clearly indicates otherwise. Furthermore, it should be understood that when the terms “comprising” and / or “including” are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.
[0027] Example 1
[0028] One embodiment of this disclosure provides an initialization method for a multi-dimensional configuration condition tier structure, the method steps of which include:
[0029] Step 1: Obtain user instructions and start the rule configuration process;
[0030] Step 2: After the rule configuration is started, select one or more configuration conditions based on statistical dimensions, divide the initialization mode based on the configuration conditions, identify the tiered status of each condition configuration in each initialization mode, and execute the corresponding structured mapping and interface response process according to the status combination to generate a multi-dimensional tiered structure.
[0031] The specific content of the structured mapping and interface response process based on the state combination includes: when only one graded condition is configured, its grade ranges are mapped to the corresponding dimensions, and the input controls of unused dimensions are dynamically hidden; when the configured condition is not graded, its set target value is extracted as the matching value of the condition; when multiple conditions are configured, if none of the conditions are graded, a validation error is returned; if there are graded conditions and ungraded conditions, the intervals of the graded conditions and the target values of the ungraded conditions are mapped to a combined structure; if all conditions are graded, the Cartesian product matrix of each grade range is generated.
[0032] As one embodiment, this disclosure discloses a method for initializing a multi-dimensional configuration condition tiered structure. When a user configures policy rules, for one or two selected conditions, the method automatically parses their tiered states and executes corresponding structured mapping and interface response processes based on the state combinations to generate a multi-dimensional tiered structure. The specific implementation process is as follows:
[0033] Step 1: Obtain user instructions and start the rule configuration process;
[0034] Specifically, the user inputs the startup rule configuration process command through the control interface, and the system starts the rule configuration process after receiving the startup rule configuration process command.
[0035] Step 2: After the rule configuration is started, select one or more configuration conditions based on statistical dimensions, divide the initialization mode based on the configuration conditions, identify the tiered status of each condition configuration in each initialization mode, and execute the corresponding structured mapping and interface response process according to the status combination to generate a multi-dimensional tiered structure.
[0036] Specifically, after initiating the rule configuration process, it supports selecting one or more configuration conditions based on statistical dimensions. If only one configuration condition is selected, it enters single-dimensional initialization mode; if two configuration conditions are selected, it enters multi-dimensional initialization mode. Upon receiving a rule configuration request, it identifies the mode and tier status of each condition configuration and executes the corresponding structured mapping and interface response process based on the status combination. Each configuration condition can be configured as either "tiered" or "untiered." Upon receiving a configuration request, the following processing steps are executed:
[0037] (1) If only one configuration condition is selected, the system enters the single-dimensional initialization mode: when the configuration condition is “graded”, the lower limit and upper limit of each grade are mapped to the first dimension field in the graded structure, and the display control of the second dimension is dynamically hidden in the user interface; when the configuration condition is “not graded”, the system extracts the target value set and hides all graded display controls of the first and second dimensions, indicating that the condition does not need to be graded.
[0038] (2) If multiple configuration conditions are selected, the system enters a multi-dimensional initialization mode and generates a tiered structure according to the following settings:
[0039] (a) If multiple configuration conditions are not tiered, an error message is generated indicating that "at least one configuration condition needs to be tiered", and the initialization process is terminated;
[0040] (b) If there are configuration conditions that have been classified and configuration conditions that have not been classified, map the range of each classified configuration condition to the corresponding dimension, and assign the target value of the unclassified configuration condition to the lower limit and upper limit of the range of another dimension at the same time to form an equal value interval, and generate a set of classified records containing intervals and equal value combinations.
[0041] (c) If all configuration conditions have been tiered, assign the tier intervals of each configuration condition to the corresponding dimension, and generate a Cartesian product combination of all tiers to form a complete two-dimensional tiered matrix. For example, assign the tier intervals of the first configuration condition to the first dimension, assign the tier intervals of the second configuration condition to the second dimension, and generate a Cartesian product combination of all tiers to form a complete two-dimensional tiered matrix.
[0042] Step 3: After the initialization configuration process is completed, the generated file structure will be output to the configuration interface and displayed for use by subsequent modules.
[0043] This disclosure achieves automated construction of hierarchical structures through a collaborative mechanism of state recognition, structure mapping, error checking, and dynamic interface control, significantly improving the data processing capabilities and user operation efficiency of enterprise-level application systems in complex rule configuration scenarios.
[0044] Example 2
[0045] One embodiment of this disclosure provides an initialization method for a multi-dimensional configuration condition tiered structure. Upon receiving a strategy tiered structure initialization request initiated by a user through an Enterprise Resource Planning (ERP) platform, the method automatically obtains the two configuration conditions selected by the user and their corresponding attribute data, and then enters a multi-dimensional initialization mode. When two configuration conditions based on statistical dimensions are supported, the first configuration condition is configured as "tiered," and its attribute data contains multiple consecutive numerical ranges, each with a clearly defined lower and upper limit; the second configuration condition is configured as "untiered," and its attribute data contains only one target value. This disclosure's initialization method based on a multi-dimensional configuration condition tiered structure executes the following automated processing flow:
[0046] (1) Parse the configuration condition attributes of the two acquired conditions and identify their tiered status combination type. After judgment, the first configuration condition is "tiered" and the second configuration condition is "not tiered". Based on this, determine to execute the initialization logic of the "single tier - single target" combination mode and enter the corresponding processing branch.
[0047] (2) Read the range data of each level of the first configuration condition, and assign its lower limit and upper limit to the range field of the first dimension in the graded structure data model in sequence to generate multiple independent range records. For the second configuration condition, extract its target value and write it into the lower limit field and upper limit field of the second dimension in the graded structure data model at the same time to form an equal value range record with equal upper and lower limits.
[0048] (3) Combine each interval record of the first configuration condition with the equivalent interval of the second condition to generate a set of multi-dimensional graded structure records, and write this structure into the intermediate data table of the strategy configuration. Each record contains range field values of two dimensions, which constitute the basic data unit for subsequent processing.
[0049] (4) After initialization, the generated file structure is pushed to the front-end configuration interface for display. At the same time, the visibility of the interface controls is dynamically adjusted according to the current configuration status to ensure that users can continue to configure parameters based on the structured data.
[0050] Throughout the entire process, the entire chain of hierarchical structure construction is automated by automatically parsing the input state, performing field mapping, generating combined structures, and controlling interface responses. This eliminates the need for manual input of each item or manual combination of intervals, effectively improving configuration efficiency and data consistency. This implementation demonstrates the technical capability of this disclosure to achieve intelligent initialization of complex rule structures in enterprise-level application systems.
[0051] Example 3
[0052] One embodiment of this disclosure provides an initialization system for a multi-dimensional configuration condition tiered structure, including:
[0053] The startup module is used to obtain user commands and start the rule configuration process;
[0054] The rule configuration initialization module is used to select one or more configuration conditions based on statistical dimensions after the rule configuration is started, divide the initialization mode based on the configuration conditions, identify the tiered state of each condition configuration in each initialization mode, and execute the corresponding structured mapping and interface response process according to the state combination to generate a multi-dimensional tiered structure.
[0055] The specific content of the structured mapping and interface response process based on the state combination includes: when only one graded condition is configured, its grade ranges are mapped to the corresponding dimensions, and the input controls of unused dimensions are dynamically hidden; when the configured condition is not graded, its set target value is extracted as the matching value of the condition; when multiple conditions are configured, if none of the conditions are graded, a validation error is returned; if there are graded conditions and ungraded conditions, the intervals of the graded conditions and the target values of the ungraded conditions are mapped to a combined structure; if all conditions are graded, the Cartesian product matrix of each grade range is generated.
[0056] As one embodiment, the initialization system for a multi-dimensional configuration condition tiered structure disclosed herein specifically executes an initialization method for a multi-dimensional configuration condition tiered structure, which includes the following processes:
[0057] Step 1: Obtain user instructions and start the rule configuration process;
[0058] Specifically, the user inputs the startup rule configuration process command through the control interface, and the system starts the rule configuration process after receiving the startup rule configuration process command.
[0059] Step 2: After the rule configuration is started, select one or more configuration conditions based on statistical dimensions, divide the initialization mode based on the configuration conditions, identify the tiered status of each condition configuration in each initialization mode, and execute the corresponding structured mapping and interface response process according to the status combination to generate a multi-dimensional tiered structure.
[0060] Specifically, after initiating the rule configuration process, it supports selecting one or more configuration conditions based on statistical dimensions. If only one configuration condition is selected, it enters single-dimensional initialization mode; if two configuration conditions are selected, it enters multi-dimensional initialization mode. Upon receiving a rule configuration request, it identifies the mode and tier status of each condition configuration and executes the corresponding structured mapping and interface response process based on the status combination. Each configuration condition can be configured as either "tiered" or "untiered." Upon receiving a configuration request, the following processing steps are executed:
[0061] (1) If only one configuration condition is selected, the system enters the single-dimensional initialization mode: when the configuration condition is “graded”, the lower limit and upper limit of each grade are mapped to the first dimension field in the graded structure, and the display control of the second dimension is dynamically hidden in the user interface; when the configuration condition is “not graded”, the system extracts the target value set and hides all graded display controls of the first and second dimensions, indicating that the condition does not need to be graded.
[0062] (2) If multiple configuration conditions are selected, the system enters a multi-dimensional initialization mode and generates a tiered structure according to the following settings:
[0063] (a) If multiple configuration conditions are not tiered, an error message is generated indicating that "at least one configuration condition needs to be tiered", and the initialization process is terminated;
[0064] (b) If there are configuration conditions that have been classified and configuration conditions that have not been classified, map the range of each classified configuration condition to the corresponding dimension, and assign the target value of the unclassified configuration condition to the lower limit and upper limit of the range of another dimension at the same time to form an equal value interval, and generate a set of classified records containing intervals and equal value combinations.
[0065] (c) If all configuration conditions have been tiered, assign the tier intervals of each configuration condition to the corresponding dimension, and generate a Cartesian product combination of all tiers to form a complete two-dimensional tiered matrix. For example, assign the tier intervals of the first configuration condition to the first dimension, assign the tier intervals of the second configuration condition to the second dimension, and generate a Cartesian product combination of all tiers to form a complete two-dimensional tiered matrix.
[0066] Step 3: After the initialization configuration process is completed, the generated file structure will be output to the configuration interface and displayed for use by subsequent modules.
[0067] This disclosure achieves automated construction of hierarchical structures through a collaborative mechanism of state recognition, structure mapping, error checking, and dynamic interface control, significantly improving the data processing capabilities and user operation efficiency of enterprise-level application systems in complex rule configuration scenarios.
[0068] Example 4
[0069] One embodiment of this disclosure provides an electronic device, including a processor, a memory, and a computer program; wherein the processor is connected to the memory, and the computer program is stored in the memory. When the electronic device is running, the processor executes the computer program stored in the memory to cause the electronic device to execute an initialization method for implementing a multi-dimensional configuration condition grading structure as described in Embodiment 1, specifically as follows:
[0070] Step 1: Obtain user instructions and start the rule configuration process;
[0071] Specifically, the user inputs the startup rule configuration process command through the control interface, and the system starts the rule configuration process after receiving the startup rule configuration process command.
[0072] Step 2: After the rule configuration is started, select one or more configuration conditions based on statistical dimensions, divide the initialization mode based on the configuration conditions, identify the tiered status of each condition configuration in each initialization mode, and execute the corresponding structured mapping and interface response process according to the status combination to generate a multi-dimensional tiered structure.
[0073] Specifically, after initiating the rule configuration process, it supports selecting one or more configuration conditions based on statistical dimensions. If only one configuration condition is selected, it enters single-dimensional initialization mode; if two configuration conditions are selected, it enters multi-dimensional initialization mode. Upon receiving a rule configuration request, it identifies the mode and tier status of each condition configuration and executes the corresponding structured mapping and interface response process based on the status combination. Each configuration condition can be configured as either "tiered" or "untiered." Upon receiving a configuration request, the following processing steps are executed:
[0074] (1) If only one configuration condition is selected, the system enters the single-dimensional initialization mode: when the configuration condition is “graded”, the lower limit and upper limit of each grade are mapped to the first dimension field in the graded structure, and the display control of the second dimension is dynamically hidden in the user interface; when the configuration condition is “not graded”, the system extracts the target value set and hides all graded display controls of the first and second dimensions, indicating that the condition does not need to be graded.
[0075] (2) If multiple configuration conditions are selected, the system enters a multi-dimensional initialization mode and generates a tiered structure according to the following settings:
[0076] (a) If multiple configuration conditions are not tiered, an error message is generated indicating that "at least one configuration condition needs to be tiered", and the initialization process is terminated;
[0077] (b) If there are configuration conditions that have been classified and configuration conditions that have not been classified, map the range of each classified configuration condition to the corresponding dimension, and assign the target value of the unclassified configuration condition to the lower limit and upper limit of the range of another dimension at the same time to form an equal value interval, and generate a set of classified records containing intervals and equal value combinations.
[0078] (c) If all configuration conditions have been tiered, assign the tier intervals of each configuration condition to the corresponding dimension, and generate a Cartesian product combination of all tiers to form a complete two-dimensional tiered matrix. For example, assign the tier intervals of the first configuration condition to the first dimension, assign the tier intervals of the second configuration condition to the second dimension, and generate a Cartesian product combination of all tiers to form a complete two-dimensional tiered matrix.
[0079] Step 3: After the initialization configuration process is completed, the generated file structure will be output to the configuration interface and displayed for use by subsequent modules.
[0080] This disclosure achieves automated construction of hierarchical structures through a collaborative mechanism of state recognition, structure mapping, error checking, and dynamic interface control, significantly improving the data processing capabilities and user operation efficiency of enterprise-level application systems in complex rule configuration scenarios.
[0081] This disclosure is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0082] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0083] While the specific embodiments of this disclosure have been described above in conjunction with the accompanying drawings, this is not intended to limit the scope of protection of this disclosure. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art without creative effort based on the technical solutions of this disclosure are still within the scope of protection of this disclosure.
Claims
1. An initialization method for a multi-dimensional configuration condition tiered structure, characterized in that, include: Obtain user instructions and initiate the rule configuration process; After the rule configuration is started, select one or more configuration conditions based on statistical dimensions, divide the initialization mode based on the configuration conditions, identify the tiered state of each condition configuration in each initialization mode, and execute the corresponding structured mapping and interface response process according to the state combination to generate a multi-dimensional tiered structure. The specific content of the structured mapping and interface response process based on the state combination includes: when only one graded condition is configured, its grade ranges are mapped to the corresponding dimensions, and the input controls of unused dimensions are dynamically hidden; when the configured condition is not graded, its set target value is extracted as the matching value of the condition; when multiple conditions are configured, if none of the conditions are graded, a validation error is returned; if there are graded conditions and ungraded conditions, the intervals of the graded conditions and the target values of the ungraded conditions are mapped to a combined structure; if all conditions are graded, a Cartesian product matrix of each grade range is generated. If multiple configuration conditions are selected, the system enters a multi-dimensional initialization mode and generates a file structure according to the following settings: (a) If multiple configuration conditions are not tiered, an error message is generated indicating that "at least one configuration condition needs to be tiered", and the initialization process is terminated; (b) If there are configuration conditions that have been classified and configuration conditions that have not been classified, map the range of each classified configuration condition to the corresponding dimension, and assign the target value of the unclassified configuration condition to the lower limit and upper limit of the range of another dimension at the same time to form an equal value interval, and generate a set of classified records containing intervals and equal value combinations. (c) If all configuration conditions have been tiered, assign the tier intervals of each configuration condition to the corresponding dimension, and generate a Cartesian product combination of all tiers to form a complete two-dimensional tier matrix; assign the tier intervals of the first configuration condition to the first dimension, assign the tier intervals of the second configuration condition to the second dimension, and generate a Cartesian product combination of all tiers to form a complete two-dimensional tier matrix.
2. The initialization method for a multi-dimensional configuration condition grading structure as described in claim 1, characterized in that, When the user command is received to start the rule configuration process, it is supported to select one or two configuration conditions based on statistical dimensions. If only one configuration condition is selected, it enters the single-dimensional initialization mode. If two configuration conditions are selected, it enters the multi-dimensional initialization mode. Each configuration condition is divided into a graded or ungraded state. After receiving the rule configuration request, the mode and graded state of each condition configuration are identified, and the corresponding structured mapping and interface response process is executed according to the state combination.
3. The initialization method for a multi-dimensional configuration condition grading structure as described in claim 2, characterized in that, If only one configuration condition is selected, the single-dimensional initialization mode is entered. If the configuration condition is identified as already tiered, the lower and upper limits of each tier are mapped to the first dimension field in the tiered structure, and the display control of the second dimension is dynamically hidden in the user interface. If the configuration condition is identified as not tiered, the target value is extracted, and all tiered display controls of the first and second dimensions are hidden, indicating that the configuration condition does not need to be tiered.
4. The initialization method for a multi-dimensional configuration condition grading structure as described in claim 1, characterized in that, The first configuration condition is configured as a tiered state, and its attribute data contains multiple consecutive numerical ranges, each range having a clear lower limit and upper limit. Configure the second configuration condition as an unclassified state, where its attribute data contains only a single target value.
5. The initialization method for a multi-dimensional configuration condition grading structure as described in claim 1, characterized in that, The Cartesian products of all generated gears are combined to form a complete two-dimensional gear matrix. After initialization, the generated gear matrix structure is output to the configuration interface for display. The visibility of the interface controls is dynamically adjusted according to the current configuration interface state, and parameter configuration can continue based on structured data.
6. An initialization system for a multi-dimensional configuration condition grading structure, characterized in that, include: The startup module is used to obtain user commands and start the rule configuration process; The rule configuration initialization module is used to select one or more configuration conditions based on statistical dimensions after the rule configuration is started, divide the initialization mode based on the configuration conditions, identify the tiered state of each condition configuration in each initialization mode, and execute the corresponding structured mapping and interface response process according to the state combination to generate a multi-dimensional tiered structure. The specific content of the structured mapping and interface response process based on the state combination includes: when only one graded condition is configured, its grade ranges are mapped to the corresponding dimensions, and the input controls of unused dimensions are dynamically hidden; when the configured condition is not graded, its set target value is extracted as the matching value of the condition; when multiple conditions are configured, if none of the conditions are graded, a validation error is returned; if there are graded conditions and ungraded conditions, the intervals of the graded conditions and the target values of the ungraded conditions are mapped to a combined structure; if all conditions are graded, a Cartesian product matrix of each grade range is generated. If multiple configuration conditions are selected, the system enters a multi-dimensional initialization mode and generates a file structure according to the following settings: (a) If multiple configuration conditions are not tiered, an error message is generated indicating that "at least one configuration condition needs to be tiered", and the initialization process is terminated; (b) If there are configuration conditions that have been classified and configuration conditions that have not been classified, map the range of each classified configuration condition to the corresponding dimension, and assign the target value of the unclassified configuration condition to the lower limit and upper limit of the range of another dimension at the same time to form an equal value interval, and generate a set of classified records containing intervals and equal value combinations. (c) If all configuration conditions have been tiered, assign the tier intervals of each configuration condition to the corresponding dimension, and generate a Cartesian product combination of all tiers to form a complete two-dimensional tier matrix; assign the tier intervals of the first configuration condition to the first dimension, assign the tier intervals of the second configuration condition to the second dimension, and generate a Cartesian product combination of all tiers to form a complete two-dimensional tier matrix.
7. An electronic device, characterized in that, include: The device includes a processor, a memory, and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory to enable the electronic device to execute an initialization method for a multi-dimensional configuration condition grading structure as described in any one of claims 1-5.
Citation Information
Patent Citations
Multi-dimensional data calculation method and related equipment
CN116954858A
Condition configuration method and device
CN119248402A