Target document filling method and device, storage medium and electronic equipment

CN115935919BActive Publication Date: 2026-10-13YONYOU NETWORK TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211541663.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-02
Publication Date
2026-10-13
Estimated Expiration
2042-12-02

AI Technical Summary

Technical Problem

[0002]相关技术中,在对某些单据进行填写的场景中,只能基于标准产品上设置好的业务规则进行,但上述单据通常会涉多种业务规则,如果仅根据标准产品上设置好的业务规则进行填写,填写出的单据误差较大,同时可能缺少数据,因此,如何提供一种单据的智能填写方法成为亟需解决的技术问题

Benefits of technology

[0056]此外,上述目标业务规则存储于开源规则引擎的规则数据库中,而开源规则引擎相对于商业创新平台是独立,这样,避免了需要采用对商业创新平台中的标准产品的代码进行修改调整或者新增业务规则的方式,避免了每次调整或者新增业务规则都需要对商业创新平台的服务器进行重新启动的情况。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115935919B_ABST
    Figure CN115935919B_ABST
Patent Text Reader

Abstract

The application provides a filling method and device of a target document, a storage medium and an electronic device. The filling method is used in a business innovation platform, the business innovation platform comprises a man-machine interaction interface, and the filling method comprises the following steps: receiving first data input by a user in the man-machine interaction interface; screening a target business rule from a rule database according to the first data, wherein the rule database is a database used for storing a business rule preset by the user in an open-source rule engine; determining second data according to the target business rule and the first data; and filling the second data into the target document.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and more specifically, to a method, apparatus, storage medium, and electronic device for filling out a target document. Background Technology

[0002] In related technologies, when filling out certain documents, it is only possible to do so based on the business rules set on the standard product. However, these documents usually involve multiple business rules. If the documents are filled out based solely on the business rules set on the standard product, the resulting documents will have large errors and may also lack data. Therefore, how to provide an intelligent method for filling out documents has become an urgent technical problem to be solved. Summary of the Invention

[0003] This application aims to address at least one of the technical problems existing in the related art.

[0004] Therefore, the first aspect of this application is to propose a method for filling out a target document.

[0005] The second aspect of this application is to provide a device for filling out target documents.

[0006] The third aspect of this application is to propose another device for filling out target documents.

[0007] The fourth aspect of this application is to propose a readable storage medium.

[0008] The fifth aspect of this application is to propose an electronic device.

[0009] In view of this, according to one aspect of this application, a method for filling out a target document is proposed for a business innovation platform, the business innovation platform including a human-computer interaction interface, the filling method comprising: receiving first data input by a user into the target document in the human-computer interaction interface; filtering target business rules from a rule database based on the first data, the rule database being a database in an open-source rule engine used to store pre-set business rules by the user; determining second data based on the target business rules and the first data; and filling the second data into the target document.

[0010] It should be noted that the subject executing the target document filling method proposed in this application can be a target document filling device. In order to more clearly explain the target document filling method proposed in this application, the following technical solution uses the target document filling device as the subject executing the target document filling method for exemplary description.

[0011] In this technical solution, the aforementioned business innovation platform refers to the general BIP (Business Innovation Platform), the aforementioned open-source rule engine refers to the Drools rule engine, and the rule database is the database in the open-source rule engine used to store the business rules pre-set by the user.

[0012] Specifically, the filling device first receives the first data entered by the user in the human-computer interaction interface of the business innovation platform. The first data represents the user's input data for the target document, which represents the business document to be filled in.

[0013] Specifically, by using the first data entered by the user on the target document, it is clear what data needs to be filled in or what filling conditions need to be followed for the target document. Based on the data or filling conditions, it is clear how to fill in the target document. Therefore, the filling device first needs to obtain the first data.

[0014] Furthermore, the filling device filters target business rules for filling the target document from the rule database based on the first data. Specifically, the rule database includes multiple business rules for filling business documents. Each business rule includes matching conditions and calculation logic. If the first data satisfies the matching conditions in the business rule, it indicates that the business rule can be used to fill the target document. Therefore, the filling device can determine the target business rule based on the first data.

[0015] Furthermore, the filling device calculates the second data to be filled in the target document based on the aforementioned target business rules and the aforementioned first data. Specifically, the aforementioned target business rules include calculation logic, and the filling device can calculate the aforementioned second data based on the aforementioned first data and the calculation logic.

[0016] Furthermore, the filling device fills in the solved second data into the target document. Specifically, the target document can be in the form of a table, which includes multiple second data to be filled in. Therefore, during the filling process, the filling device needs to ensure that the second data is filled in the corresponding positions in the table to ensure the accuracy of the filled target document.

