CN115935919A - Target document filling method and device, storage medium and electronic equipment - Google Patents

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

Info

Publication number
CN115935919A
CN115935919A CN202211541663.5A CN202211541663A CN115935919A CN 115935919 A CN115935919 A CN 115935919A CN 202211541663 A CN202211541663 A CN 202211541663A CN 115935919 A CN115935919 A CN 115935919A
Authority
CN
China
Prior art keywords
data
rule
target
business
filling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211541663.5A
Other languages
Chinese (zh)
Inventor
张金泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yonyou Network Technology Co Ltd
Original Assignee
Yonyou Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yonyou Network Technology Co Ltd filed Critical Yonyou Network Technology Co Ltd
Priority to CN202211541663.5A priority Critical patent/CN115935919A/en
Publication of CN115935919A publication Critical patent/CN115935919A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a filling method and device of a target document, a storage medium and electronic equipment. The filling method is used for a business innovation platform, the business innovation platform comprises a human-computer interaction interface, and the filling method comprises the following steps: receiving first data input by a user on a target document in a human-computer 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 business rules preset by a 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.

Description

Target document filling method and device, storage medium and electronic equipment
Technical Field
The application relates to the technical field of data processing, in particular to a filling method and device of a target document, a storage medium and electronic equipment.
Background
In the related art, in a scene of filling in some documents, the filling can be performed only based on the service rules set on the standard product, but the documents usually involve multiple service rules, and if the filling is performed only according to the service rules set on the standard product, the filled documents have large errors and may lack data, so that how to provide an intelligent filling method for documents becomes a technical problem which needs to be solved urgently.
Disclosure of Invention
The present application is directed to solving at least one of the technical problems occurring in the related art.
To this end, a first aspect of the present application is to provide a method for filling out a target document.
A second aspect of the present application is to provide a filling apparatus for a target document.
A third aspect of the present application is to provide another apparatus for filling out a target document.
A fourth aspect of the present application is directed to a readable storage medium.
A fifth aspect of the present application is to provide an electronic device.
In view of the above, according to one aspect of the present application, a method for filling out a target document is provided, which is used for a business innovation platform, the business innovation platform includes a human-computer interaction interface, and the filling out method includes: receiving first data input by a user on a target document in a human-computer interaction interface; screening out a target business rule from a rule database according to the first data, wherein the rule database is a database which is used for storing business rules preset by a 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.
It should be noted that an execution main body of the filling method for the target document provided by the present application may be a filling device for the target document, and in order to describe the filling method for the target document provided by the present application more clearly, an exemplary description is given below with an execution main body of the filling method for the target document as a filling device for the target document.
In the technical solution, the Business Innovation Platform represents a general BIP (Business Innovation Platform) Platform, the open source rule engine represents a Drools rule engine, and the rule database is a database in the open source rule engine for storing Business rules preset by a user.
Specifically, the filling device firstly receives first data input by a user in a human-computer interaction interface of a business innovation platform, wherein the first data represents input data of the user on a target document, and the target document represents a business document to be filled.
Specifically, the data to be filled in the target document or the filling conditions to be followed by the target document can be determined through the first data input by the user on the target document, and how to fill in the target document can be determined according to the data to be filled in or the filling conditions to be followed, so that the filling device needs to acquire the first data at first.
Further, the filling device screens out the target business rules for filling the target documents from the rule database according to the first data. Specifically, the rule database includes a plurality of business rules for filling in business documents, the business rules include matching conditions and calculation logic, and if the first data can satisfy the matching conditions in the business rules, it indicates that the business rules can be used for filling in target documents. Accordingly, the filling means may determine the target business rule based on the first data.
Further, the filling device solves second data to be filled in the target document according to the target business rule and the first data. Specifically, the target business rule includes a computation logic, and the filling device can solve the second data based on the computation logic according to the first data.
Further, the filling device fills the solved second data into the target document. Specifically, the target document may be in the form of a form, where the form includes a plurality of second data to be filled, and therefore, during the filling process, the filling device needs to ensure that the second data is filled in a corresponding position in the form, so as to ensure the accuracy of the filled target document.
According to the technical scheme, the filling device can receive first data input by a user for the target document, can determine a target business rule for filling the target document according to the first data, can solve second data to be filled in the target document according to the target business rule and the first data, and can fill the solved second data to a corresponding position in the target document. In the technical scheme of the invention, the filling device is used for solving the second data to be filled in the target document according to the target business rule screened from the rule engine database by the first data, so that the problems that the error of the filled document is large and the data possibly lacks in the related technology for filling the target document according to the business rule set on the standard product are avoided, and the accuracy of the filled target document is ensured.
In addition, the target service rules are stored in a rule database of the open source rule engine, and the open source rule engine is independent relative to the business innovation platform, so that the mode that codes of standard products in the business innovation platform need to be modified and adjusted or service rules need to be added is avoided, and the condition that a server of the business innovation platform needs to be restarted each time the service rules are adjusted or added is avoided.
In addition, the filling method of the target document provided by the technical scheme of the invention can also have the following additional technical characteristics:
in the above technical solution, the rule database includes a plurality of first business rules, and the step of screening the target business rule from the rule database according to the first data specifically includes: comparing the first data with a plurality of first business rules to determine a comparison result; and determining the target business rule according to the comparison result.
In the technical scheme, the rule database comprises a plurality of first business rules which are constructed in advance.
Specifically, the process of determining the target business rule is as follows: the filling device firstly compares the first data with the plurality of first business rules to determine a comparison result. Specifically, the first business rule is provided with a matching condition, and the filling device may determine the comparison result by determining whether the first data meets the matching condition.
Further, the filling device determines a target business rule from the plurality of first business rules according to the comparison result. Specifically, it can be determined which business rules can be used for calculating the data to be filled in the target document according to the comparison result, and therefore, the filling device can determine the target business rules according to the comparison result.
In the technical scheme, the filling device can compare the first data with the plurality of first business rules in the rule database to determine the target business rule, so that the condition that the data to be filled in the target document can be solved only based on the business rules set on the standard product in the related technology is avoided, and the accuracy of the target document to be subsequently filled and written is ensured.
In the above technical solution, the step of determining the target business rule according to the comparison result includes: and determining the first business rule corresponding to the matching condition as the target business rule under the condition that the comparison result is that the first data accords with the matching condition.
In the technical solution, the plurality of first business rules are provided with matching conditions, and the matching conditions indicate conditions for executing the business rules, which are configured in advance by a user.
Specifically, the process of determining the target business rule according to the comparison result is as follows: the filling device confirms whether the first data in the comparison result meets the matching condition.
Specifically, when the comparison result is that the first data meets the matching condition, the filling device determines the first business rule corresponding to the matching condition as the target business rule.
Specifically, if the first data meets the matching condition, it indicates that executing the first business rule corresponding to the matching condition can solve the second data to be filled in the target document, and therefore, in this case, the filling device may determine the first business rule corresponding to the matching condition as the target business rule.
In the technical scheme, the filling device can determine the target business rule according to the comparison result of the first data and the plurality of first business rules in the rule database, so that the condition that the data to be filled in the target bill can be solved only based on the business rules set on the standard product in the related technology is avoided, and the accuracy of the target bill filled and written subsequently is ensured.
In the above technical solution, before receiving first data input by a user for a target document in a human-computer interaction interface, the filling method further includes: receiving third data input by a user in the human-computer interaction interface; and determining a first business rule according to the third data, and storing the first business rule into a rule database.
In the technical scheme, before receiving the first data, the filling device further needs to construct a plurality of first business rules in advance, and store the constructed first business rules into a rule database in an open source rule engine, and the specific process is as follows: the filling device firstly receives third data input by the user in the man-machine interaction interface. Specifically, the third data represents configuration data of the business rule, which can match data such as conditions and calculation logic.
Further, the filling device determines the first business rule according to the third data, and stores the first business rule in the rule database. Specifically, the calculation logic and the matching condition of the first business rule which the user wants to configure can be specified according to the third data, and the filling device can construct the first business rule by combining the metadata in the business innovation platform according to the calculation logic and the matching condition.
In the technical scheme, before receiving the first data, a user can also input third data through a human-computer interaction interface, construct a first service rule, and store the first service rule into a rule database, so that the user can dynamically modify the service rule or add a new service rule according to requirements.
In the above technical solution, the step of storing the first business rule in the rule database specifically includes: and converting the first business rule into a rule script in a target format, and storing the rule script into a rule database.
In the technical scheme, the process of storing the constructed first business rule into the rule database is as follows: and the filling device converts the first business rule into a rule script in a target format and stores the rule script in a rule database.
Specifically, since the first service rule is constructed and cannot be directly stored in the rule database, the filling device needs to convert the first service rule into the rule script of the target format for storage, so that the open source rule engine can directly execute the rule script of the target service rule when the target service rule is called subsequently, and thus, the filling efficiency of the target document is improved.
Specifically, the filling device may automatically convert the first business rule into a corresponding rule script by invoking the open source rule engine.
In the technical scheme, the filling device can convert the first business rule into the corresponding rule script by directly calling the open source rule engine, so that the condition that a user needs to establish the business rule by writing a program script is avoided, implementers and customer business personnel can participate in business rule editing and maintenance, intelligent filling of the target document is simplified, and filling efficiency of the target document is improved.
In the above technical solution, the step of determining the second data according to the target business rule and the first data specifically includes: under the condition that the number of the target rules is multiple and the target business rules conflict, storing the multiple conflicting target rules into a first agenda according to a preset priority; and sequentially executing a plurality of target rules in the first agenda based on the first data, and determining second data.
In this technical solution, the number of the target business rules may be one or more.
Specifically, the process of determining the second data is as follows: the filling device firstly judges the number of the target business rules, and judges whether conflicts exist among the target business rules when the number of the target business rules is judged to be multiple.
Specifically, when the filling device determines that the number of the target business rules is multiple and conflicts exist among the multiple target business rules, the filling device stores the conflicting target business rules in a first agenda according to a preset priority.
Specifically, the preset priority represents a priority level set by a user for each target business rule, and the first agenda represents a queue in the open source rule engine for storing conflicting target business rules.
Specifically, if the number of the target business rules is multiple and there is a conflict between the multiple target business rules, it indicates that the filling device cannot execute the computation logic in the multiple target business rules, and therefore, the filling device needs to store the conflicting target business rules into the first agenda according to the preset priority, so that the filling device can execute the computation logic in all the target business rules through the first agenda, and thus the accuracy of the subsequently filled target documents is ensured.
Further, the filling device executes the calculation logics in the target business rules in the first agenda in sequence based on the first data so as to calculate all second data to be filled in the target documents. Specifically, since the plurality of target business rules which conflict with each other are stored in the first agenda according to the preset priority, the filling device sequentially executes the target business rules in the first agenda, so that the condition of conflict can be avoided.
According to the technical scheme, the filling device can store the multiple conflicting target business rules into the first agenda according to the preset priority level under the condition that the multiple target business rules conflict, and can sequentially execute the multiple target business rules in the first agenda when the second data are calculated, so that all the target business rules can be executed to solve the second data when the conflicting target business rules exist, the accuracy of the determined second data is guaranteed, and the accuracy of the filled target document is guaranteed.
According to a second aspect of the present application, a filling device for a target document is provided, which is used for a business innovation platform, the business innovation platform comprises a human-computer interaction interface, and the filling device for the target document comprises: the first processing module is used for receiving first data input by a user on a target document in a man-machine interaction interface; the second processing module is used for screening out a target business rule from a rule database according to the first data, wherein the rule database is a database used for storing the business rule in the open source rule engine; the third processing module is used for determining second data according to the target business rule and the first data; and the fourth processing module is used for filling the second data into the target bill.
In the technical scheme, the business innovation platform represents a general BIP platform, the open source rule engine represents a Drools rule engine, and the rule database is a database used for storing business rules preset by a user in the open source rule engine.
Specifically, the first processing module firstly receives first data input by a user in a human-computer interaction interface of a business innovation platform, wherein the first data represents input data of the user on a target document, and the target document represents a business document to be filled.
Specifically, the first data input by the user on the target document can specify the data to be filled in the target document or the filling conditions to be followed by the target document, and how to fill in the target document can be specified according to the data to be filled in or the filling conditions to be followed, so that the first processing module is required to receive the first data first.
Further, the second processing module screens out a target business rule for filling the target document from the rule database according to the first data. Specifically, the rule database includes a plurality of business rules for filling in business documents, the business rules include matching conditions and calculation logic, and if the first data can satisfy the matching conditions in the business rules, it indicates that the business rules can be used for filling in target documents. Therefore, the second processing module may determine the target business rule according to the first data.
Further, the third processing module solves second data to be filled in the target document according to the target business rule and the first data. Specifically, the target business rule includes a computation logic, and the third processing module can solve the second data based on the computation logic according to the first data.
Further, the fourth processing module fills the solved second data into the target document. Specifically, the target document may be in the form of a table, and the table includes a plurality of second data to be filled, so that during the filling process, the fourth processing module needs to ensure that the second data is filled in a corresponding position in the table, so as to ensure the accuracy of the filled target document.
In the technical scheme, a first processing module can receive first data input by a user for a target document, a second processing module can determine a target business rule for filling the target document according to the first data, a third processing module can solve second data to be filled in the target document according to the target business rule and the first data, and a fourth processing module can fill the solved second data to a corresponding position in the target document. In the technical scheme of the invention, the third processing module is used for solving the second data to be filled in the target document according to the target business rule screened from the rule engine database by the second processing module, so that the problems that the error of the filled document is large and the data is possibly lacked because the target document is filled according to the business rule set on a standard product in the related technology are avoided, and the accuracy of the filled target document is ensured.
In addition, the target service rule is stored in the rule database of the open source rule engine, and the open source rule engine is independent relative to the business innovation platform, so that the mode that the code of a standard product in the business innovation platform is modified and adjusted or a service rule is newly added is avoided, and the condition that the server of the business innovation platform is restarted every time the service rule is adjusted or newly added is avoided.
According to a third aspect of the present application, there is provided another filling apparatus for a target document, including: a memory having a program or instructions stored therein; the processor executes the program or the instruction stored in the memory to implement the steps of the method for filling the target document proposed by the technical scheme of the application, so that the method has all the beneficial technical effects of the method for filling the target document proposed by the technical scheme of the application, and redundant description is not repeated herein.
According to a fourth aspect of the present 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 a target document as proposed in the above-mentioned technical solution of the present application. Therefore, the readable storage medium has all the beneficial effects of the method for filling the target document proposed by the technical scheme of the application, and details are not repeated herein.
According to a fifth aspect of the present application, an electronic device is provided, which includes a filling device for a target document and/or a readable storage medium according to the above-mentioned technical solution. Therefore, the electronic device has all the advantages of the filling device and/or the readable storage medium of the target document proposed by the technical scheme of the application, and details are not repeated herein.
Additional aspects and advantages of the present application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the present application.
Drawings
The above and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 shows one of the flow diagrams of a filling method of a target document according to an embodiment of the present application;
fig. 2 shows a second flowchart of a filling method of a target document according to the embodiment of the present application;
fig. 3 is a third schematic flow chart illustrating a filling-in method of a target document according to an embodiment of the present application;
FIG. 4 is a fourth flowchart illustrating a filling-in method of a target document according to an embodiment of the present application;
fig. 5 shows a fifth flowchart of a filling method of a target document according to an embodiment of the present application;
FIG. 6 shows one of the schematic block diagrams of a device for filling in a target document according to an embodiment of the present application;
fig. 7 shows a second schematic block diagram of a target document filling apparatus according to the second embodiment of the present application.
Detailed Description
In order that the above objects, features and advantages of the present application can be more clearly understood, the present application will be described in further detail with reference to the accompanying drawings and detailed description. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application, however, the present application may be practiced in other ways than those described herein, and therefore the scope of the present application is not limited to the specific embodiments disclosed below.
A method, an apparatus, a storage medium, and an electronic device for filling out a target document according to the embodiments of the present application are described in detail with reference to fig. 1 to 7 through specific embodiments and application scenarios thereof.
Fig. 1 shows a flow diagram of a filling method of a target document according to an embodiment of the present application, which is used for a business innovation platform including a human-computer interaction interface, and the filling method includes:
s102, receiving first data input by a user on a target document in a man-machine interaction interface;
s104, screening out a target business rule from a rule database according to the first data, wherein the rule database is a database which is used for storing a business rule preset by a user in an open source rule engine;
s106, determining second data according to the target business rule and the first data;
and S108, filling the second data into the target document.
It should be noted that the executing main body of the filling method for the target document provided by the present application may be a filling device for the target document, and in order to more clearly describe the filling method for the target document provided by the present application, the executing main body of the filling method for the target document is taken as an exemplary filling device for the target document in the following embodiments.
In this embodiment, the Business Innovation Platform represents a general BIP (Business Innovation Platform) Platform, the open source rule engine represents a Drools rule engine, and the rule database is a database in the open source rule engine for storing Business rules preset by a user.
Specifically, the filling device firstly receives first data input by a user in a human-computer interaction interface of a business innovation platform, wherein the first data represents input data of the user on a target document, and the target document represents a business document to be filled.
Specifically, the first data input by the user on the target document can specify the data to be filled in the target document or the filling conditions to be followed by the target document, and how to fill in the target document can be specified according to the data to be filled in or the filling conditions to be followed, so that the filling device needs to acquire the first data first.
Further, the filling device screens out a target business rule for filling the target document from the rule database according to the first data. Specifically, the rule database includes a plurality of business rules for filling in business documents, the business rules include matching conditions and calculation logic, and if the first data can satisfy the matching conditions in the business rules, it indicates that the business rules can be used for filling in target documents. Accordingly, the filling device may determine the target business rule according to the first data.
For example, the filling device may also obtain initial data of the target document, and then determine the target business rule according to the initial data, where the initial business data represents basic data in the target document.
Further, the filling device solves second data to be filled in the target document according to the target business rule and the first data. Specifically, the target business rule includes a computation logic, and the filling device can solve the second data based on the computation logic according to the first data.
Illustratively, when the calculation logic of the target business rule is "total price = unit price × number", the first data is unit price 50 element and number 10, and the filling device may derive the second data total price as 500 element based on the calculation logic of "total price = unit price × number" according to the first data.
Further, the filling device fills the solved second data into the target document. Specifically, the target document may be in the form of a form, where the form includes a plurality of second data to be filled, and therefore, during the filling process, the filling device needs to ensure that the second data is filled in a corresponding position in the form, so as to ensure the accuracy of the filled target document.
In the embodiment, the filling device can receive first data input by a user for the target document, can determine a target business rule for filling the target document according to the first data, can solve second data to be filled in the target document according to the target business rule and the first data, and can fill the solved second data to a corresponding position in the target document. In the embodiment of the invention, the filling device is used for solving the second data to be filled in the target document according to the target business rule screened from the rule engine database by the first data, so that the problems that the error of the filled document is large and the data possibly lacks in the related technology for filling the target document according to the business rule set on the standard product are avoided, and the accuracy of the filled target document is ensured.
In addition, the target service rule is stored in the rule database of the open source rule engine, and the open source rule engine is independent relative to the business innovation platform, so that the mode that the code of a standard product in the business innovation platform is modified and adjusted or a service rule is newly added is avoided, and the condition that the server of the business innovation platform is restarted every time the service rule is adjusted or newly added is avoided.
Fig. 2 is a schematic flow chart illustrating a filling method of a target document according to an embodiment of the present application, where a rule database includes a plurality of first business rules, and the filling method includes:
s202, receiving first data input by a user on a target document in a man-machine interaction interface;
s204, comparing the first data with a plurality of first business rules to determine a comparison result;
s206, determining a target business rule according to the comparison result;
s208, determining second data according to the target business rule and the first data;
and S210, filling the second data into the target bill.
In this embodiment, the rule database includes a plurality of first business rules that are constructed in advance.
Specifically, the process of determining the target business rule includes: the filling device firstly compares the first data with the plurality of first business rules to determine a comparison result. Specifically, the first business rule is provided with a matching condition, and the filling device may determine the comparison result by determining whether the first data meets the matching condition.
Further, the filling device determines a target business rule from the plurality of first business rules according to the comparison result. Specifically, it can be determined which business rules can be used for calculating the data to be filled in the target document according to the comparison result, and therefore, the filling device can determine the target business rules according to the comparison result.
It should be noted that the determined number of the target business rules may be one or multiple, where the larger the number of the target business rules is, the more data to be filled in the target document is, the more accurate the filled target document is.
In this embodiment, the filling device may compare the first data with the plurality of first business rules in the rule database to determine the target business rule, so as to avoid a situation that the data to be filled in the target document can only be solved based on the business rules set on the standard product in the related art, and ensure accuracy of the target document to be subsequently filled.
Fig. 3 is a schematic flow chart illustrating a filling method of a target document according to an embodiment of the present application, where matching conditions are set in a plurality of first business rules, and the filling method includes:
s302, receiving first data input by a user on a target document in a man-machine interaction interface;
s304, comparing the first data with a plurality of first business rules to determine a comparison result;
s306, determining the first business rule corresponding to the matching condition as a target business rule under the condition that the comparison result is that the first data accords with the matching condition;
s308, determining second data according to the target business rule and the first data;
and S310, filling the second data into the target bill.
In this embodiment, a matching condition is set in the first business rules, where the matching condition indicates a condition for the user to configure and execute the business rule in advance.
Specifically, the process of determining the target business rule according to the comparison result is as follows: the filling device confirms whether the first data in the comparison result meets the matching condition.
Specifically, when the comparison result is that the first data meets the matching condition, the filling device determines the first business rule corresponding to the matching condition as the target business rule.
Specifically, if the first data meets the matching condition, it indicates that executing the first business rule corresponding to the matching condition may solve the second data to be filled in the target document, and therefore, in this case, the filling device may determine the first business rule corresponding to the matching condition as the target business rule.
For example, when the unit price of the first data is 50 yuan, and the matching condition of a certain first business rule in the plurality of first business rules is that the unit price is greater than 40 yuan, the filling device may determine that the unit price of 50 yuan matches the matching condition that the unit price is greater than 40 yuan as the comparison result, and thus, may determine the first business rule corresponding to the matching condition as the target business rule.
In this embodiment, the filling device may determine the target business rule according to a comparison result between the first data and the plurality of first business rules in the rule database, so that a situation that data to be filled in the target document is solved only based on the business rules set on the standard product in the related art is avoided, and accuracy of the target document to be subsequently filled and written is ensured.
Fig. 4 is a schematic flowchart illustrating a filling method of a target document according to an embodiment of the present application, where the filling method includes:
s402, receiving third data input by a user in a human-computer interaction interface;
s404, determining a first business rule according to the third data, and storing the first business rule into a rule database;
s406, receiving first data input by a user on a target document in a man-machine interaction interface;
s408, comparing the first data with a plurality of first business rules to determine a comparison result;
s410, determining a target business rule according to a comparison result;
s412, determining second data according to the target business rule and the first data;
and S414, filling the second data into the target document.
In this embodiment, before receiving the first data, the filling device further needs to construct a plurality of first business rules in advance, and store the constructed plurality of first business rules in a rule database in the open-source rule engine, which specifically includes: the filling device firstly receives third data input by the user in the man-machine interaction interface. Specifically, the third data represents configuration data of the business rule, which can match data such as conditions and calculation logic.
Further, the filling device determines the first business rule according to the third data, and stores the first business rule in the rule database. Specifically, the calculation logic and the matching condition of the first business rule which the user wants to configure can be specified according to the third data, and the filling device can construct the first business rule by combining the metadata in the business innovation platform according to the calculation logic and the matching condition.
In this embodiment, before receiving the first data, the user may further input third data through the human-computer interaction interface, construct the first service rule, and store the first service rule in the rule database, so that the user may dynamically modify the service rule or add a new service rule according to the requirement.
In the above embodiment, the step of storing the first business rule in the rule database specifically includes: and converting the first business rule into a rule script in a target format, and storing the rule script into a rule database.
In this embodiment, the process of storing the constructed first business rule in the rule database is as follows: and the filling device converts the first business rule into a rule script in a target format and stores the rule script in a rule database.
Specifically, since the first service rule is constructed and cannot be directly stored in the rule database, the filling device needs to convert the first service rule into the rule script of the target format for storage, so that the open source rule engine can directly execute the rule script of the target service rule when the target service rule is called subsequently, and thus, the filling efficiency of the target document is improved.
Specifically, the filling device may automatically convert the first business rule into a corresponding rule script by invoking the open source rule engine.
In the embodiment, the filling device can convert the first service rule into the corresponding rule script by directly calling the open source rule engine, so that the condition that a user needs to establish the service rule by writing a program script is avoided, implementers and customer service personnel can participate in service rule editing and maintenance, intelligent filling of the target document is simplified, and filling efficiency of the target document is improved.
Fig. 5 is a schematic flowchart illustrating a filling method of a target document according to an embodiment of the present application, where the filling method includes:
s502, receiving first data input by a user on a target document in a man-machine interaction interface;
s504, screening out a target business rule from a rule database according to the first data, wherein the rule database is a database which is used for storing business rules preset by a user in an open source rule engine;
s506, under the condition that the number of the target rules is multiple and the target business rules conflict, storing the multiple conflicting target rules into a first agenda according to a preset priority;
s508, on the basis of the first data, sequentially executing a plurality of target rules in the first agenda, and determining second data;
and S510, filling the second data into the target document.
In this embodiment, the number of the target business rules may be one or more.
Specifically, the process of determining the second data is as follows: the filling device firstly judges the number of the target business rules, and judges whether conflicts exist among the target business rules when the number of the target business rules is judged to be multiple.
Specifically, when the filling device determines that the number of the target business rules is multiple and conflicts exist among the multiple target business rules, the filling device stores the conflicting target business rules in a first agenda according to a preset priority.
Specifically, the preset priority represents a priority level set by a user for each target business rule, and the first agenda represents a queue in the open source rule engine for storing conflicting target business rules.
Specifically, if the number of the target business rules is multiple and there is a conflict between the multiple target business rules, it indicates that the filling device cannot execute the computation logic in the multiple target business rules, and therefore, the filling device needs to store the conflicting target business rules into the first agenda according to the preset priority, so that the filling device can execute the computation logic in all the target business rules through the first agenda, and thus the accuracy of the subsequently filled target documents is ensured.
Further, the filling device executes the calculation logics in the target business rules in the first agenda in sequence based on the first data so as to calculate all second data to be filled in the target documents. Specifically, since a plurality of target business rules which conflict with each other are stored in the first agenda according to the preset priority, the filling device sequentially executes the target business rules in the first agenda, so that the conflict can be avoided.
In this embodiment, the filling device can store the multiple conflicting target business rules into the first agenda according to the preset priority level when the multiple target business rules conflict, and can sequentially execute the multiple target business rules in the first agenda when calculating the second data, so that all the target business rules can be executed to solve the second data when the conflicting target business rules exist, the accuracy of the determined second data is ensured, and the accuracy of the filled target document is ensured.
Fig. 6 shows a schematic block diagram of a filling device for a target document according to an embodiment of the present application, which is used for a business innovation platform, the business innovation platform includes a human-computer interaction interface, and the filling device 600 for the target document includes: the first processing module 602 is used for receiving first data input by a user on a target document in a human-computer interaction interface; a second processing module 604, configured to screen a target business rule from a rule database according to the first data, where the rule database is a database in the open-source rule engine and used for storing the business rule; a third processing module 606, configured to determine second data according to the target business rule and the first data; and a fourth processing module 608, configured to fill the second data in the target document.
In this embodiment, the business innovation platform represents a general BIP platform, the open source rule engine represents a Drools rule engine, and the rule database is a database in the open source rule engine for storing business rules preset by a user.
Specifically, the first processing module 602 first receives first data input by a user in a human-computer interaction interface of a business innovation platform, wherein the first data represents input data of the user on a target document, and the target document represents a business document to be filled.
Specifically, the first data input by the user on the target document may be used to specify data to be filled in the target document or what filling conditions the target document needs to follow, and how to fill in the target document may be specified according to the data to be filled in or the filling conditions to be followed, so that the first processing module 602 is first required to receive the first data.
Further, the second processing module 604 screens out a target business rule for filling out the target document from the rule database according to the first data. Specifically, the rule database includes a plurality of business rules for filling in business documents, the business rules include matching conditions and calculation logic, and if the first data can satisfy the matching conditions in the business rules, it indicates that the business rules can be used for filling in target documents. Accordingly, the second processing module 604 may determine the target business rule according to the first data.
Further, the third processing module 606 solves the second data to be filled in the target document according to the target business rule and the first data. Specifically, the target business rule includes a computation logic, and the third processing module 606 can solve the second data based on the computation logic according to the first data.
Further, the fourth processing module 608 fills the solved second data into the target document. Specifically, the target document may be in the form of a table, where the table includes a plurality of second data to be filled, and therefore, during the filling process, the fourth processing module 608 needs to ensure that the second data is filled in a corresponding position in the table, so as to ensure the accuracy of the written target document.
In this embodiment, the first processing module 602 can receive first data input by a user for a target document, the second processing module 604 can determine a target business rule for filling the target document according to the first data, the third processing module 606 can solve a second data to be filled in the target document according to the target business rule and the first data, and the fourth processing module 608 can fill the solved second data in a corresponding position in the target document. In the above embodiment of the present invention, the third processing module 606 solves the second data to be filled in the target document according to the target business rule screened from the rule engine database by the second processing module 604, so as to avoid the problem that the target document is filled according to the business rule set on the standard product only in the related art, the filled document has a large error and may lack data, and ensure the accuracy of the filled target document.
In addition, the target service rule is stored in the rule database of the open source rule engine, and the open source rule engine is independent relative to the business innovation platform, so that the mode that the code of a standard product in the business innovation platform is modified and adjusted or a service rule is newly added is avoided, and the condition that the server of the business innovation platform is restarted every time the service rule is adjusted or newly added is avoided.
In the foregoing embodiment, the second processing module 604 is specifically configured to compare the first data with a plurality of first business rules, and determine a comparison result; and determining the target business rule according to the comparison result.
In the foregoing embodiment, a matching condition is set in the multiple first business rules, and the second processing module 604 is specifically configured to determine, as the target business rule, the first business rule corresponding to the matching condition when the comparison result indicates that the first data meets the matching condition.
In the above embodiment, the first processing module 602 is further configured to receive third data input by the user in the human-computer interaction interface; and determining a first business rule according to the third data, and storing the first business rule into a rule database.
In the foregoing embodiment, the first processing module 602 is specifically configured to convert the first business rule into a rule script in a target format, and store the rule script in a rule database.
In the foregoing embodiment, the third processing module 606 is specifically configured to, when the number of the target rules is multiple and the multiple target rules conflict with each other, store the multiple target rules with conflicts into the first agenda according to the preset priority; and sequentially executing a plurality of target business rules in the first agenda based on the first data, and determining second data.
Fig. 7 shows a schematic block diagram of a filling apparatus for a target document according to an embodiment of the present application, where the filling apparatus 700 for a target document includes: a memory 702, the memory 702 having stored therein programs or instructions; the processor 704 and the processor 704 execute the program or the instructions stored in the memory 702 to implement the steps of the method for filling in the target document proposed in the above embodiment of the present application, so that all the beneficial technical effects of the method for filling in the target document proposed in the above embodiment of the present application are achieved, and redundant description is not repeated herein.
According to an embodiment of the present application, a readable storage medium is proposed, on which a program or instructions are stored, which when executed by a processor, implement the method of filling out a target document as proposed by the above-mentioned embodiment of the present application. Therefore, the readable storage medium has all the advantages of the method for filling in the target document proposed by the above embodiment of the present application, and details are not described herein again.
According to an embodiment of the present application, an electronic device is provided, which includes the filling device of the target document and/or the readable storage medium provided by the above embodiment of the present application. Therefore, the electronic device has all the advantages of the filling device and/or the readable storage medium for the target document proposed by the above embodiments of the present application, and details are not repeated herein.
In the description of the present specification, the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance unless otherwise explicitly stated or defined; the terms "connected," "mounted," "secured," and the like are to be construed broadly and include, for example, "connected" whether fixedly or releasably connected, or integrally connected; may be directly connected or indirectly connected through an intermediate. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
In the description herein, the description of the terms "one embodiment," "some embodiments," "specific embodiments," etc., means that a particular feature, structure, material, or characteristic 0 described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
In addition, the technical solutions in the embodiments of the present application may be combined with each other, but it must be 5 based on the realization of those skilled in the art, when the technical solutions are combined and contradicted with each other
Or may not be implemented, such a combination should not be considered as being present, nor within the scope of the claims.
The above is only a preferred embodiment of the present application, and is not intended to limit the present application, as far as the art is concerned
Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and 0 principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method for filling out a target document, wherein the method is used for a business innovation platform, the business innovation platform comprises a human-computer interaction interface, and the filling out method comprises the following steps:
receiving first data input by a user on the target document in the human-computer interaction interface;
screening a target business rule from a rule database according to the first data, wherein the rule database is a database which is used for storing business rules preset by a 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 in the target bill.
2. The filling method according to claim 1, wherein the rule database includes a plurality of first business rules, and the step of screening out a target business rule from the rule database according to the first data includes:
comparing the first data with the plurality of first business rules to determine a comparison result;
and determining the target business rule according to the comparison result.
3. The filling method according to claim 2, wherein a matching condition is set in the first business rules, and the determining the target business rule according to the comparison result specifically includes:
and determining a first business rule corresponding to the matching condition as the target business rule under the condition that the comparison result is that the first data accords with the matching condition.
4. A filling method according to claim 2 or 3, wherein before receiving first data input by a user on the target document in a human-computer interaction interface, the filling method further comprises:
receiving third data input by a user in the human-computer interaction interface;
and determining the first business rule according to the third data, and storing the first business rule into the rule database.
5. The filling method according to claim 4, wherein the storing the first business rule in the rule database specifically includes:
and converting the first business rule into a rule script in a target format, and storing the rule script into the rule database.
6. A filling method according to any one of claims 1 to 3, wherein the determining second data according to the target business rule and the first data specifically includes:
when the number of the target rules is multiple and the target rules conflict, storing the conflicting target rules into a first agenda according to a preset priority level;
and sequentially executing a plurality of target business rules in the first agenda based on the first data, and determining the second data.
7. Filling device of a target document, characterized in that it is used in a business innovation platform comprising a human-machine interaction interface, comprising:
the first processing module is used for receiving first data input by a user on the target document in the human-computer interaction interface;
the second processing module is used for screening out a target business rule from a rule database according to the first data, wherein the rule database is a database used for storing business rules in an open source rule engine;
the third processing module is used for determining second data according to the target business rule and the first data;
and the fourth processing module is used for filling the second data in the target bill.
8. A filling apparatus of a target document, comprising: a memory storing a program and a processor which when executed performs the steps of a method of filling out a target document as claimed in any one of claims 1 to 6.
9. A readable storage medium, on which a program or instructions are stored, which program or instructions, when executed by a processor, carry out the steps of the method of filling out a target document according to any one of claims 1 to 6.
10. An electronic device, comprising:
a filling apparatus of a target document as claimed in claim 7 or 8; and/or
The readable storage medium of claim 9.
CN202211541663.5A 2022-12-02 2022-12-02 Target document filling method and device, storage medium and electronic equipment Pending CN115935919A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211541663.5A CN115935919A (en) 2022-12-02 2022-12-02 Target document filling method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211541663.5A CN115935919A (en) 2022-12-02 2022-12-02 Target document filling method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN115935919A true CN115935919A (en) 2023-04-07

