Method and device for obtaining ERP (Enterprise Resource Planning) system configuration result based on decision tree

By adopting a decision tree-based configuration method in the ERP system, the problem of complex business rules configuration in the prior art is solved, the flexibility and scalability of the system are realized, and the configuration complexity and error rate are reduced.

CN120066561AActive Publication Date: 2025-05-30RICHFIT INFORMATION TECH +1
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202311623058.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-30
Publication Date
2025-05-30
Estimated Expiration
2043-11-30

AI Technical Summary

Technical Problem

When handling complex business rules, the existing ERP system configuration methods are complex in structure, difficult to manage and prone to errors, and it is difficult to meet the combination of multiple judgment conditions and multi-step process requirements.

Method used

The ERP system configuration is carried out using a decision tree-based method. By obtaining business data and functional module names, the input table is generated, the decision tree in the system configuration is called, and the decision tree is judged step by step along the branches of the decision tree until the leaf node is reached to obtain the final output result.

Benefits of technology

It improves the configurability and scalability of ERP system configuration, simplifies system development, enhances the system's flexibility, reduces maintenance costs, and provides an intuitive and highly configurable way to represent business logic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120066561A_ABST
    Figure CN120066561A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a device for obtaining an ERP (Enterprise Resource Planning) system configuration result based on a decision tree. The method comprises the following steps: obtaining an input table according to obtained service data and function module names; calling a corresponding decision tree in system configuration according to the name of the function module; obtaining a first field of the input table according to the conditional judgment formula of the root node of the decision, inputting the first field into the root node of the decision tree, and obtaining child nodes of the decision tree according to a conditional judgment result of the root node; acquiring a second field of the input table according to a conditional judgment formula of a child node of the decision tree, inputting the second field into the child node of the decision tree, and obtaining a new child node of the decision tree according to a conditional judgment result of a root node; repeatedly executing the step of inputting the value in the input table into the child node of the decision tree and obtaining a new child node until a leaf node of the decision tree is obtained, and taking a return value of the leaf node as an ERP system configuration result; and calling a corresponding operation in the ERP system according to the ERP system configuration result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method and apparatus for obtaining an ERP system configuration result based on a decision tree. Background Art

[0002] Enterprise Resource Planning (ERP) systems play an important role in meeting the diverse business needs of different enterprises. Due to the complexity of enterprises, ERP systems usually require extensive system configuration to ensure their adaptability to various industries, departments, and business processes. Currently, most system configurations are based on configuration forms, which generally include two main parts: judgment conditions and return results. This configuration method has the advantages of clear structure and convenient maintenance when dealing with simple configurations.

[0003] Specifically, an enterprise may need to configure various business rules and policies, such as inventory management, sales order processes, procurement approvals, financial statements, etc. These rules generally include the following aspects:

[0004] Judgment conditions: Judgment conditions are rules used to determine system behavior based on specific situations or input data. For example, according to conditions such as order total amount, inventory level of goods, supplier qualifications, etc., to determine whether to approve a purchase order.

[0005] Return results: Return results specify the specific actions that the system should take when specific judgment conditions are met. This includes approval, rejection, automatic price calculation, triggering notifications, etc.

[0006] For simple business rules, using configuration forms is an effective way. They provide a clear interface, allowing administrators to easily define and modify judgment conditions and return results without writing code or performing complex custom development. Summary of the Invention

[0007] In order to improve the configurability and scalability of the business logic processing of ERP system configuration, embodiments of the present invention provide a method and apparatus for obtaining an ERP system configuration result based on a decision tree.

[0008] In a first aspect, embodiments of the present invention provide a method for obtaining an ERP system configuration result based on a decision tree, the method comprising:

[0009] Obtaining an input table according to the acquired business data and function module name;

[0010] Invoking a corresponding decision tree in the system configuration according to the function module name;

[0011] Obtain the corresponding first field of the input table according to the conditional judgment formula of the root node of the decision, input the first field into the root node of the decision tree, and obtain the corresponding child node of the decision tree according to the conditional judgment result of the root node;

[0012] Obtain the corresponding second field of the input table according to the conditional judgment formula of the child node of the decision tree, input the second field into the child node of the decision tree, and obtain the corresponding new child node of the decision tree according to the conditional judgment result of the root node;

[0013] Repeat the above steps of inputting the values in the input table into the child nodes of the decision tree and obtaining new child nodes until the leaf node of the decision tree is obtained, and use the return value of the leaf node as the ERP system configuration result;