[0017] In this technical solution, the filling device can receive first data input by the user for the target document, determine the target business rule for filling the target document based on the first data, calculate the second data to be filled in the target document based on the target business rule and the first data, and fill the calculated second data into the corresponding position in the target document. In the above technical solution of this invention, the filling device calculates the second data to be filled in the target document based on the target business rule filtered from the rule engine database according to the first data. This avoids the problems of large errors and missing data in the target document, which are often found in related technologies where the target document is filled in solely based on the business rules set on standard products. This ensures the accuracy of the filled target document.

[0018] Furthermore, the aforementioned target business rules are stored in the rule database of the open-source rule engine, which is independent of the business innovation platform. This avoids the need to modify or adjust the code of the standard products in the business innovation platform or add new business rules, and avoids the need to restart the business innovation platform's server every time a business rule is adjusted or added.

[0019] Furthermore, the method for filling out the target document according to the above-described technical solution of the present invention may also have the following additional technical features:

[0020] In the above technical solution, the rule database includes multiple first business rules. The step of filtering the target business rule from the rule database based on the first data specifically includes: comparing the first data with multiple first business rules to determine the comparison result; and determining the target business rule based on the comparison result.

[0021] In this technical solution, the aforementioned rule database includes multiple pre-built first business rules.

[0022] Specifically, the process of determining the aforementioned target business rule is as follows: the filling device first compares the aforementioned first data with the aforementioned multiple first business rules to determine the comparison result. Specifically, the aforementioned first business rules contain matching conditions, and the filling device can determine the comparison result by judging whether the aforementioned first data meets the matching conditions.

[0023] Furthermore, the filling device determines the target business rule from among multiple first business rules based on the comparison results. Specifically, the comparison results determine which business rules can be used to calculate the data to be filled in the target document. Therefore, the filling device can determine the target business rule based on the comparison results.

[0024] In this technical solution, the filling device can compare the first data with multiple first business rules in the rule database to determine the target business rule. This avoids the situation in related technologies where the data to be filled in the target document can only be solved based on the business rules set on the standard product, thus ensuring the accuracy of the target document filled in subsequently.

[0025] In the above technical solution, multiple first business rules are configured with matching conditions. The specific steps for determining the target business rule based on the comparison results include: if the comparison result indicates that the first data meets the matching conditions, the first business rule corresponding to the matching conditions is determined as the target business rule.

[0026] In this technical solution, the aforementioned multiple first business rules are configured with matching conditions, which represent the conditions for the user to pre-configure the execution of the business rule.

[0027] Specifically, the process of determining the target business rule based on the above comparison results is as follows: the filling device confirms whether the first data in the comparison results meets the above matching conditions.

[0028] Specifically, if the comparison result indicates that the first data meets the matching conditions, the filling device determines the first business rule corresponding to the matching conditions as the target business rule.

[0029] Specifically, if the first data meets the matching condition, it means that executing the first business rule corresponding to the matching condition can solve for the second data to be filled in the target document. Therefore, in this case, the filling device can determine the first business rule corresponding to the matching condition as the target business rule.

[0030] In this technical solution, the filling device can determine the target business rule by comparing the first data with the results of multiple first business rules in the rule database. This avoids the situation in related technologies where the data to be filled in the target document can only be solved based on the business rules set on the standard product, thus ensuring the accuracy of the target document filled in subsequently.

[0031] In the above technical solution, before receiving the first data input by the user on the target document in the human-computer interaction interface, the filling method further includes: receiving the third data input by the user in the human-computer interaction interface; determining the first business rule based on the third data; and storing the first business rule in the rule database.

[0032] In this technical solution, before receiving the aforementioned first data, the filling device needs to pre-build multiple first business rules and save these rules to the rule database in the open-source rule engine. Specifically, the filling device first receives the third data input by the user in the aforementioned human-computer interaction interface. Specifically, the aforementioned third data represents the configuration data of the business rules, which can include matching conditions and calculation logic, among other things.

[0033] Furthermore, the filling device determines the first business rule based on the third data and saves the first business rule to the rule database. Specifically, the calculation logic and matching conditions of the first business rule that the user wants to configure can be clearly defined based on the third data. The filling device can construct the first business rule based on the calculation logic and matching conditions combined with the metadata in the business innovation platform.

[0034] In this technical solution, before receiving the first data, the user can also input third data through the human-computer interaction interface to construct the first business rule and save the first business rule to the rule database. This allows the user to dynamically modify or add business rules according to their needs.

[0035] In the above technical solution, the step of storing the first business rule in the rule database specifically includes: converting the first business rule into a rule script of the target format, and storing the rule script in the rule database.

[0036] In this technical solution, the process of storing the constructed first business rule into the rule database is as follows: the filling device converts the first business rule into a rule script in the target format and saves the rule script into the rule database.

[0037] Specifically, since the first business rule cannot be directly stored in the rule database, the filling device needs to convert it into a rule script in the target format for storage. This allows the open-source rule engine to directly execute the rule script of the target business rule when it is called later, which helps to improve the filling efficiency of the target document.

[0038] Specifically, the filling device can automatically convert the first business rule into the corresponding rule script by calling an open-source rule engine.

