CN115794202A - Data configuration method and engine, file system and computer storage medium - Google Patents

Data configuration method and engine, file system and computer storage medium Download PDF

Info

Publication number
CN115794202A
CN115794202A CN202211375946.7A CN202211375946A CN115794202A CN 115794202 A CN115794202 A CN 115794202A CN 202211375946 A CN202211375946 A CN 202211375946A CN 115794202 A CN115794202 A CN 115794202A
Authority
CN
China
Prior art keywords
expression
data object
value
target data
formula
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211375946.7A
Other languages
Chinese (zh)
Inventor
刘朝晖
陈杨
莫海珍
冯韫韬
王鑫
于群
杜丹
靳飞飞
王伟
王立华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Media Group
Original Assignee
China Media Group
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Media Group filed Critical China Media Group
Priority to CN202211375946.7A priority Critical patent/CN115794202A/en
Publication of CN115794202A publication Critical patent/CN115794202A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a data configuration method, an engine and a file system, wherein the method comprises the following steps: creating archive data; generating an expression of the target data object and configuring the expression to the target data object; the expression is used for representing the incidence relation between the value of the target data object and the value of the associated data object; and analyzing the expression, acquiring the value of the associated data object according to the expression, and updating the value of the target data object according to the value of the associated data object. Therefore, the expression is designed according to the incidence relation among the data objects, and the expression is configured to the target data object, so that the target data object can acquire the value of the incidence data object, and the value of the target data object is updated in a linkage manner based on the value of the incidence data object, thereby effectively reducing the workload and the development period of data configuration in the archive system. Meanwhile, the creation cost of the file system is greatly reduced, and the requirements of customers can be quickly met.

Description

Data configuration method and engine, file system and computer storage medium
Technical Field
The present application relates to the field of engineering archive systems, and in particular, to a data configuration method and engine, an archive system, and a computer storage medium.
Background
In the archive management system, when the archive system data is created, due to the characteristics of services, various agreed relationships exist between related data objects, for example, the file numbers of a file object and a file object subordinate to the file object need to be kept consistent; the filing departments of the file objects and the file objects need to be consistent with the filing departments arranged in the whole document. For these scenarios, the existing solutions mainly implement the association between data in a hard-coded manner, that is, the relationship of data is written in the code. When the method is realized, a plurality of complicated links such as requirement analysis, software design, software development, system test, system deployment and the like are required; moreover, the implementation mode has the problems of large development workload, long development period and insufficient flexibility.
Disclosure of Invention
In order to solve the foregoing technical problems, embodiments of the present application provide a data configuration method and engine, an archive system, and a computer storage medium.
The technical scheme of the embodiment of the application is realized as follows:
in one aspect, an embodiment of the present application provides a data configuration method, where the method includes:
creating archival data, the archival data including a plurality of data objects;
generating an expression of a target data object, and configuring the expression to the target data object; the expression is used for representing the incidence relation between the value of the target data object and the value of the associated data object, and the target data object and the associated data object belong to the archival data;
and analyzing the expression, acquiring the value of the associated data object according to the expression, and updating the value of the target data object according to the value of the associated data object.
In the above scheme, the method further comprises:
monitoring a change event of the target data object;
and if the expression of the target data object is monitored to be changed, analyzing the changed expression and updating the value of the target data object according to the changed expression.
In the foregoing solution, the updating the value of the target data object according to the changed expression includes:
judging whether the type of the expression is a forced updating type;
and if the type of the expression is a forced updating type, acquiring the value of the associated data object according to the changed expression, and updating the value of the target data object according to the value of the associated data object.
In the foregoing solution, the generating an expression of a target data object includes:
determining a business requirement, and determining an incidence relation between the target data object and the incidence data object according to the business requirement;
generating at least one of the following expressions of the target data object according to the incidence relation: a functional expression, a formula expression.
In the foregoing solution, the analyzing the expression and obtaining the value of the associated data object according to the expression includes:
analyzing a function name and first parameter information of the function expression according to the function expression, searching a corresponding function body file on a specified path according to the function name, and/or analyzing a formula name and second parameter information of the formula expression according to the formula expression, and searching a corresponding formula content file on the specified path according to the formula name;
and acquiring the value of the associated data object according to the function body file and the first parameter information, and/or the formula content file and the second parameter information.
In the above scheme, the expression is written in MVEL language.
In another aspect, an embodiment of the present application provides a data configuration engine, where the engine includes:
a creation module for creating archival data, the archival data including a plurality of data objects;
the configuration module is used for generating an expression of a target data object and configuring the expression to the target data object; the expression is used for representing the incidence relation between the value of the target data object and the value of an associated data object, and the target data object and the associated data object belong to the archival data;
the analysis module is used for analyzing the expression;
and the execution module is used for acquiring the value of the associated data object according to the expression and updating the value of the target data object according to the value of the associated data object.
In the above solution, the engine further includes:
the monitoring triggering module is used for monitoring the change event of the target data object; and if the change of the expression of the target data object is monitored, triggering the analysis module to analyze the changed expression, and triggering the execution module to update the value of the target data object according to the changed expression.
In the above scheme, the parsing module is configured to determine whether the type of the expression is a forced update type; and the execution module is used for acquiring the value of the associated data object according to the changed expression if the type of the expression value is a forced updating type, and updating the value of the target data object according to the value of the associated data object.
In the above solution, the configuration module is configured to determine a service requirement, and determine an association relationship between the target data object and the associated data object according to the service requirement; generating at least one of the following expressions of the target data object according to the incidence relation: functional expressions and formula expressions.
In the above scheme, the parsing module is configured to parse a function name and first parameter information of the function expression according to the function expression, search a corresponding function body file in a specified path according to the function name, and/or parse a formula name and second parameter information of the formula expression according to the formula expression, and search a corresponding formula content file in the specified path according to the formula name; the execution module is configured to obtain a value of the associated data object according to the function body file and the first parameter information, and/or the formula content file and the second parameter information.
In another aspect, an embodiment of the present application provides an archive system, where the archive system includes the data configuration engine described above.
In another aspect, the present application provides a computer storage medium having executable instructions, which when executed by at least one processor, implement the data configuration method described above.
In the technical scheme provided by the embodiment of the application, archive data is created, and the archive data comprises a plurality of data objects; generating an expression of a target data object, and configuring the expression to the target data object; the expression is used for representing the incidence relation between the value of the target data object and the value of an associated data object, and the target data object and the associated data object belong to the archival data; and analyzing the expression, acquiring the value of the associated data object according to the expression, and updating the value of the target data object according to the value of the associated data object. Therefore, the expression is designed according to the incidence relation among the data objects, and the expression is configured to the target data object, so that the target data object can acquire the value of the incidence data object, and the value of the target data object is updated in a linkage manner based on the value of the incidence data object, thereby effectively reducing the workload and the development period of data configuration in the archive system. Meanwhile, the creation cost of the file system is greatly reduced, and the requirements of customers can be quickly met.
Drawings
Fig. 1 is a schematic flowchart of a data configuration method according to an embodiment of the present application;
FIG. 2 is a first schematic diagram illustrating a configuration of a data configuration engine according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram illustrating a composition structure of a data configuration engine according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a data configuration engine provided by an embodiment of the present application;
FIG. 5 is a flowchart illustrating a business execution of a data configuration engine according to an embodiment of the present application;
fig. 6 is a flowchart of service execution of a script configuration module according to an embodiment of the present application;
FIG. 7 is a diagram illustrating an expression configuration of data objects provided in an embodiment of the present application;
fig. 8 is a flowchart of service execution of a monitoring trigger module according to an embodiment of the present application;
fig. 9 is a flowchart of service execution of a script parsing module according to an embodiment of the present application;
FIG. 10 is a flowchart illustrating service execution by a script execution module according to an embodiment of the present application;
FIG. 11 is a diagram illustrating a relationship between a case and each document provided in an embodiment of the present application;
fig. 12 is an expression configuration diagram of a file number field of a case in a file table according to an embodiment of the present application;
FIG. 13 is a diagram illustrating the relationship between filing departments and files provided in the present application;
fig. 14 is an expression configuration diagram of an archive department field in a case/file table according to an embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a schematic flowchart of a data configuration method provided in an embodiment of the present application, and as shown in fig. 1, the method includes:
step 101: archive data is created, the archive data including a plurality of data objects.
In an embodiment of the present application, archive data is created for an archive system, the archive data including a plurality of data objects.
As an example: in the archive creation process of the project, a case 1 is created, and further, a file 1, a file 2, and a file 3 below the case 1 are created. Case 1 has 3 data objects, which are: case title, case file number, page number. File 1, file 2, and file 3 each have 3 data objects, respectively: title, case file number, file number.
It should be noted that at least some data objects in the archive data have an association relationship, and in the above example, the case file numbers of the files 1, 2, and 3 need to be consistent with the case file number of the case 1.
Step 102: generating an expression of a target data object, and configuring the expression to the target data object; the expression is used for representing the incidence relation between the value of the target data object and the value of the associated data object, and the target data object and the associated data object belong to the archival data.
Here, generating the expression of the target data object may be achieved by:
1) Determining a service requirement, and determining an association relation between the target data object and the associated data object according to the service requirement;
2) Generating at least one of the following expressions of the target data object according to the incidence relation: functional expressions and formula expressions.
Here, the business requirement can reflect characteristics of the archive system, that is, an association relationship between data objects in the archive system, and at least one of the following expressions of a target data object can be generated according to the association relationship between the data objects in the archive system: functional expressions and formula expressions. The target data object may be a data object in the archive system that requires updating, and the target data object needs a data object associated therewith (i.e., an associated data object).
It should be noted that the number of associated data objects of the target data object may be one or more.
In the embodiment of the present application, according to the association relationship between the data objects in the archive system (i.e. the characteristics of the archive system), the following two custom expressions can be designed: formula expression, function expression. The formula expression belongs to a self-defined common formula. As an example, parent for parent-child relationship is a formula expression, and the formula expression is used to obtain the value of a parent data object; by way of example, catalog for obtaining data of a specified type is a formula expression for obtaining values of data objects of a door type. The formula expression is suitable for the case of handling a simpler association relationship. For a function expression, function names and parameter information are configured in the expression, and a function is written to realize, namely, the function can be dynamically called, and a corresponding function is realized, so that the method is suitable for processing a more complex incidence relation.
After the expression of the target data object is generated through the scheme, the expression is configured to the target data object.
Step 103: and analyzing the expression, acquiring the value of the parallel data object according to the expression, and updating the value of the target data object according to the value of the associated data object.
Here, the expression of the target data object includes a functional expression and/or a formula expression. Accordingly, the parsing the expression and obtaining the value of the associated data object according to the expression includes:
analyzing a function name and first parameter information of the function expression according to the function expression, searching a corresponding function body file on a specified path according to the function name, and/or analyzing a formula name and second parameter information of the formula expression according to the formula expression, and searching a corresponding formula content file on the specified path according to the formula name;
and acquiring the value of the associated data object according to the function body file and the first parameter information, and/or the formula content file and the second parameter information.
After the value of the associated data object is obtained through the scheme, the value of the target data object is updated according to the value of the associated data object.
Further, in some embodiments, the method further comprises:
step 104: monitoring the change event of the target data object; and if the change of the expression of the target data object is monitored, analyzing the changed expression and updating the value of the target data object according to the changed expression.
Here, the expression of the target data object is changed, including at least one of: the expression of the target object is newly added, the expression of the target object is modified, and the expression of the target object is deleted.
Here, if it is monitored that the expression of the target data object is changed, the value of the target data object before the change of the expression is carried out; if the target data object has no value before the expression is changed, calculating the value of the target data object according to the changed expression; if the target data object has a value before the expression is changed, executing the following steps:
judging whether the type of the expression is a forced updating type or not; and if the type of the expression is a forced updating type, acquiring the value of the associated data object according to the changed expression, and updating the value of the target data object according to the value of the associated data object. And if the type of the expression is not the forced updating type, ending the process.
In some embodiments, the expressions in the above scheme are written in MVEL language. Without being limited thereto, the expressions in the above schemes can also be written in other feasible languages, and all of them belong to the protection scope of the present application.
It should be noted that the expression written by the MVEL language is a script, and the code corresponding to the expression is a script code.
It should be noted that, in the above scheme, loading an expression may also be understood as loading a script.
In the above-described scheme, the execution of the expression may be understood as the execution of the script.
According to the technical scheme of the embodiment of the application, when the archive data is created, the linkage and the updating of the values between the data objects can be realized by configuring the expressions for the data objects, and the business requirements are met. According to the technical scheme of the embodiment of the application, the configuration expression can take effect once, the work such as system test, system deployment and the like is not needed, and the workload and the development period of data configuration in the archive system which need to be achieved are effectively reduced.
In order to implement the data configuration method, the embodiment of the application further provides a data configuration engine.
Fig. 2 is a schematic structural diagram of a first component of a data configuration engine according to an embodiment of the present disclosure, where as shown in fig. 2, the engine includes:
a creating module 201, configured to create archive data, where the archive data includes a plurality of data objects;
a configuration module 202, configured to generate an expression of a target data object, and configure the expression to the target data object; the expression is used for representing the incidence relation between the value of the target data object and the value of an associated data object, and the target data object and the associated data object belong to the archival data;
the analysis module 203 is used for analyzing the expression;
the executing module 204 is configured to obtain the value of the associated data object according to the expression, and update the value of the target data object according to the value of the associated data object.
In some embodiments, the engine further comprises:
a monitoring triggering module 205, configured to monitor a change event of the target data object; if the expression of the target data object is monitored to be changed, the analysis module is triggered to analyze the changed expression, and the execution module is triggered to update the value of the target data object according to the changed expression.
In some embodiments, the parsing module 203 is configured to determine whether the type of the expression is a forced update type; the executing module 204 is configured to, if the type of the expression value is a forced update type, obtain a value of an associated data object according to the changed expression, and update the value of the target data object according to the value of the associated data object.
In some embodiments, the configuration module 202 is configured to determine a service requirement, and determine an association relationship between the target data object and the associated data object according to the service requirement; generating at least one expression of the target data object according to the incidence relation, wherein the expression comprises the following expression: a functional expression, a formula expression.
In some embodiments, the parsing module 203 is configured to parse the function name and the first parameter information of the function expression for the function expression, and search a corresponding function body file according to the function name on a specified path, and/or parse the formula name and the second parameter information of the formula expression for the formula expression, and search a corresponding formula content file according to the formula name on a specified path; the executing module 204 is configured to obtain a value of the associated data object according to the function body file and the first parameter information, and/or according to the formula content file and the second parameter information.
In some embodiments, the expression is written in the MVEL language.
It should be noted that the names of the modules in the data configuration engine are named by their functions, and of course, the names of the modules may also be named in other manners, which is not limited in this application. For example: the configuration module may also be described as a script configuration module or an expression configuration module. The parsing module may also be described as a script parsing module or an expression parsing module. The execution module may also be described as a script execution module or an expression execution module.
Those skilled in the art will appreciate that the functions implemented by the various module elements in the data configuration engine shown in fig. 2 can be understood by reference to the associated description of the foregoing method. The functions of the modules in the data configuration engine shown in fig. 2 may be implemented by a program running on a processor, or may be implemented by specific logic circuits.
Fig. 3 is a schematic structural diagram of a composition of a data configuration engine according to an embodiment of the present application, as shown in fig. 3, a core of the engine is composed of the following components from a bottom layer to an upper layer: MVEL dynamic language, expression and functional module. The expression is written based on an MVEL dynamic language, and comprises the following two types of expressions: formula expressions and function expressions. The function of the function module is realized based on an expression and comprises a script configuration module, a monitoring triggering module, a script analysis module and a script execution module.
Fig. 4 is a schematic diagram of a data configuration engine provided in an embodiment of the present application, and mainly includes the following parts: 1) Monitoring a calculation object; 2) Calculating and realizing an expression; 3) Script file reading and instance processing classes; 4) A function content parsing class; 5) And analyzing the formula content. Wherein, the interface corresponding to the monitoring part of the calculation object is a monitoring interface; and the interface corresponding to the expression calculation realization part is a calculation interface.
Fig. 5 is a flowchart of service execution of a data configuration engine according to an embodiment of the present application, and as shown in fig. 5, the method includes the following steps:
step 501: and designing, compiling and configuring scripts according to business requirements.
Step 502: the script is triggered and loaded.
Step 503: and analyzing the script.
Step 504: the script is executed.
Before step 501, the process further includes: business requirements are input to a data configuration engine. Through the steps 501 to 504, the service requirement can be realized.
It should be noted that the script refers to a script generated by writing an expression in the MVEL language. The description about the "script" can also be understood as a description about the "expression".
The technical solution of the embodiment of the present application is illustrated below by referring to specific application examples.
Application example 1
In this application example, the functions of the respective modules in the data configuration engine are explained.
1. Script configuration module
Here, the functions (i.e. the executed business process) of the script configuration module are as shown in fig. 6, and include: and designing an expression according to the business requirement, wherein the expression comprises a function expression and a formula expression, compiling a script according to the expression, and configuring the expression to the data object of the corresponding item.
As an example: the expression configuration is performed inside the field attributes (i.e., data objects) that need to be updated, and as shown in fig. 7, the expression setting is performed on the default values of these fields for the whole number, the item name, the filing department, and the case number.
2. Monitoring trigger module
Here, the monitoring triggering module (i.e. the executed business process) is shown in fig. 8, and includes: and adding a monitoring event of the data object, triggering subsequent actions when the expression of the data object has operations of adding, modifying, deleting and the like, executing the corresponding expression to obtain a corresponding value, and updating the value of the data object.
As an example: the type corresponding to the monitoring trigger module is a listener implementation type, and the core code of the listener implementation type is shown in the following table 1:
Figure BDA0003926595150000101
Figure BDA0003926595150000111
TABLE 1
3. Script parsing module
Here, the script parsing module (i.e. the executed service flow) is shown in fig. 9, and includes: loading an expression, analyzing a function name and first parameter information of the function expression aiming at the function expression, searching a corresponding function body file on a specified path according to the function name, and/or analyzing a formula name and second parameter information of the formula expression aiming at the formula expression, and searching a corresponding formula content file on the specified path according to the formula name; and acquiring the value of the associated data object according to the function body file and the first parameter information, and/or the formula content file and the second parameter information, and loading the execution content into a memory.
As an example: the type corresponding to the script parsing module is function loading, and the core code of the function loading is shown in the following table 2:
Figure BDA0003926595150000112
Figure BDA0003926595150000121
TABLE 2
4. Script execution module
Here, the script execution module (i.e. the executed service flow) is shown in fig. 10, and includes: and reading the script codes, acquiring an execution result by using an MVEL language interpreter, and executing the related script in the memory.
As an example: the type corresponding to the script execution module is a function definition, and the core code of the function definition is shown in table 3 below:
Figure BDA0003926595150000122
Figure BDA0003926595150000131
TABLE 3
Application example two
In the application example, the following file table information is created based on the file information, and the following parts are included:
1. script configuration module
Here, the service requirements are: in the process of creating an archive of an engineering project, a case 1 is already created, files 1, 2, 3 and the like below the case need to be created, and the relationship between the case 1 and the files 1, 2 and 3 is shown in fig. 11. According to the archive business requirements, part of the attributes in the file need to be inherited from the file, such as the file number of the file, and the file number in the file is consistent with the file number in the file.
Carrying out expression design and configuration according to business requirements:
1) Designing an expression: through analysis, the requirement is to realize data configuration of a parent-child two-level, so that a custom formula (parent) for acquiring data of a parent-child field is used.
2) Configuring an expression: as shown in fig. 12, in the file number field in the file table, the corresponding expression is configured: fx% of parent. File number%, the expression obtains the file number field of the file table (the parent level of the file), and updates the obtained file number field to the file number field in the file table.
2. Monitoring trigger module
Here, the monitoring triggering module includes: and increasing the monitoring event of the file number field in the file table, triggering subsequent actions when the expression of the file number field is newly added, modified and the like, executing the corresponding expression to obtain a corresponding value, and updating the value of the file number field in the file table.
3. Script parsing module
Here, the script parsing module includes: and loading the expression of the file number field in the file table, and finding the expression fx% of the file number configured by the field (file number).
And analyzing the expression to obtain a file number field of the parent object (file A).
4. Script execution module
Here, the script execution module reads the script code, and updates the acquired file number field of the file table to the file number field of the file table using the MVEL language interpreter.
The technical solution (i.e. the technical solution based on the data configuration engine) of the embodiment of the present application has obvious advantages over the technical solution based on hard coding, and is shown in the following table 4:
Figure BDA0003926595150000141
TABLE 4
From the above table, the following file list information is created based on the file information, and the technical solution based on the configuration engine is compared with the technical solution based on hard coding:
and (3) workload reduction: (2.75-1)/2.75 × 100% =63.6%
The development cycle is shortened: (2.75-1)/2.75 × 100% =63.6%
The technical scheme of the embodiment provides an efficient data configuration method and an efficient data configuration engine, which can greatly reduce the creation cost of a file system, shorten the development period and quickly meet the requirements of customers.
Application example three
In the application example, the file/document information is created based on the entire document information, and the file/document information includes the following parts:
1. script configuration module
Here, the business requirements are: in the file creation, when creating a file/document, the filing department of the registrant needs to be configured, and the information is obtained by inquiring the current all-in-one table of the registrant through the account number of the registrant. The relationship between the objects is shown in fig. 13.
Carrying out expression design and configuration according to business requirements:
1) Designing an expression: by way of analysis, the above requirements are to achieve data relationships involving multiple objects, and therefore, custom function expressions are used.
2) Configuring an expression: as shown in fig. 14, in the filing department field in the case/file table, the corresponding function expression is configured: and fx, filing department (% libid), wherein the expression acquires the filing department field of the entire file information and updates the field to the filing department in the file/file list.
2. Monitoring trigger module
Here, the monitoring triggering module includes: and increasing monitoring events of filing department fields in the files/file tables, triggering follow-up actions when the expressions of the file number fields are newly added, modified and the like, executing the corresponding expressions to obtain corresponding values, and updating the values of the file number fields in the file tables.
3. Script parsing module
Here, the script parsing module includes: loading the expression of the filed department field in the file/file table, and finding the function expression of the field (filed department) configuration: fx filing department (% libid%).
Analyzing the expression to obtain a function name (filingDepart) and a parameter (libid) of the function; finding the configured function through the function name, transferring the parameter libid, executing the function, and obtaining the return result of the function.
4. Script execution module
Here, the script execution module includes an filing department that reads the script code and assigns the acquired return result (filing department information) to the file/filing table using the MVEL language interpreter.
The technical solution (i.e. the technical solution based on the data configuration engine) of the embodiment of the present application has obvious advantages over the technical solution based on hard coding, and is shown in the following table 5:
Figure BDA0003926595150000151
Figure BDA0003926595150000161
TABLE 5
From the above table, it can be known that, the file/document information is created according to the whole information, and the technical solution based on the configuration engine is compared with the technical solution based on the hard coding:
and (3) workload reduction: (4.5-1.25)/4.5 x 100% =72.2%
The development cycle is shortened: (4.5-1.25)/4.5 x 100% =72.2%
The technical scheme of the embodiment provides an efficient data configuration method and an efficient data configuration engine, which can greatly reduce the creation cost of a file system, shorten the development period and quickly meet the requirements of customers.
The embodiment of the application also provides an archive system which comprises a data configuration engine. The engine is used for executing the data configuration method.
The embodiment of the application also provides a computer storage medium for storing a computer program.
In some embodiments, the computer-readable storage medium may be applied to a Web end in the embodiments of the present application, and the computer program enables a computer to execute corresponding processes implemented by the Web end in the methods in the embodiments of the present application, which are not described herein again for brevity.
In some embodiments, the computer-readable storage medium may be applied to a server in the embodiments of the present application, and the computer program enables a computer to execute corresponding processes implemented by the server in the methods in the embodiments of the present application, which are not described herein again for brevity.
In the three embodiments provided in the present application, it should be understood that the disclosed method and engine may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the modules is only one logical functional division, and in actual implementation, there may be other division ways, such as: multiple modules or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or modules may be electrical, mechanical or in other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units; some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional modules in the embodiments of the present application may be integrated into one second processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit may be implemented in the form of hardware, or in the form of hardware plus a software functional unit.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present disclosure, and all the changes or substitutions should be covered by the scope of the present application.

Claims (14)

1. A method for data configuration, the method comprising:
creating archival data, the archival data including a plurality of data objects;
generating an expression of a target data object, and configuring the expression to the target data object; the expression is used for representing the incidence relation between the value of the target data object and the value of the associated data object, and the target data object and the associated data object belong to the archival data;
and analyzing the expression, acquiring the value of the parallel data object according to the expression, and updating the value of the target data object according to the value of the associated data object.
2. The method of claim 1, further comprising:
monitoring a change event of the target data object;
and if the change of the expression of the target data object is monitored, analyzing the changed expression and updating the value of the target data object according to the changed expression.
3. The method of claim 2, wherein updating the value of the target data object according to the changed expression comprises:
judging whether the type of the expression is a forced updating type or not;
and if the type of the expression is a forced updating type, acquiring the value of the associated data object according to the changed expression, and updating the value of the target data object according to the value of the associated data object.
4. The method of any of claims 1 to 3, wherein the generating an expression of a target data object comprises:
determining a service requirement, and determining an association relation between the target data object and the associated data object according to the service requirement;
generating at least one of the following expressions of the target data object according to the incidence relation: a functional expression, a formula expression.
5. The method of claim 4, wherein parsing the expression and obtaining the value of the associated data object according to the expression comprises:
analyzing a function name and first parameter information of the function expression according to the function expression, searching a corresponding function body file on a specified path according to the function name, and/or analyzing a formula name and second parameter information of the formula expression according to the formula expression, and searching a corresponding formula content file on the specified path according to the formula name;
and acquiring the value of the associated data object according to the function body file and the first parameter information and/or the formula content file and the second parameter information.
6. The method of claim 4, wherein the expression is written in MVEL language.
7. A data configuration engine, the engine comprising:
a creation module for creating archival data, the archival data including a plurality of data objects;
the configuration module is used for generating an expression of a target data object and configuring the expression to the target data object; the expression is used for representing the incidence relation between the value of the target data object and the value of the associated data object, and the target data object and the associated data object belong to the archival data;
the analysis module is used for analyzing the expression;
and the execution module is used for acquiring the value of the associated data object according to the expression and updating the value of the target data object according to the value of the associated data object.
8. The engine of claim 7, further comprising:
the monitoring triggering module is used for monitoring the change event of the target data object; and if the change of the expression of the target data object is monitored, triggering the analysis module to analyze the changed expression, and triggering the execution module to update the value of the target data object according to the changed expression.
9. The engine of claim 8,
the analysis module is used for judging whether the type of the expression is a forced updating type;
and the execution module is used for acquiring the value of the associated data object according to the changed expression and updating the value of the target data object according to the value of the associated data object if the type of the expression value is a forced updating type.
10. The engine of any one of claims 7 to 9, wherein the configuration module is configured to determine a business requirement, and determine an association relationship between the target data object and the associated data object according to the business requirement; generating at least one of the following expressions of the target data object according to the incidence relation: functional expressions and formula expressions.
11. The engine of claim 10,
the analysis module is used for analyzing the function name and the first parameter information of the function expression according to the function expression, searching a corresponding function body file in a specified path according to the function name, and/or analyzing the formula name and the second parameter information of the formula expression according to the formula expression, and searching a corresponding formula content file in the specified path according to the formula name;
the execution module is configured to obtain a value of the associated data object according to the function body file and the first parameter information, and/or according to the formula content file and the second parameter information.
12. The engine of claim 10, wherein the expression is written in MVEL language.
13. An archive system, characterized in that it comprises a data configuration engine according to any of claims 7 to 12.
14. A computer storage medium having stored therein executable instructions that, when executed by at least one processor, perform the method of any one of claims 1 to 6.
CN202211375946.7A 2022-11-04 2022-11-04 Data configuration method and engine, file system and computer storage medium Pending CN115794202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211375946.7A CN115794202A (en) 2022-11-04 2022-11-04 Data configuration method and engine, file system and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211375946.7A CN115794202A (en) 2022-11-04 2022-11-04 Data configuration method and engine, file system and computer storage medium

Publications (1)

Publication Number Publication Date
CN115794202A true CN115794202A (en) 2023-03-14

Family

ID=85435491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211375946.7A Pending CN115794202A (en) 2022-11-04 2022-11-04 Data configuration method and engine, file system and computer storage medium

Country Status (1)

Country Link
CN (1) CN115794202A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117591706A (en) * 2024-01-19 2024-02-23 深圳市金政软件技术有限公司 Method and device for generating file numbers and terminal equipment
CN117875299A (en) * 2024-03-13 2024-04-12 南京智握信息技术有限公司 Electronic file integrated processing method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117591706A (en) * 2024-01-19 2024-02-23 深圳市金政软件技术有限公司 Method and device for generating file numbers and terminal equipment
CN117591706B (en) * 2024-01-19 2024-04-26 深圳市金政软件技术有限公司 Method and device for generating file numbers and terminal equipment
CN117875299A (en) * 2024-03-13 2024-04-12 南京智握信息技术有限公司 Electronic file integrated processing method and system

Similar Documents

Publication Publication Date Title
US10169034B2 (en) Verification of backward compatibility of software components
CN115794202A (en) Data configuration method and engine, file system and computer storage medium
CN110244942B (en) Page generation method, device and system
CN111068328B (en) Game advertisement configuration form generation method, terminal equipment and medium
US10599447B2 (en) System construction assistance system and method, and storage medium
CN115993966B (en) Application development system and method
CN112596746B (en) Application installation package generation method and device, computer equipment and storage medium
CN114020840A (en) Data processing method, device, server, storage medium and product
CN112000343B (en) Method and system for deploying multi-version services in Kubernetes by using Devops
CN112631563A (en) System development method and device based on framework, computer equipment and storage medium
CN115525534A (en) Test case generation method and platform based on swagger interface test
CN111338626A (en) Interface rendering method and device, electronic equipment and medium
CN116578282A (en) Code generation method, device, electronic equipment and medium
CN114911541A (en) Configuration information processing method and device, electronic equipment and storage medium
CN112181407B (en) Service realization processing method, device, system, electronic equipment and storage medium
CN114296718A (en) Setting method and device of Windows system component
CN113297081A (en) Execution method and device of continuous integration assembly line
CN111737964A (en) Form dynamic processing method, equipment and medium
CN112764802A (en) Business logic customization method and device, electronic equipment and storage medium
CN113806327A (en) Database design method and device and related equipment
JPWO2017072872A1 (en) Business program generation support system and business program generation support method
CN110908644A (en) Configuration method and device of state node, computer equipment and storage medium
CN112925655B (en) Decoupling system for dividing service and method thereof
CN112650509B (en) Application installation package generation method and device, computer equipment and storage medium
CN116301758B (en) Rule editing method, device, equipment and medium based on event time points

Legal Events

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