[0014] Call the corresponding operation of the function module name in the ERP system according to the ERP system configuration result.

[0015] In one or some optional implementation manners of the embodiments of the present application, the decision tree in the system configuration is obtained by the following method:

[0016] Obtain the function module name and the input configuration table; the input configuration table includes the dictionary of fields and the field types;

[0017] Generate a decision domain selection list for each field according to the input configuration table;

[0018] Obtain the conditional judgment formula corresponding to the field according to the decision domain selection list and the corresponding decision rule;

[0019] Set the return value or the conditional judgment formula of the next field pointed to by different judgment results that can be obtained by the conditional judgment formula of each field to obtain the decision tree.

[0020] In one or some optional implementation manners of the embodiments of the present application, it further includes:

[0021] During the decision-making process of the decision tree according to the input table, if the value in the input table cannot correspond to the conditional judgment formula of the node in the decision tree, perform the corresponding branch processing; the branch processing includes: returning a default value, returning an error message.

[0022] In one or some optional implementation manners of the embodiments of the present application, after setting the return value or the conditional judgment formula of the next field pointed to by different judgment results that can be obtained by the conditional judgment formula of each field to obtain the decision tree, it further includes:

[0023] If an instruction to modify the decision rules or the dictionary of fields of the decision tree is received, the decision domain selection list of the field is regenerated, and the corresponding conditional judgment formula is modified or a branch of the conditional judgment formula is added.

[0024] In one or some alternative embodiments of the embodiments of the present application, during the process of obtaining the decision tree, it further includes:

[0025] By setting the nested decision trees or external functions pointed to by the different judgment results that can be obtained by the conditional judgment formula of each field, the decision tree is obtained.

[0026] In one or some alternative embodiments of the embodiments of the present application, after obtaining the decision tree, it further includes:

[0027] Perform a rule check on the decision tree to determine that the conditional judgment formula of each field includes all the values of the dictionary corresponding to the field, and each value only appears once in all the conditional judgment formulas of the field.

[0028] In a second aspect, an embodiment of the present invention provides a device for obtaining a system configuration result based on a decision tree. The device includes:

[0029] A first acquisition module, configured to obtain an input table according to the acquired service data and function module name;

[0030] A first call module, configured to call the corresponding decision tree in the system configuration according to the function module name;

[0031] A first judgment module, configured to obtain a corresponding first field of the input table according to the conditional judgment formula of the root node of the decision, input the first field into the root node of the decision tree, and obtain a corresponding child node of the decision tree according to the conditional judgment result of the root node;

[0032] A second judgment result, configured to obtain a corresponding second field of the input table according to the conditional judgment formula of the child node of the decision tree, input the second field into the child node of the decision tree, and obtain a corresponding new child node of the decision tree according to the conditional judgment result of the root node; repeat the above steps of inputting the value in the input table into the child node of the decision tree and obtaining a new child node until the leaf node of the decision tree is obtained, and use the return value of the leaf node as the output result of the decision tree;

[0033] A first operation module, configured to call the operation corresponding to the function module name in the ERP system according to the ERP system configuration result.

[0034] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the method for obtaining the ERP system configuration result based on the decision tree as described above is implemented.

[0035] In a fourth aspect, an embodiment of the present invention provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the method for obtaining the ERP system configuration result based on the decision tree as described above is implemented.

[0036] In a fifth aspect, an embodiment of the present invention provides a computer program product containing instructions. When the computer program product runs on a computer device, the computer device is caused to execute the method for obtaining the ERP system configuration result based on the decision tree as described above.

[0037] In a sixth aspect, an embodiment of the present invention provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is used to run a computer program or instructions to implement the method for obtaining the ERP system configuration result based on the decision tree as described above.

[0038] The beneficial effects of the above technical solutions provided by the embodiments of the present invention at least include:

[0039] A method for obtaining a system configuration result based on a decision tree provided by an embodiment of the present invention calls the corresponding decision tree in the system configuration according to the obtained function module name, and at the same time obtains an input table. The data in the input table is input into the decision tree. Starting from the root node, the conditional judgment result is obtained to select the output branch and reach the child node. This process is repeated until the leaf node is reached to obtain the final output result, and corresponding operations are performed according to the corresponding module functions. Using a decision tree for business logic judgment in ERP system configuration, the branching method of the decision tree can visually express the business logic, making it easier to understand, improving the configurability and scalability of the product, realizing partial business logic processing, simplifying system development, and enhancing the flexible response ability of the system.