[0039] In this technical solution, the filling device can directly call the open-source rule engine to convert the first business rule into the corresponding rule script. This avoids the need for users to build business rules by writing program scripts, allowing both implementation personnel and customer business personnel to participate in the editing and maintenance of business rules. This simplifies the intelligent filling of target documents and improves the filling efficiency of target documents.

[0040] In the above technical solution, the step of determining the second data based on the target business rules and the first data specifically includes: when there are multiple target rules and multiple target business rules conflict, storing the conflicting target rules in the first agenda according to a preset priority; and based on the first data, executing the multiple target rules in the first agenda in sequence to determine the second data.

[0041] In this technical solution, the number of the aforementioned target business rules can be one or more.

[0042] Specifically, the process of determining the second data is as follows: the filling device first determines the number of the target business rules, and when it determines that there are multiple target business rules, it determines whether there is a conflict between the multiple target business rules.

[0043] Specifically, when the filling device determines that there are multiple target business rules and there are conflicts among the multiple target business rules, the filling device saves the conflicting target business rules in the first agenda according to the preset priority.

[0044] Specifically, the aforementioned preset priority represents the priority level set by the user for each target business rule, and the aforementioned first agenda represents the queue in the open-source rule engine used to store conflicting target business rules.

[0045] Specifically, if there are multiple target business rules and there are conflicts among them, it means that the filling device cannot execute the calculation logic in multiple target business rules. Therefore, the filling device needs to store the conflicting target business rules in the first agenda according to the preset priority, so that the filling device can execute the calculation logic in all target business rules through the first agenda to ensure the accuracy of the target documents filled in later.

[0046] Furthermore, based on the aforementioned first data, the filling device sequentially executes the calculation logic of multiple target business rules in the aforementioned first agenda to calculate all the second data to be filled in the target document. Specifically, since multiple conflicting target business rules are stored in the first agenda according to a preset priority, the filling device can avoid conflicts by sequentially executing the target business rules in the first agenda.

[0047] In this technical solution, the filling device can store the conflicting target business rules into a first agenda according to a preset priority when there are multiple conflicting target business rules. When calculating the second data, the multiple target business rules in the first agenda can be executed sequentially. In this way, even when there are conflicting target business rules, all target business rules can be executed to solve for the second data, ensuring the accuracy of the determined second data and the accuracy of the filled target document.

[0048] According to a second aspect of this application, a target form filling device is proposed for a business innovation platform, the business innovation platform including a human-computer interaction interface. The target form filling device includes: a first processing module for receiving first data input by a user into the target form through the human-computer interaction interface; a second processing module for filtering target business rules from a rule database based on the first data, the rule database being a database in an open-source rule engine used to store business rules; a third processing module for determining second data based on the target business rules and the first data; and a fourth processing module for filling the second data into the target form.

[0049] In this technical solution, the aforementioned business innovation platform refers to a general BIP platform, the aforementioned open-source rule engine refers to the Drools rule engine, and the rule database is the database in the open-source rule engine used to store user-preset business rules.

[0050] Specifically, the first processing module first receives the first data input by the user in the human-computer interaction interface of the business innovation platform, wherein the first data represents the user's input data for the target document, and the target document represents the business document to be filled in.

[0051] Specifically, by using the first data entered by the user on the target document, it can be determined what data needs to be filled in or what filling conditions need to be followed for the target document. Based on the data to be filled in or the filling conditions to be followed, it can be determined how to fill in the target document. Therefore, the first processing module needs to receive the first data.

[0052] Furthermore, the second processing module filters target business rules for filling out the target document from the rule database based on the first data. Specifically, the rule database includes multiple business rules for filling out business documents. Each business rule includes matching conditions and calculation logic. If the first data satisfies the matching conditions in the business rule, it indicates that the business rule can be used to fill out the target document. Therefore, the second processing module can determine the target business rule based on the first data.

[0053] Furthermore, the third processing module calculates the second data to be filled in the target document based on the aforementioned target business rules and the aforementioned first data. Specifically, the aforementioned target business rules include calculation logic, and the third processing module can calculate the aforementioned second data based on the aforementioned first data and the calculation logic.

[0054] Furthermore, the fourth processing module fills the solved second data into the target document. Specifically, the target document can be in the form of a table, which includes multiple pieces of second data to be filled in. Therefore, during the filling process, the fourth processing module needs to ensure that the second data is filled into the corresponding positions in the table to ensure the accuracy of the completed target document.

[0055] In this technical solution, the first processing module receives first data input by the user for the target document; the second processing module determines the target business rule for filling in the target document based on the first data; the third processing module calculates the second data to be filled in the target document based on the target business rule and the first data; and the fourth processing module fills in the calculated second data into the corresponding position in the target document. In the above technical solution of this invention, the third processing module calculates the second data to be filled in the target document based on the target business rule filtered from the rule engine database by the second processing module. This avoids the problems of large errors and missing data in the target document, which are often found in related technologies where the target document is filled in solely based on the business rules set on standard products. This ensures the accuracy of the filled target document.

