A method, device, and equipment for calculating expressions with custom updates

Through custom updated expression calculation methods, the dependency and context data of expressions are obtained and updated, the duplicate development problems caused by enterprise business changes are solved, and flexible expression calculations and efficient on-site secondary development are realized.

CN114328553BActive Publication Date: 2025-07-22SHANDONG INSPUR GENESOFT INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111625675.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2025-07-22
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

In the prior art, when the business needs of the enterprise change, R&D personnel need to re-edit program update expressions from scratch, resulting in a large amount of R&D time and human resources waste, and it is impossible to realize the customized expansion of on-site second-department personnel.

Method used

By obtaining the current form and expression corresponding to the business data, determining the update data and context data that depend on the data, customizing the update expression calculation method, and using the preset expression designer and execution engine to perform flexible calculation and application of expressions.

Benefits of technology

Custom adjustment of different enterprise projects is realized, repeated development is avoided, development time and human resources are saved, and the efficiency of on-site secondary development is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114328553B_ABST
    Figure CN114328553B_ABST
Patent Text Reader

Abstract

An embodiment of this specification discloses a method for calculating an expression with custom updates. The method includes: obtaining business data to be processed, determining a current form corresponding to the business data to be processed, and determining an expression related to the business data; if there is a related expression in the preset expressions, determining the dependent data of the related expression based on the preset form of the preset expression; if it is determined based on the current form that the dependent data has changed, obtaining the updated data of the dependent data and the context data of the current form; determining the expression to be updated of the related expression according to the updated data and the context data of the current form, and calculating the calculation result of the expression to be updated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of computer application technologies, and particularly to a method, apparatus, and device for customizing and updating expressions. Background Art

[0002] The data field has been continuously progressing. Existing offline calculations can gradually no longer meet users' requirements, and real-time or near-real-time calculations have gained users' favor. Users can use real-time computing platforms for the development, debugging, etc. of real-time tasks. Currently, in the software development process, common scenarios such as field calculations, control display / hide control, control read-only, field mandatory, and field verification are involved. Although the development difficulty of these scenarios is not high, they take a large amount of development time.

[0003] In the prior art, when it comes to scenario changes required by customers, the same business for different enterprises is not fixed either. At this time, although only some expressions in the software developed by developers at one time are different, R & D personnel still need to start from scratch to re-edit the program to complete the update. And the development based on R & D personnel will consume a large amount of R & D time of R & D personnel for repetitive work, and it is impossible for on-site secondary development personnel or implementation personnel to expand the logic according to the actual development business. Summary of the Invention

[0004] One or more embodiments of this specification provide a method, apparatus, and device for customizing and updating expression calculations to solve the following technical problem: how to provide a method for customizing and updating expression calculations.

[0005] One or more embodiments of this specification adopt the following technical solutions:

[0006] One or more embodiments of this specification provide a method for customizing and updating expression calculations. The method includes: obtaining business data to be processed, determining a current form corresponding to the business data to be processed, and determining an expression related to the business data;

[0007] If the related expression exists in the preset expressions, determine the dependent data of the related expression based on the preset form of the preset expression;

[0008] If it is determined based on the current form that the dependent data has changed, obtain the updated data of the dependent data and the context data of the current form;

[0009] Determine the expression to be updated of the related expression according to the updated data and the context data of the current form, and calculate the calculation result of the updated expression.

[0010] In one or more embodiments of the present specification, after determining the expression related to the service data, if the related expression does not exist in the preset expressions, the method further includes:

[0011] Obtain the business rules in the service data and the context data of the current form;

[0012] Perform rule parsing on the business rules based on the set parsing rules to obtain the processing steps in the service data, the association relationships between the processing steps, and the access logical relationships;

[0013] Obtain the corresponding expression designer based on the service data, and input the processing steps in the service data, the association relationships between the processing steps, and the access logical relationships into the corresponding expression designer to obtain the expression to be updated corresponding to the service data;

[0014] Obtain the dependency data of the expression to be updated, and update the dependency data of the expression to be updated based on the current dependency data in the current form to obtain the updated expression;

[0015] Calculate the updated expression according to the context data of the current form to obtain the calculation result of the updated expression.

[0016] In one or more embodiments of the present specification, before obtaining the updated data of the dependency data and the context data of the current form if it is determined based on the current form that the dependency data has changed, the method further includes:

[0017] Output a description file corresponding to the expression content according to the expression content; wherein, the expression content includes: the entity structure on which the expression acts, the function of the expression, and the form context data;

[0018] Obtain the corresponding expression according to the description file, and determine the corresponding expression dependency data according to the expression content of the corresponding expression.

[0019] In one or more embodiments of the present specification, outputting a description file corresponding to the expression content according to the expression content specifically includes:

[0020] Input the entity structure, the function of the expression, and the form context data into a preset expression designer, so as to obtain the corresponding description file according to the preset expression designer;

[0021] Among them, the description file includes a first interface and a second interface; the first interface communicates with the form context to update the description file; the second interface communicates with a preset expression engine to obtain a corresponding expression based on the description file.

[0022] In one or more embodiments of this specification, determining the expression to be updated according to the update data and the context data of the current form, and calculating the calculation result of the expression to be updated specifically includes:

[0023] Obtain an expression corresponding to the description file based on a preset interface of the preset expression engine;

[0024] Determine the expression that the current form should execute in the corresponding expression according to the context information of the current form;

[0025] Based on the name of the update data, search for an expression associated with the update data in the expression to be executed, and use the associated expression as the expression to be updated;

[0026] Obtain an expression function that depends on the update data in the expression to be updated;

[0027] Assign the update data to the function to calculate the calculation result of the expression to be updated based on the context information of the current form.

[0028] In one or more embodiments of this specification, after obtaining the calculation result of the expression according to the update data and the context data of the current form, the method further includes:

[0029] Determine the current expression application strategy according to business requirements and a preset expression application strategy; wherein, the expression application strategy stores the function controls of each expression.

[0030] According to the current expression application strategy, apply the calculation result to the corresponding control based on a preset expression execution engine to complete the update of the expression.

[0031] In one or more embodiments of this specification, after completing the update of the expression, the method further includes:

[0032] Determine a running operation associated with the data object according to the data object associated with the corresponding control;

[0033] Obtain the control associated with the associated running operation; wherein the associated control is one or more controls of the current form;

[0034] Execute the associated running operation according to the updated data to obtain a corresponding running result; and update the data of the associated control according to the running result.

[0035] In one or more embodiments of the present specification, after the update of the completion expression, the method further includes:

[0036] Add the execution process in which the preset expression execution engine applies the calculation result to the corresponding control to the preset log library, so as to detect the calculation process of the expression based on the preset log library and determine the correct update of the expression.

[0037] One or more embodiments of the present specification provide an expression calculation device for custom update, and the device includes:

[0038] A first determination unit, configured to obtain service data to be processed, determine a current form corresponding to the service data to be processed, and determine an expression related to the service data;

[0039] A second determination unit, configured to, when the related expression exists in the preset expression, determine the dependent data of the related expression based on the preset form of the preset expression;

[0040] A first acquisition unit, configured to, when it is determined based on the current form that the dependent data has changed, acquire the updated data of the dependent data and the context data of the current form;

[0041] A calculation unit, configured to determine an expression to be updated of the related expression according to the updated data and the context data of the current form, and calculate the calculation result of the expression to be updated.

[0042] One or more embodiments of the present specification provide an expression calculation device for custom update, and the device includes:

[0043] At least one processor; and,

[0044] A memory communicatively connected to the at least one processor; wherein,

[0045] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can:

[0046] Obtain service data to be processed, determine a current form corresponding to the service data to be processed, and determine an expression related to the service data;

[0047] If there is the relevant expression in the preset expression, determine the dependency data of the relevant expression based on the preset form of the preset expression;

[0048] If it is determined based on the current form that the dependency data has changed, obtain the updated data of the dependency data and the context data of the current form;

[0049] According to the updated data and the context data of the current form, determine the expression to be updated of the relevant expression, and calculate the calculation result of the expression to be updated.

[0050] The above at least one technical solution adopted in the embodiments of the present specification can achieve the following beneficial effects:

[0051] By determining the updated data of the dependency data of the relevant expression in the current form, and combining the context data to realize the update of the relevant expression, the custom adjustment of different projects under the same type of business is realized, avoiding the waste of time cost and human resources caused by the traditional method of redevelopment by developers once. In addition, according to the context of the current form, the update calculation of the expression is realized, so that the on-site secondary developers can edit the expression according to the situation. Description of the Drawings

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present specification or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments recorded in the present specification. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings. In the drawings:

[0053] Figure 1 It is a schematic flowchart of a method for calculating an expression with custom update provided by an embodiment of the present specification;

[0054] Figure 2 It is a schematic internal structure diagram of a device for calculating an expression with custom update provided by an embodiment of the present specification;

[0055] Figure 3 It is a schematic internal structure diagram of a device for calculating an expression with custom update provided by an embodiment of the present specification. Detailed Embodiments

[0056] The embodiments of the present specification provide a method, device and equipment for calculating an expression with custom update.

[0057] Currently, with the diverse development of system application scenarios, developers need to develop corresponding software for the needs of different enterprises to solve corresponding demand problems. When facing the same project problems that need to be solved by different enterprises, since the business of each enterprise is not static. Therefore, when the business data changes, even if only a change in a certain version model is involved, developers need to start developing the software from scratch, wasting a large amount of R & D time. For example, scenarios such as field calculation and spatial display and hiding control involved in the software development process can be involved in various businesses. Although the development difficulty is not great, it takes a lot of development time, and after problems occur, it is also necessary to debug and modify one by one, which not only causes a waste of R & D time but also cannot adapt to the replacement of various business scenarios.

[0058] To solve the above technical problems, the embodiments of this specification provide a method for calculating custom-updated expressions. By determining whether there are expressions related to business data in the preset expressions, it is determined whether second developers need to edit the expressions according to the business data. At the same time, based on the dependent data, the existing expressions in the preset expressions are updated, avoiding the process of re-writing in the traditional technology and saving the software development time. In addition, the description file of the expression, the current form context data, and the expression execution engine communicate in a preset interface manner, making the calculation and execution process of the expression have great flexibility and scalability.

[0059] To enable those skilled in the art to better understand the technical solutions in this specification, the following will clearly and completely describe the technical solutions in the embodiments of this specification in conjunction with the accompanying drawings in the embodiments of this specification. Obviously, the described embodiments are only a part of the embodiments of this specification, rather than all the embodiments. Based on the embodiments of this specification, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of this specification.

[0060] As Figure 1 shown, the embodiments of this specification provide a flowchart of a method for calculating custom-updated expressions.

[0061] The execution subject in the embodiments of this specification is the server that needs to update the expression or each execution unit of the server. It can be Figure 1 seen that the method steps include:

[0062] S101: Obtain the business data to be processed, determine the current form corresponding to the business data to be processed, and determine the expressions related to the business data;

[0063] With the development of big data, more and more scenarios require processing of business data. For example, in scenarios involving field calculations, control display and hiding control, control read-only, field mandatory, field verification, etc., although the development scenarios are simple, developers still need to adjust parameters one by one, consuming a large amount of development time. In one or more embodiments of this specification, in order to save development time, after obtaining the business data to be processed, the current form corresponding to the currently to-be-processed business data is first determined, so as to facilitate obtaining the data and context data required for expression calculation according to the current form subsequently. At the same time, in order to save developers from repeating the development of expressions, it is necessary to determine the expressions related to the business according to the business data, that is, to determine the calculations to be performed and the values to be obtained according to the business data. It should be understood that the calculations to be performed, the values to be obtained, and the rule logics to be carried out for the business data are all based on expressions.

[0064] After determining the expressions related to the business data, if some of the expressions related to the business data do not exist in the preset expressions, then the on-site secondary development personnel need to write the relevant expressions that do not exist in the preset expressions according to the business requirements. The specific writing process is as follows: First, obtain the business rules contained in the business data and the context data of the current form, and then perform rule parsing on the business rules contained in the business data and the context data of the current form according to the preset parsing rules to obtain the operations that the business data needs to perform, such as the processing steps required by the business data, the association relationships between the processing steps, and the storage logical relationships of each data. Then, obtain the expression designer corresponding to the version according to the system version contained in the business data, and input the operations that the business data needs to process into the corresponding expression designer to obtain the expression to be updated corresponding to the business data.

[0065] It can be understood that the obtained expression to be updated is the expression related to the business data that does not exist in the preset expressions. After obtaining the dependent data of the expression to be updated, the dependent data of the expression to be updated is updated according to the current dependent data in the current form, so as to obtain the updated expression that conforms to the business data to be processed. The context data of the current form records the data associated with the updated expression. Therefore, by calculating the updated expression, the calculation result obtained is the data required by the business data, and executing the calculation result on the corresponding control completes the execution of the expression and realizes the requirements of the business data.