[0040] The decision tree provides an intuitive and highly configurable way for enterprises to represent business logic. Enterprise administrators or business analysts can easily create, modify, or delete conditions and decision nodes to meet the specific needs of different enterprises without in-depth programming knowledge such as SQL statements. The flexibility of the decision tree enables it to perform different operations according to different conditions and requirements. This is very helpful for coping with business changes and meeting specific customer needs. Compared with traditional form configuration, the decision tree can respond more flexibly to changes without modifying a large number of form configurations. It has the ability to easily expand to handle new business rules and conditions without redesigning the entire configuration system, reducing maintenance costs and making the system more scalable.

[0041] Other features and advantages of the present invention will be set forth in the following description, and in part will be obvious from the description, or may be learned by practice of the present invention. The objectives and other advantages of the present invention may be realized and attained by the structure particularly pointed out in the written description, claims, as well as the drawings.

[0042] The technical solutions of the present invention will be further described in detail below with reference to the drawings and embodiments. Description of the Drawings

[0043] The drawings are provided to further understand the present invention, and constitute a part of the description. They are used to explain the present invention together with the embodiments of the present invention, and do not constitute a limitation to the present invention. In the drawings:

[0044] Figure 1 It is a schematic diagram of the steps for obtaining the ERP system configuration result based on the decision tree provided by the embodiment of the present invention;

[0045] Figure 2 It is a schematic diagram of the input table structure provided by the embodiment of the present invention;

[0046] Figure 3 It is a schematic diagram of the input example provided by the embodiment of the present invention;

[0047] Figure 4 It is a schematic diagram of the decision tree creation process provided by the embodiment of the present invention;

[0048] Figure 5 It is a schematic diagram of the input configuration representation in the decision tree configuration provided by the embodiment of the present invention;

[0049] Figure 6 It is a schematic diagram of the input configuration example representation in the decision tree configuration provided by the embodiment of the present invention;

[0050] Figure 7 It is a schematic diagram of the output configuration representation in the decision tree configuration provided by the embodiment of the present invention;

[0051] Figure 8 It is a schematic diagram of the output configuration example representation in the decision tree configuration provided by the embodiment of the present invention;

[0052] Figure 9 It is a schematic diagram of the basic information of the decision tree provided by the embodiment of the present invention;

[0053] Figure 10 It is a schematic diagram of the decision tree operation provided by the embodiment of the present invention;

[0054] Figure 11 It is a schematic diagram of the decision tree node type provided by the embodiment of the present invention;

[0055] Figure 12 Schematic diagram of the decision tree provided by an embodiment of the present invention;

[0056] Figure 13 Schematic diagram of the decision tree call provided by an embodiment of the present invention;

[0057] Figure 14 Schematic diagram of the output table structure provided by an embodiment of the present invention;

[0058] Figure 15 Schematic diagram of the output example provided by an embodiment of the present invention;

[0059] Figure 16 Schematic diagram of the structure of the device for obtaining the system configuration result based on the decision tree provided by an embodiment of the present application. Detailed implementation manners

[0060] In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. However, those skilled in the art should clearly understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from interfering with the description of the present application.

[0061] It should be understood that when used in the specification of the present application and the appended claims, the term "comprising" indicates the presence of the described features, wholes, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.

[0062] It should also be understood that the term "and / or" as used in the specification of the present application and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0063] As used in the specification of the present application and the appended claims, the term "if" can be interpreted as "when" or "once" or "in response to determining" or "in response to detecting" according to the context. Similarly, the phrase "if determined" or "if detecting [the described condition or event]" can be interpreted as meaning "once determined" or "in response to determining" or "once detecting [the described condition or event]" or "in response to detecting [the described condition or event]" according to the context.

[0064] In addition, in the description of the specification of the present application and the appended claims, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.

[0065] References to "one embodiment" or "some embodiments" etc. described in the specification of the present application mean that specific features, structures or characteristics described in connection with that embodiment are included in one or more embodiments of the present application. Thus, statements such as "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments" etc. that appear in different places in this specification do not necessarily all refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized. The terms "comprising", "including", "having" and their variants all mean "including but not limited to", unless otherwise specifically emphasized.

[0066] It should be understood that the magnitudes of the sequence numbers of the steps in the following embodiments do not mean the order of execution is prior or posterior. The order of execution of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

