CN116974579A - Project code generation method, device, equipment and medium of low code platform - Google Patents

Project code generation method, device, equipment and medium of low code platform Download PDF

Info

Publication number
CN116974579A
CN116974579A CN202311078699.9A CN202311078699A CN116974579A CN 116974579 A CN116974579 A CN 116974579A CN 202311078699 A CN202311078699 A CN 202311078699A CN 116974579 A CN116974579 A CN 116974579A
Authority
CN
China
Prior art keywords
project
flow
code
information
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311078699.9A
Other languages
Chinese (zh)
Inventor
赵泽钰
龚少波
张郑
李恩浩
林乃泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Shiqu Information Technology Co ltd
Original Assignee
Hangzhou Shiqu Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Shiqu Information Technology Co ltd filed Critical Hangzhou Shiqu Information Technology Co ltd
Priority to CN202311078699.9A priority Critical patent/CN116974579A/en
Publication of CN116974579A publication Critical patent/CN116974579A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/447Target code generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The application discloses a project code generation method, device, equipment and medium of a low code platform, and relates to the technical field of software development. The method comprises the following steps: acquiring a preset project drawing for generating project codes of a low-code platform; determining project configuration information and business flow information of a current project according to the preset project drawing; the project configuration information is used for generating a main body framework program of the current project based on the low-code platform; the business flow information is used for generating a business execution code program in the current project based on a large language model; the service execution code program comprises a flow trunk program and a flow node program; and generating the project code of the current project by using a main body framework program corresponding to the project configuration information and a flow trunk program and a flow node program corresponding to the business flow information. By the technical scheme, the project can be generated rapidly, and the generation work of the whole set of system codes of the low-code platform is completed.

Description