[0056] Furthermore, the aforementioned target business rules are stored in the rule database of the open-source rule engine, which is independent of the business innovation platform. This avoids the need to modify or adjust the code of the standard products in the business innovation platform or add new business rules, and avoids the need to restart the business innovation platform's server every time a business rule is adjusted or added.

[0057] According to the third aspect of this application, another target document filling device is proposed, comprising: a memory storing a program or instructions; and a processor executing the program or instructions stored in the memory to implement the steps of the target document filling method proposed in the above-described technical solution of this application. Therefore, it has all the beneficial technical effects of the target document filling method proposed in the above-described technical solution of this application, which will not be elaborated further here.

[0058] According to a fourth aspect of this application, a readable storage medium is proposed, on which a program or instructions are stored, which, when executed by a processor, implement the method for filling out the target document as proposed in the above-described technical solution of this application. Therefore, this readable storage medium possesses all the beneficial effects of the method for filling out the target document as proposed in the above-described technical solution of this application, which will not be elaborated further here.

[0059] According to a fifth aspect of this application, an electronic device is proposed, comprising a form-filling device for the target document as described in the above-described technical solutions of this application and / or a readable storage medium as described in the above-described technical solutions of this invention. Therefore, this electronic device possesses all the beneficial effects of the form-filling device for the target document and / or the readable storage medium as described in the above-described technical solutions of this application, which will not be elaborated further here.

[0060] Additional aspects and advantages of this application will become apparent in the following description or may be learned by practice of this application. Attached Figure Description

[0061] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:

[0062] Figure 1 This is a flowchart illustrating one of the methods for filling out the target document according to an embodiment of this application;

[0063] Figure 2 This is a second flowchart illustrating the method for filling out the target document according to an embodiment of this application;

[0064] Figure 3 The third flowchart illustrates the method for filling out the target document according to an embodiment of this application;

[0065] Figure 4 The fourth flowchart illustrates the method for filling out the target document according to an embodiment of this application.

[0066] Figure 5 The fifth flowchart illustrates the method for filling out the target document according to an embodiment of this application.

[0067] Figure 6 One of the schematic block diagrams of a target document filling device according to an embodiment of this application is shown;

[0068] Figure 7 The second schematic block diagram shows a target document filling device according to an embodiment of this application. Detailed Implementation

[0069] To better understand the above-mentioned objectives, features, and advantages of this application, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.

[0070] Many specific details are set forth in the following description in order to provide a full understanding of this application. However, this application may also be implemented in other ways different from those described herein. Therefore, the scope of protection of this application is not limited to the specific embodiments disclosed below.

[0071] The following is combined Figures 1 to 7 This application provides a detailed description of a method, apparatus, storage medium, and electronic device for filling out a target document, through specific embodiments and application scenarios.

[0072] Figure 1 The diagram illustrates a flowchart of a method for filling out a target document according to an embodiment of this application, used in a business innovation platform. The business innovation platform includes a human-computer interaction interface, and the filling method includes:

[0073] S102, Receive the first data input by the user on the target document in the human-computer interaction interface;

[0074] S104, Based on the first data, the target business rules are filtered from the rule database. The rule database is a database in the open-source rule engine used to store the business rules preset by the user.

[0075] S106, Determine the second data based on the target business rules and the first data;

[0076] S108, fill in the second data into the target document.

[0077] It should be noted that the execution subject of the target document filling method proposed in this application can be a target document filling device. In order to more clearly explain the target document filling method proposed in this application, the following embodiments use the target document filling device as the execution subject of the target document filling method for illustrative purposes.

[0078] In this embodiment, the aforementioned business innovation platform refers to the general BIP (Business Innovation Platform), the aforementioned open-source rule engine refers to the Drools rule engine, and the rule database is the database in the open-source rule engine used to store the business rules pre-set by the user.

[0079] Specifically, the filling device first receives the first data entered by the user in the human-computer interaction interface of the business innovation platform. The first data represents the user's input data for the target document, which represents the business document to be filled in.

[0080] Specifically, by using the first data entered by the user on the target document, it is clear what data needs to be filled in or what filling conditions need to be followed for the target document. Based on the data or filling conditions, it is clear how to fill in the target document. Therefore, the filling device first needs to obtain the first data.

[0081] Furthermore, the filling device filters target business rules for filling the target document from the rule database based on the first data. Specifically, the rule database includes multiple business rules for filling business documents. Each business rule includes matching conditions and calculation logic. If the first data satisfies the matching conditions in the business rule, it indicates that the business rule can be used to fill the target document. Therefore, the filling device can determine the target business rule based on the first data.

[0082] For example, the filling device may also obtain the initial data of the target document and then determine the target business rules based on the initial data, wherein the initial business data represents the basic data in the target document.