[0067] In order to illustrate the technical solution of the present application, the following specific embodiments are used for illustration.

[0068] The inventors found that in the prior art, most current system configurations are form-based. However, for complex business rules, this configuration method will face some challenges. When it comes to combinations of multiple judgment conditions, cross conditions, multiple levels of decision-making, multi-step processes or situations requiring high flexibility, the structure of the configuration form may become complex, difficult to manage, and prone to errors.

[0069] Therefore, when dealing with complex business rules, some enterprises begin to consider more powerful and flexible tools, such as decision trees or rule engines, to provide more intuitive visualization, more flexible conditional branches and easier-to-maintain configuration methods. These tools allow enterprises to better adapt to changing requirements, reduce configuration complexity, and improve the flexibility and maintainability of the system. Therefore, the selection of an appropriate configuration method should be based on a trade-off according to the complexity and variability of the business rules.

[0070] Based on this, through further research and development, the inventors made the present invention and provided a method and device for obtaining an ERP system configuration result based on a decision tree.

[0071] Embodiment 1

[0072] The embodiment of the present invention provides a method for obtaining an ERP system configuration result based on a decision tree. Referring to Figure 1 as shown, the method includes:

[0073] S101: Obtain an input table according to the acquired business data and function module name.

[0074] In the embodiment of the present application, in the above step S101, after the user logs in to the ERP system and needs to use a decision tree for system configuration in the ERP system, the ERP system will obtain the function module name of the required function, and extract the corresponding data from the business data according to the input data required by the function module to form an input table. The schematic diagram of the input table structure is as Figure 2 shown. There are multiple fields in the input table, and each field includes three configuration values: field, content, and field type. The field stores the name of the field, the content is the value of the field, and the field type is used to confirm the field type of the field, such as the date type, which is convenient for data type conversion in subsequent processing. An example of the input table is as Figure 3 shown. This input table contains 7 fields, Figure 3 and the content and field type of each field are shown.

[0075] S102: Call the corresponding decision tree in the system configuration according to the function module name.

[0076] In the embodiment of the present application, in the above step S102, according to the function module name, find the ID number of the decision tree corresponding to the function in the ERP system, and then call the corresponding decision tree according to the decision tree ID number and store it in the memory for subsequent use.

[0077] Among them, the decision tree in the ERP system configuration is obtained through the following method:

[0078] Obtain the function module name and the input configuration table; the input configuration table includes the dictionary of fields and the field type;

[0079] Generate a decision domain selection list for each field according to the input configuration table;

[0080] Obtain the conditional judgment formula for the corresponding field according to the decision domain selection list and the corresponding decision rule;

[0081] Set the return value or the conditional judgment formula of the next field pointed to by different judgment results that can be obtained by the conditional judgment formula of each field to obtain a decision tree; the root node and each sub-node of the decision tree respectively contain the conditional judgment formula, and the leaf node contains the return value.

[0082] In the embodiment of the present application, the schematic diagram of the decision tree creation process is as Figure 4 shown, which mainly consists of three parts: defining the input configuration table, defining the output configuration table, and decision tree maintenance. Among them, decision tree maintenance includes operations on the decision tree such as creating a decision tree and modifying a decision tree.

[0083] Next, the decision tree creation process will be introduced according to the above three parts.

[0084] The first part is to define an input configuration table, which is used to confirm the input fields. The content in the input table is used for judgment in the decision tree, so as to achieve different return results. The schematic diagram of the input configuration table is as Figure 5 shown, where each field includes four values: field, description, dictionary, and field type. The field represents the name of the field, which is the selection condition for determining the decision tree and is used to determine different content under different selection conditions. The description is the description of the field, which is used to describe the meaning of the field and is displayed in the decision tree. The dictionary is used to determine the list corresponding to the field, which is the list composed of possible results of the field. The field type is used to determine the field type of the field, such as the date type, so as to adopt different processing methods. The schematic diagram of the input configuration table is as Figure 6 shown. This input configuration table contains 7 fields. Figure 6 In the fourth column of Figure 6 , the dictionary part is the data dictionary of this field. In the example, the dictionary of each field will contain all possible values of this dictionary.

[0085] After obtaining the input configuration table, according to the decision rules, each field is obtained as the judgment condition of the decision tree, and its numerical type and dictionary are obtained to generate a decision domain selection list. The decision domain selection list refers to a list that defines all possible values of the decision domain in a decision tree or decision analysis. The data of the selected field, such as the data type and dictionary, are used to create a list that includes all possible decision conditions. This list will be used to construct the decision tree so that decisions can be made according to the decision conditions in the decision tree during the decision-making process of the decision tree.

