Method, device, equipment and readable storage medium for constructing data processing model
By constructing sub-models of the data processing model and adopting different drive mode identification acquisition methods, the scalability problem of the data processing model is solved, and more efficient software design and simplified model maintenance are achieved.
Patent Information
- Application Number
- CN202310340454.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2043-03-31
AI Technical Summary
In the existing technology, the scalability of data processing models is poor, and the model only has a single way of obtaining data, which increases the difficulty of software design.
By constructing a sub-model of the data processing model, using different driving mode identification representation acquisition methods, building a sub-model to obtain the target data that the variable needs to pass, supporting multiple acquisition methods, including calculation formulas, splicing formulas and matching conditions.
It improves the scalability of data processing models, reduces the difficulty of software design, and simplifies the model maintenance process.
Smart Images

Figure CN116187089B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer software, and in particular to a method, device, equipment and readable storage medium for constructing a data processing model. Background Art
[0002] Currently, in some business scenarios, data related to these business scenarios is collected and processed by software programs to obtain data processing results. For example, in the field of mold design, data such as the length, width, and height of the mold are collected, and then processed by software programs to obtain the mold's area or volume, etc. In the software program, this business data and data processing results are transmitted through variables. When a variable depends on other variables, the program coding for this variable may be more complicated. For example, when determining the data that variable A needs to pass, if variable A depends on variables B, C, and D (for example, A = B + C / D), and variable B depends on variables E and C, variable E depends on variable C, and variable C depends on variable G, then when coding the program, it is necessary to manually analyze the dependency relationships between these variables in the program code to ultimately determine the data that variable A needs to pass. This undoubtedly increases the difficulty of software design.
[0003] To reduce the complexity of software design, some current technologies use pre-built models to obtain the data required for variables. This eliminates the need to implement the data acquisition process in the program code, thus reducing the complexity of software design. However, the model's relatively simple data acquisition method makes the model less scalable. Summary of the Invention
[0004] In view of this, an embodiment of the present invention provides a method for constructing a data processing model, a construction device, an electronic device, and a computer-readable storage medium, which can improve the scalability of the model.
[0005] In one aspect, the present invention provides a method for constructing a data processing model, wherein the constructed data processing model includes at least one sub-model; the method comprises:
[0006] Determine the target data that needs to be passed through variables when processing business data for the target business scenario;
[0007] Determining a driving mode identifier required for constructing the sub-model according to the target data acquisition method, wherein the driving mode identifier represents the construction method of the sub-model, and sub-models constructed based on different construction methods obtain the target data required to be transmitted by the variable according to different acquisition methods; and
[0008] The sub-model is constructed according to the construction method represented by the driving mode identifier to obtain the data processing model.
[0009] Another aspect of the present invention provides a device for constructing a data processing model, wherein the constructed data processing model includes at least one sub-model; the device includes:
[0010] The target data acquisition module is used to determine the target data that needs to be passed through variables when processing the business data of the target business scenario;
[0011] a construction method determination module, configured to determine a driving mode identifier required for constructing the sub-model according to a method for obtaining the target data, wherein the driving mode identifier represents a construction method of the sub-model, and sub-models constructed based on different construction methods obtain the target data to be transmitted by the variable according to different acquisition methods; and
[0012] A construction module is used to construct the sub-model according to the construction method represented by the driving mode identifier to obtain the data processing model.
[0013] Another aspect of the present invention provides a computer-readable storage medium for storing a computer program. When the computer program is executed by a processor, the method described above is implemented.
[0014] Another aspect of the present invention provides an electronic device, comprising a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the method described above is implemented.
[0015] In the technical solutions of some embodiments of the present application, when constructing a data processing model, the data processing model is constructed in sub-model units, and sub-models constructed based on different construction methods have different methods for obtaining the target data required for the variable to be passed. In this way, if a sub-model in the data processing model cannot obtain the target data required for the variable to be passed according to the actual acquisition method, a new sub-model can be constructed to enable the new sub-model to obtain the target data required for the variable to be passed according to the actual acquisition method. In this way, the data processing model is more scalable. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The features and advantages of the present invention will be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the present invention in any way. In the accompanying drawings:
[0017] Figure 1 A schematic diagram showing a flow chart of a method for constructing a data processing model provided by one embodiment of the present application is shown;
[0018] Figure 2 A sub-model construction page provided by an embodiment of the present application is shown;
[0019] Figure 3 A schematic diagram of modules of a device for constructing a data processing model provided by one embodiment of the present application is shown;
[0020] Figure 4 A schematic diagram of an electronic device provided by an embodiment of the present application is shown. DETAILED DESCRIPTION
[0021] To make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of the present invention.
[0022] Before explaining the solution of this application, the variables involved in this application are first explained.
[0023] In some embodiments of the present application, a variable can represent a storage space. The storage space can support data reading and writing to achieve data transfer. For example, after obtaining data A, data A can be written to storage space 1. When data A is needed, data A can be read from storage space 1. In this way, data transfer is achieved.
[0024] See also Figure 1 , is a flow chart of a method for constructing a data processing model provided by one embodiment of the present application. The construction method can be applied to electronic devices. The electronic devices may include laptops, desktop computers, smart phones, tablet computers, etc. The constructed data processing model may include at least one sub-model. In the case of including multiple sub-models, the different sub-models are independent of each other, and each sub-model can be run separately. The construction method may include the following steps:
[0025] Step S11 , determining target data that needs to be transferred through variables when processing business data of a target business scenario.
[0026] In some embodiments, the target business scenario is the business scenario to which industrial software is applied. For example, the mold and general machinery manufacturing industry, the electrical and equipment manufacturing industry, the transportation industry, etc. The industrial software can analyze, calculate, and process the raw data collected in the target business scenario to obtain data processing results, and based on the data processing results, control the industrial production process, or display the data processing results to facilitate staff to monitor the industrial production process. For example, in the mold production process, the industrial software can use the actual length and width of the mold collected as raw data, calculate the actual volume of the mold based on the actual length and width of the mold, and compare the actual volume of the mold with the theoretically required volume. If the actual volume of the mold does not match the theoretically required volume, the production process of the mold can be adjusted and controlled so that the actual volume of the mold matches the theoretically required volume.
[0027] Industrial software may include program code that processes business data. When processing business data, the program code can use variables to transmit the business data and the processed results. For example, variable A can transmit business data A, variable B can transmit business data B, and variable C can transmit the sum of business data A and business data B. The data transmitted through variables is the target data.
[0028] In step S12, the driving mode identifier required for constructing the sub-model is determined according to the target data acquisition method, wherein the driving mode identifier represents the construction method of the sub-model, and the sub-models constructed based on different construction methods obtain the target data required to be transmitted by the variables according to different acquisition methods.
[0029] In some embodiments, the target data acquisition method can represent the method for obtaining the target data. For example, assuming that variable C is used to transmit the data obtained by adding business data A and business data B, business data A and business data B need to be added and the added data assigned to variable C. For the target data transmitted by variable C, the corresponding acquisition method can be to add the two numbers.
[0030] It is understood that each target data may have its own corresponding acquisition method, and the acquisition methods for different target data may be the same or different. For example, for target data 1 transmitted by variable A, its corresponding acquisition method may be to add two numbers; for target data 2 transmitted by variable B, its corresponding acquisition method may be to divide the two numbers. The acquisition methods corresponding to target data 1 and target data 2 can be different.
[0031] In the present application, the acquisition methods of at least part of the target data can be classified, and the target data with the same acquisition method is implemented through the same sub-model, and the sub-models implementing different acquisition methods can be constructed based on different construction methods.
[0032] Specifically, different types of acquisition methods may have corresponding drive mode identifiers, and different drive mode identifiers may represent different construction methods. Based on the acquisition method of the target data to be transmitted as a variable, the corresponding drive mode identifier may be determined. Furthermore, based on the construction method represented by the drive mode identifier, a sub-model may be constructed, so that the constructed sub-model can acquire data according to the acquisition method corresponding to the target data.
[0033] Step S13: construct a sub-model according to the construction method represented by the driving mode identifier to obtain a data processing model.
[0034] In this embodiment, when the construction method represented by the driving mode identifier is the first construction method, a target expression can be constructed so that the constructed sub-model obtains the target data to be passed by the variable based on the target expression. When the construction method represented by the driving mode identifier is the second construction method, the call information of the target application can be constructed so that the constructed sub-model obtains the target data to be passed by the variable by calling the target application based on the call information. Among them, the target expression can be an expression for determining the target data, which can specifically be a calculation formula, a matching condition, a splicing formula, etc. (see subsequent explanation). For example, in the program code, variable A=2x+3y, then the target expression can be constructed as 2x+3y, so that after the sub-model is constructed, the target data to be passed by variable A can be determined based on the target expression. The target application can include the determination logic of the target data, so that the target application can obtain the target data based on the determination logic of the target data.
[0035] In some embodiments, multiple target expressions or call information for multiple applications can be constructed in the same sub-model. In this case, the call information for multiple target expressions or multiple applications in the same sub-model can be distinguished based on variable names. For example, in some scenarios, it may be necessary to determine the target data to be passed to variable A based on the target expression 5x+3, and to determine the target data to be passed to variable B based on the target expression 3z / 2b. In this case, the following can be constructed in the same sub-model:
[0036] Target expression 1: A = 5x + 3
[0037] Target expression 2: B = 3z / 2b
[0038] When variable A is obtained, the sub-model is run to determine the target data that variable A needs to pass based on target expression 1.
[0039] When variable B is obtained, the sub-model is run to determine the target data that variable B needs to pass based on target expression 2.
[0040] In some embodiments, the model can be constructed through the construction page. The construction page is used to input the relevant construction information required for constructing each sub-model. Figure 2 , which is a sub-model construction page provided for an embodiment of the present application. Figure 2 The Build page includes configuration areas such as the Submodel ID, Drive Mode ID, and Model Parameters. The Submodel ID identifies the corresponding submodel. Different submodels have different submodel IDs. The Drive Mode ID can be selected from the drop-down list. Different Drive Mode IDs display different parameters in the Model Parameters area.
[0041] Specifically, when the drive mode indicator corresponding to the first construction method is selected, parameters related to the target expression may be displayed in the model parameter area to facilitate configuration of the target expression. For example, in this case, the model parameter area may display a target expression configuration area. In this configuration area, the target expression can be configured, and then when constructing the sub-model, the target expression can be constructed based on the configured target expression.
[0042] When the drive mode indicator corresponding to the second construction method is selected, the model parameter area displays parameters related to the target application's call information, facilitating configuration of the call information. For example, in this case, the model parameter area may display an access address configuration area. In this configuration area, the target application's access address can be configured. When the sub-model is constructed, the target application's call information can be constructed based on the configured access address.
[0043] It should be noted that the model parameters used to construct the target expression or target application call information on the build page can be configured based on actual circumstances. For example, in the program code, if the variable value needs to be determined based on the expression 2x + 3y, the target expression can be configured as 2x + 3y.
[0044] In some embodiments, in the same sub-model, multiple target expressions or call information for multiple applications can be constructed based on the configuration information of the construction page. In this case, multiple target expressions or call information for multiple applications in the same sub-model can be distinguished based on variable names. For example, in some scenarios, it may be necessary to determine the variable information of variable A based on the target expression 5x+3, and the variable information of variable B based on the target expression 3z / 2b. In this case, the following can be constructed in the same sub-model:
[0045] Target expression 1: A = 5x + 3
[0046] Target expression 2: B = 3z / 2b
[0047] When variable A is obtained, the sub-model is run to determine the variable information of variable A based on target expression 1.
[0048] When variable B is obtained, the sub-model is run to determine the variable information of variable B based on target expression 2.
[0049] The first construction method and the second construction method are described in detail below.
[0050] In some embodiments, the first construction method includes a formula construction method;
[0051] The target expression is constructed above so that the constructed sub-model can obtain the target data to be passed to the variable based on the target expression, including:
[0052] Construct a calculation formula as the target expression so that the constructed sub-model will use the result calculated based on the calculation formula as the target data to be passed as the variable.
[0053] For example, see Table 1:
[0054] Table 1 Calculation formula
[0055] variable Calculation formula A1 2x+y+3z B1 123 C1 3x+2y
[0056] Assuming that the target data that variable A1 needs to transmit is obtained based on the operation of variables x, y, and z, then the calculation formula 2x+y+3z can be constructed in the sub-model as the calculation formula corresponding to variable A1;
[0057] Similarly, assuming that the target data to be transferred by variable B1 is 123, you can directly construct an assignment expression in the sub-model (that is, assign 123 to variable B1) as the calculation formula corresponding to variable B1;
[0058] Similarly, assuming that the target data that variable C1 needs to transmit is obtained based on the operation of variables x and y, then the calculation formula 3x+2y can be constructed in the sub-model as the calculation formula corresponding to variable C1.
[0059] In Table 1, the calculation formulas for variables A1, B1, and C1 can be constructed in the same sub-model. The constructed sub-model can distinguish the calculation formulas to be executed based on the input variable names. For example, if variable A1 is entered into the sub-model, the sub-model determines the value of variable A1 based on the calculation formula 2x+y+3z; if variable B1 is entered into the sub-model, the sub-model assigns 123 to variable B1.
[0060] Of course, it is understandable that, based on the calculation formulas of variables A1, B1, and C1, sub-models can be constructed separately. For example, sub-model A can be constructed based on the calculation formula of variable A1, and sub-model B can be constructed based on the calculation formula of variable B1.
[0061] In some embodiments, the first construction method includes a splicing construction method;
[0062] Build a target expression so that the constructed sub-model can obtain the target data that the variable needs to pass based on the target expression, including:
[0063] Construct a splicing formula as the target expression so that the constructed sub-model will use the result obtained by splicing according to the splicing formula as the target data to be passed to the variable.
[0064] Specifically, the constructed sub-model can use the information obtained by splicing based on the splicing formula as the target data to be transferred by the variable. The splicing formula can include splicing characters and splicing data.
[0065] For example, see Table 2:
[0066] Table 2 splicing formula
[0067]
[0068] Based on Table 2, assume that the target data to be passed to variable A is 6-{variable O}-abc, where {variable O} represents the value of variable O. When constructing the submodel, you can construct the concatenated data 6, the value of variable O {variable O}, the character abc, and the character -. Also, specify the concatenation logic between the concatenated character and the concatenated data, so that the three concatenated data are connected in sequence using the concatenated character. In this way, when the constructed submodel is run, the target data 6-{variable O}-abc to be passed to variable A is obtained.
[0069] In some embodiments, the first construction mode includes a matching construction mode;
[0070] Build a target expression so that the constructed sub-model can obtain the target data that the variable needs to pass based on the target expression, including:
[0071] Construct a matching condition as a target expression so that when the constructed sub-model receives information that matches the matching condition, it uses the result corresponding to the matching condition as the target data to be passed to the variable. Matching conditions can be constructed in a variety of ways. The following examples illustrate two of these methods.
[0072] For example, see Table 3:
[0073] Table 3 Conditional formula
[0074] conditional formula VariableA Variable B Conditional formula A A1 B1 Conditional Formula B A2 B2 Conditional Formula C A3 B3
[0075] Based on Table 3, assuming that conditional formula A holds, the target data to be transferred by variable A is A1, and the target data to be transferred by variable B is B1;
[0076] If conditional formula A is not true, continue to determine whether conditional formula B is true. If conditional formula B is true, the target data to be transferred by variable A is A2, and the target data to be transferred by variable B is B2.
[0077] If conditional formula B is not true, the program continues to determine whether conditional formula C is true. If conditional formula C is true, the target data to be transferred by variable A is A3, and the target data to be transferred by variable B is B3.
[0078] When building a sub-model, you can construct conditional formulas A, B, and C, and specify the corresponding results for each of these conditional formulas. For example, you can map conditional formula A to A=A1, B=B1. Once the sub-model is built, you can determine the target data to be passed to variables A and B based on the constructed conditional formulas.
[0079] For ease of understanding, assume that a conditional formula A is constructed: x+y>20. At the same time, the conditional formula A is associated with A=A1, B=B1.
[0080] Construct conditional formula B: x + y > 15. At the same time, correspond conditional formula B to A = A2 and B = B2.
[0081] Construct conditional formula C: x+y>10. At the same time, correspond conditional formula C to A=A3, B=B3.
[0082] Thus, when the constructed sub-model is run, if the sum of variables x and y is greater than 20, A1 can be used as the target data to be transferred to variable A, and B1 can be used as the target data to be transferred to variable B. Similarly, if the sum of variables x and y is greater than 15 but less than 20, A2 can be used as the target data to be transferred to variable A, and B2 can be used as the target data to be transferred to variable B.
[0083] exist
[0084] For another example, see Table 4:
[0085] Table 4 Control conditions
[0086] VariableA Variable B Variable C variable D A1 B1 C1 D1 A2 C2 D2 A3 HASVALUE() C3 D3
[0087] Assume that in Table 4, when the value of variable A is A1 and the value of variable B is B1, the target data to be transferred by variable C is C1, and the target data to be transferred by variable D is D1;
[0088] When the value of variable A is A2 and the value of variable B is any value, the target data to be transferred by variable C is C2, and the target data to be transferred by variable D is D2;
[0089] The value of variable A is A3, and as long as variable B has a value (that is, the specific value of variable B is not important), the target data that variable C needs to pass is C3, and the target data that variable D needs to pass is D3.
[0090] Then when constructing the sub-model, you can construct the first control condition A=A1, B=B1, and at the same time, set the result corresponding to the first control condition to C=C1, D=D1;
[0091] Similarly, construct a second control condition A=A2, B=any value, and set the result corresponding to the second control condition to C=C2, D=D2;
[0092] Construct a third control condition A=A3, B=HASVALUE(), and at the same time, set the result corresponding to the third control condition to C=C2, D=D3.
[0093] In some embodiments, in the second construction mode, the target application includes a template document; and the calling information of the target application is constructed, including:
[0094] Constructing driving information for driving the template document to run as calling information, wherein the driving information includes at least one of the following information:
[0095] When calling a template document, the storage location of the input parameters sent to the template document in the template document;
[0096] The correspondence between the target data output by the template document and the variables.
[0097] Specifically, driver information can refer to program code that drives the template document to execute. The template document can include determination logic (e.g., a formula for determining the target data) for determining the target data. When the template document is executed, this determination logic is executed based on the input parameters to obtain corresponding output parameters. The output parameters can serve as the target data to be passed as variables.
[0098] Taking an Excel document as an example, the call information can be constructed in the following two ways:
[0099] 1) Based on the same sheet in an Excel document, define input cells and output cells in the document and build the code that drives the Excel document. Input cells store the input parameters required to determine the target data, and output cells store the results obtained based on the determination logic (i.e., the target data to be passed to the variable). If there are multiple input cells, you can also specify the correspondence between the input cells and the input parameters. If there are multiple output cells, you can also specify the correspondence between the output cells and the variables that carry the target data.
[0100] For example, see Table 5 and Table 6:
[0101] Table 5 Input Cell
[0102] Enter cell location Input parameters A1 1+2+3 B1 {variable O} C1 abc
[0103] Table 6 Output Cell
[0104]
[0105]
[0106] When building a submodel, you can define cells A1 to C1 on the first sheet of an Excel document as input cells, specifying that input cell A1 is used to store the result of the calculation 1+2+3, input cell B1 is used to store the value of variable O, and input cell C1 is used to store abc. You can also define cells A2 to C2 on the first sheet of an Excel document as output cells, specifying that output cell A2 corresponds to variable A, output cell B2 to variable B, and output cell C2 to variable C.
[0107] In this way, when the completed sub-model is run, the calculation result 6 of 1+2+3 will be written into cell A1 of the Sheet page, the target data passed by variable O will be written into cell B1, and the string abc will be written into cell C1.
[0108] After the calculation is complete, the results are saved to cells A2, B2, and C2 on the Sheet. Finally, the value in cell A2 is assigned to variable A as the target data to be transferred to variable A. The value in cell B2 is assigned to variable B as the target data to be transferred to variable B. The value in cell C2 is assigned to variable C as the target data to be transferred to variable C.
[0109] 2) Based on the different sheets in the Excel document, define the input and output cells in the Excel document and build the code that drives the Excel document. Method 2) is similar to method 1), the main difference being that the input and output cells are located on different sheets. Furthermore, each input and output cell is assigned a corresponding code. For easier understanding, see Tables 7 and 8 for examples of illustrative input and output cells.
[0110] Form 7 Input Page
[0111]
[0112]
[0113] Form 8 Output Page
[0114] coding variable Output A VariableA Output B Variable B Output C Variable C
[0115] Instead of setting the input parameters and output parameters on the same sheet page of the Excel template, the input parameters and output parameters are set on different sheets pages of the Excel template. In this way, when the input parameters or output parameters change, there is no need to adjust the driver code of the Excel template, which simplifies the model building process.
[0116] In some embodiments, in the second construction mode, the target application includes a third-party application; and the call information of the target application is constructed, including:
[0117] Constructing a calling address of a third-party application as calling information; and / or
[0118] Construct a data format for data interaction with a third-party application as call information, where the data format includes at least one of the following information:
[0119] Parameter information to be sent to third-party applications;
[0120] After the third-party application determines the target data to be passed by the variable, it returns the correspondence between the target data and the variable.
[0121] For example, see Table 9:
[0122]
[0123] When building a sub-model, you can define the following information:
[0124] Input parameter codes and the input values to be passed for each input parameter code;
[0125] Output parameter codes, and the corresponding relationship between each output parameter code and variables;
[0126] The calling address of the third-party application.
[0127] Once the submodel is built, you can combine the input values and input parameter codes into an object and pass it to a third-party application for calculation. For example, in Table 9, "Input A" is 6, "Input B" is the data passed by variable O, and "Input C" is the string "abc." Combine "Input A" with 6, "Input B" with the data passed by variable O, and "Input C" with the string "abc." Finally, pass the resulting object to the third-party application.
[0128] After the third-party application completes the calculation, it returns an object array to the sub-model. The sub-model reads the results from the object array and assigns them to variables. For example, in Table 9, the data passed by "Output A" is assigned to "Variable A", the data passed by "Output B" is assigned to "Variable B", and the data passed by "Output C" is assigned to "Variable C".
[0129] In the technical solutions of some embodiments of the present application, when constructing a data processing model, the data processing model is constructed in sub-model units, and sub-models constructed based on different construction methods have different methods for obtaining the target data required for the variable to be passed. In this way, if a sub-model in the data processing model cannot obtain the target data required for the variable to be passed according to the actual acquisition method, a new sub-model can be constructed to enable the new sub-model to obtain the target data required for the variable to be passed according to the actual acquisition method. In this way, the data processing model is more scalable.
[0130] In addition, the data processing model constructed according to the construction method of the present application can realize new functions simply by adding sub-models, which can reduce the difficulty of model maintenance.
[0131] See also Figure 3 , which is a schematic diagram of a module of a device for constructing a data processing model provided in one embodiment of the present application. The constructed data processing model includes at least one sub-model; the construction device includes:
[0132] The target data acquisition module is used to determine the target data that needs to be passed through variables when processing the business data of the target business scenario;
[0133] A construction method determination module is used to determine the driving mode identifier required for constructing the sub-model according to the target data acquisition method, wherein the driving mode identifier represents the construction method of the sub-model, and the sub-models constructed based on different construction methods obtain the target data required to be transmitted by the variable according to different acquisition methods; and
[0134] The construction module is used to construct a sub-model according to the construction method represented by the driving mode identifier to obtain a data processing model.
[0135] See also Figure 4 , is a schematic diagram of an electronic device provided in one embodiment of the present application. The electronic device includes a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the above method is implemented.
[0136] The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.
[0137] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the methods described in the embodiments of the present invention. The processor executes the non-transitory software programs, instructions, and modules stored in the memory to perform various processor functions and data processing, thereby implementing the methods described in the aforementioned method embodiments.
[0138] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may optionally include a memory remotely located relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0139] One embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the above method is implemented.
[0140] Although the embodiments of the present invention have been described with reference to the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention. Such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for constructing a data processing model, characterized in that: The constructed data processing model includes at least one sub-model; the method includes: Determine the target data that needs to be passed through variables when processing business data for the target business scenario; Determining a driving mode identifier required for constructing the sub-model according to the target data acquisition method, wherein the driving mode identifier represents the construction method of the sub-model, and sub-models constructed based on different construction methods obtain the target data required to be transmitted by the variable according to different acquisition methods; and Constructing the sub-model according to the construction method represented by the driving mode identifier to obtain the data processing model; The step of constructing the sub-model according to the construction method represented by the driving mode identifier includes: When the construction mode represented by the driving mode identifier is the first construction mode, constructing a target expression so that the constructed sub-model obtains the target data to be transferred by the variable based on the target expression; When the construction method represented by the driving mode identifier is the second construction method, the call information of the target application is constructed so that the constructed sub-model obtains the target data to be passed by the variable by calling the target application based on the call information.
2. The method according to claim 1, wherein The first construction method includes a formula construction method; The target expression is constructed so that the constructed sub-model obtains the target data to be transferred by the variable based on the target expression, including: A calculation formula is constructed as the target expression, so that the constructed sub-model uses the result calculated based on the calculation formula as the target data to be transferred by the variable.
3. The method according to claim 1, wherein The first construction method includes a splicing construction method; The constructing of the target expression so that the constructed sub-model determines the target data to be transferred by the variable based on the target expression includes: A splicing formula is constructed as the target expression, so that the result obtained by splicing the constructed sub-model according to the splicing formula is used as the target data to be transferred by the variable.
4. The method according to claim 1, wherein The first construction method includes a matching construction method; The constructing of the target expression so that the constructed sub-model determines the target data to be transferred by the variable based on the target expression includes: The matching condition is constructed as the target expression, so that when the constructed sub-model receives information that matches the matching condition, the result corresponding to the matching condition is used as the target data to be transferred by the variable.
5. The method according to claim 1, wherein The target application includes a template document; The call information for building the target application includes: Constructing driving information for driving the template document to run as the calling information, wherein the driving information includes at least one of the following information: The storage location in the template document of the input parameters sent to the template document when the template document is called; The correspondence between the target data output by the template document and the variables.
6. The method according to claim 1, wherein The target application includes a third-party application; the call information for building the target application includes: Constructing a calling address of the third-party application as the calling information; and / or Constructing a data format for data interaction with the third-party application as the call information, wherein the data format includes at least one of the following information: Parameter information to be sent to the third-party application; After determining the target data to be transferred by the variable, the third-party application returns the corresponding relationship between the target data and the variable.
7. A device for constructing a data processing model, characterized in that: The constructed data processing model includes at least one sub-model; the device includes: The target data acquisition module is used to determine the target data that needs to be passed through variables when processing the business data of the target business scenario; a construction method determination module, configured to determine a driving mode identifier required for constructing the sub-model according to a method for obtaining the target data, wherein the driving mode identifier represents a construction method of the sub-model, and sub-models constructed based on different construction methods obtain the target data to be transmitted by the variable according to different acquisition methods; and A construction module is used to construct the sub-model according to the construction method represented by the driving mode identifier to obtain the data processing model. Specifically, when the construction method represented by the driving mode identifier is the first construction method, a target expression is constructed so that the constructed sub-model obtains the target data to be passed by the variable based on the target expression; when the construction method represented by the driving mode identifier is the second construction method, calling information of the target application is constructed so that the constructed sub-model obtains the target data to be passed by the variable by calling the target application based on the calling information.
8. A computer-readable storage medium, characterized in that The computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
9. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Creating understandable models for numerous modeling tasks
CN104636531A
Complex engineering multidisciplinary synthetical design optimization software platform system
CN105183987A