[0083] Furthermore, the filling device calculates the second data to be filled in the target document based on the aforementioned target business rules and the aforementioned first data. Specifically, the aforementioned target business rules include calculation logic, and the filling device can calculate the aforementioned second data based on the aforementioned first data and the calculation logic.

[0084] For example, if the calculation logic of the above target business rule is "total price = unit price × quantity", the first data is a unit price of 50 yuan and a quantity of 10 pieces. The filling device can obtain the second data total price of 500 yuan based on the calculation logic of "total price = unit price × quantity" based on the first data.

[0085] Furthermore, the filling device fills in the solved second data into the target document. Specifically, the target document can be in the form of a table, which includes multiple second data to be filled in. Therefore, during the filling process, the filling device needs to ensure that the second data is filled in the corresponding positions in the table to ensure the accuracy of the filled target document.

[0086] In this embodiment, the filling device can receive first data input by the user for the target document, determine the target business rule for filling the target document based on the first data, calculate the second data to be filled in the target document based on the target business rule and the first data, and fill the calculated second data into the corresponding position in the target document. In the above embodiment of the present invention, the filling device calculates the second data to be filled in the target document based on the target business rule filtered from the rule engine database according to the first data. This avoids the problems of large errors and missing data in the target document when filling in the target document based solely on the business rules set on the standard product in related technologies, thus ensuring the accuracy of the filled target document.

[0087] Furthermore, the aforementioned target business rules are stored in the rule database of the open-source rule engine, which is independent of the business innovation platform. This avoids the need to modify or adjust the code of the standard products in the business innovation platform or add new business rules, and avoids the need to restart the business innovation platform's server every time a business rule is adjusted or added.

[0088] Figure 2 The flowchart illustrating a method for filling out a target document according to an embodiment of this application is shown. The rule database includes multiple first business rules, and the filling method includes:

[0089] S202, Receive the first data input by the user on the target document in the human-computer interaction interface;

[0090] S204, compare the first data with multiple first business rules, and determine the comparison result;

[0091] S206, Based on the comparison results, determine the target business rules;

[0092] S208, Determine the second data based on the target business rules and the first data;

[0093] S210, fill in the second data into the target document.

[0094] In this embodiment, the rule database includes a number of pre-built first business rules.

[0095] Specifically, the process of determining the aforementioned target business rule is as follows: the filling device first compares the aforementioned first data with the aforementioned multiple first business rules to determine the comparison result. Specifically, the aforementioned first business rules contain matching conditions, and the filling device can determine the comparison result by judging whether the aforementioned first data meets the matching conditions.

[0096] Furthermore, the filling device determines the target business rule from among multiple first business rules based on the comparison results. Specifically, the comparison results determine which business rules can be used to calculate the data to be filled in the target document. Therefore, the filling device can determine the target business rule based on the comparison results.

[0097] It should be noted that the number of target business rules can be one or more. The more target business rules there are, the more data to be filled in the target document, and the more accurate the target document will be.

[0098] In this embodiment, the filling device can compare the first data with multiple first business rules in the rule database to determine the target business rule. This avoids the situation in related technologies where the data to be filled in the target document can only be solved based on the business rules set on the standard product, thus ensuring the accuracy of the target document filled in subsequently.

[0099] Figure 3 The diagram illustrates a flowchart of a method for filling out a target document according to an embodiment of this application. Multiple first business rules include matching conditions, and the filling method includes:

[0100] S302, Receive the first data input by the user on the target document in the human-computer interaction interface;

[0101] S304, compare the first data with multiple first business rules, and determine the comparison result;

[0102] S306, if the comparison result shows that the first data meets the matching condition, the first business rule corresponding to the matching condition is determined as the target business rule;

[0103] S308, determine the second data based on the target business rules and the first data;

[0104] S310, fill in the second data into the target document.

[0105] In this embodiment, the aforementioned multiple first business rules are configured with matching conditions, which represent the conditions for the user to pre-configure the execution of the business rule.

[0106] Specifically, the process of determining the target business rule based on the above comparison results is as follows: the filling device confirms whether the first data in the comparison results meets the above matching conditions.

[0107] Specifically, if the comparison result indicates that the first data meets the matching conditions, the filling device determines the first business rule corresponding to the matching conditions as the target business rule.

[0108] Specifically, if the first data meets the matching condition, it means that executing the first business rule corresponding to the matching condition can solve for the second data to be filled in the target document. Therefore, in this case, the filling device can determine the first business rule corresponding to the matching condition as the target business rule.

[0109] For example, taking the first data as a unit price of 50 yuan, and the matching condition of a certain first business rule among the multiple first business rules as a unit price greater than 40 yuan, the filling device can determine that the comparison result of the unit price of 50 yuan meets the matching condition of a unit price greater than 40 yuan. Therefore, the first business rule corresponding to the matching condition can be determined as the target business rule.