[0086] The second part is to define an output configuration table, which is used to confirm the output fields. The schematic diagram of the output configuration table is as Figure 7 shown, where each field includes three values: field, description, and field type. The field represents the name of the field, the description is the field description, which is used to describe the meaning of the field, and the field type is used to confirm the field type of the field. The schematic diagram of the output configuration table is as Figure 8 shown. This input table contains 3 fields, and each field contains the field name, description, and character type of each field.

[0087] The third part is decision tree maintenance, which requires setting the basic information of the decision tree. Refer to Figure 9As shown in the figure, the basic information of the decision tree includes: ID number, name, module assignment, component assignment, input structure, input structure, and feature description. The ID number is the number of the decision tree and is used when calling the decision tree; the name is the functional description of the decision tree; the module assignment is used to determine the functional module to which the decision tree belongs, such as the HR module; the component assignment is a subdivision after the module assignment and is used for classification of different functions within the module, such as the salary sub-module under the HR module; the input structure defines the data structure of the input table; the input structure defines the data structure of the output table; the feature description is the detailed description and example of the decision tree, which provides help for the actual use of the decision tree.

[0088] The operation of the decision tree refers to Figure 10 As shown in the figure, it includes creating a table tree, modifying the table tree, inserting a sub-table tree, copying a sub-table tree, and pasting a sub-table tree, where the table tree is the decision tree. Creating a decision tree creates a new decision tree branch for different processing; modifying the decision tree is used to edit the existing decision tree; inserting a sub-table tree inserts a new decision tree branch under the selected decision tree; copying a sub-table tree copies all nodes under the selected decision tree branch for pasting elsewhere; pasting a sub-table tree pastes the copied decision tree. The following will mainly explain the steps of creating a decision tree.

[0089] The steps of creating a decision tree include: obtaining the conditional judgment formula for the corresponding field according to the decision domain selection list and the corresponding decision rules obtained in the first part, and setting the return value or the conditional judgment formula of the next field pointed to by different judgment results that can be obtained from the conditional judgment formula of each field, so as to obtain the decision tree. The process of creating a decision tree also includes: if the value in the input table cannot correspond to the conditional judgment formula of the node in the decision tree, the corresponding branch processing is executed, and the branch processing includes returning the default value and returning an error message; setting the nested decision tree or external function pointed to by different judgment results that can be obtained from the conditional judgment formula of each field, that is, the decision tree can call other decision trees to achieve the subdivision of the configuration function and realize the refined processing for multiple situations, and can also call the function in the external program to handle the situations that the decision tree cannot handle, and can realize the program enhancement function. At the same time, the decision tree has a rule check to ensure that the selected conditions do not overlap and are not omitted.

[0090] When creating a decision tree, it is also necessary to set the type of each node. The root node and each sub-node of the decision tree respectively contain a conditional judgment formula, and the leaf node contains a return value. Specifically, the selectable node types in the decision tree are as Figure 11As shown, it includes a return value, a decision implementation domain, an implementation domain value, otherwise, sub-features, and a program. Among them, the return value includes returning a table in the form of a list or directly returning text; the decision implementation domain is the field in the above text, used to determine which field to judge; the implementation domain value determines the return value of the decision implementation domain, taking the value in the dictionary of the field; otherwise, it is the branch processing in the above text. If the input value is not in the implementation domain value, for the processing of other situations, the otherwise branch will be automatically created when creating the decision implementation domain; the sub-features are the nested decision trees in the above text, used to call other decision trees. The input conditions are the same as the current decision tree, and the decision tree can be subdivided to meet different functions and only focus on different judgment conditions; the program is the external function in the above text. If some functions cannot be implemented using the decision tree, an external function can be called to handle it.

[0091] In a specific embodiment, an example of the created decision tree is as Figure 12 shown. This page is the operation page for decision tree maintenance in the ERP system. Among them, the deletion column is used to delete the decision tree branch. If it is not a leaf, all the decision tree nodes below it will be deleted. The name is used to display the content of each node of the decision tree, the remarks are used to display some remarks and prompts of the decision tree, and the level indicates which layer the current node is in the decision tree. Figure 12 The decision tree shown has 5 layers. The first layer is the root node, the 2nd - 4th layers are all sub-nodes, and the 5th layer is the leaf node, which is used to return the text "U1". At the same time, the 2nd layer and the 4th layer also contain the "otherwise" branch.