[0066] S102: If the relevant expression exists in the preset expression, determine the dependent data of the relevant expression based on the preset form of the preset expression.

[0067] For example, taking a calculation expression as an example, its entity structure is shown in Table 1 below: where the Fee field is read-only and its value is Price * Qty; therefore, the expression is written as: return SalesOrder.Price * SalesOrder.Qty; and the dependent data of this expression is shown in Table 2 below as SalesOrder.Price and SalesOrder.Qty.

[0068]

[0069] Table 1. Entity Structure of Expression in a Certain Application Scenario

[0070]

[0071] Table 2. Dependent Data of Expression

[0072] S103: If it is determined that the dependent data has changed based on the current form, obtain the updated data of the dependent data and the context data of the current form.

[0073] The above step S101 records the process of customizing the calculation of the expression in the scenario where the relevant expression does not exist in the preset expression. When there is an expression related to business data in the preset expression, it is necessary to determine the content of the expression based on the entity structure to which the expression applies, the function of the expression, and the form context data, and then output the corresponding description file according to the expression content. The description file records the data essential for implementing business data. For example, if data needs to be stored, the description file can be the model, memory, etc. of the mobile phone. Input the entity structure, the function of the expression, and the form context data into a pre-set expression designer, and then the corresponding description file can be obtained according to the pre-set expression designer.

[0074] After obtaining the description file, obtain the expression corresponding to the description file. Then, determine the dependent data of the corresponding expression according to the expression content such as the entity structure to which the expression applies, the function of the expression, and the form context data in the corresponding expression. If it is determined that the dependent data of the corresponding expression has changed relative to the dependent data of the preset expression, then it is necessary to obtain the updated data of the dependent data and the context data of the current form to perform the update calculation of the expression. It should be noted that the description file includes a first interface and a second interface, enabling the description file to communicate with the form context through the first interface to achieve the update of the description file. The second interface communicates with a preset expression engine, and then the description file obtains the corresponding expression.

[0075] S104: Determine the expression to be updated for the relevant expression based on the updated data and the context data of the current form, and calculate the calculation result of the updated expression.

[0076] When it is determined that the dependent data has changed, in order to ensure the normal operation of the business, the corresponding expressions that depend on the dependent data need to be updated synchronously. For example, for the content in Table 1 and Table 2 above, when it is monitored that SalesOrder.Price or SalesOrder.Qty has changed, and it is found that there is an expression SalesOrder.Fee that depends on these two data, then the expression SalesOrder.Fee needs to be updated based on these two data to obtain the calculation result that conforms to the business data. Among them, determining the expression to be updated based on the updated data and the context data of the current form, and calculating the calculation result of the expression to be updated specifically includes the following steps:

[0077] First, according to the preset interface of the preset expression engine, obtain the expression corresponding to the description file. For example, if the content in the description file shows data related to the profit of this year, then the expression corresponding to the profit calculation is required. Then, according to the context information of the current form, determine the expression that the current form should execute in the corresponding expression. According to the name of the updated data, search for the expression associated with the updated data in the obtained expression to be executed, and use the associated expression as the expression to be updated. Then, obtain the expression function that depends on the current updated data from the expression to be updated, and replace the data with the same name as the updated data in the expression function, so as to calculate the calculation result of the expression to be updated based on the context information of the current form.

[0078] In one or more embodiments of this specification, after obtaining the calculation result of the expression based on the updated data and the context data of the current form, in order to apply the expression to the correct action control to achieve the business requirements, first obtain the preset expression application strategy of the action control that stores various expressions, and then determine the application strategy that conforms to the current expression according to the business requirements and the preset expression application strategy. Thus, according to the current expression application strategy, use the preset expression execution engine to apply the calculation result to the corresponding space to complete the update of the expression.

[0079] In addition, in one or more embodiments of this specification, after the update of the expression is completed, in order to update the controls associated with the control corresponding to the expression, first, according to the data object associated with the corresponding control, the running operations associated with the data object are determined, and then the controls associated with the associated running operations are obtained. It should be noted that the controls associated with the control corresponding to the expression are one or more controls of the current form. After the associated controls are obtained, the associated running operations are executed according to the updated data to obtain the corresponding running results, and the data of the associated controls are updated according to the running results.