[0110] In this embodiment, the filling device can determine the target business rule by comparing the first data with the results of multiple first business rules in the rule database. This avoids the situation in related technologies where the data to be filled in the target document can only be solved based on the business rules set on the standard product, thus ensuring the accuracy of the target document filled in subsequently.

[0111] Figure 4 A flowchart illustrating a method for filling out a target document according to an embodiment of this application is shown. The method includes:

[0112] S402, receive third data input by the user in the human-computer interaction interface;

[0113] S404, determine the first business rule based on the third data, and store the first business rule in the rule database;

[0114] S406, Receive the first data input by the user on the target document in the human-computer interaction interface;

[0115] S408: Compare the first data with multiple first business rules to determine the comparison result;

[0116] S410, Based on the comparison results, determine the target business rules;

[0117] S412, determine the second data based on the target business rules and the first data;

[0118] S414, Fill the second data into the target document.

[0119] In this embodiment, before receiving the first data, the filling device needs to pre-build multiple first business rules and save these rules to the rule database in the open-source rule engine. Specifically, the filling device first receives the third data input by the user in the human-computer interaction interface. Specifically, the third data represents the configuration data of the business rules, which can include matching conditions and calculation logic.

[0120] Furthermore, the filling device determines the first business rule based on the third data and saves the first business rule to the rule database. Specifically, the calculation logic and matching conditions of the first business rule that the user wants to configure can be clearly defined based on the third data. The filling device can construct the first business rule based on the calculation logic and matching conditions combined with the metadata in the business innovation platform.

[0121] In this embodiment, before receiving the first data, the user can also input third data through the human-computer interaction interface to construct the first business rule and save the first business rule to the rule database. This allows the user to dynamically modify or add business rules according to their needs.

[0122] In the above embodiments, the step of storing the first business rule in the rule database specifically includes: converting the first business rule into a rule script of a target format, and storing the rule script in the rule database.

[0123] In this embodiment, the process of storing the constructed first business rule into the rule database is as follows: the filling device converts the first business rule into a rule script in the target format and saves the rule script into the rule database.

[0124] Specifically, since the first business rule cannot be directly stored in the rule database, the filling device needs to convert it into a rule script in the target format for storage. This allows the open-source rule engine to directly execute the rule script of the target business rule when it is called later, which helps to improve the filling efficiency of the target document.

[0125] Specifically, the filling device can automatically convert the first business rule into the corresponding rule script by calling an open-source rule engine.

[0126] In this embodiment, the filling device can directly call the open-source rule engine to convert the first business rule into the corresponding rule script. This avoids the need for users to build business rules by writing program scripts, allowing both implementation personnel and customer business personnel to participate in the editing and maintenance of business rules. This simplifies the intelligent filling of target documents and improves the filling efficiency of target documents.

[0127] Figure 5 A flowchart illustrating a method for filling out a target document according to an embodiment of this application is shown. The method includes:

[0128] S502, Receive the first data input by the user on the target document in the human-computer interaction interface;

[0129] S504: Based on the first data, the target business rules are filtered from the rule database. The rule database is a database in the open-source rule engine used to store the business rules that the user has set in advance.

[0130] S506, when there are multiple target rules and multiple target business rules conflict, the conflicting target rules will be stored in the first agenda according to the preset priority;

[0131] S508, based on the first data, execute multiple target rules in the first agenda sequentially to determine the second data;

[0132] S510, fill in the second data into the target document.

[0133] In this embodiment, the number of the aforementioned target business rules can be one or more.

[0134] Specifically, the process of determining the second data is as follows: the filling device first determines the number of the target business rules, and when it determines that there are multiple target business rules, it determines whether there is a conflict between the multiple target business rules.

[0135] Specifically, when the filling device determines that there are multiple target business rules and there are conflicts among the multiple target business rules, the filling device saves the conflicting target business rules in the first agenda according to the preset priority.

[0136] Specifically, the aforementioned preset priority represents the priority level set by the user for each target business rule, and the aforementioned first agenda represents the queue in the open-source rule engine used to store conflicting target business rules.

[0137] Specifically, if there are multiple target business rules and there are conflicts among them, it means that the filling device cannot execute the calculation logic in multiple target business rules. Therefore, the filling device needs to store the conflicting target business rules in the first agenda according to the preset priority, so that the filling device can execute the calculation logic in all target business rules through the first agenda to ensure the accuracy of the target documents filled in later.

[0138] Furthermore, based on the aforementioned first data, the filling device sequentially executes the calculation logic of multiple target business rules in the aforementioned first agenda to calculate all the second data to be filled in the target document. Specifically, since multiple conflicting target business rules are stored in the first agenda according to a preset priority, the filling device can avoid conflicts by sequentially executing the target business rules in the first agenda.