[0092] The creation of the decision tree is completed through the above operations for subsequent direct invocation from the ERP system when in use.

[0093] S103: Obtain the corresponding first field of the input table according to the condition judgment formula of the root node of the decision, input the first field into the root node of the decision tree, and obtain the corresponding sub-node of the decision tree according to the condition judgment result of the root node;

[0094] S104: Obtain the corresponding second field of the input table according to the condition judgment formula of the sub-node of the decision tree, input the second field into the sub-node of the decision tree, and obtain the corresponding new sub-node of the decision tree according to the condition judgment result of the root node; Repeat the above step of inputting the value in the input table into the sub-node of the decision tree and obtaining a new sub-node until the leaf node of the decision tree is obtained, and use the return value of the leaf node as the ERP system configuration result.

[0095] S105: Invoke the corresponding operation of the function module name in the ERP system according to the ERP system configuration result.

[0096] In the embodiment of the present application, the input table obtained in step S101 is input into the decision tree of the corresponding function module called in step S102. According to the branching rules of the decision tree, the data will move down along the path of the tree until it reaches the leaf node, and the value stored in the leaf node is the return value of the decision tree. The specific steps include: starting from the root node, comparing the first item of the input table with the conditional judgment formula of the root node; according to the input value that matches the conditional judgment formula of the root node, selecting the corresponding branch; moving the data along the selected branch to the child node, and comparing the second item of the input table with the conditional judgment formula of the child node; according to the input value that matches the conditional judgment formula of the child node, selecting the corresponding branch; moving the data along the selected branch to the next child node, repeating this process, moving step by step until reaching the leaf node of the decision tree; obtaining the data stored in the leaf node as the return value and returning it to the ERP system as the ERP system configuration result. Call the operation corresponding to the function in the ERP system according to the ERP system configuration result.

[0097] In the embodiment of the present application, the process of obtaining the ERP system configuration result by calling the decision tree is as Figure 13 shown. Figure 13 The statement shown is used to call the decision tree in the program: the function name represents the general function when the decision tree needs to be called, such as "GET_DECISIONTREE_VALUE"; the input includes the decision tree number and the input table, where the decision tree number corresponds to the number ID in the basic information of the decision tree above; call the decision tree processing, and return the output table, text, and message list. The output table is a list of return value fields. Among them, the text is the return value, and the message list corresponds to the error information above. The value stored in the output table is the return value of the decision tree. The structure of the output table is as Figure 14 shown, and an example of the output table is as Figure 15 shown. There are multiple fields in the output table, and each field includes three configuration values: field, content, and field type. The field stores the name of the field, the content is the value of the field, and the field type is used to confirm the field type of the field. The ERP system can call multiple decision trees to form a decision group and support business function decisions by returning decision percentages.

[0098] To facilitate the understanding of this solution by those skilled in the art, the following provides a clearer and more complete description of the specific implementation process of the method for obtaining the ERP system configuration result based on the decision tree provided by the embodiment of the present invention:

[0099] In a specific embodiment, taking the determination of the process approver node as an example, the purpose is to obtain the number of the process approver. The judgment conditions required by the process approver for each module are different. For example, the process input fields of the organization module include: company code, organization number, position, position number, and the process input fields of the personnel module include: company code, personnel area, personnel sub - area, employee group. The process input fields of the payroll module include: company code, salary range, calculation type, personnel area, employee group.

[0100] For example, when the function module name is the payroll module process approval and the decision tree is created, define the decision tree input configuration table. The input table includes fields such as company code, salary range, calculation type, personnel area, and employee group. The specific data needs to be obtained within the scope permitted by the user's permissions. In the decision tree writing stage, different conditional judgment expressions are set first, and the return values corresponding to different judgment results are set. In this example, it is the approver number. For example, first judge according to the company code. If the company code is 1000, then judge according to the salary range. If the salary range is 10, return the user name A001. If the salary range is 20, return the user name A002.

[0101] Call the decision tree according to the decision tree code obtained from the function module name. According to this decision tree and business data, obtain the input table, and make decisions in turn according to the decision tree conditional judgment expressions to obtain the return value. The decision tree sets the otherwise branch. If all branches are not satisfied, it is handed over to the default approver for processing. If there are multiple approver results, take the first satisfied result. Obtain the approver number and add the pending approval transaction to the to - do list of this approver in the ERP system.

