Formula generation method, visualization method, computing platform, application platform and system
Through the collaborative work of the computing middle platform and the application middle platform, the business process description information entered by the user is automatically processed, and the function code execution chain and visualization results are generated, which solves the complexity and tediousness of developing APPs in the integrated technology platform and improves user experience and development efficiency.
Patent Information
- Application Number
- CN202411256002.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2044-09-09
AI Technical Summary
When developing industrial apps on an integrated technology platform, the complexity of function formulas leads to difficult operations, cumbersome steps, and poor user experience.
The computing middle platform converts the natural language business process description information entered by the user into characters to generate pseudo code for the target function. The application middle platform calls the corresponding middle platform resources according to the middle platform tag to form the target function code execution chain and visualization results, simplifying the development process.
It reduces the difficulty of APP development, improves efficiency and convenience, and optimizes user experience.
Smart Images

Figure CN119201049B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a formula generation method, a formula visualization method, a computing middle platform, an application middle platform and a formula generation system. Background Art
[0002] With the continuous development of computer and internet technologies, numerous integrated technology platforms have emerged for digital management, knowledge services, and software platformization in intelligent manufacturing processes. These platforms often include three core components: a data center, a computing center, and an application center. Users can use these integrated technology platforms to develop service-oriented, customized industrial apps based on their needs. When developing functional industrial apps through these platforms, they may need to use a large number of functions and formulas to implement specific features, such as generating data reports, programming and model visualization, and decision-making.
[0003] However, due to the complexity of function formulas, and the fact that function formulas used in developing APPs on an integrated technology platform must comply with corresponding platform development specifications, users are required to deeply learn and understand the development language, which places high demands on users and makes the operation difficult. Moreover, when users develop through an integrated technology platform, each time a function is implemented, multiple steps of operations are often required in the data middle platform, the calculation middle platform, and the execution middle platform, which is cumbersome, inefficient, and results in a poor user experience.
[0004] Therefore, how to improve the convenience of developing APPs using integrated technology platforms and optimize user experience has become a technical problem that needs to be urgently solved by technical personnel in this field. Summary of the Invention
[0005] The present invention provides a formula generation method, a formula visualization method, a calculation middle platform, an application middle platform and a formula generation system, which solve the problems existing in the related art of using an integrated technology platform to develop industrial APPs, such as the difficulty of operation, cumbersome steps and low efficiency, resulting in poor user experience.
[0006] As one aspect of the present invention, a formula generation method is provided, comprising:
[0007] Get the business process description information entered by the client;
[0008] Perform character conversion on the business process description information to obtain the target function pseudocode, which includes a middle platform tag. The middle platform tag is used to indicate the middle platform that provides resources. The middle platform tag includes a data middle platform tag, a computing middle platform tag, and an application middle platform tag.
[0009] The target function pseudocode is sent to the application middle platform, which is used to create a target function code execution chain based on the target function pseudocode and call the corresponding middle platform resources according to the middle platform tag to form the target function visualization result of the target function code execution chain, and return the target function visualization result to the client.
[0010] Furthermore, character conversion is performed on the business process description information to obtain the pseudo code of the target function, including:
[0011] Extract keywords from the business process description information. Keywords include at least parameter names, operation information, and middle platform information.
[0012] Mapping the keywords in the keyword library to obtain keyword pseudocode, which includes at least parameter name pseudocode corresponding to the parameter name, function name pseudocode corresponding to the operation information, and middle platform mark corresponding to the middle platform information;
[0013] Semantically sort the keyword pseudocodes according to the preset pseudocode grammar logic to obtain the target function pseudocode;
[0014] The keyword database is used to store the mapping relationship between keywords and keyword pseudocodes, and one or more keywords correspond to one keyword pseudocode.
[0015] As another aspect of the present invention, a formula visualization method is provided, comprising:
[0016] Receive the target function pseudo code sent by the computing center;
[0017] Create a target function code execution chain based on the target function pseudocode. The target function pseudocode includes a middle platform tag. The middle platform tag is used to indicate the middle platform that provides resources. The middle platform tag includes a data middle platform tag, a computing middle platform tag, and an application middle platform tag.
[0018] Call the corresponding middle platform resources according to the middle platform mark to form the target function visualization result of the target function code execution chain;
[0019] Return the objective function visualization results to the client.
[0020] Furthermore, a target function code execution chain is created based on the target function pseudo code, including:
[0021] Performing lexical analysis on the target function pseudocode to obtain a number of execution code tokens, the execution code tokens at least including parameter name tokens corresponding to the parameter name pseudocodes and function name tokens corresponding to the function name pseudocodes;
[0022] Perform syntax analysis on the execution code tokens to obtain the target syntax tree;
[0023] Create a target function code execution chain based on the target syntax tree.
[0024] Furthermore, the pseudo code of the target function is lexically analyzed to obtain several execution code tokens, including:
[0025] Mapping the parameter name pseudocode in the execution code notation library to obtain the parameter name notation;
[0026] Mapping the function name pseudocode in the execution code notation library to obtain the function name notation;
[0027] Among them, the execution code notation library is used to store the mapping relationship between parameter name pseudocode and parameter name notation, as well as the mapping relationship between function name pseudocode and function name notation. One parameter name pseudocode corresponds to one parameter name notation, and one function name pseudocode corresponds to one function name notation.
[0028] Furthermore, a target function code execution chain is created based on the target syntax tree, including:
[0029] Traverse the target syntax tree to map and assemble the execution code token code to obtain the target function code execution chain.
[0030] Furthermore, the target function visualization result of the target function code execution chain is formed by calling the corresponding middle station resources according to the middle station mark, including:
[0031] According to the middle platform tag, the corresponding middle platform resource is called and assigned to the target function code execution chain;
[0032] Dynamically compile the target function code execution chain and form a target function visualization result of the target function code execution chain.
[0033] As another aspect of the present invention, a computing platform is provided for implementing the above formula generation method, including:
[0034] Information acquisition module, used to obtain business process description information input by the client;
[0035] A character conversion module is used to convert the business process description information into characters to obtain the target function pseudocode. The target function pseudocode includes a middle platform tag. The middle platform tag is used to indicate the middle platform that provides resources. The middle platform tag includes a data middle platform tag, a computing middle platform tag, and an application middle platform tag.
[0036] The communication module is used to send the target function pseudocode to the application middle platform. The application middle platform is used to create a target function code execution chain based on the target function pseudocode and call the corresponding middle platform resources according to the middle platform mark to form the target function visualization result of the target function code execution chain, and is used to return the target function visualization result to the client.
[0037] As another aspect of the present invention, an application platform is provided for implementing the above formula visualization method, including:
[0038] A receiving module is used to receive the pseudo code of the target function sent by the computing center;
[0039] The target function code execution chain creation module is used to create a target function code execution chain based on the target function pseudocode sent by the computing middle station. The target function pseudocode includes a middle station tag, which is used to indicate the middle station that provides resources. The middle station tag includes a data middle station tag, a computing middle station tag, and an application middle station tag.
[0040] The visualization module is used to call the corresponding middle platform resources according to the middle platform mark to form the target function visualization result of the target function code execution chain;
[0041] Feedback module, used to return the visualization results of the objective function to the client.
[0042] As another aspect of the present invention, a formula generation system is provided, comprising a data middle platform, the above-mentioned calculation middle platform, and the above-mentioned application middle platform;
[0043] The computing center and the data center are both connected to the application center;
[0044] The data center is used to store data;
[0045] The computing platform is used to obtain the business process description information input by the client and generate the target function pseudo code based on the business process description information;
[0046] The application middle platform is used to create a target function code execution chain based on the target function pseudocode and call the corresponding middle platform resources according to the middle platform tag to form the target function visualization result of the target function code execution chain, and return the target function visualization result to the client. The middle platform tag is used to indicate the middle platform that provides resources. The middle platform tag includes the data middle platform tag, the computing middle platform tag and the application middle platform tag.
[0047] The present invention obtains the target function pseudocode by performing character conversion on the business process description information in natural language input by the user through the computing middle platform, and then creates the target function code execution chain according to the target function pseudocode by the application middle platform and calls the resources of the corresponding middle platform according to the middle platform mark in the pseudocode to form the target function visualization result and returns it to the client. This allows users to develop APP functions without having to perform multiple steps in each sub-platform of the integrated technology platform, nor do they need to deeply study the development specifications of the integrated technology platform, breaking the complexity and diversity of the traditional development interaction mode of the integrated technology platform, integrating the functions of the sub-platforms, greatly reducing the difficulty of developing APPs using the integrated technology platform, improving the efficiency and convenience of developing APPs using the integrated technology platform, and optimizing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present invention, but do not constitute a limitation of the present invention.
[0049] Figure 1 A brief flowchart of the formula generation method provided by the present invention.
[0050] Figure 2 This is a brief flowchart of the pseudo code for obtaining the target function provided by the present invention.
[0051] Figure 3 This is a brief structural block diagram of the computing platform provided by the present invention.
[0052] Figure 4 It is a brief flowchart of the formula visualization method provided by the present invention.
[0053] Figure 5 This is a brief flowchart of creating a target function code execution chain provided by the present invention.
[0054] Figure 6 It is a brief flowchart of the lexical analysis provided by the present invention.
[0055] Figure 7 It is a brief flow chart of the target function visualization result of forming the target function code execution chain provided by the present invention.
[0056] Figure 8 This is an example diagram of constructing a target syntax tree provided by the present invention.
[0057] Figure 9 This is a brief flowchart of the method for constructing a target syntax tree provided by the present invention.
[0058] Figure 10 This is a brief structural diagram of the application platform provided by the present invention.
[0059] Figure 11 This is a brief structural diagram of the formula generation system provided by the present invention. DETAILED DESCRIPTION
[0060] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments of the present invention may be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0061] In order to enable those skilled in the art to better understand the solutions of the present invention, 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 embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0062] It should be noted that the terms "first," "second," and the like in the specification and claims of the present invention and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate for the embodiments of the present invention described herein. In addition, the terms "including," "having," and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to these processes, methods, products, or apparatuses.
[0063] The embodiment of the present invention provides a formula generation method, such as Figure 1 Shown, including:
[0064] S100, obtaining business process description information input by the client;
[0065] Specifically, in an embodiment of the present invention, the computing middle platform in the integrated technology platform first obtains the business process description information input by the user from the client. The business process description information here is an expression close to natural language, for example: "Query the student scores in the tiger talisman A table and calculate the average value for the abacus." The "abacus" here refers to the computing middle platform for data processing and business orchestration in the embodiment of the present invention, and the "tiger talisman" refers to the data middle platform used to store data.
[0066] S200, performing character conversion processing on the business process description information to obtain the target function pseudo code, the target function pseudo code includes a middle platform tag, the middle platform tag is used to indicate the middle platform that provides resources, and the middle platform tag includes a data middle platform tag, a computing middle platform tag, and an application middle platform tag;
[0067] Specifically, in the embodiment of the present invention, an AI recognition algorithm may be used to perform character conversion processing on the business process description information to obtain a pseudo code of the target function in the form of a DSL (Dynamic Script Language).
[0068] Taking the business process description of "Querying student scores in table Hufu A and calculating the average on the abacus" as an example, after character conversion, the pseudocode for the objective function is supan(avg(hufu_table_select_score(A))). Here, "supan" and "hufu" are middleware tags, with "supan" specifically being the calculation middleware tag and "hufu" being the data middleware tag. This example doesn't involve the application middleware tag. In this embodiment of the present invention, the application middleware tag is specifically "gonggong."
[0069] "suanpan()" indicates that the computing platform executes the flow calculation method to find the function execution template in the brackets, which in this case is the execution template for "avg()." "hufu" indicates that the query service of the data platform is called to query the student scores in Table A, represented by the suffix "table_select_score(A)."
[0070] S300. Send the target function pseudocode to the application middle platform. The application middle platform is used to create a target function code execution chain based on the target function pseudocode and call the corresponding middle platform resources according to the middle platform tag to form the target function visualization result of the target function code execution chain, and return the target function visualization result to the client.
[0071] Specifically, in an embodiment of the present invention, after the computing middle station obtains the target function pseudocode, it sends the target function pseudocode to the application middle station. The application middle station can create a target function code execution chain based on the target function pseudocode, call the corresponding middle station's resources according to the middle station tag and assign them to the target function code execution chain, and render the page effect according to the pre-set component type combined with the target function code execution chain to form a target function visualization result of the target function code execution chain, and return the target function visualization result to the client.
[0072] In summary, the formula development method provided by the embodiment of the present invention is based on an integrated technology platform. The calculation middle platform performs character conversion processing on the business process description information in natural language form input by the user to obtain the target function pseudocode. The application middle platform then creates a target function code execution chain based on the target function pseudocode and calls the corresponding middle platform resources according to the middle platform mark in the target function pseudocode to form the target function visualization result of the target function code execution chain and returns it to the client. This allows users to develop APP functions through the integrated technology platform without having to perform multiple steps in the various sub-platforms of the integrated technology platform, nor do they need to deeply study the development specifications of the integrated technology platform. It breaks the complexity and diversity of the traditional development interaction mode of the integrated technology platform, integrates the functions of each sub-platform, greatly reduces the difficulty of developing APP using the integrated technology platform, improves the efficiency and convenience of developing APP using the integrated technology platform, and optimizes the user experience.
[0073] Furthermore, if Figure 2 As shown, the business process description information is converted into characters to obtain the pseudo code of the target function, including:
[0074] S210, extracting keywords from the business process description information, where the keywords include at least parameter names, operation information, and middle platform information;
[0075] Specifically, in the embodiment of the present invention, the business process description information of "querying the student scores in the tiger talisman A table and calculating the average value on the abacus" is still taken as an example, and it is identified and disassembled to extract the valid keywords: "tiger talisman", "A table", "scores", "abacus" and "average value", among which "A table" and "scores" are parameter names, "average value" is operation information, and "tiger talisman" and "abacus" are middle platform information.
[0076] S220. Map the keywords in the keyword library to obtain keyword pseudocode, where the keyword pseudocode includes at least a parameter name pseudocode corresponding to the parameter name, a function name pseudocode corresponding to the operation information, and a middle station mark corresponding to the middle station information;
[0077] The keyword database is used to store the mapping relationship between keywords and keyword pseudocodes, and one or more keywords correspond to one keyword pseudocode.
[0078] Specifically, due to the differences in how different users express business processes, for example, for the same table A, some users are accustomed to expressing it as "Table A", while some users are accustomed to expressing it as "Table A". Therefore, in the keyword library, a parameter name pseudocode may correspond to multiple parameter names that are synonymous with each other. Similarly, a function name pseudocode may also correspond to multiple operation information that are synonymous with each other. The same is true for middle-office information. Some users use "tiger talisman" in business process description information, while some users are accustomed to using "data middle-office". Regardless of "data middle-office" or "tiger talisman", the corresponding data middle-office mark in the keyword library is "hufu".
[0079] Specifically, in the keyword library, "tiger talisman", "A table", "score", "abacus" and "average value" are mapped respectively, and the data center corresponding to "tiger talisman" is marked as "hufu", the parameter name pseudocode corresponding to "A table" is "table(A)", the parameter name pseudocode corresponding to "score" is "score", the calculation center corresponding to "abacus" is marked as "suanpan", and the function name pseudocode corresponding to "average value" is "avg()".
[0080] S230 , semantically sorting the keyword pseudocodes according to a preset pseudocode grammar logic to obtain the target function pseudocode.
[0081] Specifically, the AI recognition algorithm semantically sorts and integrates the keyword pseudocode according to the preset pseudocode grammatical logic to obtain the target function pseudocode. It should be understood that the preset pseudocode grammatical logic here is the pseudocode grammatical logic obtained by the AI recognition algorithm after being trained by the technical developers of the integrated technology platform based on the overall needs of the customers facing the platform itself.
[0082] Another embodiment of the present invention provides a computing platform 100 for implementing the above formula generation method, such as Figure 3 Shown, including:
[0083] The information acquisition module 110 is used to obtain the business process description information input by the client;
[0084] Specifically, in an embodiment of the present invention, the information acquisition module 110 of the computing middle platform 100 in the integrated technology platform first obtains the business process description information input by the user from the client. The business process description information here is natural language, for example: "Query the student scores in the Tiger A table and calculate the average value for the abacus."
[0085] The character conversion module 120 is used to perform character conversion processing on the business process description information to obtain the target function pseudo code, which includes a middle station tag, which is used to indicate the middle station that executes the instruction. The middle station tag includes a data middle station tag, a calculation middle station tag, and an application middle station tag;
[0086] Specifically, the character conversion module 120 in the embodiment of the present invention can adopt an AI recognition algorithm to intelligently disassemble the business process description information through the AI recognition algorithm, and perform character conversion processing on the disassembly results to obtain the target function pseudocode in the form of DSL (DynamicScript Language). The target function pseudocode includes a middle platform tag, which is used to indicate the middle platform that executes the command. Its types include data middle platform tags, calculation middle platform tags, and application middle platform tags.
[0087] The communication module 130 is used to send the target function pseudocode to the application middle platform. The application middle platform is used to create a target function code execution chain based on the target function pseudocode and call the corresponding middle platform resources according to the middle platform mark to form the target function visualization result of the target function code execution chain, and is used to return the target function visualization result to the client.
[0088] Specifically, after the embodiment of the present invention obtains the target function pseudocode, it sends the target function pseudocode to the application middle platform through the communication module 130. The application middle platform can create a target function code execution chain based on the target function pseudocode, call the corresponding middle platform resources according to the middle platform tag and assign them to the target function code execution chain, and render the page effect according to the pre-set component type combined with the target function code execution chain in the form of executable code, forming a target function visualization result of the target function code execution chain, and returning the target function visualization result to the client.
[0089] In summary, the computing middle platform 100 provided in the embodiment of the present invention obtains the business process description information in the natural language form input by the user through the information acquisition module 110, and then performs character conversion through the character conversion module 120 to obtain the target function pseudocode, and finally sends the target function pseudocode to the application middle platform through the communication module 130. The application middle platform then creates a target function code execution chain based on the target function pseudocode and calls the corresponding middle platform resources according to the middle platform mark in the target function pseudocode to further form the target function visualization result of the target function code execution chain and returns it to the client. This allows users to develop APP functions through the integrated technology platform without having to perform multiple steps in the various sub-platforms of the integrated technology platform, nor do they need to deeply study the development specifications of the integrated technology platform. It breaks the complexity and diversity of the traditional development interaction mode of the integrated technology platform, integrates the functions of each sub-platform, greatly reduces the difficulty of developing APP using the integrated technology platform, improves the efficiency and convenience of developing APP using the integrated technology platform, and optimizes the user experience.
[0090] Another embodiment of the present invention provides a formula visualization method, such as Figure 4 Shown, including:
[0091] A100 receives the pseudo code of the target function sent by the computing center;
[0092] A200. Create a target function code execution chain based on the target function pseudocode. The target function pseudocode includes a middle platform tag. The middle platform tag is used to indicate the middle platform that provides resources. The middle platform tag includes a data middle platform tag, a computing middle platform tag, and an application middle platform tag.
[0093] Specifically, the application middle platform constructs a character stream based on the target function pseudocode sent by the computing middle platform, and then parses the character stream. The parsing rules here can be custom parsing rules, and the target function code execution chain is created according to the parsing results.
[0094] A300, based on the middle platform tag, calls the corresponding middle platform resources to form the target function code execution chain target function visualization result;
[0095] Specifically, after the application middle platform creates the target function code execution chain, it calls the corresponding middle platform resources according to the middle platform mark to obtain the corresponding execution code, and then compiles the execution code of the target function code execution chain. The page effect is rendered according to the pre-set component type and the target function code execution chain, thereby forming the target function visualization result of the target function code execution chain.
[0096] A400. Return the visualization result of the objective function to the client.
[0097] Finally, the application center returns the visualization result of the objective function to the client.
[0098] In the embodiment of the present invention, the application middle platform creates a target function code execution chain in response to the target function pseudocode sent by the computing middle platform and generates a target function visualization result and returns it to the customer. The user does not need to perform multiple operations between the sub-platforms of the integrated technology platform, nor does he need to deeply study the development specifications of the integrated technology platform. It breaks the complexity and diversity of the traditional development interaction mode of the integrated technology platform, integrates the functions of each sub-platform, greatly reduces the difficulty of developing APPs using the integrated technology platform, improves the efficiency and convenience of developing APPs using the integrated technology platform, and optimizes the user experience.
[0099] Furthermore, if Figure 5 As shown, the target function code execution chain is created according to the target function pseudo code, including:
[0100] A210. Perform lexical analysis on the target function pseudocode to obtain a number of execution code tokens, where the execution code tokens include at least parameter name tokens corresponding to the parameter name pseudocodes and function name tokens corresponding to the function name pseudocodes.
[0101] Specifically, in an embodiment of the present invention, the character stream of the target function pseudocode can be lexically analyzed by an independent lexical analyzer (Lexer for short), or the character stream of the target function pseudocode can be lexically analyzed by a lexical analysis module in an AI intelligent analysis model that integrates lexical analysis and syntax analysis to obtain an execution code token, which at least includes a parameter name token corresponding to the parameter name and a function name token corresponding to the operation information.
[0102] A220, perform syntax analysis on the execution code token to obtain a target syntax tree;
[0103] Specifically, in an embodiment of the present invention, either an independent syntactic analysis (Parser) can be used to perform syntactic analysis on each independent execution code token obtained by lexical analysis and assemble them according to the syntactic analysis results, or a syntactic analysis module in an AI intelligent analysis model that integrates lexical analysis and syntactic analysis can be used to perform syntactic analysis and assemble the execution code tokens. It should be understood that both an independent syntactic analyzer and a syntactic analysis module in an AI intelligent analysis model are provided with preset grammatical rules. The preset grammatical rules here refer to the grammatical rules obtained after the syntactic analyzer or the AI intelligent analysis model is trained by the technical developers of the integrated technology platform based on the overall needs of the customers that the platform itself is facing.
[0104] A230. Create a target function code execution chain based on the target syntax tree.
[0105] Since the target syntax tree obtained by parsing the execution code tokens contains the compilation logic between the execution code tokens, the target function code execution chain is created according to the target syntax tree.
[0106] Still taking "querying the student scores in Hufu Table A and calculating the average value for Suanpan" as an example, the corresponding target function code execution chain can be understood as: first execute the hufu_table_select_score() function to query the data in Table A, then execute the suanpan() application scheduling function, and send the avg() function to be executed to the calculation center Suanpan for scheduling, so as to aggregate the data in Table A and calculate the average value.
[0107] Furthermore, if Figure 6 、 Figure 8 and Figure 9 As shown, the pseudo code of the target function is lexically analyzed to obtain several execution code tokens, including:
[0108] A211. Mapping the parameter name pseudocode in the execution code notation library to obtain the parameter name notation.
[0109] The execution code notation library in the embodiment of the present invention is used to store the mapping relationship between parameter name pseudocode and parameter name notation and the mapping relationship between function name pseudocode and function name notation. One parameter name pseudocode corresponds to one parameter name notation, and one function name pseudocode corresponds to one function name notation.
[0110] Specifically, the parameter name pseudocode in the target function pseudocode is mapped according to a one-to-one mapping relationship between the parameter name token and the parameter name pseudocode stored in the execution code token library to obtain the parameter name token.
[0111] A212. Mapping the function name pseudocode in the execution code notation library to obtain the function name notation;
[0112] Similarly, the function name token is obtained by mapping the function name pseudocode in the target function pseudocode according to the one-to-one mapping relationship between the function name token and the function name pseudocode stored in the execution code token library.
[0113] Taking the target function pseudo code supan(avg(hufu_table_select_score(A))) corresponding to the business process description of "querying student scores in table A of Hufu and calculating the average value for the abacus" as an example, we first decompose the character stream to obtain "suanpan()", "avg()", and "hufu_table_select_score()", and then map the decomposition results into the execution code notation library to obtain the corresponding execution code notations as follows:
[0114] supan() corresponds to:
[0115] / fusion / sp / app / node / postData(@RequestBody SpAppNodeDataPostParamparam);
[0116] avg() corresponds to:
[0117] com.xuelangyun.common.rule.fx.function.hf.math.avg(context, list);
[0118] hufu_table_select_score() corresponds to: com.xuelangyun.common.rule.fx.function.hf.HFSelect(tableName).
[0119] Furthermore, a target function code execution chain is created based on the target syntax tree, including:
[0120] A231. Traverse the target syntax tree to map and assemble the execution code token code to obtain the target function code execution chain.
[0121] Specifically, in an embodiment of the present invention, a custom business listener is used to traverse the target syntax tree, extract information therein, perform mapping and assembly to obtain a target function code execution chain, and construct an executor based on the target function code execution chain to return the monitoring result.
[0122] Furthermore, if Figure 7As shown, the target function visualization results of the target function code execution chain are formed by calling the corresponding middle station resources according to the middle station mark, including:
[0123] A310, according to the middle platform mark, calls the corresponding middle platform resource and assigns it to the target function code execution chain;
[0124] In an embodiment of the present invention, the application execution calling function of the calculation center abacus and the data center tiger talisman has been pre-integrated in the application center co-worker. Taking "querying the student scores in the tiger talisman A table and calculating the average value for the abacus" as an example, the application center co-worker first calls the hufu_table_select_score() function according to the center mark hufu to query the A table data in the data center tiger talisman, and then executes the avg() function to aggregate the A table data to calculate the average value. Here, according to the center mark suanpan, it can be seen that the avg() function is integrated in the calculation center abacus, so it is necessary to execute the suanpan() application scheduling function first, and send the avg() function to be executed to the calculation center abacus for scheduling. It should be understood that the calculation center has pre-built-in and registered several function methods, such as digital functions, text functions, date functions, logical functions, and resource functions.
[0125] A320. Dynamically compile the target function code execution chain and form a target function visualization result of the target function code execution chain.
[0126] Finally, the embodiment of the present invention dynamically compiles the target function code execution chain, and renders the page effect according to the preset component type in combination with the target function code execution chain to form a target function visualization result of the target function code execution chain.
[0127] Another embodiment of the present invention provides an application platform 200 for implementing the above formula visualization method, such as Figure 10 As shown, including;
[0128] Receiving module 210, used to receive the target function pseudo code sent by the calculation center;
[0129] Specifically, the receiving module 210 in the application center receives the target function pseudo code sent by the calculation center.
[0130] The target function code execution chain creation module 220 is used to create a target function code execution chain according to the target function pseudo code, where the target function pseudo code includes a middle station tag, which is used to indicate the middle station that provides resources. The middle station tag includes a data middle station tag, a computing middle station tag, and an application middle station tag.
[0131] Specifically, the target function code execution chain creation module 220 in the application center constructs a character stream based on the target function pseudocode, and then parses the character stream. The parsing rules here can be custom parsing rules, and the target function code execution chain is created based on the parsing results.
[0132] The visualization module 230 is used to call the corresponding middle station resources according to the middle station mark to form the target function visualization result of the target function code execution chain;
[0133] Specifically, after the target function code execution chain creation module 220 creates the target function code execution chain, the visualization module 230 calls the corresponding middle platform resources according to the middle platform mark to obtain the corresponding execution code, and then compiles the execution code of the target function code execution chain, and renders the page effect according to the pre-set component type and the target function code execution chain, thereby forming the target function visualization result of the target function code execution chain.
[0134] The feedback module 240 is used to return the visualization result of the objective function to the client.
[0135] Finally, the feedback module 240 in the application center returns the objective function visualization result to the client.
[0136] In the embodiment of the present invention, the application middle platform 200 creates a target function code execution chain in response to the target function pseudocode sent by the computing middle platform and generates a target function visualization result and returns it to the customer. The user does not need to perform multiple operations between the sub-platforms of the integrated technology platform, nor does he need to deeply study the development specifications of the integrated technology platform. It breaks the complexity and diversity of the traditional development interaction mode of the integrated technology platform, integrates the functions of each sub-platform, greatly reduces the difficulty of developing APPs using the integrated technology platform, improves the efficiency and convenience of developing APPs using the integrated technology platform, and optimizes the user experience.
[0137] Another embodiment of the present invention provides a formula generation system 001, such as Figure 11 As shown, it includes the data middle station 300, the above-mentioned computing middle station 100 and the above-mentioned application middle station 200;
[0138] The computing center 100 and the data center 300 are both connected to the application center 200;
[0139] The data center 300 is used to store data;
[0140] The computing platform 100 is used to obtain the business process description information input by the client and generate the target function pseudo code according to the business process description information;
[0141] The application platform 200 is used to receive the target function pseudocode, create a target function code execution chain according to the target function pseudocode, and form a target function visualization result of the target function code execution chain and then return the target function visualization result to the client.
[0142] The computing middle platform 100 in the formula generation system 001 provided in the embodiment of the present invention can generate the target function pseudocode according to the business process description information in natural language input by the user and send it to the application middle platform 200. The application middle platform 200 generates the target function code execution chain, and calls the resources of the corresponding middle platform according to the middle platform mark in the target function pseudocode to form the target function visualization result of the target function code execution chain and returns it to the user. The user does not need to learn the special grammar rules in depth, nor does the user need to manually perform multiple steps between the various middle platforms in the system. It breaks the complexity and diversity of the traditional development interaction mode of the integrated technology platform, integrates the functions of each sub-platform, greatly reduces the difficulty of developing APP using the integrated technology platform, improves the efficiency and convenience of developing APP using the integrated technology platform, and optimizes the user experience.
[0143] The specific working principle and effect of the formula generation system of the embodiment of the present invention can be referred to the above description of the formula generation method and the formula visualization method, which will not be repeated here.
[0144] It will be understood that the above embodiments are merely exemplary embodiments for illustrating the principles of the present invention, and the present invention is not limited thereto. Those skilled in the art will appreciate that various modifications and improvements can be made without departing from the spirit and substance of the present invention, and such modifications and improvements are also considered to be within the scope of protection of the present invention.
Claims
1. A formula generation method, characterized in that: include: Get the business process description information entered by the client; Performing character conversion processing on the business process description information to obtain a target function pseudocode, wherein the target function pseudocode includes a middle platform tag, the middle platform tag is used to indicate the middle platform that provides resources, and the middle platform tag includes a data middle platform tag, a computing middle platform tag, and an application middle platform tag; Send the target function pseudocode to the application middleware, which is used to create a target function code execution chain according to the target function pseudocode and call the corresponding middleware resources according to the middleware tag to form a target function visualization result of the target function code execution chain, and return the target function visualization result to the client; The step of performing character conversion on the business process description information to obtain a pseudo code of the target function includes: Extract keywords from the business process description information, where the keywords include at least parameter names, operation information, and middle platform information; Mapping the keywords in the keyword library to obtain keyword pseudocode, wherein the keyword pseudocode at least includes a parameter name pseudocode corresponding to the parameter name, a function name pseudocode corresponding to the operation information, and a middle station mark corresponding to the middle station information; Semantically sort the keyword pseudocodes according to a preset pseudocode grammar logic to obtain a target function pseudocode; The keyword database is used to store the mapping relationship between keywords and keyword pseudocodes, and one or more keywords correspond to one keyword pseudocode.
2. A formula visualization method, characterized in that: include: Receive the target function pseudo code sent by the computing center; Creating a target function code execution chain according to the target function pseudo code, wherein the target function pseudo code includes a middle station tag, the middle station tag is used to indicate the middle station that provides resources, and the middle station tag includes a data middle station tag, a computing middle station tag, and an application middle station tag; Call the corresponding middle platform resources according to the middle platform mark to form the target function visualization result of the target function code execution chain; Returning the objective function visualization result to the client; The step of creating a target function code execution chain according to the target function pseudo code includes: Performing lexical analysis on the target function pseudocode to obtain a plurality of execution code tokens, wherein the execution code tokens include at least parameter name tokens corresponding to the parameter name pseudocodes and function name tokens corresponding to the function name pseudocodes; Performing syntax analysis on the execution code token to obtain a target syntax tree; A target function code execution chain is created according to the target syntax tree.
3. The method according to claim 2, characterized in that The target function pseudo code is subjected to lexical analysis to obtain several execution code tokens, including: Mapping the parameter name pseudocode in the execution code notation library to obtain the parameter name notation; Mapping the function name pseudocode in the execution code notation library to obtain the function name notation; The execution code notation library is used to store the mapping relationship between parameter name pseudocode and parameter name notation and the mapping relationship between function name pseudocode and function name notation. One parameter name pseudocode corresponds to one parameter name notation, and one function name pseudocode corresponds to one function name notation.
4. The method according to claim 2, characterized in that The step of creating a target function code execution chain according to the target syntax tree includes: The target syntax tree is traversed to map and assemble the execution code token code to obtain the target function code execution chain.
5. The method according to claim 2, characterized in that The target function visualization result of the target function code execution chain formed by calling the corresponding middle station resources according to the middle station mark includes: According to the middle platform mark, the corresponding middle platform resource is called and assigned to the target function code execution chain; The target function code execution chain is dynamically compiled to form a target function visualization result of the target function code execution chain.
6. A computing platform for implementing the formula generation method according to claim 1, characterized in that: include: Information acquisition module, used to obtain business process description information input by the client; A character conversion module, configured to perform character conversion processing on the business process description information to obtain a pseudo code of the target function, wherein the pseudo code of the target function includes a middle platform tag, and the middle platform tag is used to indicate the middle platform that provides resources. The middle platform tag includes a data middle platform tag, a computing middle platform tag, and an application middle platform tag; A communication module is used to send the target function pseudocode to the application middle platform, and the application middle platform is used to create a target function code execution chain according to the target function pseudocode and call the corresponding middle platform resources according to the middle platform mark to form a target function visualization result of the target function code execution chain, and to return the target function visualization result to the client.
7. An application platform for implementing the formula visualization method according to any one of claims 2 to 5, characterized in that: include: A receiving module is used to receive the pseudo code of the target function sent by the computing center; A target function code execution chain creation module is used to create a target function code execution chain according to the target function pseudocode, wherein the target function pseudocode includes a middle platform tag, and the middle platform tag is used to indicate the middle platform that provides resources. The middle platform tag includes a data middle platform tag, a computing middle platform tag, and an application middle platform tag; The visualization module is used to call the corresponding middle platform resources according to the middle platform mark to form the target function visualization result of the target function code execution chain; The feedback module is used to return the visualization result of the objective function to the client.
8. A formula generation system, characterized in that: Including the data middle platform, the computing middle platform in claim 6 and the application middle platform in claim 7; The computing middle platform and the data middle platform are both communicatively connected to the application middle platform; The data middle platform is used to store data; The computing platform is used to obtain the business process description information input by the client and generate the target function pseudo code according to the business process description information; The application middle platform is used to create a target function code execution chain based on the target function pseudocode and call the corresponding middle platform resources according to the middle platform mark to form the target function visualization result of the target function code execution chain, and return the target function visualization result to the client. The middle platform mark is used to indicate the middle platform that provides resources, and the middle platform mark includes a data middle platform mark, a computing middle platform mark and an application middle platform mark.
Citation Information
Patent Citations
Generation method and device of clothing customization business processing system based on C2M
CN115438994A
Code generation method and device and storage medium
CN115878120A
Artificial intelligence data analysis method and device conforming to business logic, equipment and medium
CN118485160A