[0139] In this embodiment, when multiple target business rules conflict, the filling device can store the conflicting target business rules in a first agenda according to a preset priority. When calculating the second data, the multiple target business rules in the first agenda can be executed sequentially. In this way, even when there are conflicting target business rules, all target business rules can be executed to solve for the second data, ensuring the accuracy of the determined second data and the accuracy of the filled target document.

[0140] Figure 6 A schematic block diagram of a target document filling device according to an embodiment of this application is shown. This device is used in a business innovation platform, which includes a human-computer interaction interface. The target document filling device 600 includes: a first processing module 602, used to receive first data input by a user into the target document through the human-computer interaction interface; a second processing module 604, used to filter target business rules from a rule database based on the first data, wherein the rule database is a database in an open-source rule engine used to store business rules; a third processing module 606, used to determine second data based on the target business rules and the first data; and a fourth processing module 608, used to fill the second data into the target document.

[0141] In this embodiment, the aforementioned business innovation platform refers to a general BIP platform, the aforementioned open-source rule engine refers to the Drools rule engine, and the rule database is the database in the open-source rule engine used to store user-preset business rules.

[0142] Specifically, the first processing module 602 first receives the first data input by the user in the human-computer interaction interface of the business innovation platform, wherein the first data represents the user's input data for the target document, and the target document represents the business document to be filled in.

[0143] Specifically, by using the first data entered by the user on the target document, it can be determined what data needs to be filled in or what filling conditions need to be followed for the target document. Based on the data or filling conditions, it can be determined how to fill in the target document. Therefore, the first processing module 602 needs to receive the first data first.

[0144] Furthermore, the second processing module 604 filters the target business rules for filling in the target document from the rule database based on the first data. Specifically, the rule database includes multiple business rules for filling in business documents. Each business rule includes matching conditions and calculation logic. If the first data satisfies the matching conditions in the business rule, it indicates that the business rule can be used to fill in the target document. Therefore, the second processing module 604 can determine the target business rule based on the first data.

[0145] Furthermore, the third processing module 606 calculates the second data to be filled in the target document based on the aforementioned target business rules and the aforementioned first data. Specifically, the aforementioned target business rules include calculation logic, and the third processing module 606 can calculate the aforementioned second data based on the aforementioned first data and the calculation logic.

[0146] Furthermore, the fourth processing module 608 fills the solved second data into the target document. Specifically, the target document can be in the form of a table, which includes multiple pieces of second data to be filled in. Therefore, during the filling process, the fourth processing module 608 needs to ensure that the second data is filled into the corresponding positions in the table to ensure the accuracy of the filled target document.

[0147] In this embodiment, the first processing module 602 receives first data input by the user for the target document, the second processing module 604 determines the target business rule for filling in the target document based on the first data, the third processing module 606 calculates the second data to be filled in the target document based on the target business rule and the first data, and the fourth processing module 608 fills the calculated second data into the corresponding position in the target document. In the above embodiment of the present invention, the third processing module 606 calculates the second data to be filled in the target document based on the target business rule filtered from the rule engine database by the second processing module 604. This avoids the problems of large errors and missing data in the target document when filling in the target document based solely on the business rules set on the standard product, as seen in related technologies, thus ensuring the accuracy of the filled target document.

[0148] Furthermore, the aforementioned target business rules are stored in the rule database of the open-source rule engine, which is independent of the business innovation platform. This avoids the need to modify or adjust the code of the standard products in the business innovation platform or add new business rules, and avoids the need to restart the business innovation platform's server every time a business rule is adjusted or added.

[0149] In the above embodiments, the second processing module 604 is specifically used to compare the first data with multiple first business rules to determine the comparison result; and to determine the target business rule based on the comparison result.

[0150] In the above embodiments, multiple first business rules are configured with matching conditions. The second processing module 604 is specifically used to determine the first business rule corresponding to the matching condition as the target business rule when the comparison result shows that the first data meets the matching conditions.

[0151] In the above embodiments, the first processing module 602 is further configured to receive third data input by the user in the human-computer interaction interface; determine a first business rule based on the third data; and store the first business rule in the rule database.

[0152] In the above embodiments, the first processing module 602 is specifically used to convert the first business rule into a rule script in a target format and store the rule script in a rule database.

[0153] In the above embodiments, the third processing module 606 is specifically used to store the conflicting target rules into a first agenda according to a preset priority when there are multiple target rules and multiple target rules conflict; and to execute multiple target business rules in the first agenda in sequence based on the first data to determine the second data.

[0154] Figure 7 A schematic block diagram of a target document filling device according to an embodiment of this application is shown. The target document filling device 700 includes: a memory 702, which stores programs or instructions; and a processor 704, which executes the programs or instructions stored in the memory 702 to implement the steps of the target document filling method proposed in the above embodiments of this application. Therefore, it has all the beneficial technical effects of the target document filling method proposed in the above embodiments of this application, and will not be described in detail here.