[0102] The embodiment of the present application provides a method for obtaining the ERP system configuration result based on a decision tree, which is used to implement flexible business logic judgment in the ERP system. It involves multiple function modules, and each function module has a corresponding decision tree. Call the corresponding decision tree according to the required function. The branching method of the decision tree intuitively expresses the business logic, making the system easier to understand and operate.

[0103] During the execution process, the system obtains the corresponding decision tree number ID according to the input function module name, calls the corresponding decision tree according to the decision tree number ID, and obtains the data in the input table. Subsequently, according to the structure of the decision tree, judge the conditions level by level starting from the root node and select the corresponding output branch. This process continues until the leaf node is reached to obtain the final output result. Based on this output result, the system can perform operations related to the functions of the corresponding module.

[0104] This decision-tree-based configuration method introduces an intuitive and highly configurable representation of business logic to the ERP system. Enterprise administrators or business analysts can easily create, modify, or delete conditions and decision nodes without in-depth programming knowledge. Compared with traditional form configuration, the flexibility of the decision tree lies in its ability to perform different operations according to different conditions and requirements. This provides strong support for enterprises to cope with business changes and meet specific customer needs, and also helps to simplify system development and improve the flexible response ability of the system. The capabilities of the decision tree enable it to be easily extended to handle new business rules and conditions without redesigning the entire configuration system, thereby reducing maintenance costs and enhancing the scalability of the system.

[0105] Embodiment 2

[0106] Based on the same inventive concept, an embodiment of the present invention further provides a device for obtaining a system configuration result based on a decision tree. Referring to Figure 16 as shown, the device includes:

[0107] A first acquisition module, configured to obtain an input table according to the acquired business data and function module name;

[0108] A first call module, configured to call a corresponding decision tree in the system configuration according to the function module name;

[0109] A first judgment module, configured to obtain a corresponding first field of the input table according to the condition judgment formula of the root node of the decision, input the first field into the root node of the decision tree, and obtain a corresponding sub-node of the decision tree according to the condition judgment result of the root node;

[0110] A second judgment result, configured to obtain a corresponding second field of the input table according to the condition judgment formula of the sub-node of the decision tree, input the second field into the sub-node of the decision tree, and obtain a corresponding new sub-node of the decision tree according to the condition judgment result of the root node; repeat the above steps of inputting the value in the input table into the sub-node of the decision tree and obtaining a new sub-node until the leaf node of the decision tree is obtained, and use the return value of the leaf node as the ERP system configuration result;

[0111] A first operation module, configured to call an operation corresponding to the function module name in the ERP system according to the ERP system configuration result.

[0112] Embodiment 3

[0113] Based on the same inventive concept, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements the method for obtaining an ERP system configuration result based on a decision tree as described in Embodiment 1 above.

[0114] Example 4

[0115] Based on the same inventive concept, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, it implements the method for obtaining the ERP system configuration result based on a decision tree as described in Embodiment 1 above.

[0116] Example 5

[0117] Based on the same inventive concept, an embodiment of the present invention further provides a computer program product containing instructions. When the computer program product runs on a computer device, it causes the computer device to execute the method for obtaining the ERP system configuration result based on a decision tree as described in Embodiment 1 above.

[0118] Example 6

[0119] Based on the same inventive concept, an embodiment of the present invention further provides a chip. The chip includes a processor and a communication interface, and the communication interface is coupled to the processor. The processor is used to run a computer program or instruction to implement the method for obtaining the ERP system configuration result based on a decision tree as described in Embodiment 1 above.

[0120] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program numbers ID.

[0121] The present invention is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram can be implemented by computer program instructions, and the combination of processes and / or blocks in the flowchart and / or block diagram can also be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the specified functions in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.

[0122] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means embodying the function specified in the flowchart(s) Figure 1 one or more flowcharts and / or block diagrams Figure 1 specified in one or more blocks or blocks.

[0123] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable apparatus provide steps for implementing the function specified in the flowchart(s) Figure 1 one or more flowcharts and / or block diagrams Figure 1 specified in one or more blocks or blocks.

[0124] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these modifications and variations.

Claims