Project code generation method, device, equipment and medium of low code platform
Technical Field
The present invention relates to the field of software development technologies, and in particular, to a method, an apparatus, a device, and a medium for generating a project code of a low code platform.
Background
Currently in the software development industry, low code platforms prevail, low code being a method of generating applications using rules and predefined templates. This means that a developer can create complex applications in a very short time using a low code platform. When the low-code platform realizes the generation of the whole set of system codes, a set of configuration files are generally configured, and then a system or an execution service is generated based on the configuration files. However, the built-in template is not flexible enough, the problem of complex business cannot be solved, and the secondary transformation is difficult.
Therefore, how to provide a solution to the above technical problem is a problem that a person skilled in the art needs to solve at present.
Disclosure of Invention
In view of the above, the present invention aims to provide a method, an apparatus, a device, and a medium for generating project codes for a low-code platform, which can complete the generation of the whole set of system codes for the low-code platform, and is flexible and simple in secondary development, and can generate projects rapidly. The specific scheme is as follows:
In a first aspect, the application discloses a method for generating project codes of a low-code platform, which comprises the following steps:
acquiring a preset project drawing for generating project codes of a low-code platform;
determining project configuration information and business flow information of a current project according to the preset project drawing; the project configuration information is used for generating a main body framework program of the current project based on the low-code platform; the business process information is used for generating a business execution code program in the current project based on a large language model; the service execution code program comprises a flow trunk program and a flow node program;
and generating the project code of the current project by using a main body framework program corresponding to the project configuration information and a flow trunk program and a flow node program corresponding to the business flow information.
Optionally, the item configuration information includes: project configuration files, application variable configuration files, dependency configuration files, deployment configuration files, database script files, and resource files;
the project configuration file is used for recording basic information of a project and a technical framework for selecting the project; the application variable configuration file is used for distinguishing the running environment of the project by using a first data serialization language; the dependency profile is used for managing a third party package of the project dependencies based on the first data serialization language; the deployment configuration file is used for recording configuration information of the project and configuring the project state of the project according to the configuration information; the database script file is used for recording library information, table information and initialization data of the project; the resource file is used for managing resources used in the project operation.
Optionally, the business process information includes a process backbone and a process node;
the flow backbone is used for recording configuration from request to output in the execution flow by using a second data serialization language; the flow trunk comprises flow basic information, a flow trigger, a flow context and a flow execution link; the process basic information is used for recording basic characters related to the process; the flow trigger is used for recording the entry type, entry configuration, trigger template, request parameters and exit parameters of the flow; the flow context is used for providing independent data space for data synchronization, data sharing and data operation among different flow nodes; the flow execution link is used for expressing the flow nodes according to a preset combination rule;
the process nodes are used for describing different business logics by using natural language and storing the business logics in a pure text form, and combining different process trunks to generate target campt data.
Optionally, the method for generating the project code of the low code platform further includes:
determining a corresponding calling mode according to the entry type, and determining a trigger type of the flow trigger according to the calling mode; the calling mode comprises a hypertext transfer protocol type, a long connection, a remote procedure call type, a message queue, a timing task, an internal service and a static tool;
And determining corresponding entrance configuration and trigger templates according to the trigger types.
Optionally, after the obtaining the preset project drawing for generating the project code of the low-code platform, the method further includes:
creating a corresponding drawing folder for the preset project drawing in a preset project code warehouse;
and creating corresponding subfolders for each function file in the project configuration information and the business process information based on the drawing folders.
Optionally, the determining, according to the preset project drawing, project configuration information and business process information of the current project includes:
determining the business requirement of the current project according to the preset project drawing, and performing functional division according to the business requirement to obtain corresponding project configuration information;
and determining the business flow information of the current project according to the project configuration information.
Optionally, after the generating the project code of the current project by using the main body framework program corresponding to the project configuration information and the flow trunk program and the flow node program corresponding to the business flow information, the method further includes:
if a drawing multiplexing event exists currently, taking the preset project drawing as a reference drawing and determining target business flow information from a preset drawing flow library; the preset drawing flow library is used for storing different business flow information;
And merging the target business process information into the reference drawing by using a third data serialization language to obtain a target project drawing so as to generate a corresponding project code based on the target project drawing.
In a second aspect, the present application discloses a project code generating device of a low code platform, comprising:
the drawing acquisition module is used for acquiring a preset project drawing for generating project codes of the low-code platform;
the information determining module is used for determining project configuration information and business flow information of the current project according to the preset project drawing; the project configuration information is used for generating a main body framework program of the current project based on the low-code platform; the business process information is used for generating a business execution code program in the current project based on a large language model; the service execution code program comprises a flow trunk program and a flow node program;
and the code generation module is used for generating the project code of the current project by utilizing a main body framework program corresponding to the project configuration information and a flow trunk program and a flow node program corresponding to the business flow information.
In a third aspect, the present application discloses an electronic device comprising a processor and a memory; wherein the memory is for storing a computer program that is loaded and executed by the processor to implement the project code generation method of the low code platform as described above.
In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements the project code generation method of the low code platform as described above.
The application provides a project code generation method of a low code platform, which comprises the following steps: acquiring a preset project drawing for generating project codes of a low-code platform; determining project configuration information and business flow information of a current project according to the preset project drawing; the project configuration information is used for generating a main body framework program of the current project based on the low-code platform; the business process information is used for generating a business execution code program in the current project based on a large language model; the service execution code program comprises a flow trunk program and a flow node program; and generating the project code of the current project by using a main body framework program corresponding to the project configuration information and a flow trunk program and a flow node program corresponding to the business flow information. The beneficial technical effects of the application are as follows: the application sets the project drawing for the project code of the low code platform in advance, and the project drawing combines the advantages of the low code and the artificial intelligence: and generating a main body framework program of the current project by using project configuration information of the project drawing on the low-code platform, and generating a service execution code program comprising a flow trunk program and a flow node program in the current project by using service flow information of the project drawing through the large language model. It can be seen that the configuration function of the low code platform is not only undertaken, but also the software main body framework is supported; the artificial intelligence is integrated through a flow engine and a global configuration association mode, so that specific project codes are generated by using the associated contents in the projects. Further, item codes of the current item are generated based on the main body framework program and the service execution code program. Therefore, the generation work of the whole set of system codes can be completed by the self-defined analysis and execution tool based on the drawing, the system is flexible and simple in secondary development, and is extremely suitable for the enterprise-oriented software market at present.
In addition, the project code generating device and the project code generating storage medium of the low-code platform correspond to the project code generating method of the low-code platform, and the effects are the same as the above.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for generating project codes of a low code platform;
FIG. 2 is a schematic diagram of a data serialization language technique model selection in accordance with the present disclosure;
FIG. 3 is a schematic diagram of internal data in a flow context of the present disclosure;
FIG. 4 is a schematic diagram of a business process information disclosed in the present application;
FIG. 5 is a schematic diagram of a preset project drawing configuration disclosed by the application;
FIG. 6 is a schematic diagram of project code generation for a low code platform of the present disclosure;
FIG. 7 is a flowchart of a method for generating project code for a specific low code platform according to the present application;
FIG. 8 is a diagram showing the division of folders and files of a preset project drawing;
FIG. 9 is a flowchart of a method for generating project code for a specific low code platform according to the present application;
fig. 10 is a schematic diagram of a preset project drawing multiplexing process disclosed by the application;
FIG. 11 is a schematic diagram of a project code generating device of a low code platform according to the present application;
fig. 12 is a block diagram of an electronic device according to the present disclosure.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Currently, a low code platform typically develops a set of systems by first configuring a set of configuration files and then generating a system or executing a service based thereon. However, the built-in templates are not flexible enough, the problem of complex business cannot be solved, and the secondary transformation is difficult.
Therefore, the project code generation scheme of the low code platform can complete the generation work of the whole system code of the low code platform, is flexible and simple in secondary development, and can generate projects quickly.
The embodiment of the application discloses a project code generation method of a low code platform, which is shown in fig. 1 and comprises the following steps:
step S11: and acquiring a preset project drawing for generating the project code of the low-code platform.
In the embodiment of the application, a drawing system is preset for generating the project codes of the low-code platform, so that the brief description of a software system can be completed, and the project drawings of the system can be formed and can be understood as a set of configuration files. Based on the drawing, the subsequent custom analysis and execution tool for the drawing can be matched to completely generate the specific project code of the whole software system.
Step S12: determining project configuration information and business flow information of a current project according to the preset project drawing; the project configuration information is used for generating a main body framework program of the current project based on the low-code platform; the business process information is used for generating a business execution code program in the current project based on a large language model; the business execution code program comprises a flow trunk program and a flow node program.
In the embodiment of the application, a whole set of drawing system for presetting project drawings comprises project configuration information and business flow information. It should be noted that, the existing development concept according to the configuration file generally adopts a way of summarizing and abstracting while developing. In the application, the development thinking is changed into the development of firstly carding clearly and then writing based on the project of the project drawing. Therefore, the project configuration information and the business flow information of the current project are determined according to the preset project drawing.
It is appreciated that AI (Artificial Intelligence ) written code is currently getting more and more flexible enough in its capabilities. The system is converted from a prompt of human input natural language, and a storage system is used for storing the prompt, but the capability of AI writing codes is limited to generating local functional codes, and the capability of producing a set of systems is not complete due to lack of relevance of the prompt. In the embodiment of the application, the drawing system of the preset project drawing combines the advantages of the low-code platform and the AI, so that the low-code platform and the AI are complementary with each other: the framework system and the high-efficiency execution logic are stabilized by utilizing the low code, and the configuration function similar to a low code platform is born to prop up the software main body framework; the AI is also utilized to simplify the coding flow and automatically output, and the scattered AI templates are integrated through a flow engine and a global configuration association mode, so that when the AI is utilized to generate codes, the codes are not split any more, and the contents associated in the projects can be used to generate specific service code fragments.
In the embodiment of the application, the specific contents of the project configuration information and the business flow information mainly use a data serialization language, and the auxiliary collocation general text is stored in the file. The data serialization language technical option for the use of project configuration information and business process information in the preset project drawing is shown in fig. 2, and includes, but is not limited to, XML (Extensible Markup Language ), JSON (JavaScript Object Notation, JS object profile), YAML (YAML Ain't a Markup Language, another markup language). The three formats are similar in function, and the development of the preset project drawing can be realized, but the YAML is simpler and clearer in form, and meanwhile, the information entropy is lowest, so that the method is more suitable for controlling entropy increase and is more suitable for the indirect purpose of meeting the requirements of people. Therefore, it is preferable to use YAML as an example for explanation.
In a specific embodiment, the project configuration information is used to generate a subject framework program for the current project based on the low code platform. Comprising the following steps: project profiles, application variable profiles, dependency profiles, deployment profiles, database script files, and resource files.
The project configuration file is used for recording basic information of the project, technical frames of the project selection and the like, is an outer layer configuration of the project, and is used for setting a lower key for project main body information and the technical selection.
The application variable profile is used to distinguish the operating environment of the project using a first data serialization language, typically of the YAML type. Project operating environments distinguished by application variable configuration files are classified into test variable configuration, off-line variable configuration, production variable configuration and the like. Typically, the system will distinguish between the operating environments and selectively load in the boot parameters. When different technical frameworks are used, the application variable configuration file under the configuration information of the drawing project is automatically converted into the configuration file of the corresponding framework, and the application variable configuration file can be effective. For example, using a Spring Boot framework (an open source application framework on a Java platform), the content of the application variable configuration file is converted into YAML format, corresponding to the generation of application-test. Yml, application-dev. Yml, application-prod. Yml configuration files.
The dependency profile is used to manage third party packages of the project dependencies based on the first data serialization language, which likewise typically uses YAML types. It should be noted that, the dependency configuration file under the project configuration information of the drawing and the project configuration file and the deployment configuration file can be converted into the configuration file of the corresponding framework. Such as the pon.xml file of the java maven project, and the package.json file of nodejs.
The deployment configuration file is used for recording configuration information of the project and configuring the project state of the project according to the configuration information. It should be noted that, the deployment configuration file may record configuration such as related scripts or commands of the project, and is responsible for project startup, project shutdown, and the like according to the configuration information. The deployment configuration file under the configuration information of the drawing item can be converted into the configuration file of the corresponding frame, the deployment script of the item and the like by combining with other drawing files.
The database script file is used for recording library information, table information and initialization data of the item. It can be seen that the database script file (SQL (Structured Query Language, structured query language) file) is responsible for the initial database file to which the project belongs, and is generally applied to the backend software drawings. The database script file under the configuration information of the drawing project is analyzed, and all files related to ORM (Object Relational Mapping, object relation mapping) can be automatically generated for the back-end application by utilizing the low-code capability, so that a great deal of manpower is saved.
The resource file is used for managing resources used in the project operation. Belonging to resource files such as pictures, music and the like which are needed to be used when the project runs.
In another specific embodiment, the business process information is used for generating a business execution code program in the current project based on a large language model; the business execution code program comprises a flow trunk program and a flow node program. The business process information comprises a process trunk and a process node, and a process trunk program and a process node program can be correspondingly generated through the process trunk and the process node.
The flow backbone is used for recording the configuration from the request to the output in the execution flow by using the second data serialization language, namely, the backbone configuration from the request to the output of the program execution flow is completed by using the data serialization language. The flow trunk comprises flow basic information, a flow trigger, a flow context and a flow execution link; the flow trunk under the business flow information of the drawing is analyzed, and the capability of a low-code platform is matched, so that trigger codes with stable standard and reasonable functions, definition codes of access parameters, definition codes of flow contexts and the like can be generated by one key.
The process basic information is used for recording basic characters related to the process; such as recording flow names, description documents, version information, etc.
The flow trigger is used for recording the entry type, entry configuration, trigger template, request parameters and exit parameters of the flow; the flow trigger is a concept of an entry, is a portal, is a starting point of a small service function, and is one of a plurality of starting points of a complete service function. It should be noted that the flow trigger is the core of the flow backbone, and records the entry type, entry configuration, trigger template, request parameters and exit parameters of the flow. Different calling modes correspond to different trigger types, and corresponding entry configurations of the flow triggers and trigger templates are generally determined according to the trigger types. Specifically, a corresponding calling mode is determined according to the entry type, and the trigger type of the flow trigger is determined according to the calling mode; the call modes comprise a hypertext transfer protocol (Hypertext Transfer Protocol, HTTP) type, a long connection, a remote procedure call (Remote Procedure Call, RPC) type, a message queue, a timing task, an internal service and a static tool; and determining corresponding entrance configuration and trigger templates according to the trigger types. In addition, each of the trigger types has a corresponding entry configuration, such as Http type, where the entry configuration may be URL (Uniform Resource Locator ) path, get or Post definition, and so on. Each type of trigger needs to select a trigger template, namely a technical selection type, and different technical selection types mean different calling modes, such as RPC types, and more common frames, such as GRPC, dubbo, thrift, can be selected, and the selected template is related with a prepared standard trigger code at the back.
The flow context is used for providing independent data space for data synchronization, data sharing and data operation among different flow nodes; the internal data in the flow context is shown in fig. 3 and is divided into raw parameters and process parameters.
The flow execution link is used for expressing the flow nodes according to a preset combination rule; namely, the scattered nodes are expressed according to a certain combination rule, so that the program can run correctly under the flow trunk. The specific combination rules can use some expression methods of open sources on the market, and can be customized according to requirements, and are not particularly limited herein.
Further, the process node is configured to describe different business logic by using natural language and save the business logic in a plain text form, and combine different process trunks to generate target campt data. The flow nodes are belonged to a certain flow trunk through the organization of the flow execution links. The biggest feature of the flow node is that natural language is used for describing specific business logic on the content, and the business logic is stored in a pure text form. The content of the flow node can be combined with not only the main flow information, but also other main flow information and project information, so that the associated information is further complemented to generate a complete AI template, and then a specific code is automatically generated. The structure of the complete target sample data synthesized on the basis of the content of the flow node can refer to the AI sample engineering on the market. The accuracy of the specific code generation depends on the content accuracy of natural language description, the accuracy of project associated information and the accuracy of the code generation of a large language model, but the maximum effect is that the development time is saved on the premise of sufficiently accurate prompting.
Fig. 4 shows an overall architecture of business process information, and the details of which refer to the foregoing embodiments, and are not described herein.
Step S13: and generating the project code of the current project by using a main body framework program corresponding to the project configuration information and a flow trunk program and a flow node program corresponding to the business flow information.
In the embodiment of the application, after the main body framework program and the flow node program respectively corresponding to the current project are determined, the project codes of the current project are generated by utilizing the main body framework program and the flow node program. It should be noted that, because the project configuration information and the business process information under the preset project drawing correspond to different functional modules respectively, when the preset project drawing is created, project basic information needs to be filled in, then a basic folder and a template file are created by combining the rule based on the folder and the file division, and then the filled project basic information is written into the project basic configuration, namely, the initialization operation of creating the drawing is completed.
An overall schematic of the drawing configuration is shown in fig. 5. After the initialization of the drawing is completed, operations of other files, such as placing a database file, placing a resource file, placing a deployment file and most important project development, can be optionally performed. As can be seen from the foregoing embodiments, in the development process of the present application, the way of summarizing the abstract while developing is converted into the first carding and then pen-down development, so that the current project of the preset project drawing is based on the current project, the functional modules are firstly divided by carding the service requirement, and then the flow to be developed, the division of the flow nodes and the functional content of the single node are confirmed.
Specifically, determining the service requirement of the current project according to the preset project drawing, and performing functional division according to the service requirement to obtain corresponding project configuration information; and determining the business flow information of the current project according to the project configuration information. It should be noted that, in the drawing, the operation of confirming that the flow to be developed is converted into the drawing system is that the flow file is created and the content of the flow file is written; the operation of confirming the division of the flow nodes and converting the division into a drawing system is that a node file is created; the operation of confirming the conversion of the functional content of the single node to the drawing system is to write the node content.
FIG. 6 is a schematic diagram of an overall framework for generating project codes from project drawings. Based on the drawing, the self-defined analysis and execution tool can complete the generation work of the whole set of system codes, and the system is flexible and simple in secondary development. Based on the drawing, the project can be quickly generated by simple modification, the reusability is high, the adjustment is simple, the method is most suitable for the application of the back-end development direction in the software field, and the method is extremely suitable for the TOB (TO Business) software market at present, which provides services for enterprises. Typically, a software application corresponds to a drawing.
The application provides a project code generation method of a low code platform, which comprises the following steps: acquiring a preset project drawing for generating project codes of a low-code platform; determining project configuration information and business flow information of a current project according to the preset project drawing; the project configuration information is used for generating a main body framework program of the current project based on the low-code platform; the business process information is used for generating a business execution code program in the current project based on a large language model; the service execution code program comprises a flow trunk program and a flow node program; and generating the project code of the current project by using a main body framework program corresponding to the project configuration information and a flow trunk program and a flow node program corresponding to the business flow information. The beneficial technical effects of the application are as follows: the application sets the project drawing for the project code of the low code platform in advance, and the project drawing combines the advantages of the low code and the artificial intelligence: and generating a main body framework program of the current project by using project configuration information of the project drawing on the low-code platform, and generating a service execution code program comprising a flow trunk program and a flow node program in the current project by using service flow information of the project drawing through the large language model. It can be seen that the configuration function of the low code platform is not only undertaken, but also the software main body framework is supported; the artificial intelligence is integrated through a flow engine and a global configuration association mode, so that specific project codes are generated by using the associated contents in the projects. Further, item codes of the current item are generated based on the main body framework program and the service execution code program. Therefore, the generation work of the whole set of system codes can be completed by the self-defined analysis and execution tool based on the drawing, the system is flexible and simple in secondary development, and is extremely suitable for the enterprise-oriented software market at present.
The embodiment of the application discloses a specific project code generation method of a low-code platform, which is shown in fig. 7, and after a preset project drawing for generating the project code of the low-code platform is obtained, the method further comprises the following steps:
step S21: and creating a corresponding drawing folder for the preset project drawing in a preset project code warehouse.
Step S22: and creating corresponding subfolders for each function file in the project configuration information and the business process information based on the drawing folders.
In the embodiment of the application, clear folder and file division are provided for ensuring standard unification. Firstly, creating a corresponding drawing folder for the preset project drawing in a preset project code warehouse. The drawing folder is arranged in the project code warehouse to be managed together with the project codes, and the subfolders and the files in the drawing folder are the whole drawing. As shown in fig. 8, the drawing folder is a drawing folder corresponding to a current preset project drawing. Preferably, the division is performed by taking the YAML file as an example. It is understood that the YAML file may be equivalently replaced by an XML file or a JSON file, which is not specifically limited herein, but is illustrated by way of example only.
In the embodiment of the application, various subfolders under the drawing folder respectively correspond to the project configuration information and the function files in the business process information. For example, a drawing/modules folder is in the form of multiple modules under which multiple modules can be prevented, and the subfolder is the module name. And the module folder is used for placing the business process file under the module folder. The business flow under each model is divided into small-segment or large-segment complete functions, and similar merging is carried out by different types of the division of the entry layers in a calling mode, wherein the similar merging comprises HTTP (HTTP interface), pc (long connection), RPC (RPC interface), MQ (Message Queue entry), schedule (timing task entry), inner (system internal interface) and utils tool entry. Under the above-mentioned file folder of each type of calling mode, several specific processes can be placed, and its subfolder name is the process name.
The contents of each specific flow described above are under the folder named by the flow name. The content of each specific flow is divided into a flow trunk and flow nodes, which correspond to the flow. Yaml file and the node folder respectively. Fragment logic in the business process is placed in the node folder, and each fragment logic is recorded in a corresponding xxxnode. Yaml file in natural language; a template folder is also arranged in the node folder and is used for storing the complete template synthesized based on the fragment logic of the node and used for calling the AI, and the file name of the template folder is consistent with the file name of the node, but the suffix of the template folder is changed to the template.
The drawing/resources resource folder stores resource files, such as pictures, music and other files, which need to be used when the project runs, and has no hard file format requirement. And placing a database initialization related file in the database folder of the drawing/database. The above-mentioned drawing/deployment folder places application start-stop scripts, health check scripts, dock related scripts, etc. The drawing/config configuration folder is used for placing project basic configuration project. Yaml files, dependency configuration. Yaml files and application variable configuration folders. The application variable configuration folder is used for placing configuration files for distinguishing environments, wherein the configuration files comprise application. Yaml, application-local. Yaml, application-dev. Yaml, application-pro. Yaml and application-prod. Yaml.
The embodiment of the application discloses a specific project code generation method of a low-code platform, referring to fig. 9, after the project code of the current project is generated by using a main body framework program corresponding to the project configuration information and a flow trunk program and a flow node program corresponding to the business flow information, the method further comprises the following steps:
step S31: if a drawing multiplexing event exists currently, taking the preset project drawing as a reference drawing and determining target business flow information from a preset drawing flow library; the preset drawing flow library is used for storing different business flow information.
Step S32: and merging the target business process information into the reference drawing by using a third data serialization language to obtain a target project drawing so as to generate a corresponding project code based on the target project drawing.
In the embodiment of the application, a multiplexing flow of drawings is described. And storing the created different project drawings in a drawing project library, and when the drawings need to be reused, firstly screening out a drawing from the drawing project library as a reference drawing. In the embodiment of the present application, the preset project drawing is used as the reference drawing, and a cycle operation follows, as shown in fig. 10. And screening a process from the drawing process library, and merging the configuration related to the process into a reference drawing based on the structured language. Based on the flow, the multiplexing of the drawing is completed. Therefore, the project can be quickly generated based on simple modification of the drawing, the reusability is high, the adjustment is simple, and the method is extremely suitable for the TOB software market at present.
Correspondingly, the embodiment of the application also discloses a project code generating device of the low code platform, which is shown in fig. 11, and comprises the following steps:
a drawing acquisition module 11, configured to acquire a preset project drawing for generating a project code of a low-code platform;
The information determining module 12 is configured to determine item configuration information and business process information of a current item according to the preset item drawing; the project configuration information is used for generating a main body framework program of the current project based on the low-code platform; the business process information is used for generating a business execution code program in the current project based on a large language model; the service execution code program comprises a flow trunk program and a flow node program;
the code generating module 13 is configured to generate the item code of the current item by using a main body framework program corresponding to the item configuration information and a flow trunk program and a flow node program corresponding to the business flow information.
The more specific working process of each module may refer to the corresponding content disclosed in the foregoing embodiment, and will not be described herein.
It can be seen that by the above scheme of the present embodiment, it includes: acquiring a preset project drawing for generating project codes of a low-code platform; determining project configuration information and business flow information of a current project according to the preset project drawing; the project configuration information is used for generating a main body framework program of the current project based on the low-code platform; the business process information is used for generating a business execution code program in the current project based on a large language model; the service execution code program comprises a flow trunk program and a flow node program; and generating the project code of the current project by using a main body framework program corresponding to the project configuration information and a flow trunk program and a flow node program corresponding to the business flow information. The beneficial technical effects of the application are as follows: the application sets the project drawing for the project code of the low code platform in advance, and the project drawing combines the advantages of the low code and the artificial intelligence: and generating a main body framework program of the current project by using project configuration information of the project drawing on the low-code platform, and generating a service execution code program comprising a flow trunk program and a flow node program in the current project by using service flow information of the project drawing through the large language model. It can be seen that the configuration function of the low code platform is not only undertaken, but also the software main body framework is supported; the artificial intelligence is integrated through a flow engine and a global configuration association mode, so that specific project codes are generated by using the associated contents in the projects. Further, item codes of the current item are generated based on the main body framework program and the service execution code program. Therefore, the generation work of the whole set of system codes can be completed by the self-defined analysis and execution tool based on the drawing, the system is flexible and simple in secondary development, and is extremely suitable for the enterprise-oriented software market at present.
Further, the embodiment of the present application further discloses an electronic device, and fig. 12 is a block diagram of an electronic device 20 according to an exemplary embodiment, where the content of the figure is not to be considered as any limitation on the scope of use of the present application.
Fig. 12 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein the memory 22 is used for storing a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the project code generation method of the low code platform disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be a computer.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon may include an operating system 221, a computer program 222, data 223, and the like, and the data 223 may include various data. The storage means may be a temporary storage or a permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and computer programs 222, which may be Windows Server, netware, unix, linux, etc. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the project code generation method of the low code platform executed by the electronic device 20 as disclosed in any of the previous embodiments.
Further, embodiments of the present application also disclose a computer readable storage medium, where the computer readable storage medium includes random access Memory (Random Access Memory, RAM), memory, read-Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, magnetic disk, or optical disk, or any other form of storage medium known in the art. The computer program, when executed by the processor, implements the project code generation method of the low code platform. For specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
The steps of a method or algorithm for generating project code for a low code platform described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The method, the device, the equipment and the medium for generating the project code of the low code platform provided by the invention are described in detail, and specific examples are applied to the explanation of the principle and the implementation mode of the invention, and the explanation of the above examples is only used for helping to understand the method and the core idea of the invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (10)

1. A project code generation method of a low code platform, comprising:
acquiring a preset project drawing for generating project codes of a low-code platform;
determining project configuration information and business flow information of a current project according to the preset project drawing; the project configuration information is used for generating a main body framework program of the current project based on the low-code platform; the business process information is used for generating a business execution code program in the current project based on a large language model; the service execution code program comprises a flow trunk program and a flow node program;
And generating the project code of the current project by using a main body framework program corresponding to the project configuration information and a flow trunk program and a flow node program corresponding to the business flow information.
2. The item code generation method of a low code platform according to claim 1, wherein the item configuration information comprises: project configuration files, application variable configuration files, dependency configuration files, deployment configuration files, database script files, and resource files;
the project configuration file is used for recording basic information of a project and a technical framework for selecting the project; the application variable configuration file is used for distinguishing the running environment of the project by using a first data serialization language; the dependency profile is used for managing a third party package of the project dependencies based on the first data serialization language; the deployment configuration file is used for recording configuration information of the project and configuring the project state of the project according to the configuration information; the database script file is used for recording library information, table information and initialization data of the project; the resource file is used for managing resources used in the project operation.
3. The method for generating project codes for low-code platforms according to claim 1, wherein said business process information comprises a process backbone and process nodes;
the flow backbone is used for recording configuration from request to output in the execution flow by using a second data serialization language; the flow trunk comprises flow basic information, a flow trigger, a flow context and a flow execution link; the process basic information is used for recording basic characters related to the process; the flow trigger is used for recording the entry type, entry configuration, trigger template, request parameters and exit parameters of the flow; the flow context is used for providing independent data space for data synchronization, data sharing and data operation among different flow nodes; the flow execution link is used for expressing the flow nodes according to a preset combination rule;
the process nodes are used for describing different business logics by using natural language and storing the business logics in a pure text form, and combining different process trunks to generate target campt data.
4. The item code generation method of a low code platform according to claim 3, further comprising:
Determining a corresponding calling mode according to the entry type, and determining a trigger type of the flow trigger according to the calling mode; the calling mode comprises a hypertext transfer protocol type, a long connection, a remote procedure call type, a message queue, a timing task, an internal service and a static tool;
and determining corresponding entrance configuration and trigger templates according to the trigger types.
5. The method for generating item codes for a low-code platform according to claim 1, further comprising, after the obtaining of the preset item drawing for generating the item codes for the low-code platform:
creating a corresponding drawing folder for the preset project drawing in a preset project code warehouse;
and creating corresponding subfolders for each function file in the project configuration information and the business process information based on the drawing folders.
6. The method for generating project codes of low-code platform according to claim 1, wherein said determining project configuration information and business process information of a current project according to the preset project drawing comprises:
determining the business requirement of the current project according to the preset project drawing, and performing functional division according to the business requirement to obtain corresponding project configuration information;
And determining the business flow information of the current project according to the project configuration information.
7. The method according to any one of claims 1 to 6, wherein after the generating the item code of the current item using the main body framework program corresponding to the item configuration information and the flow backbone program and the flow node program corresponding to the business flow information, further comprises:
if a drawing multiplexing event exists currently, taking the preset project drawing as a reference drawing and determining target business flow information from a preset drawing flow library; the preset drawing flow library is used for storing different business flow information;
and merging the target business process information into the reference drawing by using a third data serialization language to obtain a target project drawing so as to generate a corresponding project code based on the target project drawing.
8. An item code generation apparatus of a low code platform, comprising:
the drawing acquisition module is used for acquiring a preset project drawing for generating project codes of the low-code platform;
the information determining module is used for determining project configuration information and business flow information of the current project according to the preset project drawing; the project configuration information is used for generating a main body framework program of the current project based on the low-code platform; the business process information is used for generating a business execution code program in the current project based on a large language model; the service execution code program comprises a flow trunk program and a flow node program;
And the code generation module is used for generating the project code of the current project by utilizing a main body framework program corresponding to the project configuration information and a flow trunk program and a flow node program corresponding to the business flow information.
9. An electronic device comprising a processor and a memory; wherein the memory is for storing a computer program that is loaded and executed by the processor to implement the project code generation method of the low code platform of any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program; wherein the computer program, when executed by a processor, implements the project code generation method of the low code platform of any one of claims 1 to 7.
CN202311078699.9A 2023-08-24 2023-08-24 Project code generation method, device, equipment and medium of low code platform Pending CN116974579A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311078699.9A CN116974579A (en) 2023-08-24 2023-08-24 Project code generation method, device, equipment and medium of low code platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311078699.9A CN116974579A (en) 2023-08-24 2023-08-24 Project code generation method, device, equipment and medium of low code platform

Publications (1)

Publication Number Publication Date
CN116974579A true CN116974579A (en) 2023-10-31

Family

ID=88475080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311078699.9A Pending CN116974579A (en) 2023-08-24 2023-08-24 Project code generation method, device, equipment and medium of low code platform

Country Status (1)

Country Link
CN (1) CN116974579A (en)

Similar Documents

Publication Publication Date Title
CN108037961B (en) Application program configuration method, device, server and storage medium
US9916137B2 (en) Rest service source code generation
CN108964968B (en) Service access management method and system in container cloud environment
US7814404B2 (en) System and method for applying workflow of generic services to component based applications for devices
US7886278B2 (en) Object reference monitoring
CN102566984B (en) Method and device for configuring parameters
CN103645951A (en) Cross-platform mobile data management system and method
WO2007117474A2 (en) Service-oriented computer architecture for statistically based analysis tasks
US20090187927A1 (en) Method for invoking UOML instructions
CN113467972A (en) Communication interface construction method, communication interface construction device, computer equipment and storage medium
US8972487B2 (en) Automated framework for testing enterprise services consumer technologies
US9996344B2 (en) Customized runtime environment
US7784024B2 (en) Program creating system, program creating program, and program creating module
CN109116828A (en) Model code configuration method and device in a kind of controller
US20070168911A1 (en) Program creating system, program creating program, and program creating module
Queirós Kaang: a restful api generator for the modern web
CN116974579A (en) Project code generation method, device, equipment and medium of low code platform
CN111143310A (en) Log recording method and device and readable storage medium
Schuette et al. Exploiting instruction-level resource parallelism for transparent, integrated control-flow monitoring
CN113342399A (en) Application structure configuration method and device and readable storage medium
US11966719B2 (en) Event consumption for high-level programing language platform
US20240036946A1 (en) Event provisioning for high-level programing language platform
CN114625377A (en) Frame item conversion method, frame item conversion device, equipment and storage medium
Candillon et al. XQuery Design Patterns
CN117539904A (en) Search engine processing method, device, computer equipment and storage medium

Legal Events

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