Formula generation method, visualization method, middle computing table, middle application table and system
Through the collaborative work of the computing middle platform and the application middle platform, the process of APP development in the integrated technology platform is simplified, the problems of function formula complexity and multi-step operation are solved, and the development efficiency and user experience are improved.
Patent Information
- Application Number
- CN202411256002.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2044-09-09
AI Technical Summary
When developing industrial APPs in integrated technology platforms, the complexity of function formulas and multi-step operations lead to poor user experience, difficult operation and low efficiency.
By calculating the character conversion of the natural language business process description information input by the middle platform, the objective function pseudo-code is generated, and the application middle platform calls the corresponding middle platform resources according to the middle platform mark to form an objective function code execution chain to realize the visualization of the objective function. The results are returned, simplifying the development process.
It reduces the difficulty and cumbersome steps of developing APPs, improves development efficiency and user experience, breaks the complexity and differences of integrated technology platforms, and integrates sub-platform functions.
Smart Images

Figure CN119201049A_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 technology and Internet technology, many integrated technology platforms have emerged for digital management, knowledge service, and software platformization in the intelligent manufacturing process. Integrated technology platforms often include three core parts, namely data middle platform, computing middle platform, and application middle platform. Users can develop service-oriented and customized industrial APPs based on their own needs through these integrated technology platforms. In the process of developing functional industrial APPs through integrated technology platforms, a large number of function formulas may be needed to achieve a certain function, 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 the function formulas used in developing APPs on the integrated technology platform must follow the corresponding platform development specifications, users are required to have an in-depth understanding of the development language, which places high demands on users and makes the operation difficult. Moreover, when users develop through the integrated technology platform, each time a function is implemented, they often need to perform multiple steps in the data middle station, the computing middle station, and the execution middle station, which is cumbersome, inefficient, and results in a poor user experience.
[0004] Therefore, how to improve the convenience of developing APP using integrated technology platforms and optimize user experience has become a technical problem that technical personnel in this field need to solve urgently. 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, so as to solve the problems existing in the related technology of using an integrated technology platform to develop industrial APPs, such as the difficulty of operation, cumbersome steps and low efficiency leading to poor user experience.
[0006] As one aspect of the present invention, a formula generation method is provided, comprising: Get the business process description information entered by the client; Perform character conversion processing on the business process description information to obtain the target function pseudo code, 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; 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 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.
[0007] Furthermore, character conversion is performed on the business process description information to obtain a pseudo code of the target function, including: Extract keywords from the business process description information. The keywords at least include parameter names, operation information, and middle platform information. Mapping the keywords in the keyword library to obtain keyword pseudocode, the keyword pseudocode at least includes parameter name pseudocode corresponding to the parameter name, function name pseudocode corresponding to the operation information and middle station mark corresponding to the middle station information; Semantically sort the keyword pseudocodes according to the preset pseudocode grammar logic to obtain the target function pseudocode; The keyword library is used to store the mapping relationship between keywords and keyword pseudocodes, and one or more keywords correspond to one keyword pseudocode.
[0008] As another aspect of the present invention, a formula visualization method is provided, comprising: Receive the target function pseudo code sent by the computing center; Create a target function code execution chain according to the target function pseudo code, 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 station resources according to the middle station mark to form the target function visualization result of the target function code execution chain; Return the objective function visualization result to the client.
[0009] Furthermore, a target function code execution chain is created according to the target function pseudo code, including: 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 pseudocode and function name tokens corresponding to the function name pseudocode; Perform syntax analysis on the execution code tokens to obtain the target syntax tree; Create a target function code execution chain based on the target syntax tree.
[0010] Furthermore, the pseudo code of the target function is lexically analyzed 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.
[0011] Furthermore, a target function code execution chain is created according to the target syntax tree, including: Traverse the target syntax tree to map and assemble the execution code token code to obtain the target function code execution chain.
[0012] 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: Call the corresponding middle platform resource according to the middle platform tag and assign it to the target function code execution chain; Dynamically compile the target function code execution chain and form a target function visualization result of the target function code execution chain.
[0013] As another aspect of the present invention, a computing platform is provided for implementing the above formula generation method, including: The information acquisition module is used to obtain the business process description information input by the client; A character conversion module is used to perform character conversion processing on the business process description information to obtain the target function pseudo code, the target function pseudo code includes a middle station mark, the middle station mark is used to indicate the middle station that provides resources, and the middle station mark includes a data middle station mark, a computing middle station mark, and an application middle station mark; 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 return the target function visualization result to the client.
[0014] As another aspect of the present invention, an application platform is provided for implementing the above formula visualization method, including: A receiving module, used to receive the target function pseudo code sent by the computing center; The target function code execution chain creation module is used to create a target function code execution chain according to 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. A visualization module 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; Feedback module, used to return the visualization results of the objective function to the client.
[0015] As another aspect of the present invention, a formula generation system is provided, including a data middle station, the above-mentioned calculation middle station and the above-mentioned application middle station; The computing middle platform and the data middle platform are both connected to the application middle platform; The data center 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 based on 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 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.
[0016] The present invention obtains the target function pseudocode by converting 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 then returns it to the client, so that the user does not need to perform multiple steps in each sub-platform of the integrated technology platform when developing APP functions, nor does he 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 APP using the integrated technology platform, improving the efficiency and convenience of developing APP using the integrated technology platform, and optimizing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] 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.
[0018] Figure 1 A schematic diagram of a brief flow chart of the formula generation method provided by the present invention.
[0019] Figure 2 A brief flowchart of obtaining the pseudo code of the target function provided by the present invention.
[0020] Figure 3 A brief structural block diagram of the computing platform provided by the present invention.
[0021] Figure 4 It is a brief flow chart of the formula visualization method provided by the present invention.
[0022] Figure 5 It is a brief flowchart diagram of creating a target function code execution chain provided by the present invention.
[0023] Figure 6 It is a brief flowchart of the lexical analysis provided by the present invention.
[0024] 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.
[0025] Figure 8 It is an example diagram of constructing a target syntax tree provided by the present invention.
[0026] Fig. 9 It is a brief flowchart of constructing a target syntax tree provided by the present invention.
[0027] Fig.10 It is a brief structural block diagram of the application platform provided by the present invention.
[0028] Fig.11 It is a brief structural block diagram of the formula generation system provided by the present invention. DETAILED DESCRIPTION
[0029] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments 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.
[0030] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment 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 work should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to describe the embodiments of the present invention described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] The embodiment of the present invention provides a formula generation method, such as Figure 1 As shown, including: S100, obtaining business process description information input by the client; Specifically, in the embodiment of the present invention, the computing middle station 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 station for data processing and business orchestration in the embodiment of the present invention, and the "tiger talisman" refers to the data middle station used to store data.
[0033] 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 station mark, the middle station mark is used to indicate the middle station that provides resources, and the middle station mark includes a data middle station mark, a computing middle station mark, and an application middle station mark; 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).
[0034] Taking the business process description information of "querying the student scores in the Hufu A table and calculating the average value for the abacus" as an example, after character conversion processing, the pseudo code of the objective function obtained is supan(avg(hufu_table_select_score(A))). Among them, "supan" and "hufu" are the middle station marks, "supan" is specifically the calculation middle station mark, and "hufu" is specifically the data middle station mark. This example does not involve the application middle station mark. In the embodiment of the present invention, the application middle station mark is specifically "gonggong".
[0035] "suanpan()" indicates that the computing platform executes the flow calculation method to find the function execution template in the brackets, which in this case refers to the execution template of "avg()". "hufu" indicates calling the query service of the data platform to query the student scores in table A represented by the suffix "table_select_score(A)".
[0036] 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 according to 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.
[0037] Specifically, in the 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 according to 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.
[0038] In summary, the formula development method provided in the embodiment of the present invention is based on an integrated technology platform. The business process description information in natural language form input by the user is converted into characters by the computing middle platform to obtain the target function pseudocode. The application middle platform then creates a target function code execution chain according to the target function pseudocode and calls the corresponding middle platform resources according to the middle platform mark in the target function pseudocode to form a 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.
[0039] Furthermore, if Figure 2 As shown, the business process description information is subjected to character conversion processing to obtain the pseudo code of the target function, including; S210, extracting keywords from the business process description information, where the keywords at least include parameter names, operation information, and middle platform information; 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 taken as an example, and 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.
[0040] S220, mapping the keywords in the keyword library to obtain keyword pseudocode, 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; The keyword library is used to store the mapping relationship between keywords and keyword pseudocodes, and one or more keywords correspond to one keyword pseudocode.
[0041] 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 synonyms to each other. Similarly, a function name pseudocode may also correspond to multiple operation information that are synonyms to each other. The same is true for the middle platform information. Some users use "tiger talisman" in the business process description information, while some users are accustomed to using "data middle platform". Regardless of whether it is "data middle platform" or "tiger talisman", the corresponding data middle platform mark in the keyword library is "hufu".
[0042] Specifically, "tiger talisman", "A table", "score", "abacus" and "average value" are mapped in the keyword library 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()".
[0043] S230 , semantically sorting the keyword pseudocodes according to a preset pseudocode grammar logic to obtain a target function pseudocode.
[0044] 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 according to the overall needs of the customers of the platform itself.
[0045] Another embodiment of the present invention provides a computing platform 100 for implementing the above formula generation method, such as Figure 3 As shown, including: The information acquisition module 110 is used to acquire the business process description information input by the client; Specifically, in an embodiment of the present invention, the information acquisition module 110 of the computing center 100 in the integrated technology platform first obtains the business process description information input by the user from the client, where the business process description information is in natural language, for example: "Query the student scores in the Tiger A table and calculate the average value for the abacus."
[0046] 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, the target function pseudo code includes a middle station mark, the middle station mark is used to indicate the middle station for executing instructions, and the middle station mark includes a data middle station mark, a calculation middle station mark, and an application middle station mark; 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 (Dynamic Script Language). The target function pseudocode includes a middle station mark, which is used to indicate the middle station that executes the command, and its types include data middle station mark, computing middle station mark and application middle station mark.
[0047] The communication module 130 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 the target function visualization result of the target function code execution chain, and to return the target function visualization result to the client.
[0048] Specifically, after the embodiment of the present invention obtains the target function pseudocode, the target function pseudocode is sent to the application middle platform through the communication module 130. The application middle platform can create a target function code execution chain according to 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, to form a target function visualization result of the target function code execution chain, and return the target function visualization result to the client.
[0049] 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 obtains the target function pseudocode through the character conversion module 120, and finally sends the target function pseudocode to the application middle platform through the communication module 130, and then the application middle platform creates a target function code execution chain according to 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, so that when the user develops APP functions through the integrated technology platform, there is no need to perform multiple steps in the various sub-platforms of the integrated technology platform, nor 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 each sub-platform, greatly reducing the difficulty of developing APP using the integrated technology platform, improving the efficiency and convenience of developing APP using the integrated technology platform, and optimizing the user experience.
[0050] Another embodiment of the present invention provides a formula visualization method, such as Figure 4 As shown, including: A100, receiving the target function pseudo code sent by the computing center; A200. Create a target function code execution chain according to the target function pseudocode. The target function pseudocode includes a middle station tag. The middle station tag 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. Specifically, the application center builds a character stream according to the target function pseudocode sent by the computing center, 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.
[0051] A300, calling 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; 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, and renders the page effect according to the pre-set component type and the target function code execution chain, thereby forming a target function visualization result of the target function code execution chain.
[0052] A400, returning the visualization result of the objective function to the client.
[0053] Finally, the application middleware returns the visualization result of the objective function to the client.
[0054] 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 APP using the integrated technology platform, improves the efficiency and convenience of developing APP using the integrated technology platform, and optimizes the user experience.
[0055] Furthermore, if Figure 5 As shown, the target function code execution chain is created according to the target function pseudo code, including: A210, 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 pseudocode and function name tokens corresponding to the function name pseudocode; 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 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.
[0056] A220, perform syntax analysis on the execution code token to obtain a target syntax tree; Specifically, in an embodiment of the present invention, either an independent syntactic analyzer (Syntactic analysis, referred to as 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 grammar rules. The preset grammar rules here refer to the grammar rules obtained after the syntactic analyzer or the AI intelligent analysis model is trained by the technical developers of the integrated technology platform according to the overall needs of the customers that the platform itself is facing.
[0057] A230. Create a target function code execution chain based on the target syntax tree.
[0058] 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.
[0059] Still taking "query the student scores in table A of Hufu and calculate 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.
[0060] Furthermore, if Figure 6 , Figure 8 and Fig. 9 As shown, the pseudo code of the target function is lexically analyzed to obtain several execution code tokens, including: A211. Mapping the parameter name pseudocode in the execution code notation library to obtain the parameter name notation; 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.
[0061] Specifically, the parameter name pseudocode in the target function pseudocode is mapped according to the 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.
[0062] A212, mapping the function name pseudocode in the execution code notation library to obtain the function name notation; 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.
[0063] Taking the target function pseudo code supan(avg(hufu_table_select_score(A))) corresponding to the business process description information of "query the student scores in the Hufu A table and calculate the average value for the abacus" as an example, first disassemble the character stream to obtain "suanpan()", "avg()" and "hufu_table_select_score()", and map the disassembly results in the execution code token library to obtain the corresponding execution code tokens as follows: supan() corresponds to: / fusion / sp / app / node / postData(@RequestBody SpAppNodeDataPostParamparam); avg() corresponds to: com.xuelangyun.common.rule.fx.function.hf.math.avg(context, list); hufu_table_select_score() corresponds to: com.xuelangyun.common.rule.fx.function.hf.HFSelect(tableName).
[0064] Furthermore, a target function code execution chain is created according to the target syntax tree, including: A231. Traverse the target syntax tree to map and assemble the execution code token code to obtain the target function code execution chain.
[0065] 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 then build an executor according to the target function code execution chain and return the monitoring result.
[0066] Furthermore, if Figure 7 As shown, 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: A310, call the corresponding middle station resource according to the middle station mark and assign it to the target function code execution chain; In an embodiment of the present invention, the application execution calling function of the computing platform abacus and the data platform tiger symbol has been pre-integrated in the application platform co-worker. Taking "querying the student scores in the tiger symbol A table and calculating the average value for the abacus" as an example, the application platform co-worker first calls the hufu_table_select_score() function to query the A table data in the data platform tiger symbol according to the platform mark hufu, and then executes the avg() function to aggregate the A table data to calculate the average value. Here, according to the platform mark suanpan, it can be seen that the avg() function is integrated in the computing platform calculation, so it is necessary to execute the suanpan() application scheduling function first, and send the avg() function to be executed to the computing platform abacus for scheduling. It should be understood that several function methods are pre-built and registered in the computing platform, such as digital functions, text functions, date functions, logical functions, and resource functions.
[0067] A320, dynamically compile the target function code execution chain and form a target function visualization result of the target function code execution chain.
[0068] 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.
[0069] Another embodiment of the present invention provides an application platform 200 for implementing the above formula visualization method, such as Fig.10 As shown, including; The receiving module 210 is used to receive the target function pseudo code sent by the computing center; Specifically, the receiving module 210 in the application center receives the target function pseudo code sent by the calculation center.
[0070] 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, the target function pseudo code includes a middle station mark, the middle station mark is used to indicate the middle station that provides resources, and the middle station mark includes a data middle station mark, a computing middle station mark, and an application middle station mark; Specifically, the target function code execution chain creation module 220 in the application center constructs a character stream according to 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 according to the parsing results.
[0071] A visualization module 230 is used to call the corresponding middle station resources according to the middle station mark to form a target function visualization result of the target function code execution chain; 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.
[0072] The feedback module 240 is used to return the visualization result of the objective function to the client.
[0073] Finally, the feedback module 240 in the application center returns the objective function visualization result to the client.
[0074] 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 APP using the integrated technology platform, improves the efficiency and convenience of developing APP using the integrated technology platform, and optimizes the user experience.
[0075] Another embodiment of the present invention provides a formula generation system 001, such as Fig.11 As shown, it includes a data middle station 300, the above-mentioned computing middle station 100 and the above-mentioned application middle station 200; The computing platform 100 and the data platform 300 are both connected to the application platform 200 for communication; The data center 300 is used to store data; 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; 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 return the target function visualization result to the client after forming the target function visualization result of the target function code execution chain.
[0076] The computing middle platform 100 in the formula generation system 001 provided in the embodiment of the present invention can generate a 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 a target function code execution chain, and calls the corresponding middle platform resources according to the middle platform mark in the target function pseudocode to form a target function visualization result of the target function code execution chain and returns it to the user. There is no need for the user to learn special grammar rules in depth, nor is there any need for the user 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.
[0077] The specific working principle and effect of the formula generation system in 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.
[0078] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these 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 pseudo code, wherein the target function pseudo code includes a middle station mark, and the middle station mark is used to indicate a middle station that provides resources, and the middle station mark includes a data middle station mark, a computing middle station mark, and an application middle station mark; The target function pseudocode is sent 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 return the target function visualization result to the client.
2. The method according to claim 1, characterized in that The character conversion process is performed on the business process description information to obtain the pseudo code of the target function, including: Extracting keywords from the business process description information, wherein the keywords include at least parameter name, operation information, and middle platform information; Mapping the keyword in the keyword library to obtain a 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 library is used to store the mapping relationship between keywords and keyword pseudocodes, and one or more keywords correspond to one keyword pseudocode.
3. A formula visualization method, characterized in that: include: Receive the target function pseudo code sent by the computing center; Create a target function code execution chain according to the target function pseudo code, wherein the target function pseudo code includes a middle station mark, the middle station mark is used to indicate the middle station that provides resources, and the middle station mark includes a data middle station mark, a computing middle station mark, and an application middle station mark; 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; The objective function visualization result is returned to the client.
4. The method according to claim 3, characterized in that The step of creating a target function code execution chain according to the target function pseudo code comprises: Performing lexical analysis on the target function pseudocode to obtain a number of execution code tokens, wherein the execution code tokens at least include parameter name tokens corresponding to the parameter name pseudocode and function name tokens corresponding to the function name pseudocode; 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.
5. The method according to claim 4, 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.
6. The method according to claim 4, 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.
7. The method according to claim 3, 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: Call the corresponding middle station resource according to the middle station mark and assign it 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.
8. A computing platform, used to implement the formula generation method according to claim 1 or 2, characterized in that: include: The information acquisition module is used to obtain the business process description information input by the client; A character conversion module, used to perform character conversion processing on the business process description information to obtain a target function pseudo code, wherein the target function pseudo code includes a middle station mark, and the middle station mark is used to indicate the middle station that provides resources, and the middle station mark includes a data middle station mark, a computing middle station mark, and an application middle station mark; 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.
9. An application platform for implementing the formula visualization method according to any one of claims 3 to 7, characterized in that: include: A receiving module, used to receive the target function pseudo code sent by the computing center; A target function code execution chain creation module, used to create a target function code execution chain according to the target function pseudo code, wherein the target function pseudo code includes a middle station mark, and the middle station mark is used to indicate the middle station that provides resources, and the middle station mark includes a data middle station mark, a computing middle station mark, and an application middle station mark; A visualization module 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; The feedback module is used to return the visualization result of the objective function to the client.
10. A formula generation system, characterized in that: Including the data middle station, the computing middle station in claim 8 and the application middle station in claim 9; The computing middle station and the data middle station are both communicatively connected to the application middle station; 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 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 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
Online design implementation method for computational formula based on Antlr
CN115525261A
Code generation method and device and storage medium
CN115878120A
Business logic object processing method and device, electronic equipment and storage medium
CN116931920A
CAE solver adaptation method and device, electronic equipment and computer readable storage medium
CN117519720A