1. A method for obtaining the ERP system configuration result based on a decision tree, characterized in that, it includes: Obtain an input table according to the acquired business data and function module name; Call the corresponding decision tree in the system configuration according to the function module name; Obtain the corresponding first field of the input table according to the conditional judgment formula of the root node of the decision, input the first field into the root node of the decision tree, and obtain the corresponding child node of the decision tree according to the conditional judgment result of the root node; Obtain the corresponding second field of the input table according to the conditional judgment formula of the child node of the decision tree, input the second field into the child node of the decision tree, and obtain the corresponding new child node of the decision tree according to the conditional judgment result of the root node; Repeat the above step of inputting the value in the input table into the child node of the decision tree and obtaining a new child node until the leaf node of the decision tree is obtained, and use the return value of the leaf node as the ERP system configuration result; Call the operation corresponding to the function module name in the ERP system according to the ERP system configuration result.

2. The method according to claim 1, characterized in that, The decision tree in the system configuration is obtained by the following method: Obtain the function module name and input configuration table; the input configuration table includes the dictionary of fields and field types; Generate a decision domain selection list for each field according to the input configuration table; Obtain the conditional judgment formula corresponding to the field according to the decision domain selection list and the corresponding decision rule; Set the return value or the conditional judgment formula of the next field pointed to by different judgment results that can be obtained by the conditional judgment formula of each field to obtain the decision tree.

3. The method according to claim 1, characterized in that, It further includes: During the decision-making process of the decision tree according to the input table, if the value in the input table cannot correspond to the conditional judgment formula of the node in the decision tree, perform the corresponding branch processing; The branch processing includes: returning a default value, returning an error message.

4. The method according to claim 2, characterized in that, After setting the return value or the conditional judgment formula of the next field pointed to by different judgment results that can be obtained by the conditional judgment formula of each field to obtain the decision tree, it further includes: If a command to modify the decision rule of the decision tree or the dictionary of fields is received, regenerate the decision domain selection list of the field, and modify the corresponding conditional judgment formula or add a branch of the conditional judgment formula.

5. The method according to claim 2, characterized in that, During the process of obtaining the decision tree, it further includes: Set the nested decision tree or external function pointed to by different judgment results that can be obtained by the conditional judgment formula of each field to obtain the decision tree.

6. The method according to claim 2, characterized in that, After obtaining the decision tree, it further includes: Conduct a rule check on the decision tree to ensure that the conditional judgment formula of each field contains all the values of the dictionary corresponding to the field, and each value only appears once in all the conditional judgment formulas of the field.

7. A device for obtaining the system configuration result based on a decision tree, characterized in that, it includes: A first acquisition module, configured to obtain an input table according to the acquired service data and the function module name; A first call module, configured to call a corresponding decision tree in the system configuration according to the function module name; A first judgment module, configured to obtain a corresponding first field of the input table according to a conditional judgment formula of a root node of the decision, input the first field into the root node of the decision tree, and obtain a corresponding child node of the decision tree according to a conditional judgment result of the root node; A second judgment result, configured to obtain a corresponding second field of the input table according to a conditional judgment formula of a child node of the decision tree, input the second field into the child node of the decision tree, and obtain a corresponding new child node of the decision tree according to a conditional judgment result of the root node; repeat the above step of inputting a value in the input table into the child node of the decision tree and obtaining a new child node until a leaf node of the decision tree is obtained, and use a return value of the leaf node as an output result of the decision tree; A first operation module, configured to call an operation corresponding to the function module name in the ERP system according to the ERP system configuration result.

8. A computer-readable storage medium, in which instructions are stored. When the instructions run on a terminal, the terminal is caused to execute the method for obtaining an ERP system configuration result based on a decision tree according to any one of claims 1-6.

9. A computer device, characterized in that, it includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the method for obtaining an ERP system configuration result based on a decision tree according to any one of claims 1-6 is implemented.

10. A computer program product containing instructions. When the computer program product runs on a computer device, the computer device is caused to execute the method for obtaining an ERP system configuration result based on a decision tree according to any one of claims 1-6.

11. A chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a computer program or instructions to implement the method for obtaining an ERP system configuration result based on a decision tree according to any one of claims 1-6.

Citation Information

Patent Citations

  • Subject processing method and system based on labels and decision trees

    CN110473082A

  • Decision-making behavior generation method and system based on decision-making treeDecision-making tree-based decision-making behavior generation method and system

    CN111340147A

  • Decision configuration method, service decision method and decision engine system

    CN112394922A

  • Rule configuration method and device, computer equipment and storage medium

    CN114625441A

  • Methods and systems for generating a data structure using graphical models

    US11354599B1