[0080] In addition, in order to debug and modify the expression update process, the execution process of applying the calculation result to the corresponding control by the preset expression execution engine is added to the preset log library, so that both the writing and execution processes of the expression can detect the calculation process of the expression based on the preset log library, ensuring the correct update of the expression.

[0081] As Figure 2 shown, the embodiments of this specification provide a schematic internal structure diagram of an expression calculation device for custom update.

[0082] As Figure 2 can be seen, the device includes:

[0083] A first determination unit 201, configured to obtain the service data to be processed, determine the current form corresponding to the service data to be processed, and determine the expression related to the service data;

[0084] A second determination unit 202, configured to, when the related expression exists in the preset expression, determine the dependent data of the related expression based on the preset form of the preset expression;

[0085] A first acquisition unit 203, configured to, when it is determined based on the current form that the dependent data has changed, acquire the updated data of the dependent data and the context data of the current form;

[0086] A calculation unit 204, configured to determine the expression to be updated of the related expression according to the updated data and the context data of the current form, and calculate the calculation result of the expression to be updated.

[0087] In one or more embodiments of this specification, the device further includes: a second acquisition unit, a parsing unit, a processing unit, an update unit, and a first calculation unit;

[0088] The second acquisition unit is configured to acquire the business rules in the service data and the context data of the current form;

[0089] The parsing unit is used to perform rule parsing on the service rule based on a set parsing rule, and obtain the processing steps, the association relationships between the processing steps, and the access logical relationships in the service data;

[0090] The processing unit is used to obtain a corresponding expression designer based on the service data, input the processing steps, the association relationships between the processing steps, and the access logical relationships in the service data into the corresponding expression designer, and obtain an expression to be updated corresponding to the service data;

[0091] The updating unit is used to obtain the dependency data of the expression to be updated, and update the dependency data of the expression to be updated based on the current dependency data in the current form, and obtain an updated expression;

[0092] The first calculation unit is used to calculate the updated expression according to the context data of the current form, and obtain the calculation result of the updated expression.

[0093] In one or more embodiments of the present specification, the device further includes: an output unit, a third determination unit;

[0094] The output unit is used to output a description file corresponding to the expression content; wherein, the expression content includes: the entity structure to which the expression applies, the function of the expression, and the form context data;

[0095] The third unit is used to obtain a corresponding expression according to the description file, and determine the corresponding expression dependency data according to the expression content of the corresponding expression.

[0096] In one or more embodiments of the present specification, the output unit is specifically used to input the entity structure, the function of the expression, and the form context data into a pre-set expression designer, so as to obtain a corresponding description file according to the pre-set expression designer; wherein, the description file includes a first interface and a second interface; the first interface communicates with the form context to implement the update of the description file; the second interface communicates with a pre-set expression engine to obtain a corresponding expression based on the description file.

[0097] In one or more embodiments of the present specification, the calculation unit specifically includes: a third acquisition unit, a fourth determination unit, a search unit, a fourth acquisition unit, and an assignment unit;

[0098] The third acquisition unit is used to obtain an expression corresponding to the description file based on a pre-set interface of the pre-set expression engine;

[0099] The fourth determination unit is configured to determine an expression to be executed for the current form in the corresponding expression according to the context information of the current form;

[0100] The lookup unit is configured to look up an expression associated with the updated data in the expression to be executed based on the name of the updated data, so as to use the associated expression as the expression to be updated;

[0101] The fourth acquisition unit is configured to acquire an expression function that depends on the updated data in the expression to be updated;

[0102] The assignment unit is configured to assign the updated data to the function to calculate a calculation result of the expression to be updated based on the context information of the current form.

[0103] In one or more embodiments of the present specification, the apparatus further includes: a fifth determination unit and an acting unit;

[0104] The fifth determination unit is configured to determine a current expression application policy according to service requirements and a preset expression application policy; wherein, each expression's acting control is stored in the expression application policy.

[0105] The acting unit is configured to act on the corresponding control based on a preset expression execution engine according to the current expression application policy to complete the update of the expression.

[0106] In one or more embodiments of the present specification, the apparatus further includes: a sixth determination unit, a fifth acquisition unit, and an execution unit;

[0107] The sixth determination unit is configured to determine a running operation associated with the data object according to the data object associated with the corresponding control;

[0108] The fifth acquisition unit is configured to acquire the control associated with the associated running operation; wherein the associated control is one or more controls of the current form;

[0109] The execution unit is configured to execute the associated running operation according to the updated data to obtain a corresponding running result; and update the data of the associated control according to the running result.

[0110] In one or more embodiments of the present specification, the apparatus further includes: a storage unit;

[0111] The storage unit is configured to add the execution process of the preset expression execution engine acting on the corresponding control with the calculation result to a preset log library to detect the calculation process of the expression based on the preset log library and determine the correct update of the expression.

[0112] As Figure 3 shown, this specification provides a schematic diagram of the internal structure of an expression calculation device with customized updates in one or more embodiments.

[0113] It can be seen from Figure 3 that the device includes:

[0114] at least one processor 301, and,

[0115] a memory 302 communicatively connected to the at least one processor 301, wherein,

[0116] the memory 302 stores executable instructions of the at least one processor 301, enabling the at least one processor 301 to:

[0117] obtain service data to be processed, determine a current form corresponding to the service data to be processed, and determine an expression related to the service data;

[0118] If the related expression exists in the preset expression, determine the dependent data of the related expression based on the preset form of the preset expression;

[0119] If it is determined that the dependent data has changed based on the current form, obtain the updated data of the dependent data and the context data of the current form;

[0120] Determine the expression to be updated of the related expression according to the updated data and the context data of the current form, and calculate the calculation result of the expression to be updated.

[0121] Each embodiment in this specification is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the device, equipment, and non - volatile computer storage medium, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can refer to the description of the method embodiments.

[0122] The above describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be executed in a different order than in the embodiments and still achieve the desired result. Additionally, the processes depicted in the figures do not necessarily require the specific order or sequential order shown to achieve the desired result. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0123] The above are only one or more embodiments of this specification and are not intended to limit this specification. For those skilled in the art, various changes and modifications can be made to one or more embodiments of this specification. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included within the scope of the claims of this specification.

Claims

1. A method for calculating an expression with custom updates, characterized in that, The method includes: Obtain business data to be processed, determine the current form corresponding to the business data to be processed, and determine an expression related to the business data; If the related expression exists in the preset expressions, determine the dependent data of the related expression based on the preset form of the preset expression; If it is determined based on the current form that the dependent data has changed, obtain the updated data of the dependent data and the context data of the current form; According to the updated data and the context data of the current form, determine the expression to be updated of the related expression, and calculate the calculation result of the updated expression; After determining the expression related to the business data, if the related expression does not exist in the preset expressions, the method further includes: Obtain the business rules in the business data and the context data of the current form; Perform rule parsing on the business rules based on the set parsing rules to obtain the processing steps in the business data, the association relationships between the processing steps, and the access logical relationships; Obtain the corresponding expression designer based on the business data, input the processing steps in the business data, the association relationships between the processing steps, and the access logical relationships into the corresponding expression designer, and obtain the expression to be updated corresponding to the business data; Obtain the dependent data of the expression to be updated, and update the dependent data of the expression to be updated based on the current dependent data in the current form to obtain an updated expression; Calculate the updated expression according to the context data of the current form to obtain the calculation result of the updated expression.

2. The method for calculating an expression with custom update according to claim 1, wherein Before the step of if it is determined based on the current form that the dependent data has changed, obtain the updated data of the dependent data and the context data of the current form, the method further includes: Output a description file corresponding to the expression content; wherein, the expression content includes: the entity structure to which the expression applies, the function of the expression, and the form context data; Obtain the corresponding expression according to the description file, and determine the dependent data of the corresponding expression according to the expression content of the corresponding expression.

3. The method for calculating an expression for custom update according to claim 2, wherein The step of outputting a description file corresponding to the expression content specifically includes: Input the entity structure, the function of the expression, and the form context data into a preset expression designer, so as to obtain a corresponding description file according to the preset expression designer; Wherein, the description file includes a first interface and a second interface; the first interface communicates with the form context to implement the update of the description file; the second interface communicates with a preset expression engine to obtain a corresponding expression based on the description file.

4. A method for calculating an expression with custom updates according to claim 3, characterized in that The step of according to the updated data and the context data of the current form, determine the expression to be updated, and calculate the calculation result of the expression to be updated specifically includes: Based on the preset interface of the preset expression engine, obtain the expression corresponding to the description file; Determine the expression to be executed by the current form in the corresponding expression according to the context information of the current form; Based on the name of the updated data, find the associated expression with the updated data in the expression to be executed, and use the associated expression as the expression to be updated; Obtain the expression function that depends on the updated data in the expression to be updated; Assign the updated data to the function to calculate the calculation result of the expression to be updated based on the context information of the current form.

5. A method for calculating a custom update expression according to claim 1, characterized in that After obtaining the calculation result of the expression according to the updated data and the context data of the current form, the method further includes: Determine the current expression application policy according to the business requirements and the preset expression application policy; wherein, the expression application policy stores the action controls of each expression; According to the current expression application policy, apply the calculation result to the corresponding control based on the preset expression execution engine to complete the update of the expression.

6. The method for calculating an expression for custom update according to claim 5, characterized in that After completing the update of the expression, the method further includes: Determine the operation associated with the data object according to the data object associated with the corresponding control; Obtain the control associated with the associated operation; wherein the associated control is one or more controls of the current form; Execute the associated operation according to the updated data to obtain the corresponding operation result; and update the data of the associated control according to the operation result.

7. A method for calculating an expression for custom update according to claim 5, characterized in that, After completing the update of the expression, the method further includes: Add the execution process of applying the calculation result of the preset expression execution engine to the corresponding control to the preset log library to detect the calculation process of the expression based on the preset log library and determine the correct update of the expression.

8. An expression calculation device for custom update, characterized in that, The device includes: The first determination unit is configured to obtain the business data to be processed, determine the current form corresponding to the business data to be processed, and determine the expression related to the business data; The second determination unit is configured to, when the related expression exists in the preset expression, determine the dependent data of the related expression based on the preset form of the preset expression; The first acquisition unit is configured to, when it is determined based on the current form that the dependent data has changed, acquire the updated data of the dependent data and the context data of the current form; The calculation unit is configured to determine the expression to be updated of the related expression according to the updated data and the context data of the current form, and calculate the calculation result of the expression to be updated; After determining the expression related to the business data, if the related expression does not exist in the preset expression, it further includes: Obtain the business rules in the business data and the context data of the current form; Perform rule parsing on the business rules based on the set parsing rules to obtain the processing steps in the business data, the association relationship between the processing steps, and the access logical relationship; Obtain the corresponding expression designer based on the service data, input the processing steps, the association relationships between the processing steps, and the access logic relationships in the service data into the corresponding expression designer, and obtain the expression to be updated corresponding to the service data; Obtain the dependency data of the expression to be updated, and update the dependency data of the expression to be updated based on the current dependency data in the current form to obtain the updated expression; Calculate the updated expression according to the context data of the current form to obtain the calculation result of the updated expression.

9. A custom-updating expression calculation device, characterized in that, The device includes: At least one processor, and, A memory communicatively connected to the at least one processor, wherein, The memory stores executable instructions of the at least one processor, enabling the at least one processor to: Obtain the service data to be processed, determine the current form corresponding to the service data to be processed, and determine the expression related to the service data; If the related expression exists in the preset expression, determine the dependency data of the related expression based on the preset form of the preset expression; If it is determined that the dependency data has changed based on the current form, obtain the updated data of the dependency data and the context data of the current form; According to the updated data and the context data of the current form, determine the expression to be updated of the related expression, and calculate to obtain the calculation result of the expression to be updated; After determining the expression related to the service data, if the related expression does not exist in the preset expression, it further includes: Obtain the business rules in the service data and the context data of the current form; Perform rule parsing on the business rules based on the set parsing rules to obtain the processing steps, the association relationships between the processing steps, and the access logic relationships in the service data; Obtain the corresponding expression designer based on the service data, input the processing steps, the association relationships between the processing steps, and the access logic relationships in the service data into the corresponding expression designer, and obtain the expression to be updated corresponding to the service data; Obtain the dependency data of the expression to be updated, and update the dependency data of the expression to be updated based on the current dependency data in the current form to obtain the updated expression; Calculate the updated expression according to the context data of the current form to obtain the calculation result of the updated expression.

Citation Information

Patent Citations

  • Insurance service processing method and device, medium and electronic equipment

    CN109598632A