Application system page processing method, device, computer equipment and storage medium
By using the Aviator engine to load effective rule codes in the application system, the problems of high complexity and low operation efficiency are solved, and the page code is lightweight and efficient computing is achieved, and the maintenance and performance of the application system is improved.
Patent Information
- Application Number
- CN202011554536.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-24
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2040-12-24
AI Technical Summary
In existing application systems, the page code is highly complex, low-performance, and difficult to maintain due to writing the rule execution code to the page code.
By using rule reference tags and valid rule identifiers in the target page code, the valid rule code created based on the Aviator engine is loaded into the system cache, and the target page is displayed on the client, and the parallel processing method is adopted to avoid including valid rule codes in the page code. , determine and execute the target rule code from the system cache to obtain the operation result.
It improves the lightweight and maintainability of page code, improves processing efficiency and computing efficiency, simplifies the rule change process, and improves the operation performance of the application system.
Smart Images

Figure CN112667323B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing technology, and in particular to an application system page processing method, device, computer equipment and storage medium. Background Art
[0002] In the development process of existing application systems, various business rule calculations are usually involved. In the existing technology, the rule execution codes corresponding to the various business rule calculations are generally written into the page code, which makes the page code more complex. Moreover, when the rule execution code is written into the page code, when the business rules need to be modified, the rule execution code in the page code needs to be modified, which makes the maintainability of the page code poor. Summary of the invention
[0003] The embodiments of the present invention provide an application system page processing method, apparatus, computer equipment and storage medium to solve the problem that the existing rule execution code is written into the page code, resulting in high complexity and low operating efficiency of the page code in the application system.
[0004] A method for processing application system pages, comprising:
[0005] Obtaining a page access request sent by a client, wherein the page access request includes a target page identifier;
[0006] Based on the target page identifier, obtaining a target page code corresponding to the target page identifier;
[0007] If the target page code includes a rule reference tag and a valid rule identifier, then loading the valid rule code corresponding to the valid rule identifier created based on the Aviator engine into the system cache, controlling the client to display the target page corresponding to the target page code, and displaying the valid rule identifier and the valid rule function corresponding to the valid rule identifier on the target page;
[0008] Acquire a target operation request triggered based on the target page, wherein the target operation request includes a target rule identifier determined based on the valid rule identifier;
[0009] A valid rule code corresponding to the target rule identifier is determined from the system cache as the target rule code, the target rule code is executed, a target operation result is obtained, and the target operation result is displayed on the target page.
[0010] An application system page processing device, comprising:
[0011] A page access request acquisition module, used to acquire a page access request sent by a client, wherein the page access request includes a target page identifier;
[0012] A target page code acquisition module, used for acquiring a target page code corresponding to the target page identifier based on the target page identifier;
[0013] A rule code loading and display module is used for, if the target page code includes a rule reference tag and a valid rule identifier, loading a valid rule code corresponding to the valid rule identifier created based on the Aviator engine into a system cache, controlling the client to display a target page corresponding to the target page code, and displaying the valid rule identifier and the valid rule function corresponding to the valid rule identifier on the target page;
[0014] A target rule identifier determination module, configured to obtain a target operation request triggered based on the target page, wherein the target operation request includes a target rule identifier determined based on the valid rule identifier;
[0015] The target rule code execution module is used to determine the valid rule code corresponding to the target rule identifier from the system cache as the target rule code, execute the target rule code, obtain the target operation result, and display the target operation result on the target page.
[0016] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned application system page processing method when executing the computer program.
[0017] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the application system page processing method is implemented.
[0018] The above-mentioned application system page processing method, device, computer equipment and storage medium, after determining the target page code according to the target page identifier in the page access request, if the target page code includes a rule reference tag and a valid rule identifier, load the valid rule code created based on the Aviator engine into the system cache and display the target page, and adopt a parallel processing method, which helps to improve the processing efficiency. Since the target page code contains the rule reference tag and the valid rule identifier, it is not necessary to include the valid rule code, which helps to ensure the lightweight and maintainability of the target page code. In addition, according to the target rule identifier determined by the target operation request, the valid rule code corresponding to the target rule identifier is determined from the system cache as the target rule code, which helps to improve the determination efficiency and call efficiency of the target rule code. The target rule code is executed, and the target operation result obtained is displayed on the target page. Since the target rule code is a Java byte symbol created based on the Aviator engine, the target rule code can be directly executed through the JVM. Compared with the evaluation engine such as Groovy and JRuby that performs operations through interpretation, its operation efficiency is faster, and the target operation result can be obtained more quickly. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0020] Figure 1 is a schematic diagram of an application environment of an application system page processing method in one embodiment of the present invention;
[0021] Figure 2 is a flow chart of an application system page processing method in one embodiment of the present invention;
[0022] Figure 3 is another flow chart of the application system page processing method in one embodiment of the present invention;
[0023] Figure 4 is another flow chart of the application system page processing method in one embodiment of the present invention;
[0024] Figure 5 is another flow chart of the application system page processing method in one embodiment of the present invention;
[0025] Figure 6 is a schematic diagram of an application system page processing device in one embodiment of the present invention;
[0026] Figure 7is a schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are 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 are within the scope of protection of the present invention.
[0028] The application system page processing method provided by the embodiment of the present invention can be applied as follows: Figure 1 Specifically, the application system page processing method is applied in an application system, and the application system includes: Figure 1 The client and server shown in the figure communicate with each other through the network. By writing the rule reference tag and the effective rule identifier in the target page code, instead of writing the effective rule code in the target page code, the code complexity of the page code in the application system is reduced, which helps to improve the operation efficiency of the target page code. Among them, the client, also known as the user end, refers to the program corresponding to the server and providing local services to the customer. The client can be installed on but not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices. The server can be implemented as an independent server or a server cluster consisting of multiple servers.
[0029] In one embodiment, if Figure 2 As shown, a method for processing application system pages is provided, which is applied in Figure 1 The server in the example is used as an example to illustrate the process, including the following steps:
[0030] S201: Obtain a page access request sent by a client, where the page access request includes a target page identifier.
[0031] Among them, the page access request is a request triggered by the user through the client to access the target page. The target page is the page that the client needs to access this time. The target page identifier is an identifier used to uniquely identify the target page. For example, the target page identifier can be the URL (Uniform Resource Locator) address corresponding to the target page. The URL can be understood as the unique address of the target page information resource on the network, which is used to uniquely point to the target page that needs to be accessed.
[0032] For example, a user may enter the URL address of a target page to be accessed on the client to form a page access request with the URL address as the target page identifier, so that the server may obtain the page access request and control the client to display the target page based on the page access request.
[0033] S202: Based on the target page identifier, obtain a target page code corresponding to the target page identifier.
[0034] The target page code is a code for realizing the display of the target page, and the target page code is a valid page code corresponding to the configuration page identifier that is the same as the target page identifier. The valid page code is a code for realizing the display of the page determined after the page configuration is completed.
[0035] As an example, the server queries the system database based on the target page identifier and obtains the target page code corresponding to the target page identifier, that is, the valid page code corresponding to the configuration page identifier that is the same as the target page identifier, so as to control the client to display its corresponding target page based on the target page code.
[0036] S203: If the target page code includes a rule reference tag and a valid rule identifier, then the valid rule code corresponding to the valid rule identifier created based on the Aviator engine is loaded into the system cache, and the client is controlled to display the target page corresponding to the target page code, and the valid rule identifier and the valid rule function corresponding to the valid rule identifier are displayed on the target page.
[0037] Among them, the Aviator engine is a high-performance, lightweight expression evaluation engine implemented in Java. It is mainly used for dynamic evaluation of various expressions and can achieve lightweight and high-performance rule configuration. Compared with the bulky evaluation engines such as Groovy and JRuby, the Aviator engine has the advantage of being lightweight. For example, the size of the Aviator engine plus dependent packages is about 450K, and the size without dependent packages is only about 70K; moreover, compared with evaluation engines such as Groovy and JRuby that run in an interpreted manner, the Aviator engine directly compiles expressions into Java bytecode and executes the Java bytecode through the JVM, making its computing efficiency faster.
[0038] Among them, the rule reference tag is a pre-set tag used to reflect the need to reference the rule code created based on the Aviator engine. The rule code is the code that implements a certain rule. During the page access process, the rule reference tag is a tag used to reflect that the target page code needs to reference the valid rule code created based on the Aviator engine. The valid rule identifier is an identifier used to uniquely identify the valid rule. The valid rule code is the execution code corresponding to the valid rule, which is a Java bytecode created based on the Aviator engine. The valid rule function is the functional description corresponding to the valid rule.
[0039] As an example, when the target page code includes a rule reference tag and a valid rule identifier, it means that during the page configuration process, the target page code has added the valid rule identifier corresponding to the valid rule code that needs to be referenced to the target page code, so that the corresponding valid rule code can be called for calculation and processing when the page is subsequently accessed. In this example, when the target page code includes a rule reference tag and a valid rule identifier, the server loads the valid rule code corresponding to the valid rule identifier created based on the Aviator engine into the system cache, so that the valid rule code needs to be called for calculation and processing later to improve processing efficiency. It can be understood that the valid rule identifier in the target page code can be one or more; accordingly, the valid code rules loaded into the system cache can be one or more.
[0040] As an example, when all valid rule codes are loaded into the system cache, the client needs to be controlled to display the target page corresponding to the target page code, and all valid rule identifiers and their valid rule functions are displayed on the target page, so that the user can determine the target rule identifier corresponding to the target rule that needs to be called from all valid rule identifiers based on the valid rule functions and actual needs.
[0041] It can be understood that while loading all valid rule codes into the system cache, the valid rule identifier and its valid rule code are displayed on the target page, and two processes are executed in parallel, which helps to improve processing efficiency; moreover, the target page code contains rule reference tags and valid rule identifiers, and does not need to contain valid rule codes, which helps to ensure the lightweight and maintainability of the target page code. For example, when the rules are changed through steps S501-S503, the changed valid rule code can be called through the target rule identifier, which is highly maintainable compared to the method of writing the valid rule code into the target page code. In addition, the valid rule code is an execution code created based on the Aviator engine, which itself has the advantages of lightweight and high computational efficiency.
[0042] S204: Acquire a target operation request triggered based on the target page, where the target operation request includes a target rule identifier determined based on the valid rule identifier.
[0043] As an example, the user can determine the target rule identifier that needs to be called for operation from all valid rule identifiers displayed on the target page, and after determining the target rule identifier, click a confirmation button or confirmation link to trigger the target operation request, so that the server receives the target operation request triggered based on the target page. The target rule identifier in the target operation request is the identifier corresponding to the target rule that needs to be called for this target operation request.
[0044] S205: Determine from the system cache the valid rule code corresponding to the target rule identifier as the target rule code, execute the target rule code, obtain the target operation result, and display the target operation result on the target page.
[0045] As an example, after determining the target rule identifier, the server matches the target rule identifier with all valid rule identifiers in the system cache, and determines the valid rule code corresponding to the valid rule identifier that is the same as the target rule identifier as the target rule code. The target rule code is the execution code corresponding to the target rule required to be called for this target operation request, specifically a Java bytecode created based on the Aviator engine, which has the advantages of being lightweight and efficient in operation. It can be understood that determining the target rule code from all valid rule codes preloaded in the system cache helps to improve the determination efficiency and calling efficiency of the target rule code.
[0046] As an example, after determining the target rule code, the server needs to execute the target rule code, determine the output parameters of the target rule code as the target operation result, and display the target operation result on the target page. Understandably, since the target rule code is a Java bytecode created based on the Aviator engine, the target rule code can be directly executed through the JVM. Compared with the interpretation of evaluation engines such as Groovy and JRuby, its operation efficiency is faster, and the target operation result can be obtained more quickly. Among them, JVM is the abbreviation of Java Virtual Machine (Java Virtual Machine). JVM is a specification for computing devices. It is a fictitious computer that is implemented by simulating various computer functions on an actual computer. After the introduction of the Java language virtual machine, the Java language does not need to be recompiled when running on different platforms. The Java language uses the Java virtual machine to shield information related to the specific platform, so that the Java language compiler only needs to generate the target code (bytecode) running on the Java virtual machine, and it can run on multiple platforms without modification.
[0047] In one embodiment, the target rule code includes a target operation logic created based on the Aviator engine and a target operation parameter corresponding to the target operation logic. The target operation logic is an operation logic for realizing the function of the target rule, specifically, a logic for processing the target operation parameter using an operator to form an operation expression. For example, the target operation logic can be a logic for processing the target operation parameter using addition, subtraction, multiplication, division or other operators to realize the operation expression of a specific target rule function. The target operation parameter is a parameter required to be input for the target rule operation process. The target operation parameter is a formal parameter in the target operation logic, which can be understood as a parameter name.
[0048] Accordingly, executing the target rule code in step S205 to obtain the target operation result includes:
[0049] S2051: Obtain the data source corresponding to the target operation parameter.
[0050] As an example, after the server obtains the target rule code and determines the target operation parameter from the target rule code, it determines whether the target operation parameter contains a data reference tag. If the target operation parameter contains the data reference tag, it means that the target operation parameter needs to reference data, and the data source of the target operation parameter is the reference source; if the target operation parameter does not contain the data reference tag, it means that the target operation parameter does not need to reference data, but is configured by the user, and the data source of the target operation parameter is the configuration source. The data reference tag is a pre-set tag used to reflect that the target operation parameter needs to reference data.
[0051] For example, in a certain application system, the target operation logic for calculating the net profit at a specific time corresponds to the target operation parameters including time, turnover and cost, etc., among which the target operation parameter of time needs to be configured by the user, and its data source is the configuration source; turnover and cost need to be obtained from the associated system, and their data source is the reference source. The associated system is a system associated with the application system, that is, a system that can communicate with the application system to realize data interaction.
[0052] For example, in an application system, the target operation logic used to calculate the net profit at a specific time corresponds to the target operation parameters including time, turnover, and cost, among which the target operation parameter of time needs to be configured by the user, and its data source is the configuration source; turnover and cost need to be obtained from the associated system, and their data source is the reference source.
[0053] S2052: If the data source corresponding to the target operation parameter is a configuration source, the target parameter value corresponding to the target operation parameter is obtained through the configuration source interface.
[0054] The configuration source interface is an interface for receiving the target parameter value configured by the user. The target parameter value is the specific value of the target operation parameter, which is the input parameter for inputting the target operation logic.
[0055] As an example, if the data source corresponding to the target operation parameter is the configuration source, it means that the target operation parameter does not need to reference data, but the target parameter value corresponding to the target operation parameter needs to be configured by the user independently. At this time, the control client displays the parameter configuration interface corresponding to the target rule identifier, and the parameter configuration interface is an interface for configuring the input parameters corresponding to the target rule code. Then, the user can enter the target parameter value corresponding to the target operation parameter on the parameter configuration interface, so that the server can obtain the target parameter value corresponding to the target operation parameter through the pre-configured configuration source interface. For example, in the target operation logic corresponding to the above net profit, the target parameter value corresponding to the target parameter value of time can be obtained through the configuration source interface.
[0056] S2053: If the data source corresponding to the target operation parameter is a reference source, the target parameter value corresponding to the target operation parameter is obtained through the reference source interface and the parameter acquisition path corresponding to the target operation parameter.
[0057] Among them, the reference source interface is an interface for receiving target parameter values obtained from the associated system, which can be understood as a data call interface.
[0058] As an example, if the data source corresponding to the target operation parameter is the configuration source, it means that the target operation parameter needs to reference data. At this time, the server can obtain the target parameter value corresponding to the target operation parameter from the system database of this application system or the associated database corresponding to the associated system according to the parameter acquisition path corresponding to the target operation parameter, by referencing the source interface. The parameter acquisition path is the path to obtain the target parameter value from the system database of this application system or the associated database corresponding to the associated system. The parameter acquisition path can be a JSON path corresponding to the target operation parameter, so that the target parameter value in the system database or the associated database can be dynamically obtained using the JSON path to ensure the executable nature of the target rule code. For example, in the target operation logic corresponding to the above-mentioned net profit, the target parameter values corresponding to the two target operation parameters of turnover and cost can be obtained by referencing the source interface. In this example, the parameter acquisition path corresponding to the target operation parameter is used to obtain the target parameter value that changes dynamically according to the actual situation to ensure the applicability of the target rule code.
[0059] S2054: Using the target operation logic, operate on the target parameter values corresponding to all target operation parameters to obtain the target operation result.
[0060] As an example, the server uses the target operation logic to operate on the target parameter values corresponding to all target operation parameters, that is, to pass the target parameter values corresponding to all target operation parameters as actual parameters to the target operation parameters; and then uses the target operation logic to operate, that is, to execute the operation expression corresponding to the target operation logic to obtain the target operation result. Since the target operation logic in the target rule code is created based on the Aviator engine, the target operation logic has the advantage of fast operation efficiency.
[0061] It can be understood that when the data source of the target operation parameter is the configuration source, the user independently inputs the target parameter value corresponding to the target operation parameter to ensure the autonomy and flexibility of target parameter value acquisition; when the data source of the target operation parameter is the reference source, the target parameter value corresponding to the target operation parameter is obtained through the parameter acquisition path of the target operation parameter to ensure the flexibility and applicability of target parameter value acquisition; and then the target operation logic created based on the Aviator engine is used to calculate the target parameter value to obtain the target operation result, and its calculation efficiency is relatively fast.
[0062] In the application system page processing method provided in this embodiment, after determining the target page code according to the target page identifier in the page access request, if the target page code includes a rule reference tag and a valid rule identifier, the valid rule code created based on the Aviator engine is loaded into the system cache and the target page is displayed. The parallel processing method is adopted, which helps to improve the processing efficiency. Since the target page code contains the rule reference tag and the valid rule identifier, it is not necessary to include the valid rule code, which helps to ensure the lightweight and maintainability of the target page code. In addition, according to the target rule identifier determined by the target operation request, the valid rule code corresponding to the target rule identifier is determined from the system cache as the target rule code, which helps to improve the determination efficiency and call efficiency of the target rule code. The target rule code is executed, and the obtained target operation result is displayed on the target page. Since the target rule code is a Java byte symbol created based on the Aviator engine, the target rule code can be directly executed through the JVM. Compared with the evaluation engines such as Groovy and JRuby that perform operations through interpretation, its operation efficiency is faster, and the target operation result can be obtained more quickly.
[0063] In one embodiment, if Figure 3 As shown, before step S201, that is, before obtaining the page access request sent by the client, the application system page processing method further includes:
[0064] S301: Obtain a page configuration request sent by a client, where the page configuration request includes a configuration page identifier and a configuration page code.
[0065] Among them, the page configuration request is a request triggered by the user through the client to configure a certain configuration page. The configuration page refers to the page that needs to be configured by the page configuration request, which is the object targeted by the page configuration request. The configuration page identifier is an identifier used to uniquely identify the configuration page, which is the URL address corresponding to the configuration page. The configuration page code is the code used to realize the display of the configuration page.
[0066] As an example, during the page front-end development process, after completing the configuration page code development and configuration page identifier configuration corresponding to a certain configuration page, a page configuration request including the configuration page identifier and the configuration page code can be triggered through the client.
[0067] S302: If the configuration page code includes a rule reference tag, the client is controlled to display a page configuration interface, which displays at least one existing rule identifier and a corresponding existing rule function in the system database.
[0068] Among them, the rule reference tag is a pre-set tag used to reflect the need to reference the rule code created based on the Aviator engine. During the page configuration process, the rule reference tag is a tag used to reflect that the configuration page code needs to reference the existing rule code created based on the Aviator engine. The page configuration interface is an interface for users to operate to complete the rule configuration of the configuration page. The existing rule function is a functional description corresponding to the existing rule.
[0069] As an example, when a rule reference tag is included in the configuration page code, the client can be controlled to display a page configuration interface, on which at least one existing rule identifier and a corresponding existing rule function in the system database are displayed. The existing rule identifier is an identifier used to uniquely identify an existing rule, so that the corresponding existing rule code can be determined based on the existing rule identifier, and the existing rule code can be called using the existing rule identifier. The existing rule function is a functional description corresponding to the existing rule, so that the user can understand the functions of each existing rule through the page configuration interface, thereby determining the existing rule to be called.
[0070] S303: Obtain page configuration information formed based on the page configuration interface, the page configuration information includes a valid rule identifier determined based on an existing rule identifier, add the valid rule identifier to the configuration page code, and obtain a valid page code corresponding to the configuration page identifier.
[0071] The valid rule identifier is an identifier used to uniquely identify a valid rule, which is an existing rule that needs to be added to the configuration page code. The valid rule identifier can be understood as an existing rule identifier that needs to be added to the configuration page code determined by the user. The valid page code is the code determined after the page configuration is completed to realize the page display.
[0072] As an example, a user can input page configuration information on the page configuration interface, and the page configuration information includes at least one valid rule identifier determined from all existing rule identifiers; then, the valid rule identifier is added to the configuration page code, specifically, the valid rule identifier is added after the rule reference tag, and the valid page code corresponding to the configuration page identifier is obtained, so that after forming a front-end access page based on the valid page code, the valid rule code corresponding to the valid rule identifier can be called for operation, so as to achieve the purpose of lightweight rule operation, and has the characteristics of high operation efficiency. Among them, the valid rule code is the execution code corresponding to the existing rule created based on the Aviator engine corresponding to the valid rule identifier, that is, the existing rule code stored in the system database before the current time of the system, specifically a Java byte symbol created based on the Aviator engine, which has the characteristics of lightweight and high operation efficiency.
[0073] S304: If the configuration page code does not include the rule reference tag, the configuration page code is determined as a valid page code corresponding to the configuration page identifier.
[0074] As an example, when the configuration page code does not contain a rule reference tag, it means that the configuration page code does not need to reference the existing rule code created based on the Aviator engine. At this time, the configuration page code can be directly determined as the valid page code corresponding to the configuration page, so as to form a front-end access page based on the valid page code.
[0075] In the application system page processing method provided by the present embodiment, when there is a rule reference tag in the configuration page code, the page configuration information can be input through the page configuration interface, that is, the effective rule identifier is determined based on the existing rule identifier displayed on the page configuration interface, and the effective rule identifier is added to the configuration page code to form an effective page code, so that after the front-end access page is formed based on the effective page code, the effective rule code corresponding to the effective rule identifier can be called for operation, so as to achieve the purpose of lightweight rule operation, and has the characteristics of high operation efficiency. It can be understood that by adding the effective rule identifier through the rule reference tag, there is no need to write the effective rule code directly into the configuration page code, so as to achieve code lightweight, reduce system complexity and improve system maintainability, avoid adding too much effective rule code to the configuration page code of the application system, resulting in high system complexity, and when the effective rule changes, the effective page code needs to be changed, resulting in poor maintainability.
[0076] In one embodiment, if Figure 4 As shown, before obtaining the page configuration request sent by the client, the application system page processing method also includes:
[0077] S401: Obtain a rule configuration request sent by a client and formed based on an Aviator engine. The rule configuration request includes a configuration rule function, a configuration operation logic, and a configuration operation parameter.
[0078] Among them, the rule configuration request is a request triggered by the user through the client to configure the configuration rule, and the configuration rule is the rule that needs to be configured for this rule configuration request. The configuration rule function is the functional description corresponding to the configuration rule, so that subsequent users can select and determine the effective rule in the page configuration, or select and determine the target rule in the page access according to the configuration rule function. The configuration operation logic is the operation logic used to implement the configuration rule, specifically the logic of using operators to process the configuration operation parameters to form an operation expression. For example, the configuration operation logic can be the logic of the operation expression that uses addition, subtraction, multiplication, division or other operators to process the configuration operation parameters to implement a specific configuration rule function. The configuration operation parameter is the parameter required to be input for the configuration rule operation process. The configuration operation parameter is a formal parameter in the configuration operation logic, which can be understood as a parameter name.
[0079] As an example, a rule configuration interface formed based on the Aviator engine is displayed on the client, and the rule configuration interface is an interface for implementing rule configuration formed based on the rule configuration interface provided by the Aviator engine. The rule configuration interface is an interface provided by the Aviator engine for users to call to implement rule configuration. The user can enter the configuration rule function, configuration operation logic and configuration operation parameters corresponding to the configuration rule on the rule configuration interface, so that the configuration rule function, configuration operation logic and configuration operation parameters are obtained based on the rule configuration interface provided by the Aviator engine, a rule configuration request is formed, and the rule configuration request is sent to the server, so that the server can obtain the rule configuration request formed based on the Aviator engine sent by the client.
[0080] S402: Perform rule verification on the configuration operation logic and configuration operation parameters to obtain rule verification results.
[0081] As an example, the server calls the pre-set rule verification logic, performs a feasibility check on the configuration operation logic in the rule configuration request, and performs a source validity check on the configuration operation parameters in the rule configuration request to obtain the rule verification result. The rule verification logic is a pre-configured processing logic for performing rule verification on the configuration operation logic and the configuration operation parameters. The feasibility check refers to a verification process for verifying whether the operation expression corresponding to the configuration operation logic can be operated, so as to ensure the feasibility of subsequently calling the configuration operation logic to perform rule operations on the configuration operation parameters. The source validity check is used to verify whether the configuration operation parameters can be effectively obtained through their data sources, so as to ensure the feasibility of subsequently calling the configuration operation logic to perform rule operations on the configuration operation parameters.
[0082] In one embodiment, step S402, i.e., performing rule verification on the configuration operation logic and the configuration operation parameters to obtain the rule verification result, includes:
[0083] S4021: Perform feasibility check on the configuration operation logic and obtain the feasibility check result.
[0084] In this embodiment, the server calls the pre-configured feasibility verification logic to perform a feasibility verification on the configuration operation logic to verify whether the operation expression corresponding to the configuration operation logic can be operated, and obtains a feasibility verification result. The feasibility verification logic is a pre-configured processing logic for performing a feasibility verification on the configuration operation logic. The feasibility verification results include two types: a passed verification and a failed verification, wherein a passed verification refers to a verification result that the configuration operation logic can perform the operation processing; correspondingly, a failed verification refers to a verification result that the configuration operation logic cannot perform the operation processing. For example, the feasibility verification result of the configuration operation logic with a dividend of 0 is a failed verification.
[0085] As an example, step S4021, i.e., performing a feasibility check on the configuration operation logic and obtaining a feasibility check result, specifically includes the following steps:
[0086] (1) Based on the configuration operation logic, the system database is queried to determine whether there is an existing operation logic that matches the configuration operation logic. The existing operation logic refers to the operation logic that can realize rule operation and is stored in the system database before the current time of the system. The existing operation logic can be the operation logic corresponding to the existing rule, and the existing rule refers to the rule formed and stored in the system database before the current time of the system. Therefore, the feasibility check result of the existing operation logic is passed. In this example, the server queries the system database based on the configuration operation logic in the rule configuration request to determine whether there is an existing operation logic that is the same as the configuration operation logic. The judgment process can use but is not limited to a string matching algorithm for matching processing.
[0087] (2) If there is an existing operation logic, obtain the feasibility verification result that has passed the verification. In this example, when the server has an existing operation logic that matches the configured operation logic in the system database, since the existing operation logic is the operation logic that has been stored in the system database before the current time of the system and has passed the feasibility verification, the feasibility verification result that has passed the verification can be directly determined.
[0088] (3) If there is no existing operation logic, the control client jumps to the trial operation interface, executes the trial operation logic, and obtains the trial operation result; if the trial operation result is a successful operation, the feasibility verification result of the verification is obtained; if the trial operation result is a failed operation, the feasibility verification result of the verification is obtained. Among them, the trial operation logic is a pre-configured processing logic for implementing a trial operation on the configuration operation logic. The trial operation interface is an interface on the client for executing the trial operation logic. The trial operation result is the operation result determined after executing the trial operation logic, including two types: successful operation and failed operation. For example, the user can enter the trial operation parameters corresponding to the configuration operation logic on the trial operation interface, use the configuration operation logic to calculate the trial operation parameters, obtain accurate trial operation output, and display the trial operation output on the trial operation interface to obtain a successful trial operation result; if the accurate trial operation output cannot be obtained, or the trial operation output cannot be displayed on the trial operation interface, the trial operation result of failed operation is obtained.
[0089] S4022: Perform source validity check on the configuration operation parameters and obtain validity check results.
[0090] In this embodiment, the server presets a preconfigured source validity verification logic to perform source validity verification on the configuration operation parameters to verify whether the configuration operation parameters can be effectively obtained through their data sources and obtain validity verification results. The source validity verification logic is a preconfigured processing logic for performing source validity verification on the configuration operation parameters. The validity verification results include two types: verification passed and verification failed, wherein verification passed means that the configuration operation parameters can be effectively obtained through their data sources; correspondingly, verification failed means that the configuration operation parameters cannot be effectively obtained through their data sources. For example, if the configuration operation parameter is a specific parameter in a referenced associated database, if the associated database does not contain the specific parameter, a validity verification result of verification failed is obtained.
[0091] As an example, step S4022, i.e., performing source validity verification on the configuration operation parameters and obtaining validity verification results, specifically includes the following steps:
[0092] (1) Obtaining the data source of the configuration operation parameter. In this example, after the server obtains the configuration operation parameter, it determines whether the configuration operation parameter contains a data reference tag. If the configuration operation parameter contains a data reference tag, the data source of the configuration operation parameter is the reference source; if the configuration operation parameter does not contain a data reference tag, the data source of the configuration operation parameter is the configuration source.
[0093] The data reference tag is a pre-set tag used to reflect that the configuration operation parameter needs to reference data. As an example, if the configuration operation parameter contains a data reference tag, it means that the configuration operation parameter needs to reference data, so the data source of the configuration operation parameter is the reference source; if the configuration operation parameter does not contain a data reference tag, it means that the configuration operation parameter does not need to reference data, but is configured by the user, so the data source of the configuration operation parameter is the configuration source.
[0094] For example, in an application system, the configuration operation logic used to calculate the net profit at a specific time corresponds to the configuration operation parameters including time, turnover, and cost, among which the configuration operation parameter of time requires the user to configure it independently, and its data source is the configuration source; turnover and cost need to be obtained from the associated system, and their data source is the reference source.
[0095] (2) If the data source of the configuration operation parameter is the configuration source, then the validity check result that has passed the verification is obtained. In this example, if the data source of the configuration operation parameter is the configuration source, it means that the configuration operation parameter can be configured by the user independently without referring to the data in the system database of this application system or the associated database of the associated system. Therefore, the validity check result that has passed the verification can be directly obtained.
[0096] (3) If the data source of the configuration operation parameter is a reference source, then the associated database is determined based on the configuration operation parameter, and it is determined whether the associated database contains a parameter acquisition path corresponding to the configuration operation parameter; if the associated database contains the parameter acquisition path, a validity check result that passes the verification is obtained; if the associated database does not contain the parameter acquisition path, a validity check result that fails the verification is obtained. The parameter acquisition path corresponding to the configuration operation parameter refers to the path used to obtain the configuration parameter value corresponding to the configuration operation parameter. For example, if the configuration operation parameter is turnover, its parameter acquisition path can be the path of the field value corresponding to the turnover field in a certain business data table. In this example, when the parameter acquisition path corresponding to the configuration operation parameter is included in the system database or the associated database, the configuration operation logic can be used to perform operations on the configuration parameter value corresponding to the configuration operation parameter determined by the parameter acquisition path, so as to ensure the feasibility of the operation and obtain the validity check result that passes the verification; on the contrary, if the system database or the associated database does not contain the parameter acquisition path corresponding to the configuration operation parameter, it means that the configuration parameter value corresponding to the configuration operation parameter cannot be obtained, resulting in the inability to execute the configuration operation logic to calculate the configuration parameter value corresponding to the configuration operation parameter, and therefore, the validity check result that fails the verification is obtained.
[0097] S4023: If both the feasibility check result and the validity check result are verified to be passed, the rule verification result that is verified to be passed is obtained.
[0098] In this embodiment, if both the feasibility check result and the validity check result are verified to be passed, it means that the configuration operation logic can be operated and processed, and the configuration operation parameters can be effectively obtained through its data source, reflecting that the operation expression formed based on the configuration operation logic and the configuration operation parameters is feasible for rule operation. Therefore, a rule verification result that passes the verification can be obtained.
[0099] S4024: If at least one of the feasibility check result and the validity check result fails the check, the rule check result that fails the check is obtained.
[0100] As an example, if at least one of the feasibility check result and the validity check result fails the check, it means that the configuration operation logic cannot perform operation processing, and / or the configuration operation parameters can be effectively obtained through their data sources, reflecting that it is not feasible to perform rule operations based on the operation expression formed by the configuration operation logic and the configuration operation parameters. Therefore, a rule check result that fails the check can be obtained.
[0101] In this embodiment, the feasibility check of the configuration operation logic and the source validity check of the configuration operation parameters are respectively performed to obtain the rule verification result, so as to determine through the rule verification result whether it is feasible to perform rule operation using the operation expression formed by the configuration operation logic and the configuration operation parameters, that is, to determine whether the configuration rules configured by this rule configuration request are feasible.
[0102] S403: If the rule verification result is passed, the configuration operation logic and configuration operation parameters are compiled using the Aviator engine to obtain the configuration rule code and generate a configuration rule identifier corresponding to the configuration rule code.
[0103] The configuration rule code is the execution code corresponding to the configuration rule. The configuration rule identifier is an identifier used to uniquely identify a configuration rule. The configuration rule is the rule required to be configured in this rule configuration request.
[0104] As an example, the Aviator engine is used to compile the configuration operation logic and configuration operation parameters to obtain the configuration rule code. Specifically, the configuration operation logic and configuration operation parameters are compiled using the compilation script pre-set in the Aviator engine to determine the Java bytecode obtained by the compilation as the configuration rule code, so that the configuration rule code can be directly executed through the JVM later, making its operation efficiency faster.
[0105] As an example, after obtaining the configuration rule code, the server needs to generate a configuration rule identifier corresponding to the configuration rule code, so as to quickly find and locate the corresponding configuration rule code through the configuration rule identifier, thereby facilitating the management and calling of the configuration rule code.
[0106] In one embodiment, generating a configuration rule identifier corresponding to the configuration rule code in step S403 includes:
[0107] S4031: Based on the configuration rule function, determine whether there is an existing rule matching the configuration rule function in the system database.
[0108] The existing rules refer to the rules formed before the current time of the system and stored in the system database. As an example, the server can use a string matching algorithm to match the configuration rule function with the existing rule functions corresponding to all existing rules in the system database, determine whether there is an existing rule corresponding to the same existing rule function as the configuration rule function, and determine it as an existing rule matching the configuration rule function.
[0109] S4032: If there is an existing rule that matches the configuration rule function, determine the existing function identifier and the existing rule serial number based on the existing rule, determine the new rule serial number based on the existing rule serial number, and generate a configuration rule identifier corresponding to the configuration rule code based on the existing function identifier and the new rule serial number.
[0110] Among them, each existing rule corresponds to an existing rule identifier, and the existing rule identifier is composed of an existing function identifier and an existing rule serial number. The existing function identifier is an identifier used to reflect the existing rule function corresponding to the existing rule, and can be an English abbreviation of the existing rule function. The existing rule serial number is a serial number used to reflect the existing rule among all rules corresponding to the same existing function identifier. The existing rule serial number can be determined according to the order in which the existing rules are stored in the system database, and can also be determined only by the storage time or other serial number generation logic. The serial number generation logic is a processing logic for generating rule serial numbers.
[0111] As an example, since the existing rules refer to the rules formed and stored in the system database before the current time of the system, the server can first determine the existing function identifier and the existing rule serial number according to the existing rule identifier corresponding to the existing rule. Then, the server can use the serial number generation logic to process the existing rule serial number corresponding to the existing function identifier to form a new rule serial number. For example, the new rule serial number can be the most recent existing rule serial number + 1. In this example, the new rule serial number is a rule serial number formed by processing the existing rule serial number using a pre-configured serial number generation logic. Finally, the server generates a configuration rule identifier corresponding to the configuration rule code based on the existing function identifier and the new rule serial number, so as to generate a unique configuration rule identifier and ensure the subsequent effective management of the configuration rule code based on the configuration rule identifier. For example, if the most recent existing rule identifier is XX-006, the generated configuration rule identifier corresponding to the configuration rule identifier is XX-007.
[0112] S4033: If there is no existing rule matching the configuration rule function, a rule identifier generation tool is used to process the configuration rule function, obtain a new function identifier and a new rule serial number, and generate a configuration rule identifier corresponding to the configuration rule code according to the new function identifier and the new rule serial number.
[0113] The rule identifier generation tool is a tool for generating rule identifiers, and the rule identifier generation tool integrates function identifier generation logic and serial number generation logic. The function identifier generation logic is a processing logic for generating function identifiers, and the serial number generation logic is a processing logic for generating rule serial numbers.
[0114] As an example, when there is no existing rule matching the configuration rule function in the system database, the server uses the function identifier generation logic and the sequence number generation logic to process the configuration rule function to form a new function identifier and a new rule sequence number. In this example, the new function identifier is a function identifier generated by processing the configuration rule function using the function identifier generation logic, which can be the English abbreviation of the configuration rule function. The new rule sequence number is the first rule sequence number formed using the sequence number generation logic, and can be a default starting sequence number. Then, the server generates a configuration rule identifier corresponding to the configuration rule code based on the new function identifier and the new rule sequence number, so as to generate a unique configuration rule identifier and ensure the subsequent effective management of the configuration rule code based on the configuration rule identifier. For example, if the determined new function identifier is YY, and its default generated new rule sequence number is 001, then the generated configuration rule identifier corresponding to the configuration rule code is YY-001.
[0115] S404: Store the configuration rule code, configuration rule identifier, and configuration rule function in association with each other in a system database.
[0116] Since the configuration rule code is the execution code corresponding to the configuration rule, the configuration rule identifier is an identifier used to uniquely identify a configuration rule, and the configuration rule function is the function corresponding to the configuration rule, the server can associate the configuration rule code, configuration rule identifier, configuration rule function and other rule information corresponding to the configuration rule in the system database, and specifically associate them in the rule configuration data table for subsequent calling of the rule configuration data table, so as to achieve unified management of the rule information corresponding to all configuration rules stored in the system database, so as to facilitate subsequent calling of the configuration rules.
[0117] In the application system page processing method provided in this embodiment, after obtaining the rule configuration request formed based on the Aviator engine, the configuration operation logic and the configuration operation parameters are firstly checked by rules to obtain the rule verification result, so as to ensure the feasibility of the subsequent call of the configuration operation logic to operate the configuration operation parameters; when the rule verification result is that the verification is passed, the Aviator engine is used to compile the configuration operation logic and the configuration operation parameters to obtain the configuration rule code to ensure the lightweight of the configuration rule code and facilitate the improvement of subsequent processing efficiency; a unique configuration rule identifier corresponding to the configuration rule code is generated, and then the configuration rule code, the configuration rule identifier and the configuration rule function are associated and stored in the system database, so as to realize the unified management of the rule information corresponding to all configuration rules stored in the system database, so as to facilitate the subsequent call of the configuration rules.
[0118] In one embodiment, if Figure 5As shown, after step S404, that is, after the configuration rule code, the configuration rule identifier and the configuration rule function are associated and stored in the system database, the application system page processing method further includes:
[0119] S501: Obtain a rule change request sent by a client, where the rule change request includes a target account, a rule change identifier, and a rule change code.
[0120] Among them, the rule change request is a request for triggering a change to an existing rule. The existing rules here refer to the configuration rules before the current time of the system, that is, the configuration rules that have been associated with the configuration rule code, configuration rule identifier, configuration rule function and other rule information stored in the system database before the current time of the system. The target account is the user account used to trigger this rule change request. The change rule identifier is the unique identifier corresponding to the change rule, that is, the unique identifier corresponding to the change rule that needs to be changed in this rule change request. The change rule code is the execution code corresponding to the change rule. It can be understood that the process of obtaining the change rule identifier and the change rule code is the same as the above steps S401-S403, and in order to avoid repetition, it will not be repeated here.
[0121] As an example, after the configuration rule code, configuration rule identifier and configuration rule function corresponding to any configuration rule are associated and stored in the system database, if there is a need to change a certain configuration rule, that is, when the rule needs to be changed, a rule change request triggered by the user through the client can be obtained. The rule change request includes the target account, the change rule identifier and the change rule code.
[0122] S502: Performing permission verification based on the target account and obtaining permission verification results.
[0123] After receiving a rule change request, the server needs to perform a permission check on the target account that triggered the rule change request to determine whether the user corresponding to the target account has the permission to change the rules. Obtaining the permission check result helps ensure the security and effectiveness of the rule change.
[0124] As an example, the server performs permission verification based on the target account and obtains the permission verification result, which specifically includes: the server queries the system database based on the target account, determines the target account permission corresponding to the target account, and determines whether the target account permission meets the authorized user permission; if the target account permission meets the authorized user permission, obtains the permission verification result of passing the verification; if the target account permission does not meet the authorized user permission, obtains the permission verification result of failing the verification. The target account permission refers to the permission of the user corresponding to the target account in the application system. The authorized user permission refers to the permission that the user who can perform rule change processing should have, which is preset. For example, if the authorized user permission is the administrator permission, the rule change can be performed when the target account permission is the administrator permission; when the target account permission is not the administrator permission, the rule change cannot be performed to ensure the security and effectiveness of the rule change.
[0125] As another example, the server performs permission verification based on the target account and obtains the permission verification result, which specifically includes: the server queries the system database based on the target account, determines the target account permissions corresponding to the target account, and determines whether the target account permissions meet the permissions of the authorized user; if the target account permissions meet the permissions of the authorized user, then the target account is verified for authenticity and the authenticity verification result is obtained. When the authenticity verification result is that the verification is passed, the permission verification result of the verification is obtained; if the target account permissions do not meet the permissions of the authorized user, or the authenticity verification result is that the verification fails, the permission verification result of the verification fails is obtained. It can be understood that by performing permission verification on the target account, the security and effectiveness of the rule change can be guaranteed.
[0126] The authenticity verification of the target account is a verification process for verifying whether the target account is operated by the user himself.
[0127] In one example, an authenticity verification is performed on the target account to obtain an authenticity verification result, which can specifically be to obtain a verification reply text corresponding to the verification question, and compare the verification reply text with a verification standard text corresponding to the verification question pre-stored in a system database. If the verification reply text matches the verification standard text, an authenticity verification result of passed verification is obtained; if the verification reply text does not match the verification standard text, an authenticity verification result of failed verification is obtained.
[0128] In another example, the authenticity of the target account is verified to obtain the authenticity verification result, which can specifically include obtaining verification voice information corresponding to the target account, performing voice recognition and voiceprint recognition on the verification voice information and standard voice information corresponding to the target account pre-stored in the system database, obtaining the voice recognition result, and determining the authenticity verification result based on the voice recognition result.
[0129] In another example, the authenticity of the target account is verified to obtain an authenticity verification result. Specifically, a current facial image corresponding to the target account is collected in real time, and a similarity is calculated between the current facial image and a registered facial image corresponding to the target account pre-stored in a system database to obtain image similarity; if the image similarity is greater than a preset similarity threshold, an authenticity verification result indicating that the verification passed is obtained; if the image similarity is not greater than the preset similarity threshold, an authenticity verification result indicating that the verification failed is obtained.
[0130] S503: If the result of the authority check is that the check is passed, the change rule code is used to change the existing rule code corresponding to the existing rule identifier that is the same as the change rule identifier.
[0131] As an example, when the server passes the permission check, it is necessary to use the change rule code to change the existing rule code corresponding to the existing rule identifier that is the same as the change rule identifier. The existing rule code corresponding to the existing rule identifier that is the same as the change rule identifier is determined as the changed rule code, and the changed rule code is used to change and replace the changed rule code.
[0132] In the application system page processing method provided in this embodiment, after obtaining the rule change request, it is necessary to perform permission verification based on the target account to ensure the security of the rule change; the change rule code is used to change the existing rule code corresponding to the existing rule identifier that is the same as the change rule identifier, so as to achieve the change and replacement of the existing rule code and improve the maintainability of the existing rule code.
[0133] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0134] In one embodiment, an application system page processing device is provided, and the application system page processing device corresponds one-to-one to the application system page processing method in the above embodiment. Figure 6 As shown, the application system page processing device includes a page access request acquisition module 601, a target page code acquisition module 602, a rule code loading and display module 603, a target rule identifier determination module 604 and a target rule code execution module 605. The functional modules are described in detail as follows:
[0135] The page access request acquisition module 601 is used to acquire a page access request sent by a client, where the page access request includes a target page identifier.
[0136] The target page code acquisition module 602 is used to acquire the target page code corresponding to the target page identifier based on the target page identifier.
[0137] The rule code loading and display module 603 is used to load the valid rule code corresponding to the valid rule identifier created based on the Aviator engine into the system cache if the target page code includes a rule reference tag and a valid rule identifier, and control the client to display the target page corresponding to the target page code, and display the valid rule identifier and the valid rule function corresponding to the valid rule identifier on the target page.
[0138] The target rule identifier determination module 604 is used to obtain a target operation request triggered based on a target page, where the target operation request includes a target rule identifier determined based on a valid rule identifier.
[0139] The target rule code execution module 605 is used to determine the valid rule code corresponding to the target rule identifier from the system cache as the target rule code, execute the target rule code, obtain the target operation result, and display the target operation result on the target page.
[0140] Preferably, the target rule code includes a target operation logic created based on the Aviator engine and a target operation parameter corresponding to the target operation logic.
[0141] The target rule code execution module 605 includes:
[0142] The target data source determination unit is used to obtain the data source corresponding to the target operation parameter.
[0143] The first parameter value determination unit is used to obtain a target parameter value corresponding to the target operation parameter through a configuration source interface if the data source corresponding to the target operation parameter is a configuration source.
[0144] The second parameter value determination unit is used to obtain the target parameter value corresponding to the target operation parameter through the reference source interface and the parameter acquisition path corresponding to the target operation parameter if the data source corresponding to the target operation parameter is a reference source.
[0145] The target operation result acquisition unit is used to use the target operation logic to operate on the target parameter values corresponding to all target operation parameters to obtain the target operation result.
[0146] Preferably, the application system page processing device further includes:
[0147] The page configuration request acquisition module is used to acquire the page configuration request sent by the client, and the page configuration request includes a configuration page identifier and a configuration page code.
[0148] The page configuration interface display module is used to control the client to display the page configuration interface if the configuration page code includes a rule reference tag, and the page configuration interface displays at least one existing rule identifier and the corresponding existing rule function in the system database.
[0149] The first valid code acquisition module is used to acquire page configuration information formed based on a page configuration interface, the page configuration information includes a valid rule identifier determined based on an existing rule identifier, add the valid rule identifier to the configuration page code, and acquire the valid page code corresponding to the configuration page identifier.
[0150] The second valid code acquisition module is used to determine the configuration page code as a valid page code corresponding to the configuration page identifier if the configuration page code does not include a rule reference tag.
[0151] Preferably, the application system page processing device further includes:
[0152] The rule configuration request acquisition module is used to obtain the rule configuration request sent by the client based on the Aviator engine. The rule configuration request includes the configuration rule function, configuration operation logic and configuration operation parameters.
[0153] The rule verification result acquisition module is used to perform rule verification on the configuration operation logic and configuration operation parameters to obtain the rule verification result.
[0154] The rule code identification acquisition module is used to compile the configuration operation logic and configuration operation parameters using the Aviator engine if the rule verification result is passed, obtain the configuration rule code, and generate a configuration rule identification corresponding to the configuration rule code.
[0155] The configuration code information storage module is used to associate and store the configuration rule code, configuration rule identifier and configuration rule function in the system database.
[0156] Preferably, the rule verification result acquisition module includes:
[0157] The feasibility verification result acquisition unit is used to perform a feasibility verification on the configuration operation logic and obtain a feasibility verification result.
[0158] The validity check result acquisition unit is used to perform source validity check on the configuration operation parameters and obtain the validity check result.
[0159] The verification pass result acquisition unit is used to obtain the rule verification result that has passed the verification if the feasibility verification result and the validity verification result are both verified passed.
[0160] The verification failure result acquisition unit is used to obtain the rule verification result that failed the verification if at least one of the feasibility verification result and the validity verification result fails the verification.
[0161] Preferably, the rule code identification acquisition module includes:
[0162] The existing rule determination unit is used to determine whether there is an existing rule matching the configured rule function in the system database based on the configured rule function.
[0163] The first rule acquisition unit is used to determine the existing function identifier and the existing rule serial number based on the existing rule if there is an existing rule matching the configuration rule function, determine the new rule serial number based on the existing rule serial number, and generate a configuration rule identifier corresponding to the configuration rule code based on the existing function identifier and the new rule serial number.
[0164] The second rule acquisition unit is used to process the configuration rule function using a rule identifier generation tool if there is no existing rule matching the configuration rule function, obtain a new function identifier and a new rule serial number, and generate a configuration rule identifier corresponding to the configuration rule code based on the new function identifier and the new rule serial number.
[0165] Preferably, the application system page processing device further includes:
[0166] The rule change request acquisition module is used to acquire the rule change request sent by the client, and the rule change request includes a target account, a change rule identifier and a change rule code.
[0167] The permission verification result acquisition module is used to perform permission verification based on the target account and obtain the permission verification result.
[0168] The rule code changing module is used to change the existing rule code corresponding to the existing rule identifier that is the same as the changed rule identifier by adopting the changed rule code if the permission check result is passed.
[0169] For the specific definition of the application system page processing device, please refer to the definition of the application system page processing method above, which will not be repeated here. Each module in the above-mentioned application system page processing device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0170] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data used or generated during the execution of the application system page processing method. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an application system page processing method is implemented.
[0171] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the application system page processing method in the above embodiment is implemented, for example Figure 2 S201-S205 as shown, or Figures 3 to 5 Alternatively, when the processor executes the computer program, the functions of each module / unit in the embodiment of the application system page processing device are realized, for example Figure 6 The functions of the page access request acquisition module 601, the target page code acquisition module 602, the rule code loading and display module 603, the target rule identification determination module 604 and the target rule code execution module 605 are not described here in detail to avoid repetition.
[0172] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the application system page processing method in the above embodiment is implemented, for example Figure 2 S201-S205 as shown, or Figures 3 to 5 Alternatively, when the computer program is executed by the processor, the functions of each module / unit in the above-mentioned application system page processing device are realized, for example Figure 6 The functions of the page access request acquisition module 601, the target page code acquisition module 602, the rule code loading and display module 603, the target rule identification determination module 604 and the target rule code execution module 605 are not described here in detail to avoid repetition.
[0173] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0174] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0175] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A method for processing application system pages, characterized in that: include: Obtaining a page access request sent by a client, wherein the page access request includes a target page identifier; Based on the target page identifier, obtaining a target page code corresponding to the target page identifier; If the target page code includes a rule reference tag and a valid rule identifier, then loading the valid rule code corresponding to the valid rule identifier created based on the Aviator engine into the system cache, controlling the client to display the target page corresponding to the target page code, and displaying the valid rule identifier and the valid rule function corresponding to the valid rule identifier on the target page; Acquire a target operation request triggered based on the target page, wherein the target operation request includes a target rule identifier determined based on the valid rule identifier; Determining from the system cache a valid rule code corresponding to the target rule identifier as a target rule code, wherein the target rule code includes a target operation logic created based on an Aviator engine and a target operation parameter corresponding to the target operation logic; Obtaining a data source corresponding to the target operation parameter; If the data source corresponding to the target operation parameter is a configuration source, obtaining the target parameter value corresponding to the target operation parameter through the configuration source interface; If the data source corresponding to the target operation parameter is a reference source, then obtaining the target parameter value corresponding to the target operation parameter through the reference source interface and the parameter acquisition path corresponding to the target operation parameter; The target operation logic is used to operate the target parameter values corresponding to all the target operation parameters, obtain the target operation result, and display the target operation result on the target page.
2. The application system page processing method according to claim 1, characterized in that: Before obtaining the page access request sent by the client, the application system page processing method further includes: Obtaining a page configuration request sent by a client, wherein the page configuration request includes a configuration page identifier and a configuration page code; If the configuration page code includes a rule reference tag, the client is controlled to display a page configuration interface, and the page configuration interface displays at least one existing rule identifier and a corresponding existing rule function in a system database; Acquire page configuration information formed based on the page configuration interface, the page configuration information including a valid rule identifier determined based on the existing rule identifier, add the valid rule identifier to the configuration page code, and acquire a valid page code corresponding to the configuration page identifier; If the configuration page code does not include a rule reference tag, the configuration page code is determined to be a valid page code corresponding to the configuration page identifier.
3. The application system page processing method according to claim 2, characterized in that: Before obtaining the page configuration request sent by the client, the application system page processing method further includes: Obtaining a rule configuration request sent by the client based on the Aviator engine, wherein the rule configuration request includes a configuration rule function, a configuration operation logic, and a configuration operation parameter; Performing rule verification on the configuration operation logic and the configuration operation parameters to obtain rule verification results; If the rule verification result is that the verification is passed, the configuration operation logic and the configuration operation parameters are compiled using the Aviator engine to obtain the configuration rule code and generate a configuration rule identifier corresponding to the configuration rule code; The configuration rule code, the configuration rule identifier and the configuration rule function are associated and stored in a system database.
4. The application system page processing method according to claim 3, characterized in that: The performing rule verification on the configuration operation logic and the configuration operation parameters to obtain the rule verification result includes: Performing a feasibility check on the configuration operation logic to obtain a feasibility check result; Performing source validity verification on the configuration operation parameters to obtain validity verification results; If both the feasibility check result and the validity check result are verified passed, obtaining the rule verification result that passed the verification; If at least one of the feasibility check result and the validity check result fails the check, the rule check result that fails the check is obtained.
5. The application system page processing method according to claim 3, characterized in that: The generating a configuration rule identifier corresponding to the configuration rule code includes: Based on the configuration rule function, determining whether there is an existing rule matching the configuration rule function in the system database; If there is an existing rule that matches the function of the configuration rule, then determine the existing function identifier and the existing rule serial number based on the existing rule, determine the newly added rule serial number based on the existing rule serial number, and generate a configuration rule identifier corresponding to the configuration rule code according to the existing function identifier and the newly added rule serial number; If there is no existing rule matching the configuration rule function, a rule identifier generation tool is used to process the configuration rule function, obtain a new function identifier and a new rule serial number, and generate a configuration rule identifier corresponding to the configuration rule code based on the new function identifier and the new rule serial number.
6. The application system page processing method according to claim 3, characterized in that: After the configuration rule code, the configuration rule identifier and the configuration rule function are stored in association in a system database, the application system page processing method further includes: Obtaining a rule change request sent by a client, wherein the rule change request includes a target account, a rule change identifier, and a rule change code; Performing permission verification based on the target account and obtaining a permission verification result; If the authority check result is that the check is passed, the change rule code is used to change the existing rule code corresponding to the existing rule identifier that is the same as the change rule identifier.
7. An application system page processing device, characterized in that: include: A page access request acquisition module, used to acquire a page access request sent by a client, wherein the page access request includes a target page identifier; A target page code acquisition module, used for acquiring a target page code corresponding to the target page identifier based on the target page identifier; A rule code loading and display module is used for, if the target page code includes a rule reference tag and a valid rule identifier, loading a valid rule code corresponding to the valid rule identifier created based on the Aviator engine into a system cache, controlling the client to display a target page corresponding to the target page code, and displaying the valid rule identifier and the valid rule function corresponding to the valid rule identifier on the target page; A target rule identifier determination module, configured to obtain a target operation request triggered based on the target page, wherein the target operation request includes a target rule identifier determined based on the valid rule identifier; A target rule code execution module is used to determine from the system cache that the valid rule code corresponding to the target rule identifier is the target rule code, wherein the target rule code includes a target operation logic created based on the Aviator engine and a target operation parameter corresponding to the target operation logic; obtain a data source corresponding to the target operation parameter; if the data source corresponding to the target operation parameter is a configuration source, obtain the target parameter value corresponding to the target operation parameter through a configuration source interface; if the data source corresponding to the target operation parameter is a reference source, obtain the target parameter value corresponding to the target operation parameter through a reference source interface and a parameter acquisition path corresponding to the target operation parameter; use the target operation logic to operate on all target parameter values corresponding to the target operation parameters, obtain a target operation result, and display the target operation result on the target page.
8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the application system page processing method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the application system page processing method according to any one of claims 1 to 6 is implemented.