[0155] According to one embodiment of this application, a readable storage medium is proposed, on which a program or instructions are stored. When the program or instructions are executed by a processor, they implement the method for filling out the target document as proposed in the above embodiments of this application. Therefore, this readable storage medium possesses all the beneficial effects of the method for filling out the target document as proposed in the above embodiments of this application, which will not be elaborated further here.

[0156] According to one embodiment of this application, an electronic device is proposed, including a target document filling device proposed in the above embodiments of this application and / or a readable storage medium proposed in the above embodiments of this invention. Therefore, this electronic device possesses all the beneficial effects of the target document filling device and / or readable storage medium proposed in the above embodiments of this application, which will not be elaborated further here.

[0157] In the description of this specification, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance, unless otherwise expressly specified and limited. The terms "connection," "installation," and "fixing," etc., should be interpreted broadly. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection or an indirect connection through an intermediate medium. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.

[0158] In the description of this specification, the terms "one embodiment," "some embodiments," "specific embodiment," etc., refer to a specific feature, structure, material, or characteristic described in connection with that embodiment or example, which is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0159] Furthermore, the technical solutions of the various embodiments of this application can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. When the combination of technical solutions results in contradictions...

[0160] If such a combination of technical solutions cannot be achieved, it should be considered that such a combination does not exist and is not within the scope of protection claimed in this application.

[0161] The above are merely preferred embodiments of this application and are not intended to limit the scope of this application.

[0162] For those skilled in the art, this application can be modified and varied in various ways. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application shall be included within the scope of protection of this application.

Claims

1. A method for filling out a target document, characterized in that, For use in a business innovation platform, the business innovation platform includes a human-computer interaction interface, and the filling method includes: Receive the first data input by the user on the target document in the human-computer interaction interface; The target business rules are filtered from the rule database based on the first data. The rule database is a database in the open-source rule engine used to store the business rules that the user has set in advance. Based on the target business rules and the first data, determine the second data; The second data is filled into the target document, wherein the number of target business rules is one or more, and the target business rules include calculation logic. The filling device can solve for the second data based on the first data and the calculation logic. The rule database includes multiple first business rules. The step of filtering the target business rule from the rule database based on the first data specifically includes: The first data is compared with the plurality of first business rules to determine the comparison result; Based on the comparison results, the target business rule is determined; The step of determining the second data based on the target business rule and the first data specifically includes: If there are multiple target business rules and multiple target business rules conflict, the multiple conflicting target business rules are stored in the first agenda according to a preset priority. Based on the first data, the multiple target business rules in the first agenda are executed sequentially to determine the second data.

2. The filling method according to claim 1, characterized in that, The plurality of first business rules are configured with matching conditions. The step of determining the target business rule based on the comparison result specifically includes: If the comparison result indicates that the first data meets the matching condition, the first business rule corresponding to the matching condition is determined as the target business rule.

3. The filling method according to claim 1 or 2, characterized in that, Before receiving the first data input by the user on the target document in the human-computer interaction interface, the filling method further includes: Receive third data input by the user in the human-computer interaction interface; The first business rule is determined based on the third data, and the first business rule is stored in the rule database.

4. The filling method according to claim 3, characterized in that, The step of storing the first business rule in the rule database specifically includes: The first business rule is converted into a rule script in the target format, and the rule script is stored in the rule database.

5. A device for filling out a target document, characterized in that, For use in a business innovation platform, the business innovation platform includes a human-computer interaction interface, and the filling device includes: The first processing module is used to receive first data input by the user on the target document in the human-computer interaction interface; The second processing module is used to filter out target business rules from the rule database based on the first data. The rule database is a database used to store business rules in an open-source rule engine. The third processing module is used to determine the second data based on the target business rules and the first data; The fourth processing module is used to fill the second data into the target document, wherein the number of target business rules is one or more, the target business rules include calculation logic, and the filling device can solve for the second data based on the first data and the calculation logic; The rule database includes multiple first business rules, and the second processing module is specifically used for: The first data is compared with the plurality of first business rules to determine the comparison result; Based on the comparison results, the target business rule is determined; The third processing module is specifically used for: If there are multiple target business rules and multiple target business rules conflict, the multiple conflicting target business rules are stored in the first agenda according to a preset priority. Based on the first data, the multiple target business rules in the first agenda are executed sequentially to determine the second data.

6. A device for filling out a target document, characterized in that, include: A memory and a processor, wherein the memory stores a program, and the processor executes the program to implement the steps of the method for filling out the target document as described in any one of claims 1 to 4.

7. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the method for filling out the target document as described in any one of claims 1 to 4.

8. An electronic device, characterized in that, include: The target document filling device as described in claim 5 or 6; and / or The readable storage medium as described in claim 7.

Citation Information

Patent Citations

  • Service processing method, device, electronic equipment and storage medium

    CN110825488A

  • Document intelligent filling method and system and related equipment

    CN111914548A

  • Business rule determination method and device, readable storage medium and electronic equipment

    CN114064022A