Configuration method and device of accounting engine, electronic equipment and storage medium
By disassembling the business into sub-businesses and generating a tree structure diagram, finding and assembling accounting rules, and adjusting code parameters, the problem that the accounting engine is difficult to quickly adapt to the changing business needs is solved, and efficient and flexible accounting engine configuration is achieved.
Patent Information
- Application Number
- CN202411822405.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2025-04-15
AI Technical Summary
The rules design of existing accounting engines is too rigid and is out of touch with flexible and changeable business scenarios, making it difficult for them to quickly adapt to and deal with emerging new business needs.
By disassembling the target business to be accounted for into multiple target sub-services, and generating a tree structure diagram that reflects the logical association of the target sub-services, based on this, find and assemble the code elements of the accounting rule, adjust the code parameters to suit specific business scenarios, and configure the accounting engine.
It achieves close matching between accounting rules and business scenarios, improves the applicability and accuracy of the rules, enhances the flexibility and efficiency of the accounting engine, and can quickly adapt to changing business needs.
Smart Images

Figure CN119829117A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of financial technology or other related fields, and in particular, to a configuration method of a calculation engine and its device, electronic device, and storage medium. Background Art
[0002] In the current rapidly changing business environment, enterprise financial systems need to be able to quickly respond to and handle a variety of complex business scenarios. Traditional accounting rule design is often tightly coupled to specific business processes and system architectures. For example, the accounting rules and parameter settings of different business lines such as credit cards, bills, and asset management are highly decentralized and incompatible. This design approach presents obvious limitations when business needs change: 1. The rules are out of touch with the business. When the business scenario changes, such as launching new products or adjusting the functions of existing products, traditional accounting rules often need to be fundamentally modified to adapt to new business needs. It is often difficult to respond to business changes quickly, resulting in poor adaptability of the accounting engine and difficulty in quickly handling changing business needs. 2. The technical threshold for parameter design is high. The parameter design of traditional accounting engines is often directly associated with transaction codes and operation identifiers, which is difficult for non-technical personnel to understand, increasing the difficulty of maintenance and limiting the ability of business personnel with non-technical backgrounds to adjust and optimize accounting rules. 3. The separation of product accounting is not complete. The inconsistent degree of separation in different business areas leads to confusion in rule management, increases the complexity of cross-system coordination, and reduces the overall business processing efficiency. 4. The degree of interface standardization is low. Due to the difference in the degree of separation of product accounting, the accounting interface standards of different business lines are different, requiring the accounting system to provide customized parsing and processing functions for each product, increasing development and maintenance costs, limiting the interconnection and interoperability of data between systems, and reducing the uniformity and efficiency of financial data processing.
[0003] In summary, the rule design of existing accounting engines is too rigid and out of touch with flexible and changing business scenarios, making it difficult to quickly adapt to and handle emerging new business needs while maintaining rule consistency.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The main purpose of this application is to provide a configuration method for an accounting engine and its device, electronic device, and storage medium, so as to at least solve the technical problem in the related technology that the accounting rules are out of touch with the business scenarios, making it difficult for the accounting engine to quickly adapt to and handle changing business needs.
[0006] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a configuration method of an accounting engine is provided, the method comprising: decomposing the target business to be accounted for into N target sub-businesses, and determining the business type of each target sub-business, wherein N is a positive integer; taking the target sub-businesses as tree nodes, generating a tree structure diagram corresponding to the target business, wherein the tree branches in the tree structure diagram are used to represent the logical associations between the target sub-businesses; searching in the accounting rule code library based on all the business types to obtain a search result, wherein the search result contains R accounting rule code elements matching the target business, R is a positive integer; assembling the R accounting rule code elements according to the logical associations between the target sub-businesses to obtain an initial accounting code; obtaining the business scenario parameters of the target business, adjusting the control parameters in the initial accounting code according to the business scenario parameters, obtaining the target accounting code corresponding to the target business, and configuring the accounting engine according to the target accounting code.
[0007] Furthermore, the step of decomposing the target business to be accounted for into N target sub-businesses includes: performing process decomposition on the target business based on a preset hierarchical decomposition strategy to obtain a decomposition result; confirming the business boundaries of each sub-business in the decomposition result, and determining whether there are logical conflicts between all the sub-businesses based on the business boundaries; if it is confirmed that there are logical conflicts, re-executing the process decomposition; or, if it is confirmed that there are no logical conflicts, determining the N target sub-businesses.
[0008] Furthermore, the step of generating a tree structure diagram corresponding to the target business with the target sub-business as a tree node includes: determining the dependency impact path between the N target sub-businesses during the execution of the target business to obtain logical association information; determining the node identity of the tree node corresponding to each of the target sub-businesses based on the logical association information, and determining the node position of all the tree nodes in the tree structure diagram based on the node identity, wherein the node identity includes: a parent node and a child node; generating the tree branches between the tree nodes based on the logical association information, and obtaining the tree structure diagram after all the tree nodes and the tree branches are generated.
[0009] Furthermore, the step of determining the node identity of the tree node corresponding to each of the target sub-businesses based on the logical association information includes: for all the target sub-businesses, determining a sub-business combination with a dependency relationship based on the logical association information, and extracting the business logic hierarchy information of the sub-business combination based on the logical association information, wherein the sub-business combination includes at least two of the target sub-businesses; for each of the sub-business combinations, determining the business logic hierarchy of at least two of the target sub-businesses in the sub-business combination based on the business logic hierarchy information, and obtaining a comparison result; based on the comparison result, determining that the tree node corresponding to the target sub-business with a higher business logic hierarchy is a parent node, and determining that the tree node corresponding to the target sub-business with a lower business logic hierarchy is a child node.
[0010] Furthermore, the step of assembling the R accounting rule code elements according to the logical association indicated by the tree structure diagram to obtain the initial accounting code includes: identifying the correspondence between each of the tree nodes in the tree structure diagram and the R accounting rule code elements; determining the code execution order of the R accounting rule code elements according to the correspondence and the logical association indicated by the tree structure diagram; and sequentially connecting the R accounting rule code elements based on the code execution order to obtain the initial accounting code.
[0011] Furthermore, the step of obtaining the business scenario parameters of the target business includes: obtaining a business scenario parameter set, wherein the business scenario parameter set includes M preset business types and business scenario default values corresponding to each preset business type, and M is an integer greater than or equal to N; performing numerical screening in the business scenario parameter set according to the business types of the N target sub-businesses of the target business, and obtaining a default value set applicable to the target business; obtaining a specific parameter value corresponding to the target business, and supplementing the specific parameter value to the default value set to obtain the business scenario parameters of the target business.
[0012] Furthermore, the step of adjusting the adjustable control parameters in the initial accounting code according to the business scenario parameters to obtain the target accounting code corresponding to the target business includes: analyzing the initial accounting code using a machine learning algorithm to obtain a set of adjustable variables; determining the value of each adjustable variable in the set of adjustable variables based on the business scenario parameters to obtain a set of control parameters; adjusting the initial accounting code based on the set of control parameters, and simulating the adjusted initial accounting code to obtain the target accounting code after verification.
[0013] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a configuration device of a accounting engine is also provided, the device comprising: a determination unit, used to decompose the target business to be accounted for into N target sub-businesses, and determine the business type of each target sub-business, wherein N is a positive integer; a generation unit, used to generate a tree structure diagram corresponding to the target business with the target sub-business as a tree node, wherein the tree branches in the tree structure diagram are used to represent the logical associations between the target sub-businesses; a search unit, used to search in the accounting rule code library based on all the business types to obtain a search result, wherein the search result contains R accounting rule code elements matching the target business, R is a positive integer; an assembly unit, used to assemble the R accounting rule code elements according to the logical associations between the target sub-businesses to obtain an initial accounting code; an adjustment unit, used to obtain business scenario parameters of the target business, adjust the control parameters in the initial accounting code according to the business scenario parameters, obtain the target accounting code corresponding to the target business, and configure the accounting engine according to the target accounting code.
[0014] Furthermore, the determination unit includes: a disassembly module, which is used to perform process disassembly on the target business based on a preset hierarchical disassembly strategy to obtain a disassembly result; a first determination module, which is used to confirm the business boundaries of each sub-business in the disassembly result, and determine whether there are logical conflicts between all the sub-businesses based on the business boundaries; a second determination module, which is used to re-execute the process disassembly when it is confirmed that there is a logical conflict; or, when it is confirmed that there is no logical conflict, determine the N target sub-businesses.
[0015] Furthermore, the generation unit includes: a third determination module, used to determine the dependency impact path between the N target sub-businesses during the execution of the target business, and obtain logical association information; a fourth determination module, used to determine the node identity of the tree node corresponding to each of the target sub-businesses based on the logical association information, and determine the node position of all the tree nodes in the tree structure diagram based on the node identity, wherein the node identity includes: a parent node and a child node; a generation module, used to generate the tree branches between the tree nodes based on the logical association information, and obtain the tree structure diagram after all the tree nodes and the tree branches are generated.
[0016] Furthermore, the fourth determination module includes: an extraction sub-module, which is used to determine the sub-business combination with dependency relationships for all the target sub-businesses based on the logical association information, and extract the business logic hierarchy information of the sub-business combination based on the logical association information, wherein the sub-business combination includes at least two of the target sub-businesses; a comparison sub-module, which is used to determine the business logic hierarchy of at least two of the target sub-businesses in the sub-business combination for each sub-business combination based on the business logic hierarchy information to obtain a comparison result; and a determination sub-module, which is used to determine, based on the comparison result, the tree node corresponding to the target sub-business with a higher business logic hierarchy as a parent node, and determine the tree node corresponding to the target sub-business with a lower business logic hierarchy as a child node.
[0017] Furthermore, the assembly unit includes: an identification module, used to identify the correspondence between each of the tree nodes in the tree structure diagram and the R accounting rule code elements; a fifth determination module, used to determine the code execution order of the R accounting rule code elements according to the correspondence and the logical association indicated by the tree structure diagram; and a connection module, used to sequentially connect the R accounting rule code elements based on the code execution order to obtain the initial accounting code.
[0018] Furthermore, the adjustment unit includes: a first acquisition module, used to obtain a business scenario parameter set, wherein the business scenario parameter set includes M preset business types and business scenario default values corresponding to each preset business type, and M is an integer greater than or equal to N; a screening module, used to perform numerical screening in the business scenario parameter set according to the business types of the N target sub-businesses of the target business, and obtain a default value set applicable to the target business; a second acquisition module, used to obtain specific parameter values corresponding to the target business, and add the specific parameter values to the default value set to obtain the business scenario parameters of the target business.
[0019] Furthermore, the adjustment unit also includes: an analysis module, which is used to analyze the initial accounting code using a machine learning algorithm to obtain a set of adjustable variables; a sixth determination module, which is used to determine the value of each adjustable variable in the adjustable variable set based on the business scenario parameters to obtain a control parameter set; a verification module, which is used to adjust the initial accounting code based on the control parameter set, and simulate the adjusted initial accounting code to obtain the target accounting code after verification.
[0020] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a computer-readable storage medium is also provided, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned methods for configuring the accounting engine.
[0021] In order to achieve the above-mentioned purpose, according to another aspect of the present application, there is also provided an electronic device, comprising one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the configuration method of the accounting engine described in any one of the above items.
[0022] In the present invention, a configuration method of an accounting engine is proposed, which first decomposes the target business to be accounted for into N target sub-businesses, and determines the business type of each target sub-business, wherein N is a positive integer, and then uses the target sub-business as a tree node to generate a tree structure diagram corresponding to the target business, wherein the tree branches in the tree structure diagram are used to represent the logical associations between the target sub-businesses, and then searches in the accounting rule code library based on all business types to obtain a search result, wherein the search result includes R accounting rule code elements matching the target business, wherein R is a positive integer, and then assembles the R accounting rule code elements according to the logical associations between the target sub-businesses to obtain an initial accounting code, and finally obtains the business scenario parameters of the target business, adjusts the control parameters in the initial accounting code according to the business scenario parameters, obtains the target accounting code corresponding to the target business, and configures the accounting engine according to the target accounting code.
[0023] In the present invention, a tree-like structure diagram is adopted to decompose the business. By decomposing the target business into multiple target sub-businesses and determining their business types, a tree-like structure diagram reflecting the logical relationship between the target sub-businesses is generated, thereby achieving the purpose of flexible assembly and adjustment of accounting rules, thereby realizing rapid adaptation to changing business needs and improving the configuration efficiency and technical effect of the accounting engine. Specifically, a business decomposition strategy is adopted to decompose the complex target business into multiple target sub-businesses with finer granularity. Each sub-business corresponds to a specific business type. A tree structure diagram is used to represent the logical relationship and hierarchical structure between businesses, which clearly shows the overall picture of the business. The tree nodes represent the target sub-businesses, and the tree branches represent the dependencies or logical associations between the sub-businesses. The accounting rule code elements that match each target sub-business are searched in the accounting rule code library to achieve rule reuse and avoid the tediousness and cost of writing code from scratch. The accounting rule code elements found are intelligently assembled according to the target sub-business logical associations reflected in the tree structure diagram to generate the initial accounting code, ensuring the close match between the accounting rules and business scenarios and improving the applicability and accuracy of the rules. Finally, the control parameters in the initial accounting code are finely adjusted according to the actual business scenario parameters of the target business to generate the final target accounting code, so that the accounting engine can respond to business needs more accurately and improve the flexibility and efficiency of accounting, thereby solving the technical problem that the accounting rules and business scenarios in related technologies are out of touch, making it difficult for the accounting engine to quickly adapt to and handle changing business needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0025] Figure 1 A hardware structure block diagram of a computer terminal for implementing a configuration method of a calculation engine is shown;
[0026] Figure 2 is a flow chart of an optional method for configuring a calculation engine according to an embodiment of the present invention;
[0027] Figure 3 is a flow chart of an optional method for generating a target service tree structure diagram according to an embodiment of the present invention;
[0028] Figure 4 is a flow chart of an optional method for determining the identity of a service tree node according to an embodiment of the present invention;
[0029] Figure 5 is a flow chart of an optional code element assembly method according to an embodiment of the present invention;
[0030] Figure 6 is a schematic diagram of an optional configuration device of a calculation engine according to an embodiment of the present invention;
[0031] Figure 7 The present invention is a structural block diagram of an electronic device for executing a configuration method of a calculation engine according to an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0034] It should be noted that the configuration method and device of the accounting engine in the present application can be used in the field of financial technology when performing financial accounting on business data, and can also be used in any field other than the field of financial technology when performing financial accounting on business data. The present disclosure does not limit the application field of the configuration method and device of the accounting engine.
[0035] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, processing, transmission, provision, disclosure, use and processing of the relevant data comply with the laws, regulations and standards of the relevant regions, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse. For example, an interface is set up between this system and relevant users or organizations. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.
[0036] The information collection (for example, user voice, video, and text collection) and analysis operations involved in this application have provided users with corresponding operation entrances when they are executed, allowing users to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered.
[0037] The following embodiments of the present invention can be applied to various systems / applications / devices that require financial data processing and business rule adaptation and adjustment, and can achieve efficient, flexible and accurate financial accounting and management decision support. The present invention uses a tree structure diagram to parameterize and standardize business scenarios, and then searches and intelligently assembles applicable accounting logic in the accounting rule code library based on all business types, which can better adapt to changing business needs and improve the automation level of financial processing and the timeliness of decision-making.
[0038] The present invention also solves the technical problem that traditional accounting engines are difficult to quickly adapt to changing business needs through steps such as business scenario decomposition, tree structure construction, rule search and assembly, and control parameter adjustment. It achieves the optimization and upgrading of existing financial systems, reduces development and maintenance costs, improves the level of automation in corporate financial processing, and enhances decision-making support capabilities, providing strong support for achieving a high degree of business-finance integration and an intelligent financial management system.
[0039] The present invention is described in detail below in conjunction with various embodiments.
[0040] Embodiment 1
[0041] According to an embodiment of the present invention, an embodiment of a configuration method of an accounting engine is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0042] The method embodiment provided in the first embodiment of the present invention may be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal (or mobile device) for implementing the configuration method of the accounting engine is shown. Figure 1 As shown, the computer terminal 10 (or mobile device) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0043] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0044] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the configuration method of the accounting engine in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the configuration method of the accounting engine described above is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0045] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0046] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).
[0047] Under the above operating environment, the present invention provides Figure 2 The configuration method of the accounting engine shown in the figure is implemented by the accounting engine system. It combines parameterization and standardization technology and is used in financial business data processing scenarios, especially to solve the problem that traditional accounting engines are difficult to quickly adapt to changing business needs. By constructing a tree structure diagram and intelligently assembling accounting rules, the purpose of reducing development costs and improving processing efficiency is achieved.
[0048] The embodiments of the present invention are described in detail below in conjunction with various specific steps.
[0049] Figure 2 is a flowchart of an optional method for configuring a calculation engine according to an embodiment of the present invention, such as Figure 2 As shown, the method comprises the following steps:
[0050] Step S201: Decompose the target business to be accounted for into N target sub-businesses, and determine the business type of each target sub-business, where N is a positive integer.
[0051] Specifically, the target business refers to the financial business that needs financial accounting in the embodiment of the present invention, any complex business process in a financial institution, including but not limited to: credit card transaction processing, bill discounting, asset management, value-added tax declaration, financial resource allocation, etc. The selection of the target business is based on the internal management needs of the enterprise or the needs of external business development, covering the entire life cycle of the business, from transaction occurrence, data collection, processing to final financial accounting and decision support.
[0052] The target sub-business is a smaller functional unit or operation process of the target business under the hierarchical disassembly strategy. In the process of disassembling the target business, the target business can be subdivided into multiple target sub-businesses through the preset hierarchical disassembly strategy. Each target sub-business is responsible for handling a part of the functions or processes in the target business, such as account authentication, transaction amount confirmation, account update, etc. in credit card transactions. The determination of the target sub-business is based on the understanding of the target business logic and the establishment of business boundaries, ensuring that each sub-business can operate independently and work in collaboration with other sub-businesses to jointly complete the financial accounting needs of the target business.
[0053] Business type refers to the specific business field or functional type involved in the target business or target sub-business, and is the key basis for finding and assembling accounting rules. In the financial field, business types include but are not limited to: credit card business, personal loans, corporate loans, asset management, trade financing, investment banking, insurance underwriting, claims processing, securities trading, foreign exchange trading, mobile inventory, value-added tax system processing, unified procurement platform operation, unified identity authentication management, human resources system operation, etc.
[0054] Each business type has specific financial processing requirements and rules. By clarifying the business type, we can more accurately find matching rule code elements in the accounting rule code library, and then assemble them into an accounting engine that adapts to the specific business type.
[0055] Optionally, the step of decomposing the target business to be accounted for into N target sub-businesses includes: performing process decomposition on the target business based on a preset hierarchical decomposition strategy to obtain a decomposition result; confirming the business boundaries of each sub-business in the decomposition result, and determining whether there are logical conflicts between all sub-businesses based on the business boundaries; if it is confirmed that there are logical conflicts, re-executing the process decomposition; or, if it is confirmed that there are no logical conflicts, determining N target sub-businesses.
[0056] It should be noted that the preset hierarchical decomposition strategy is a preset systematic and structured business analysis method, which is used to decompose complex target businesses into a series of smaller, easier to manage and process target sub-businesses according to functions, scenarios or operating processes. It can consider factors such as the inherent logic of the business, the direction of data flow, and the sequence of business operations. The business process is regarded as a multi-level structure, and each level corresponds to one or more sub-businesses that can be independently operated or analyzed, ensuring that the decomposed sub-businesses can clearly reflect the overall picture of the target business while maintaining the integrity and independence of their respective logic.
[0057] After completing the initial business decomposition, it is necessary to confirm the business boundaries of each sub-business, including: clarifying the input and output data of the sub-business, the interaction and dependency between sub-businesses, and the operation logic within the sub-business, etc. The establishment of business boundaries is crucial for subsequent rule search and assembly, which not only helps to ensure the independence and maintainability of each sub-business, but also avoids data redundancy or logic loopholes in the decomposition process.
[0058] After determining the business boundary, it is necessary to check whether there are logical conflicts between all sub-businesses. Logical conflicts may occur in many aspects. For example, two or more sub-businesses may have different processing requirements for the same data source, or there may be conflicts in the order of data flow and business operations. The embodiment of the present invention can perform logic checks through manual review, automated logic verification tools, or a combination of the two to ensure that the disassembled sub-businesses can coexist harmoniously and together constitute a complete and conflict-free target business process.
[0059] If a logical conflict is detected, it is necessary to review and adjust the layered decomposition strategy and re-decompose the target business to eliminate the conflict. The goal of re-decomposition is to find a more reasonable decomposition method that is more consistent with business logic, ensuring that the logic of each sub-business is self-consistent and that there is no contradiction in the entire business process.
[0060] After confirming that there are no logical conflicts, the disassembly result consisting of N target sub-businesses can be finally determined. Then, based on the business types of these target sub-businesses, subsequent accounting rule search and assembly work can be carried out.
[0061] Through the above steps, combined with preset hierarchical disassembly strategies, clear business boundaries, checking logical conflicts, and re-disassembly when necessary, the technical solution of the present invention can provide a solid foundation for subsequent accounting rule search and assembly, ensuring that the generated accounting engine can accurately and efficiently handle various business scenarios while maintaining low development and maintenance costs. In addition, the fine disassembly of the business can further improve the reusability of the accounting engine, reduce code redundancy, and enhance the overall performance and flexibility of the system.
[0062] Step S202: Generate a tree structure diagram corresponding to the target business with the target sub-business as a tree node, wherein the tree branches in the tree structure diagram are used to represent the logical associations between the target sub-businesses.
[0063] It should be noted that the logical association between target sub-businesses refers to the interaction, dependency and execution order between the sub-businesses in the business process. In the process of constructing the tree structure diagram, this logical association is intuitively represented by tree branches (i.e., the connecting lines of the tree).
[0064] The types and properties of logical associations are various, including but not limited to: sequential execution relationships, conditional dependency relationships, concurrent execution relationships, branch execution relationships, loop execution relationships, and data transfer relationships. An exemplary description is as follows.
[0065] The sequential execution relationship means that the target sub-business A needs to be completed before the target sub-business B in logic, and B can only start after A is completed. For example, in credit card transaction processing, account verification must be completed before account update.
[0066] Conditional dependency means that the execution of target sub-business C depends on the output of sub-business D, and whether and how to execute C is determined based on the result of D. For example, in a loan approval business, the result of a credit assessment may determine whether to issue a subsequent loan.
[0067] The concurrent execution relationship means that the target sub-business E and the target sub-business F can be executed at the same time, and there is no direct dependency between the execution order, but data or resources may be shared. For example, in asset management, asset evaluation and asset risk analysis can be carried out in parallel.
[0068] Branch execution relationship means that the target business process may enter different sub-business paths according to certain specific conditions. For example, when handling customer complaints, the process may enter different target sub-businesses such as product consultation, account service or complaint handling according to the type of complaint.
[0069] A loop execution relationship means that some sub-businesses may need to be repeatedly executed when certain conditions are met, forming a loop logic. For example, in a mobile inventory count, the inventory confirmation sub-business may need to be repeatedly executed until the inventory count is completed.
[0070] Data transfer relationship means that the output of one sub-business may be used as the input of another sub-business, which ensures the continuity and consistency of data in the business process. For example, the budget allocation result of the budget system is used as the budget check input in the expense reimbursement system.
[0071] Through the tree branches in the tree structure diagram, the above logical associations are clearly visualized, ensuring that the accounting engine can efficiently and accurately perform financial accounting tasks according to the actual business process. The tree structure diagram not only helps business personnel and developers better understand business processes, but also provides a visual logical basis for automation tools.
[0072] Figure 3 is a flow chart of an optional method for generating a target service tree structure diagram according to an embodiment of the present invention. Figure 3 As shown, the method comprises the following steps:
[0073] Step S301, determining the dependency impact paths between N target sub-businesses during the execution of the target business, and obtaining logical association information;
[0074] Step S302, determining the node identity of the tree node corresponding to each target sub-business based on the logical association information, and determining the node positions of all tree nodes in the tree structure diagram based on the node identity, wherein the node identity includes: a parent node and a child node.
[0075] Step S303, generating tree branches between tree nodes based on the logical association information, and obtaining a tree structure diagram after all tree nodes and tree branches are generated.
[0076] It should be noted that step S301 aims to understand the function of each sub-business, its preceding and succeeding sub-businesses, and the direction of data flow transmission, and to collect detailed information about how the sub-businesses interact with each other, including which sub-businesses need to be executed after other sub-businesses, or which sub-businesses' outputs are the inputs of another sub-business.
[0077] Step S302 determines the node identity of each target sub-business in the tree structure diagram based on the logical association information, that is, whether it is a parent node or a child node. By analyzing the business logic hierarchy of the sub-business combination, it is determined which sub-businesses are more controlling or are earlier in the process and will be designated as parent nodes. Conversely, which sub-businesses are affected by the output of other sub-businesses or are later in the process will be designated as child nodes, thereby constructing a hierarchical and logically clear tree structure, in which the parent node is at a higher level of the tree and the child node is at a lower level, which intuitively shows the hierarchical relationship of the business process.
[0078] Optionally, Figure 4 is a flow chart of an optional method for determining the identity of a service tree node according to an embodiment of the present invention. Figure 4 As shown, the method comprises the following steps:
[0079] Step S401, for all target sub-businesses, determine a sub-business combination with a dependency relationship based on the logical association information, and extract the business logic hierarchy information of the sub-business combination based on the logical association information, wherein the sub-business combination contains at least two target sub-businesses;
[0080] Step S402, for each sub-business combination, determining the business logic levels of at least two target sub-businesses in the sub-business combination based on the business logic level information, and obtaining a comparison result;
[0081] Step S403: Based on the comparison result, the tree node corresponding to the target sub-business at a higher business logic level is determined as the parent node, and the tree node corresponding to the target sub-business at a lower business logic level is determined as the child node.
[0082] After determining the node identity and position, in step S303, tree branches, i.e., connecting lines, are generated between tree nodes according to the logical association information to represent the dependency relationship between sub-businesses. The establishment of tree branches follows the following principles: the tree branches from the parent node to the child node indicate that the result or output of the previous sub-business affects the execution of the next sub-business; the weight or attribute of the tree branch can represent the strength of the dependency or the priority of the execution order. Through the connection of the tree branches, the tree structure diagram completely represents the logical association between the target sub-businesses in the target business, including but not limited to: sequential execution, conditional dependency, concurrent execution, cyclic execution and other relationships.
[0083] After the node identities of all tree nodes are determined and the connections between tree branches are established, the entire tree structure diagram is generated, which not only clearly shows the overall picture of the target business, but also intuitively reflects the hierarchical relationship and logical association between each sub-business, providing a graphical framework and basis for subsequent rule search, assembly and parameter adjustment.
[0084] In the process of generating the tree structure diagram, it is necessary to ensure the accuracy and completeness of the logical association information, as well as the rationality of the node identity and the tree branch connection. It may take multiple iterations and corrections to achieve the most optimized tree structure diagram, so as to better guide the design and generation of the accounting engine. In addition, the generation of the tree structure diagram can also be assisted by professional flowchart design software or automation tools to improve efficiency and accuracy.
[0085] Through the above steps, the complex target business process can be converted into a tree structure diagram that is easy to understand and operate. It not only helps business personnel and developers to grasp the business logic intuitively, but also provides a clear path for the automatic assembly of accounting rules. It is one of the key steps to achieve efficient and flexible accounting engine generation.
[0086] Step S203, searching in the accounting rule code library based on all business types to obtain a search result, wherein the search result includes R accounting rule code elements matching the target business, where R is a positive integer.
[0087] It should be noted that the accounting rule code library is a resource library that integrates all the accounting rule code elements required for various business types. It provides a highly standardized and highly reusable code resource pool, and ensures the easy search and understandability of code elements through detailed metadata and labeling systems. The metadata includes: business type, applicable scenarios, input and output data formats, execution logic, version information, author information, etc., so that when generating a new accounting engine, you can quickly and accurately find and call existing code elements, thereby avoiding duplicate development and improving development efficiency and code quality.
[0088] The accounting rule code element is the smallest reusable code unit in the accounting rule code library. It is the result of abstracting and encapsulating the accounting logic for a specific business type. Each accounting rule code element contains a set of operation instructions for processing specific business events or data, such as how to process the debit and credit accounting of a transaction, how to calculate the depreciation expense of an asset, how to generate an accounting voucher, etc.
[0089] The accounting rule code elements emphasize modularity and flexibility. They can run independently or be combined with other elements to form more complex business processing logic. Each element has been fully tested and verified to ensure stability and accuracy in various environments and data inputs.
[0090] Step S204, assembling R accounting rule code elements according to the logical associations between the target sub-businesses to obtain an initial accounting code.
[0091] It should be noted that the initial accounting code is the result of assembling R accounting rule code elements found from the accounting rule code library according to the tree structure diagram of the target business and the logical association between the target sub-businesses. It is a preliminary accounting logic implementation for a specific target business and includes all basic accounting functions required to process the business.
[0092] The assembly process of the initial accounting code follows the target business process and the dependencies between sub-businesses, ensuring the logical order of the code and the correctness of the data flow. When assembling, factors that may need to be considered include the order of data processing, conditional judgment, loop structure, exception handling, etc., to ensure that the generated accounting code can accurately and efficiently perform business accounting tasks.
[0093] Figure 5 is a flowchart of an optional code element assembly method according to an embodiment of the present invention, such as Figure 5 As shown, the method comprises the following steps:
[0094] Step S501, identifying the corresponding relationship between each tree node in the tree structure diagram and R accounting rule code elements;
[0095] Step S502, determining the code execution order of the R accounting rule code elements according to the corresponding relationship and the logical association indicated by the tree structure diagram;
[0096] Step S503: sequentially connect the R accounting rule code elements based on the code execution order to obtain an initial accounting code.
[0097] Step S501 refers to the process of selecting code elements from the accounting rule code library based on business type and sub-business function. For example, a sub-business node about account verification may correspond to one or more code elements that specifically handle account verification logic. This step emphasizes the applicability and accuracy of the code elements, ensuring that each sub-business has corresponding processing logic in the accounting engine.
[0098] Once the corresponding relationship between the tree nodes and the accounting rule code elements is identified, step S502 determines the execution order of the R accounting rule code elements according to the logical association indicated by the tree structure diagram, and ensures that the code execution process conforms to the logic of the business process by analyzing the flow of the tree branches (connecting lines) and the dependencies between the nodes. For example, if the tree structure diagram shows that the account update must occur after the account verification, the execution order of the corresponding code elements will also be adjusted to conform to this logic.
[0099] After the execution order of the accounting rule code elements is determined, step S503 connects the code elements in this order to form a preliminary code flow, namely the initial accounting code. The initial accounting code contains the processing logic of all sub-businesses in the target business. Through this connection, a complete business accounting framework can be constructed on the basis of ensuring the correctness of the logic.
[0100] It should be noted that although the assembled initial accounting code already contains the basic accounting logic of the target business, it still needs further optimization and adjustment to adapt to specific business scenarios and data environments. Therefore, the initial accounting code is a dynamic and adjustable accounting code prototype, which provides a basis for subsequent parameter adjustment and function optimization.
[0101] Through the use of accounting rule code library, accounting rule code elements and initial accounting code, the technical solution of the present invention realizes the rapid generation and efficient maintenance of the accounting engine, while also ensuring the standardization of accounting logic and the flexibility of business scenarios. It is the key technical support for achieving a high degree of business and financial integration.
[0102] Step S205, obtain the business scenario parameters of the target business, adjust the control parameters in the initial accounting code according to the business scenario parameters, obtain the target accounting code corresponding to the target business, and configure the accounting engine according to the target accounting code.
[0103] It should be noted that business scenario parameters include specific business requirements, operation details, data formats, etc. Based on these parameters, the control parameters in the initial accounting code can be adjusted, including but not limited to: code input and output parameters, condition judgment thresholds, number of loops, exception handling strategies, etc., to ensure that the accounting logic can accurately adapt to the actual operating environment of the target business.
[0104] The target accounting code after the control parameters are adjusted is not only the accounting logic implementation optimized for specific business scenarios, but also the direct basis for configuring the accounting engine. The configuration of the accounting engine includes but is not limited to: setting up the data input interface, defining the data processing flow, determining the data output format, parameterizing the engine operating environment, etc. All these configurations are based on the target accounting code, ensuring that the accounting engine can run according to the adjusted logic and parameters, and efficiently and accurately handle the financial accounting needs of the target business.
[0105] In order to generate an accounting engine suitable for a specific business scenario, optionally, the step of obtaining business scenario parameters of a target business includes: obtaining a business scenario parameter set, wherein the business scenario parameter set includes M preset business types and business scenario default values corresponding to each preset business type, and M is an integer greater than or equal to N; performing numerical screening in the business scenario parameter set according to the business types of N target sub-businesses of the target business to obtain a default value set applicable to the target business; obtaining specific parameter values corresponding to the target business, and adding the specific parameter values to the default value set to obtain the business scenario parameters of the target business.
[0106] It should be noted that M is the total number of preset business types in the business scenario parameter set, which must be at least equal to the number of types of N target sub-businesses in the target business. The parameter set is set based on historical business data and experience, and includes recommended parameter values under various business scenarios as initial setting points.
[0107] In the steps of numerical screening and default value set generation, the business scenario parameter set is screened according to the business type, and all corresponding preset business types and their default values are found to form a default value set applicable to the target business, ensuring that the initial parameter settings can cover the basic needs of the target business.
[0108] The embodiment of the present invention also collects parameter requirements unique to the target business, such as specific accounting policies, regulatory compliance requirements, business rule refinements, etc., and adds them to the default value set to generate a complete business scenario parameter set that meets the needs of specific business scenarios.
[0109] Optionally, the step of adjusting the adjustable control parameters in the initial accounting code according to the business scenario parameters to obtain the target accounting code corresponding to the target business includes: analyzing the initial accounting code using a machine learning algorithm to obtain a set of adjustable variables; determining the value of each adjustable variable in the set of adjustable variables based on the business scenario parameters to obtain a set of control parameters; adjusting the initial accounting code based on the set of control parameters, and simulating the adjusted initial accounting code to obtain the target accounting code after verification.
[0110] In the embodiment of the present invention, a machine learning algorithm is also used to perform an in-depth analysis of the initial accounting code, identify the control parameters (i.e., adjustable variables) that can be adjusted, and generate a set of adjustable variables. The pattern recognition and prediction capabilities of the machine learning model are used to accurately identify which parts of the code are adjustable and which are fixed logical structures.
[0111] In the embodiment of the present invention, the initial accounting code is also adjusted based on the control parameter set, that is, the adjustable control parameters in the code are replaced or modified to meet the needs of a specific business scenario. The adjusted code will be simulated and tested to verify its correctness and performance in the target business scenario. The test calculation includes multiple test scenarios to ensure the robustness and accuracy of the code in different business situations.
[0112] If the simulation passes the verification, that is, the code can run correctly in all test scenarios and meet the performance indicators, then the adjusted initial accounting code is confirmed as the target accounting code corresponding to the target business, ensuring that the generated accounting engine is not only fully functional, but also performs well in specific business scenarios.
[0113] The embodiment of the present invention provides an automated and highly customized parameter adjustment method through the above steps, so that the initial accounting code can be quickly and accurately converted into the target accounting code suitable for a specific business scenario, which not only greatly improves the generation efficiency of the accounting engine, but also ensures its accuracy and reliability in a complex and changing business environment. The application of machine learning algorithms further improves the intelligent level of parameter setting and provides the possibility for adaptive optimization and upgrading of the accounting engine.
[0114] Through the above steps S201 to S205, the target business to be accounted for can be first decomposed into N target sub-businesses, and the business type of each target sub-business can be determined, where N is a positive integer. The target sub-business is then used as a tree node to generate a tree structure diagram corresponding to the target business, wherein the branches in the tree structure diagram are used to represent the logical associations between the target sub-businesses. Then, based on all business types, a search is performed in the accounting rule code library to obtain a search result, wherein the search result includes R accounting rule code elements matching the target business, where R is a positive integer. Then, the R accounting rule code elements are assembled according to the logical associations between the target sub-businesses to obtain an initial accounting code. Finally, the business scenario parameters of the target business are obtained, and the control parameters in the initial accounting code are adjusted according to the business scenario parameters to obtain the target accounting code corresponding to the target business, and the accounting engine is configured according to the target accounting code.
[0115] In an embodiment of the present invention, a tree-structure diagram is used to decompose the business. By decomposing the target business into multiple target sub-businesses and determining their business types, a tree-structure diagram reflecting the logical associations between the target sub-businesses is generated, thereby achieving the purpose of flexible assembly and adjustment of accounting rules, thereby realizing rapid adaptation to changing business needs and improving the configuration efficiency and technical effects of the accounting engine. Specifically, a business decomposition strategy is adopted to decompose the complex target business into multiple target sub-businesses with finer granularity. Each sub-business corresponds to a specific business type. A tree structure diagram is used to represent the logical relationship and hierarchical structure between businesses, which clearly shows the overall picture of the business. The tree nodes represent the target sub-businesses, and the tree branches represent the dependencies or logical associations between the sub-businesses. The accounting rule code elements that match each target sub-business are searched in the accounting rule code library to achieve rule reuse and avoid the tediousness and cost of writing code from scratch. The accounting rule code elements found are intelligently assembled according to the target sub-business logical associations reflected in the tree structure diagram to generate the initial accounting code, ensuring the close match between the accounting rules and business scenarios and improving the applicability and accuracy of the rules. Finally, the control parameters in the initial accounting code are finely adjusted according to the actual business scenario parameters of the target business to generate the final target accounting code, so that the accounting engine can respond to business needs more accurately and improve the flexibility and efficiency of accounting, thereby solving the technical problem that the accounting rules and business scenarios in related technologies are out of touch, making it difficult for the accounting engine to quickly adapt to and handle changing business needs.
[0116] The present invention is described below in conjunction with another optional embodiment.
[0117] Embodiment 2
[0118] An embodiment of the present invention also provides a configuration device for a calculation engine. It should be noted that the configuration device for the calculation engine of the embodiment of the present invention includes multiple implementation units, which can be used to execute the configuration method of the calculation engine provided in the above-mentioned embodiment one, and each implementation unit corresponds to each implementation step in the above-mentioned embodiment one.
[0119] Figure 6 is a schematic diagram of an optional configuration device of a calculation engine according to an embodiment of the present invention, such as Figure 6 As shown, the device may include: a determination unit 61, a generation unit 62, a search unit 63, an assembly unit 64, and an adjustment unit 65.
[0120] The determination unit 61 is used to decompose the target business to be calculated into N target sub-businesses and determine the business type of each target sub-business, wherein N is a positive integer.
[0121] The generating unit 62 is used to generate a tree structure diagram corresponding to the target service with the target sub-service as a tree node, wherein the tree branches in the tree structure diagram are used to represent the logical association between the target sub-services.
[0122] The search unit 63 is used to search in the accounting rule code library based on all business types to obtain a search result, wherein the search result includes R accounting rule code elements matching the target business, where R is a positive integer.
[0123] The assembling unit 64 is used to assemble the R accounting rule code elements according to the logical associations between the target sub-businesses to obtain an initial accounting code.
[0124] The adjustment unit 65 is used to obtain the business scenario parameters of the target business, adjust the control parameters in the initial accounting code according to the business scenario parameters, obtain the target accounting code corresponding to the target business, and configure the accounting engine according to the target accounting code.
[0125] The configuration device of the above-mentioned accounting engine can first decompose the target business to be accounted for into N target sub-businesses through the determination unit 61, and determine the business type of each target sub-business, where N is a positive integer, and then generate a tree structure diagram corresponding to the target business with the target sub-business as the tree node through the generation unit 62, wherein the tree branches in the tree structure diagram are used to represent the logical association between the target sub-businesses, and then search in the accounting rule code library based on all business types through the search unit 63 to obtain the search result, wherein the search result includes R accounting rule code elements matching the target business, R is a positive integer, and then assemble the R accounting rule code elements according to the logical association between the target sub-businesses through the assembly unit 64 to obtain the initial accounting code, and finally obtain the business scenario parameters of the target business through the adjustment unit 65, adjust the control parameters in the initial accounting code according to the business scenario parameters, obtain the target accounting code corresponding to the target business, and configure the accounting engine according to the target accounting code.
[0126] In an embodiment of the present invention, a tree-structure diagram is used to decompose the business. By decomposing the target business into multiple target sub-businesses and determining their business types, a tree-structure diagram reflecting the logical associations between the target sub-businesses is generated, thereby achieving the purpose of flexible assembly and adjustment of accounting rules, thereby realizing rapid adaptation to changing business needs and improving the configuration efficiency and technical effects of the accounting engine. Specifically, a business decomposition strategy is adopted to decompose the complex target business into multiple target sub-businesses with finer granularity. Each sub-business corresponds to a specific business type. A tree structure diagram is used to represent the logical relationship and hierarchical structure between businesses, which clearly shows the overall picture of the business. The tree nodes represent the target sub-businesses, and the tree branches represent the dependencies or logical associations between the sub-businesses. The accounting rule code elements that match each target sub-business are searched in the accounting rule code library to achieve rule reuse and avoid the tediousness and cost of writing code from scratch. The accounting rule code elements found are intelligently assembled according to the target sub-business logical associations reflected in the tree structure diagram to generate the initial accounting code, ensuring the close match between the accounting rules and business scenarios and improving the applicability and accuracy of the rules. Finally, the control parameters in the initial accounting code are finely adjusted according to the actual business scenario parameters of the target business to generate the final target accounting code, so that the accounting engine can respond to business needs more accurately and improve the flexibility and efficiency of accounting, thereby solving the technical problem that the accounting rules and business scenarios in related technologies are out of touch, making it difficult for the accounting engine to quickly adapt to and handle changing business needs.
[0127] Optionally, the determination unit includes: a disassembly module, used to perform process disassembly on the target business based on a preset hierarchical disassembly strategy to obtain a disassembly result; a first determination module, used to confirm the business boundaries of each sub-business in the disassembly result, and determine whether there are logical conflicts between all sub-businesses based on the business boundaries; a second determination module, used to re-execute the process disassembly when it is confirmed that there is a logical conflict; or, when it is confirmed that there is no logical conflict, determine N target sub-businesses.
[0128] Optionally, the generation unit includes: a third determination module, used to determine the dependency impact path between N target sub-businesses during the execution of the target business, and obtain logical association information; a fourth determination module, used to determine the node identity of the tree node corresponding to each target sub-business based on the logical association information, and determine the node position of all tree nodes in the tree structure diagram based on the node identity, wherein the node identity includes: a parent node and a child node; a generation module, used to generate tree branches between tree nodes based on the logical association information, and obtain a tree structure diagram after all tree nodes and tree branches are generated.
[0129] Optionally, the fourth determination module includes: an extraction sub-module, which is used to determine the sub-business combination with dependency relationships for all target sub-businesses based on logical association information, and extract the business logic hierarchy information of the sub-business combination based on the logical association information, wherein the sub-business combination includes at least two target sub-businesses; a comparison sub-module, which is used to determine the business logic hierarchy of at least two target sub-businesses in the sub-business combination for each sub-business combination based on the business logic hierarchy information to obtain a comparison result; and a determination sub-module, which is used to determine, based on the comparison result, the tree node corresponding to the target sub-business with a higher business logic hierarchy as the parent node, and determine the tree node corresponding to the target sub-business with a lower business logic hierarchy as the child node.
[0130] Optionally, the assembly unit includes: an identification module for identifying the correspondence between each tree node in the tree structure diagram and R accounting rule code elements; a fifth determination module for determining the code execution order of the R accounting rule code elements based on the correspondence and the logical association indicated by the tree structure diagram; and a connection module for sequentially connecting the R accounting rule code elements based on the code execution order to obtain an initial accounting code.
[0131] Optionally, the adjustment unit includes: a first acquisition module, used to obtain a business scenario parameter set, wherein the business scenario parameter set includes M preset business types and business scenario default values corresponding to each preset business type, and M is an integer greater than or equal to N; a screening module, used to perform numerical screening in the business scenario parameter set according to the business types of N target sub-businesses of the target business, and obtain a default value set applicable to the target business; a second acquisition module, used to obtain specific parameter values corresponding to the target business, and add the specific parameter values to the default value set to obtain the business scenario parameters of the target business.
[0132] Optionally, the adjustment unit also includes: an analysis module, which is used to analyze the initial accounting code using a machine learning algorithm to obtain a set of adjustable variables; a sixth determination module, which is used to determine the values of each adjustable variable in the adjustable variable set based on business scenario parameters to obtain a control parameter set; a verification module, which is used to adjust the initial accounting code based on the control parameter set, and simulate the adjusted initial accounting code to obtain the target accounting code after the verification is passed.
[0133] It should be noted that the above-mentioned determination unit 61, generation unit 62, search unit 63, assembly unit 64, and adjustment unit 65 correspond to steps S201 to S205 in the first embodiment, and the above-mentioned units and corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in the first embodiment. It should be noted that the above-mentioned modules or units may be hardware components or software components stored in a memory (e.g., memory 104) and processed by one or more processors (e.g., processors 102a, 102b, ..., 102n), and the above-mentioned modules or units may also be part of a device and may be run in the computer terminal 10 provided in the first embodiment.
[0134] The present invention is described below in conjunction with another optional embodiment.
[0135] Embodiment 3
[0136] An embodiment of the present invention may also provide an electronic device, Figure 7 is a structural block diagram of an electronic device for executing a configuration method of a calculation engine according to an embodiment of the present invention, such as Figure 7 As shown, the electronic device may include: one or more ( Figure 7 (only one is shown) processor 702, memory 704, storage controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.
[0137] Among them, the memory can be used to store software programs and modules, such as program instructions / modules corresponding to the methods and devices in the embodiments of the present application, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0138] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: decompose the target business to be accounted for into N target sub-businesses, and determine the business type of each target sub-business, where N is a positive integer; use the target sub-business as a tree node to generate a tree structure diagram corresponding to the target business, wherein the tree branches in the tree structure diagram are used to represent the logical associations between the target sub-businesses; search in the accounting rule code library based on all business types to obtain a search result, wherein the search result includes R accounting rule code elements matching the target business, where R is a positive integer; assemble the R accounting rule code elements according to the logical associations between the target sub-businesses to obtain an initial accounting code; obtain the business scenario parameters of the target business, adjust the control parameters in the initial accounting code according to the business scenario parameters, obtain the target accounting code corresponding to the target business, and configure the accounting engine according to the target accounting code.
[0139] The processor can also call the information and application programs stored in the memory through the transmission device to perform the following steps: perform process decomposition on the target business based on a preset hierarchical decomposition strategy to obtain a decomposition result; confirm the business boundaries of each sub-business in the decomposition result, and determine whether there are logical conflicts between all sub-businesses based on the business boundaries; if it is confirmed that there are logical conflicts, re-execute the process decomposition; or, if it is confirmed that there are no logical conflicts, determine N target sub-businesses.
[0140] The processor can also call the information and application programs stored in the memory through the transmission device to perform the following steps: determine the dependency impact path between N target sub-businesses during the execution of the target business to obtain logical association information; determine the node identity of the tree node corresponding to each target sub-business based on the logical association information, and determine the node position of all tree nodes in the tree structure diagram based on the node identity, wherein the node identity includes: parent node and child node; generate tree branches between tree nodes based on the logical association information, and obtain a tree structure diagram after all tree nodes and tree branches are generated.
[0141] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: for all target sub-businesses, determine the sub-business combination with dependencies based on the logical association information, and extract the business logic hierarchy information of the sub-business combination based on the logical association information, wherein the sub-business combination contains at least two target sub-businesses; for each sub-business combination, determine the business logic hierarchy of at least two target sub-businesses in the sub-business combination based on the business logic hierarchy information to obtain a comparison result; based on the comparison result, determine the tree node corresponding to the target sub-business with a higher business logic hierarchy as the parent node, and determine the tree node corresponding to the target sub-business with a lower business logic hierarchy as the child node.
[0142] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: identify the correspondence between each tree node in the tree structure diagram and R accounting rule code elements; determine the code execution order of the R accounting rule code elements based on the correspondence and the logical association indicated by the tree structure diagram; and sequentially connect the R accounting rule code elements based on the code execution order to obtain an initial accounting code.
[0143] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: obtain a business scenario parameter set, wherein the business scenario parameter set includes M preset business types and business scenario default values corresponding to each preset business type, and M is an integer greater than or equal to N; perform numerical screening in the business scenario parameter set according to the business types of the N target sub-businesses of the target business to obtain a default value set applicable to the target business; obtain specific parameter values corresponding to the target business, and add the specific parameter values to the default value set to obtain the business scenario parameters of the target business.
[0144] The processor can also call the information and applications stored in the memory through the transmission device to perform the following steps: use a machine learning algorithm to analyze the initial accounting code to obtain a set of adjustable variables; determine the value of each adjustable variable in the adjustable variable set based on the business scenario parameters to obtain a set of control parameters; adjust the initial accounting code based on the control parameter set, and simulate the adjusted initial accounting code to obtain the target accounting code after verification.
[0145] An embodiment of the present invention provides a method for configuring an accounting engine, which uses a tree structure diagram to decompose the business. By decomposing the target business into multiple target sub-businesses and determining their business types, a tree structure diagram reflecting the logical relationship between the target sub-businesses is generated, thereby achieving the purpose of flexible assembly and adjustment of accounting rules, thereby realizing rapid adaptation to changing business needs and improving the configuration efficiency and technical effects of the accounting engine. Specifically, a business decomposition strategy is adopted to decompose the complex target business into multiple target sub-businesses with finer granularity. Each sub-business corresponds to a specific business type. A tree structure diagram is used to represent the logical relationship and hierarchical structure between businesses, which clearly shows the overall picture of the business. The tree nodes represent the target sub-businesses, and the tree branches represent the dependencies or logical associations between the sub-businesses. The accounting rule code elements that match each target sub-business are searched in the accounting rule code library to achieve rule reuse and avoid the tediousness and cost of writing code from scratch. The accounting rule code elements found are intelligently assembled according to the target sub-business logical associations reflected in the tree structure diagram to generate the initial accounting code, ensuring the close match between the accounting rules and business scenarios and improving the applicability and accuracy of the rules. Finally, the control parameters in the initial accounting code are finely adjusted according to the actual business scenario parameters of the target business to generate the final target accounting code, so that the accounting engine can respond to business needs more accurately and improve the flexibility and efficiency of accounting, thereby solving the technical problem that the accounting rules and business scenarios in related technologies are out of touch, making it difficult for the accounting engine to quickly adapt to and handle changing business needs.
[0146] It can be understood by those skilled in the art that Figure 7 The structure shown is for illustration only, and the electronic device may also be a smart phone, a tablet computer, a PDA, a mobile Internet device (MID), a PAD or other terminal device. Figure 7 The structure of the electronic device is not limited. Figure 7 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 7 Different configurations are shown.
[0147] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0148] The present invention is described below in conjunction with another optional embodiment.
[0149] Embodiment 4
[0150] The embodiment of the present invention further provides a computer-readable storage medium. Optionally, in the embodiment of the present invention, the computer-readable storage medium can be used to store the program code executed by the configuration method of the accounting engine provided in the first embodiment.
[0151] Optionally, in an embodiment of the present invention, the above-mentioned storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
[0152] An embodiment of the present invention also provides a computer program product, which, when executed on a data processing device, is suitable for executing the steps of a configuration method of an accounting engine: decomposing a target business to be accounted for into N target sub-businesses, and determining the business type of each target sub-business, wherein N is a positive integer; using the target sub-business as a tree node, generating a tree structure diagram corresponding to the target business, wherein the tree branches in the tree structure diagram are used to represent the logical associations between the target sub-businesses; searching in an accounting rule code library based on all business types to obtain a search result, wherein the search result includes R accounting rule code elements matching the target business, wherein R is a positive integer; assembling the R accounting rule code elements according to the logical associations between the target sub-businesses to obtain an initial accounting code; obtaining business scenario parameters of the target business, adjusting the control parameters in the initial accounting code according to the business scenario parameters, obtaining a target accounting code corresponding to the target business, and configuring the accounting engine according to the target accounting code.
[0153] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0154] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0155] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0156] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0157] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0158] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0159] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A configuration method of a calculation engine, characterized in that: include: Decomposing the target business to be accounted for into N target sub-businesses, and determining the business type of each target sub-business, where N is a positive integer; Taking the target sub-service as a tree node, generating a tree structure diagram corresponding to the target service, wherein the tree branches in the tree structure diagram are used to represent the logical associations between the target sub-services; Searching in the accounting rule code library based on all the business types to obtain a search result, wherein the search result includes R accounting rule code elements matching the target business, where R is a positive integer; Assembling the R accounting rule code elements according to the logical associations between the target sub-businesses to obtain an initial accounting code; Obtain business scenario parameters of the target business, adjust control parameters in the initial accounting code according to the business scenario parameters, obtain a target accounting code corresponding to the target business, and configure an accounting engine according to the target accounting code.
2. The configuration method according to claim 1, characterized in that: The steps of decomposing the target business to be accounted for into N target sub-businesses include: Decomposing the target business process based on a preset hierarchical decomposition strategy to obtain a decomposition result; Confirming the business boundary of each sub-business in the disassembly result, and determining whether there is a logical conflict between all the sub-businesses based on the business boundary; If a logical conflict is confirmed, re-execute the process decomposition; or, When it is confirmed that there is no logical conflict, the N target sub-services are determined.
3. The configuration method according to claim 1, characterized in that: The step of generating a tree structure diagram corresponding to the target service by taking the target sub-service as a tree node comprises: Determine the dependency impact path between the N target sub-businesses during the execution of the target business, and obtain logical association information; Determine the node identity of the tree node corresponding to each of the target sub-businesses based on the logical association information, and determine the node positions of all the tree nodes in the tree structure diagram based on the node identity, wherein the node identity includes: a parent node and a child node; The tree branches are generated between the tree nodes based on the logical association information, and the tree structure diagram is obtained after all the tree nodes and the tree branches are generated.
4. The configuration method according to claim 3, characterized in that: The step of determining the node identity of the tree node corresponding to each of the target sub-businesses based on the logical association information includes: For all the target sub-businesses, determining a sub-business combination with a dependency relationship based on the logical association information, and extracting business logic hierarchy information of the sub-business combination based on the logical association information, wherein the sub-business combination includes at least two of the target sub-businesses; For each of the sub-business combinations, determining the business logic levels of at least two of the target sub-businesses in the sub-business combination based on the business logic level information, and obtaining a comparison result; Based on the comparison result, the tree node corresponding to the target sub-service at a higher service logic level is determined as a parent node, and the tree node corresponding to the target sub-service at a lower service logic level is determined as a child node.
5. The configuration method according to claim 1, characterized in that: The step of assembling the R accounting rule code elements according to the logical association indicated by the tree structure diagram to obtain an initial accounting code includes: Identify the corresponding relationship between each of the tree nodes in the tree structure diagram and the R accounting rule code elements; Determine the code execution order of the R accounting rule code elements according to the corresponding relationship and the logical association indicated by the tree structure diagram; The R calculation rule code elements are sequentially connected based on the code execution order to obtain the initial calculation code.
6. The configuration method according to claim 1, characterized in that: The step of obtaining the business scenario parameters of the target business includes: Obtain a business scenario parameter set, wherein the business scenario parameter set includes M preset business types and business scenario default values corresponding to each preset business type, where M is an integer greater than or equal to N; Performing numerical screening in the business scenario parameter set according to the business types of the N target sub-businesses of the target business to obtain a default value set applicable to the target business; A specific parameter value corresponding to the target business is acquired, and the specific parameter value is added to the default value set to obtain a business scenario parameter of the target business.
7. The configuration method according to claim 1, characterized in that: The step of adjusting the adjustable control parameters in the initial accounting code according to the business scenario parameters to obtain the target accounting code corresponding to the target business includes: Analyzing the initial calculation code using a machine learning algorithm to obtain a set of adjustable variables; Determine the value of each adjustable variable in the adjustable variable set based on the business scenario parameter to obtain a control parameter set; The initial accounting code is adjusted based on the control parameter set, and a simulation trial calculation is performed on the adjusted initial accounting code. After verification, the target accounting code is obtained.
8. A configuration device for a calculation engine, characterized in that: include: A determination unit, configured to decompose the target business to be accounted for into N target sub-businesses, and determine the business type of each target sub-business, where N is a positive integer; A generating unit, configured to generate a tree structure diagram corresponding to the target service by taking the target sub-service as a tree node, wherein the tree branches in the tree structure diagram are used to represent the logical associations between the target sub-services; A search unit, configured to search in a calculation rule code library based on all the business types to obtain a search result, wherein the search result includes R calculation rule code elements matching the target business, where R is a positive integer; An assembling unit, configured to assemble the R accounting rule code elements according to the logical associations between the target sub-businesses to obtain an initial accounting code; An adjustment unit is used to obtain business scenario parameters of the target business, adjust the control parameters in the initial accounting code according to the business scenario parameters, obtain the target accounting code corresponding to the target business, and configure the accounting engine according to the target accounting code.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the configuration method of the accounting engine described in any one of claims 1 to 7.
10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the configuration method of the accounting engine described in any one of claims 1 to 7.
Citation Information
Cited By
Modeling application full link type calculation method and system
CN120892407A
Intelligent ship service dynamic assembly method and system, storage medium and electronic equipment
CN121092151A