Family

ID=86653805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211541663.5A Pending CN115935919A (en) 2022-12-02 2022-12-02 Target document filling method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115935919A (en)

Similar Documents

Publication Publication Date Title
KR100750770B1 (en) Resource managing system, resource managing method and computer readable recording medium having resource managing program recorded therein
CN110554958B (en) Graph database testing method, system, device and storage medium
CN110276074B (en) Distributed training method, device, equipment and storage medium for natural language processing
JP2009104229A (en) Input check device and input check method
JP4592471B2 (en) Shape prediction method, shape prediction apparatus, shape prediction program, and storage medium for injection molded product
CN109828859A (en) Mobile terminal memory analysis method, apparatus, storage medium and electronic equipment
CN115688715A (en) Report generation method and device and computer readable medium
CN110502504A (en) Product unit library constructs system, method, apparatus and computer readable storage medium
KR100679527B1 (en) Resource management system, resource conversion table generation system, software authentication system, computer readable recording medium having resource management program recorded therein, computer readable recording medium having resource conversion table generation program recorded therein, computer readable recording medium having software authentication program recorded therein, resource management method, resource conversion table generation method, and software authentication method
CN115525534A (en) Test case generation method and platform based on swagger interface test
CN115935919A (en) Target document filling method and device, storage medium and electronic equipment
CN112579682A (en) Data model change notification method and device, electronic device and storage medium
CN112749898A (en) Order allocation method, model training method and device and electronic equipment
CN108520032B (en) Data interface establishing method, system, computer equipment and storage medium
CN116150539A (en) Page rendering method and device and electronic equipment
CN111324645A (en) Data processing method and device for block chain
US6507766B2 (en) Method for defining system hierarchy
CN114185557A (en) Software product deployment method, device, medium and electronic equipment
CN109491892B (en) Project environment configuration method and device
CN112764763A (en) Code conversion method, system, equipment and computer readable storage medium
CN112596842A (en) Screen adaptation method for android system SDK development and related device
CN111737784A (en) Board card type selection configuration method and device based on digital three-dimensional ZXMP S385 subframe
CN114064449A (en) Simulation test report generation method and device, electronic equipment and storage medium
CN109784846A (en) It is a kind of to judge whether list generates the method and computer equipment of subordinate list according to quantity
CN116579585B (en) Resource allocation method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination