Code generation method and device, electronic equipment, product and storage medium

By inputting requirement documents into the graph neural network model to generate business process diagrams, and generating process codes based on code generation strategies, the problem of being unable to flexibly respond to complex business processes in existing technology is solved, and a high degree of consistency and development between code and requirements is achieved. Improvement of efficiency.

CN118796203APending Publication Date: 2024-10-18CHINA MOBILE GRP BEIJING +1
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410989245.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

When faced with complex and changeable end-to-end business processes, the existing technology cannot flexibly respond to special requirements and unconventional processes. As a result, the generated code cannot accurately reflect business needs, and there is a problem that the code is inconsistent with the needs.

Method used

By inputting requirement documents into the graph neural network model, a business process diagram is generated, and process codes that meet the requirements are generated based on the code generation strategy, including page flow diagrams and service flow diagrams, reducing manual intervention and improving development efficiency and accuracy.

Benefits of technology

The code generation method has been implemented to better adapt to new scenarios and changing business needs, improve the efficiency and accuracy of the code, ensure that the generated code is consistent with business needs, and reduce the inconsistency between code and needs caused by manual errors in traditional methods. problem.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796203A_ABST
    Figure CN118796203A_ABST
Patent Text Reader

Abstract

The invention provides a code generation method and device, electronic equipment, a product and a storage medium, and relates to the technical field of code generation. The method comprises the steps that a demand document is input into a graph neural network model, a business flow chart output by the graph neural network model is obtained, and the business flow chart comprises at least one of a page flow chart and a service flow chart; a code generation strategy is obtained, a process code meeting the requirement is generated based on the code generation strategy and the service flow chart, the code generation strategy is a rule needing to be followed in the code generation period, the page flow chart is used for generating a front-end code, and the service flow chart is used for generating a rear-end code. According to the method, complex and changeable business processes can be processed, special requirements and unconventional processes can be handled, and the code generation efficiency and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of code generation, and in particular to a code generation method, device, electronic equipment, product and storage medium. Background Art

[0002] With the rapid development of information technology, automated code generation technology has become increasingly important in the field of software development. The key to this technology is to predefine a series of rules and templates for use when needed. In business application development or specific business scenarios, automated code generation mainly focuses on obtaining text information input by users, determining the corresponding business scenario template based on the text information, and generating code files based on the text information and the business scenario template. This technology can significantly reduce software development costs and improve development efficiency. Using existing model templates to generate code, these methods perform well in standardized and relatively simple business processes, providing strong support for software developers.

[0003] However, the challenge faced by the software development field is to deal with complex and ever-changing end-to-end business processes. Although existing technologies have made progress in some aspects, there are still some challenges and limitations when facing end-to-end business. Rule- and template-based methods limit their ability to adapt to new scenarios or changes, and cannot flexibly respond to business scenarios with special requirements and unconventional processes, resulting in the generated code being unable to accurately reflect business needs. Summary of the invention

[0004] The present invention provides a code generation method, device, electronic device, product and storage medium to solve the defect that the prior art cannot flexibly cope with business scenarios with special requirements and unconventional processes, resulting in the generated code being unable to accurately reflect business needs.

[0005] The present invention provides a code generation method, comprising: Inputting the demand document into the graph neural network model to obtain a business process diagram output by the graph neural network model, wherein the business process diagram includes at least one of a page flow diagram and a service flow diagram; Obtain a code generation strategy, and generate a process code that meets the requirements based on the code generation strategy and the business process diagram, wherein the code generation strategy is the rules that need to be followed during code generation, the page flow diagram is used to generate front-end code, and the service flow diagram is used to generate back-end code.

[0006] According to a code generation method provided by the present invention, the process code that meets the requirements is generated based on the code generation strategy and the business process diagram, including: Converting the code generation unit in the business process diagram into an intermediate description language, wherein each of the code generation units corresponds to one intermediate description language; The process code is generated based on the code generation strategy and the intermediate description language corresponding to each code generation unit.

[0007] According to a code generation method provided by the present invention, the code generation unit includes at least one of the page elements of the page flow diagram and the nodes of the service flow diagram, and the code generation unit in the service flow diagram is converted into an intermediate description language, including: In the case where the code generation unit is a page element of the page flow diagram, the page element of the page flow diagram is converted into an intermediate description language, each of the page elements corresponds to one intermediate description language; In the case where the code generation unit is a node of the service flow chart, the node of the service flow chart is converted into an intermediate description language, and each of the nodes corresponds to one intermediate description language.

[0008] According to a code generation method provided by the present invention, the requirement document is obtained based on the following method: Categorize the code generation requirements in the initial requirements document and determine the required data set; Analyze the logical relationship between each demand data in the demand data set to obtain a demand relationship analysis result; Generate a use case model based on the requirement data set and the requirement relationship analysis result, wherein the use case model is used to verify the logical relationship between the code generation requirements and the dependency relationship between the code generation requirements; The code generation requirements in the initial requirement document are verified based on the use case model to obtain a verification result, and the verification result is used to determine the requirement document.

[0009] According to a code generation method provided by the present invention, the step of inputting a requirement document into a graph neural network model to obtain a business process diagram output by the graph neural network model includes: Inputting the requirement document into a graph construction layer in the graph neural network model, obtaining a first requirement structure graph output by the graph construction layer, wherein the graph construction layer is used to represent each element in the requirement document as a plurality of nodes and a plurality of edges, and the graph construction layer is further used to construct the plurality of nodes and the plurality of edges into a first requirement structure graph; Extracting the semantic relationship of the requirement document to obtain a requirement logic data set, and semantically enhancing the first requirement structure diagram based on the requirement logic data set to obtain a semantically enhanced second requirement structure diagram; Inputting the second demand structure graph into the graph convolution layer in the graph neural network model to obtain an information aggregation graph output by the graph convolution layer; The information aggregation graph is input into the decoding layer in the graph neural network model to obtain a business process graph output by the decoding layer. The decoding layer is used to extract key information and business entities from the information aggregation graph. The decoding layer is also used to construct the key information and the business entities into a business process graph. The decoding layer is also used to map the key information into page elements of a page flow graph. The decoding layer is also used to map the business entities into nodes of a service flow graph.

[0010] According to a code generation method provided by the present invention, after generating a process code that meets the requirements based on the code generation strategy and the business process diagram, the method further includes: Testing the process code, and obtaining code that failed the test and code that passed the test based on the test result; Repairing the failed code to obtain a repaired code; Generate a compiled file based on the repair code and the tested code, and deploy the compiled file to a target server.

[0011] The present invention also provides a code generation device, comprising: A business process diagram generation module, used to input the demand document into the graph neural network model to obtain a business process diagram output by the graph neural network model, wherein the business process diagram includes at least one of a page flow diagram and a service flow diagram; The code generation module is used to obtain the code generation strategy and generate process code that meets the requirements based on the code generation strategy and the business process diagram, wherein the code generation strategy is the rules that need to be followed during code generation, the page flow diagram is used to generate front-end code, and the service flow diagram is used to generate back-end code.

[0012] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-mentioned code generation methods when executing the computer program.

[0013] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the code generation method described in any one of the above is implemented.

[0014] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the code generation method described above is implemented.

[0015] The present invention provides a code generation method, device, electronic device, product and storage medium. The code generation method obtains a business process diagram output by the graph neural network model by inputting a requirement document into a graph neural network model, wherein the business process diagram includes at least one of a page flow diagram and a service flow diagram; the requirement document is input into the graph neural network model, and the graph neural network model can identify and learn the relationship between each element in the business process of the requirement document, and automatically construct a business process diagram, while the page flow diagram and the service flow diagram correspond to the front-end user interface and the back-end service logic respectively. Obtain a code generation strategy, and generate a process code that meets the requirements based on the code generation strategy and the business process diagram, wherein the code generation strategy is the rules that need to be followed during code generation, the page process diagram is used to generate the front-end code, and the service process diagram is used to generate the back-end code; the code strategy defines the rules and specifications that need to be followed during code generation, and automatically generates process codes that meet the requirements based on the business process diagram and the code generation strategy, which reduces manual intervention and greatly improves development efficiency. The code generated based on the business process diagram accurately reflects the actual business needs, avoiding the problem of inconsistency between code and requirements caused by manual errors in traditional methods, and the graph neural network model can handle complex and changeable business processes, and the code generation strategy can be flexibly adjusted to adapt to new scenarios and changing business needs. Compared with traditional rule-based and template-based methods, the present invention can better cope with special requirements and unconventional processes, and improve the efficiency and accuracy of code generation. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 It is a flow chart of the code generation method provided by the present invention.

[0018] Figure 2 It is a structural schematic diagram of the graph neural network model provided by the present invention.

[0019] Figure 3 It is a structural schematic diagram of the code generating device provided by the present invention.

[0020] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0022] In the traditional software development process, the applicant of the present invention has observed a common phenomenon: the development team spends a lot of time in the process of converting the requirement documents into actual code. This process is not only time-consuming, but also prone to errors. The requirement documents are usually written by business analysts, and developers need to understand the business requirements based on these documents and implement them into code. Since the conversion between documents and codes requires a high degree of understanding and manual operation, this not only increases the development cycle, but also increases the risk of errors.

[0023] In order to solve these problems, the patent applicant conducted in-depth research to explore how to use advanced technologies to automate the code generation process. During the research process, the applicant found that the existing technology has made progress in some aspects, but there are still many deficiencies in dealing with special needs and unconventional processes, resulting in the generated code being unable to accurately reflect business needs. The existing technology has certain limitations in capturing complex relationships and interactive information in business processes, and cannot fully and accurately reflect business needs. In addition, most of the existing technologies are based on rules and templates, and the generated codes often cannot fully meet actual business needs, resulting in the accuracy and consistency of the code being affected. When facing new business scenarios or changes in demand, the existing technology lacks a flexible adjustment mechanism, resulting in insufficient adaptability and scalability of the code.

[0024] In view of the above problems, the present invention proposes the following embodiments. Figure 1 A schematic diagram of the flow chart of the code generation method provided by the present invention is as follows: Figure 1 As shown, the code generation method includes: Step 110, input the requirement document into the graph neural network model to obtain a business process diagram output by the graph neural network model, wherein the business process diagram includes at least one of a page flow diagram and a service flow diagram.

[0025] Here, the requirement document refers to a document that describes the functions and operations required by the software system; the graph neural network model is a deep learning model specially designed to process graph structure data. In this step, the graph neural network model is used to understand and analyze the information in the requirement document and convert it into a graphical representation. In the present invention, the structure and function of the traditional graph neural network model are improved. The specific structure can refer to the following embodiment, which will not be repeated here.

[0026] Here, the business process diagram is used to describe the relationship and sequence between various stages, steps, and activities in the business process, and is usually divided into two parts: page flow diagram and service flow diagram. The page flow diagram describes the interaction process of the user interface, including page navigation, information input and output, etc., and is mainly used for front-end development. The service flow diagram describes the call and data processing process of the back-end service, including the execution of business logic, data processing and storage, etc., and is mainly used for back-end development.

[0027] In one embodiment, the requirements document is input into the graph neural network model to obtain a business process diagram output by the graph neural network model, wherein the business process diagram includes a page flow diagram and a service flow diagram. The requirements document usually contains various functional and non-functional requirements of the software system and is the basic document for software development. These requirements describe the expected functions, interaction processes, data processing, etc. of the system users. By taking the requirements document as input, it can be ensured that the subsequently generated business process diagram can accurately reflect user needs and system functional requirements to avoid omissions and misunderstandings. Intelligent generation of business process diagrams reduces the time for manual drawing and writing, while ensuring the consistency between the business in the business process diagram and the requirements in the requirements document. By processing the requirements document through the graph neural network model, business process diagrams including page flow diagrams and service flow diagrams can be generated quickly and accurately. This method not only improves development efficiency, but also ensures a comprehensive understanding and accurate reflection of user needs during system development, thereby improving the quality of the software system and user experience.

[0028] In another embodiment, the demand document is input into the graph neural network model to obtain a business process diagram output by the graph neural network model, and the business process diagram only includes a page flow diagram. After being processed by the graph neural network model, the output page flow diagram describes in detail the navigation relationship and interaction process between each page in the user interface. The page flow diagram may include interactive elements such as jumps between pages, buttons and input boxes on the page. The graph neural network model can efficiently capture the complex relationships and interactive information between page elements, is more accurate than traditional methods, and generates a more comprehensive page flow diagram.

[0029] In another embodiment, the requirements document is input into the graph neural network model to obtain a business process diagram output by the graph neural network model, and the business process diagram only includes a service flow diagram. The requirements document contains the functional requirements of the system, especially the business logic, data processing and service calls of the background services. The document describes in detail how the system processes requests, executes business logic and manages data in the background. The requirements document is used as input to ensure that the generated service flow diagram can accurately reflect the background business logic and service processing flow of the system to avoid omissions and misunderstandings. After being processed by the graph neural network model, the output service flow diagram describes in detail the call relationship and business processing flow of the system background services. The service flow diagram may include service interfaces, data processing nodes, business logic nodes, and the calls and dependencies between them. The generated service flow diagram can guide back-end developers to accurately implement business logic and service interfaces, ensuring the consistency of the system background services and the coherence of functions.

[0030] Step 120, obtain the code generation strategy, and generate process code that meets the requirements based on the code generation strategy and the business process diagram, wherein the code generation strategy is the rules that need to be followed during code generation, the page flow diagram is used to generate front-end code, and the service flow diagram is used to generate back-end code.

[0031] Here, code generation strategy is a set of rules and templates used to guide the code generation process. These strategies define how to convert business process diagrams into executable code in different business scenarios. The page flow diagram is used to describe the user interface and interaction process, and is used to guide the generation of front-end code. The front-end code implements the user interface and interaction process defined in the page flow diagram to ensure that the user experience and operation logic when using the system meet the requirements. The service flow diagram is used to describe the background business logic and service call relationship, and is used to guide the generation of back-end code. The back-end code implements the business logic and service calls defined in the service flow diagram to ensure that the system can correctly handle user requests and data operations.

[0032] In one embodiment, a code generation strategy is obtained, and a process code that meets the requirements is generated based on the code generation strategy and the business process diagram. The business process diagram includes a page flow diagram and a business service flow diagram. The front-end code is generated based on the page flow diagram, and the back-end code is generated based on the service flow diagram. This embodiment automatically generates front-end and back-end codes, reducing the time and workload of manual code writing. Based on the predefined code generation strategy, the generated code is consistent and standardized, which reduces human errors and improves the quality and maintainability of the code. By generating code through the business process diagram, it is ensured that the generated code can accurately reflect the business logic and user interface design in the requirement document, avoiding misunderstandings of requirements and implementation deviations, and improving the overall efficiency and quality of software development.

[0033] The code generation method provided by an embodiment of the present invention obtains a business process diagram output by the graph neural network model by inputting a requirement document into a graph neural network model, wherein the business process diagram includes at least one of a page flow diagram and a service flow diagram; the requirement document is input into the graph neural network model, and the graph neural network model can identify and learn the relationship between each element in the business process of the requirement document, and automatically construct a business process diagram, and the page flow diagram and the service flow diagram correspond to the front-end user interface and the back-end service logic respectively. Obtain a code generation strategy, and generate a process code that meets the requirements based on the code generation strategy and the business process diagram, wherein the code generation strategy is the rules that need to be followed during code generation, the page process diagram is used to generate the front-end code, and the service process diagram is used to generate the back-end code; the code strategy defines the rules and specifications that need to be followed during code generation, and automatically generates process codes that meet the requirements based on the business process diagram and the code generation strategy, which reduces manual intervention and greatly improves development efficiency. The code generated based on the business process diagram accurately reflects the actual business needs, avoiding the problem of inconsistency between code and requirements caused by manual errors in traditional methods, and the graph neural network model can handle complex and changeable business processes, and the code generation strategy can be flexibly adjusted to adapt to new scenarios and changing business needs. Compared with traditional rule-based and template-based methods, the present invention can better cope with special requirements and unconventional processes, and improve the efficiency and accuracy of code generation.

[0034] Based on any of the above embodiments, in the method, generating a process code that meets the requirements based on the code generation strategy and the business process diagram includes: Converting the code generation unit in the business process diagram into an intermediate description language, wherein each of the code generation units corresponds to one intermediate description language; The process code is generated based on the code generation strategy and the intermediate description language corresponding to each code generation unit.

[0035] Here, the code generation unit is a basic component in the business process diagram, representing a specific page element (such as a button, input box) or a service node (such as data processing, API call). Each code generation unit contains a specific logic and function description to guide how to generate the corresponding code.

[0036] Here, the intermediate description language is an abstract, standardized language used to uniformly describe different code generation units in the business process diagram. The intermediate description language serves as an intermediate step in the code generation process to facilitate subsequent code generation and conversion.

[0037] Here, the code generation strategy is a set of predefined rules and templates that guide how to convert the intermediate description language into actual front-end code and back-end code. The strategy includes how to handle business logic, page layout, service calls, etc., to ensure that the generated code meets the project specifications and requirements.

[0038] In one embodiment, by converting the code generation unit in the business process diagram into an intermediate description language, and then generating the process code based on the code generation strategy and the intermediate description language, it is possible to standardize the descriptions of different units, provide flexible representations, automatically generate high-quality front-end and back-end codes, ensure the consistency and standardization of the code, reduce the workload and errors of manual coding, and improve development efficiency and code quality.

[0039] In another embodiment, the code generation strategy includes a code configuration strategy, a modular generation strategy, an exception detection strategy, a document annotation strategy and a debugging strategy; the code configuration strategy is used to receive code configuration information input by a user, and the code configuration strategy is also used to generate code based on the code configuration information, wherein the code configuration information includes code style, naming conventions and annotations; the modular generation strategy is used to extract each process link in the business process diagram into an independent module, and is also used to generate code based on the independent module; the exception detection strategy is used to add an exception detection mechanism in the process of generating code, and the exception detection strategy is also used to generate corresponding prompt information for abnormal situations in the business process diagram based on the exception detection mechanism; the document annotation strategy is used to generate corresponding document annotations in the process of code generation; the debugging strategy is used to add a debugging mechanism in the process of generating code, and the debugging strategy is also used to generate test cases and log records based on the debugging mechanism.

[0040] For example, based on the automatic generation of corresponding codes from business process diagrams, machine learning and natural language processing (NLP) technologies are introduced to make code generation more intelligent. By understanding the elements, relationships, and rules in business process diagrams and generating more accurate and high-quality codes based on this information, the code configuration strategy can be used to customize code generation rules in order to meet complex and ever-changing end-to-end business process scenarios. Thus, a flexible code generation rule engine is developed, which allows users to customize code generation rules according to specific needs, and can define specific logic, algorithms, or templates to make the generated code more in line with actual business needs.

[0041] For example, the modular generation strategy can consider designing the generated code into an extensible and modular structure to cope with changing business needs. By adopting object-oriented design principles, each link and function in the business process diagram is abstracted into independent components or modules, making it easy to modify, replace and expand.

[0042] For example, the anomaly detection strategy can add an exception handling and error detection mechanism during the code generation process. According to the abnormal situation in the business process diagram, the corresponding error handling code or prompt information is generated to ensure that the system can properly respond to and handle various abnormal situations.

[0043] Exemplarily, the document annotation strategy can automatically generate relevant documents and annotations during the code generation process. These documents include code structure, function description, parameter explanation, etc., to help developers better understand the code logic and functions, thereby improving the readability and maintainability of the code.

[0044] For example, the debugging strategy can provide corresponding tools or platforms. For example, it can automatically generate test cases, support breakpoint debugging, provide logging and other functions, so that developers can more conveniently perform code verification and troubleshooting, thereby supporting integrated testing and debugging of the generated code.

[0045] For detailed description of the code generation unit and the intermediate descriptive language, please refer to the following embodiments, which will not be repeated here.

[0046] The code generation method provided by the embodiment of the present invention ensures consistency between different systems and platforms by using an intermediate description language to standardize and uniformly describe different units in a business process diagram. Then, based on a predefined code generation strategy, the intermediate description language is automatically converted into actual front-end and back-end codes, reducing the workload and errors of manual coding and improving the efficiency and quality of code generation. This not only ensures the consistency and standardization of the generated code, but also can flexibly adapt to various business needs and changes, thereby improving the overall efficiency and reliability of the development process.

[0047] Based on any of the above embodiments, in the method, the code generation unit includes at least one of a page element of the page flow diagram and a node of the service flow diagram, and converting the code generation unit in the service flow diagram into an intermediate description language includes: In the case where the code generation unit is a page element of the page flow diagram, the page element of the page flow diagram is converted into an intermediate description language, each of the page elements corresponds to one intermediate description language; In the case where the code generation unit is a node of the service flow chart, the node of the service flow chart is converted into an intermediate description language, and each of the nodes corresponds to one intermediate description language.

[0048] Here, the code generation unit is the basic component in the business process diagram, including the page elements of the page flow diagram and the nodes of the service flow diagram. They represent the components of the user interface and the execution nodes of the business logic respectively. The page element is a component in the page flow diagram, representing the specific elements of the user interface, such as buttons, input boxes, text boxes, etc. The page element describes the layout and interaction logic of the user interface and guides the generation of the front-end code. The service node is a component in the service flow diagram, representing the specific execution node of the business logic, such as data processing, API calls, business logic nodes, etc. The service node describes the processing flow and operation steps of the business logic and guides the generation of the back-end code.

[0049] In one embodiment, the code generation unit includes page elements of a page flow chart and nodes of a service flow chart, converts the page elements of the page flow chart into an intermediate description language, each page element corresponds to an intermediate description language; converts the nodes of the service flow chart into an intermediate description language, each node corresponds to an intermediate description language. By converting the page elements of the page flow chart and the nodes of the service flow chart into intermediate description languages, the purpose of standardization and unified description is achieved, thereby realizing efficient automatic code generation, improving the consistency and reliability of the code generation process, reducing the errors and workload of manual coding, and enhancing the flexibility and scalability of the system to adapt to different business needs and changes.

[0050] In another embodiment, the code generation unit includes page elements of the page flow diagram, converting the page elements of the page flow diagram into an intermediate description language, each page element corresponding to an intermediate description language; In another embodiment, the code generation unit includes nodes of the service flow graph, and converts the nodes of the service flow graph into an intermediate description language, wherein each node corresponds to an intermediate description language.

[0051] Exemplarily, business process diagrams are divided into page flow diagrams and service flow diagrams. Service flow diagrams include functional flow diagrams and data flow diagrams. Other types of flow diagrams can be combined through page flow diagrams and service flow diagrams. Developers can select the generated business process diagrams by setting code configuration options, code style, naming conventions, comments, etc., and generate executable program codes that meet the requirements according to different types of flow diagrams. By using code generation technology and combining our independently formulated code generation strategy, page flow diagrams can automatically generate front-end program codes, service flow diagrams can automatically generate back-end service program codes, and other flow diagrams can generate front-end and back-end service combination codes by combining page flow diagrams and service flow diagrams.

[0052] Exemplarily, the intermediate description language can be a JSON object. The page flow chart converts various elements contained in the page into the intermediate description language JSON object, and automatically converts them into corresponding JS components through the attributes, types, parent-child inheritance and various inclusion relationships in the JSON object, and finally renders them in the form of a DOM tree. The automatic generation of code through the page flow chart specifically includes the following steps: Parse page flow charts, automatically identify and extract various page elements, such as buttons, input boxes, text areas, etc.; Convert each page element into an intermediate description language (such as a JSON object). The intermediate description language should include information such as the element's attributes (such as name, size, position, etc.), type (such as button, input box, text area, etc.), parent-child inheritance relationship, and inclusion relationship; Automatically generate the corresponding JavaScript component code based on the information in the intermediate description language. Dynamically fill the attribute value into the code based on the type and attribute of the element; The generated JavaScript component code can be parsed and executed by the browser, and finally the page is rendered in the form of a DOM tree. Each component is correctly inserted into the DOM tree according to its parent-child inheritance and inclusion relationship defined in the intermediate description language.

[0053] Exemplarily, nodes in the service flow chart can be added, deleted, and modified, and the properties of the nodes can also be edited and parameter mapped, so as to realize the serial connection of service nodes and the data flow and call between services. The service flow chart converts the various elements contained in it into an intermediate description language JSON object, and automatically converts it into the corresponding program logic and data flow code through the properties, types, parent-child inheritance and various inclusion relationships in the JSON object, and finally encapsulates the service request for calling. The automatic generation of code through the service flow chart specifically includes the following steps: Parse the service flow chart, identify and extract various nodes, such as service nodes, control nodes, data nodes, etc.; Convert each node into an intermediate description language (such as a JSON object). The description language should include information such as node attributes (such as name, parameters, return value, etc.), type (such as service node, control node, data node, etc.), parent-child inheritance relationship, and inclusion relationship; According to the information in the intermediate description language, the corresponding program logic and data flow code are automatically generated. According to the type and attribute of the node, the attribute value is dynamically filled into the code; the generated code can be used by the caller, and the generated code is encapsulated as a service request.

[0054] The code generation method provided by the present invention is not limited to front-end code and back-end code, and can also generate code based on a variety of frameworks and libraries, which will not be described in detail here.

[0055] The code generation method provided by the embodiment of the present invention converts the page elements of the page flow chart and the nodes of the service flow chart into an intermediate description language, unifies the description method of the page elements and the service nodes, and ensures the consistency and standardization in the whole system. The intermediate description language can be understood and converted by code generation tools of different platforms and technology stacks, supporting cross-platform development and deployment. This enables the method to more efficiently generate front-end and back-end codes that meet the requirements in actual software development, while improving development efficiency and project quality.

[0056] Based on any of the above embodiments, in this method, the requirement document is obtained based on the following method: Categorize the code generation requirements in the initial requirements document and determine the required data set; Analyze the logical relationship between each demand data in the demand data set to obtain a demand relationship analysis result; Generate a use case model based on the requirement data set and the requirement relationship analysis result, wherein the use case model is used to verify the logical relationship between the code generation requirements and the dependency relationship between the code generation requirements; The code generation requirements in the initial requirement document are verified based on the use case model to obtain a verification result, and the verification result is used to determine the requirement document.

[0057] Here, logical relationship analysis refers to ensuring that the generated code can be coordinated and consistent as a whole to avoid conflicts and loopholes in functional implementation by analyzing the logical relationships between different requirements. The use case model is an abstract representation method used to describe how a system interacts with its users (or other systems) to achieve specific goals. Here, the use case model helps verify the logic and dependencies between code generation requirements and is an important tool for requirements analysis and verification. The verification results reflect the completeness and rationality of the code generation requirements in the requirements document and are the basis for formulating the final requirements document. Through effective verification, the accuracy and quality of code generation can be improved, and modifications and adjustments in subsequent development stages can be reduced.

[0058] In one embodiment, the code generation requirements in the initial requirements document are classified and extracted to form a requirements data set. This process involves identifying specific requirements related to code generation from the original document, such as functional requirements, interface design requirements, etc. The logical relationship between the various requirements in the requirements data set is analyzed, with the aim of clarifying the dependencies, sequence relationships or logical associations between the various requirements to ensure that the subsequently generated use case model can accurately reflect these relationships. Based on the requirements data set and the requirements relationship analysis results, a use case model is generated. The use case model describes the logical relationships and dependencies between different code generation requirements and serves as an important tool for requirements document verification. The generated use case model is used to verify the code generation requirements in the initial requirements document to verify whether each generation requirement proposed in the requirements document is reasonable and complete, and whether the logical relationships between them are clear and accurate. The verification results help determine the final requirements document to ensure that the subsequent code generation process can accurately meet the needs of the project.

[0059] In another embodiment, the requirements in the initial requirement document are classified to determine a requirement data set; keywords of each requirement data in the requirement data set are extracted based on a natural language processing method to determine a keyword set; the logical relationship between each keyword in the keyword set is analyzed based on a natural language processing method to determine a requirement relationship analysis result, wherein the requirement relationship analysis result is the relationship between each requirement data in the requirement data set; based on the keyword set and the requirement relationship analysis result, a cluster analysis is performed on the requirement data set to determine multiple use case clusters, and any use case cluster includes multiple requirement data; frequently co-occurring requirement data in each use case cluster are identified to determine frequent item sets; and a use case model is generated based on the requirement relationship analysis result and the frequent item sets.

[0060] The purpose of confirming the requirement data set is to ensure that all requirements are correctly captured and recorded, providing a data basis for subsequent analysis and processing. Keywords are extracted from the requirement data set through natural language processing (NLP) methods, and the logical relationship between these keywords is analyzed. Logical relationship analysis can help clarify the associations and dependencies between different requirements, which is crucial for generating accurate use case models. The requirement data set is divided into multiple use case clusters through cluster analysis, each cluster contains related requirement data, which helps to group similar or related requirements into a group for more efficient processing and analysis. Frequent item sets represent requirements that often appear together in a specific use case cluster. These requirements are considered to have higher commonality and importance, and therefore play a guiding role in the construction of the use case model. This embodiment effectively processes and analyzes the requirement documents by combining natural language processing and data analysis technology, providing strong support and guidance for the subsequent code generation process.

[0061] For example, machine learning algorithms can be used to automatically classify and categorize requirement documents, identify different types of requirements (such as functional requirements, non-functional requirements, etc.), and organize them into an easy-to-manage structure. According to the classified requirement documents, natural language processing (NLP) is used to extract keywords and phrases from the documents, and logical relationship analysis is performed on them to output the requirement relationship analysis results. According to the classified requirement documents (i.e., requirement data sets) and the requirement relationship analysis results, the K-means (cluster analysis) algorithm is used to identify potential use case clusters, and the FP-growth (frequent pattern growth) algorithm is used to find the frequently occurring feature combinations in the use case clusters to generate a use case model. Through the main functions of the use case model, the requirement documents can be improved and optimized, manual operations can be reduced, and the accuracy and efficiency of the requirement analysis can be improved, laying a solid foundation for subsequent process modeling. The use case model can obtain verification results by verifying the initial requirement documents, helping the requirement analysts to better understand and handle the requirements. It can also provide intelligent assistance and feedback through machine learning algorithms, similar to functions such as auto-completion, real-time suggestions, and error detection, to accelerate and improve the requirement analysis process.

[0062] The code generation method provided by the embodiment of the present invention is based on the in-depth analysis and processing of the initial requirement document, and the specific steps include requirement classification, logical relationship analysis, use case model generation and requirement verification. First, by classifying and determining the requirement data set, ensure that all code generation requirements are effectively captured and recorded. Next, the logical relationship analysis helps to identify and clarify the dependencies and logical relationships between the requirement data, which is crucial for the subsequent code generation process. The generated use case model further abstracts and formalizes the requirements, providing the development team with a structured framework for verifying and checking the logical consistency and dependencies of the code generation requirements. Finally, the verification results guide the further confirmation and improvement of the requirement document, ensuring that the final requirement document has a clear logical structure and operability, thereby improving the accuracy and efficiency of the code generation process.

[0063] Based on any of the above embodiments, in the method, inputting the demand document into the graph neural network model to obtain the business process diagram output by the graph neural network model includes: Inputting the requirement document into a graph construction layer in the graph neural network model, obtaining a first requirement structure graph output by the graph construction layer, wherein the graph construction layer is used to represent each element in the requirement document as a plurality of nodes and a plurality of edges, and the graph construction layer is further used to construct the plurality of nodes and the plurality of edges into a first requirement structure graph; Extracting the semantic relationship of the requirement document to obtain a requirement logic data set, and semantically enhancing the first requirement structure diagram based on the requirement logic data set to obtain a semantically enhanced second requirement structure diagram; Inputting the second demand structure graph into the graph convolution layer in the graph neural network model to obtain an information aggregation graph output by the graph convolution layer; The information aggregation graph is input into the decoding layer in the graph neural network model to obtain a business process graph output by the decoding layer. The decoding layer is used to extract key information and business entities from the information aggregation graph. The decoding layer is also used to construct the key information and the business entities into a business process graph. The decoding layer is also used to map the key information into page elements of a page flow graph. The decoding layer is also used to map the business entities into nodes of a service flow graph.

[0064] To better understand the summary extraction model of the embodiment of the present invention, Figure 2 As shown, the graph neural network model includes a graph construction layer, a graph convolution layer, and a decoding layer.

[0065] Here, the graph neural network model is suitable for deep learning models that process unstructured data and complex relationships, and can effectively process various elements in the requirements document and the complex relationships between them.

[0066] In one embodiment, the requirement document is input into the graph construction layer of the graph neural network model to obtain the first requirement structure graph output by the graph construction layer. In this process, the graph construction layer constructs the nodes and edges in the document into an initial requirement structure graph, which reflects the initial association and structure between the elements in the requirement document. Further, the semantic relationship is extracted from the requirement document to form a requirement logic data set. This process involves the analysis and extraction of semantic information in the document to capture the deeper logical relationship between the elements in the document. Then, the first requirement structure graph is semantically enhanced using the requirement logic data set. This process further enriches and refines the meaning of the nodes and edges of the requirement structure graph by combining semantic information to improve the model's ability to understand the requirement document. Further, the semantically enhanced second requirement structure graph is input into the graph convolution layer of the graph neural network model to obtain the information aggregation graph output by the graph convolution layer. In this process, the graph convolution layer is responsible for information aggregation and feature extraction on the second requirement graph structure to fully understand and analyze the information in the second requirement structure graph. The information aggregation graph after the aggregation process contains the key information and business entities extracted from the requirement document. Furthermore, the information aggregation graph is input into the decoding layer in the graph neural network model. The decoding layer is responsible for extracting key information and business entities from the information aggregation graph, and mapping the key information and business entities to page elements in the business process graph and nodes in the service process graph respectively. This process not only includes simple mapping, but also involves the understanding and abstraction capabilities of business requirements, ensuring that the generated business process diagram can accurately reflect the requirements and logic in the original requirement document.

[0067] For example, the drawn business process diagram complies with the specifications of modeling tools such as UML and BPMN, so as to clearly show the steps of the business process and the relationship between the processes. According to the various business objects involved in the business process diagram and their relationships, the definition and attributes of the business objects are confirmed. The business objects can be entities in the system, such as users, orders, products, etc.

[0068] Exemplarily, the present application can automatically analyze the improved requirement document based on Graph Neural Networks (GNN) and generate the corresponding business process diagram. First, the various elements (activities, events, roles, etc.) in the business process recorded in the requirement document are converted into nodes and edges of a graph structure to form a graph data with complex relationships, capturing the dependencies and interaction information in the business process. Secondly, the constructed graph data is trained and reasoned by taking advantage of the graph neural network. Through the iterative update of the multi-layer neural network, each node can aggregate and fuse the information of its neighboring nodes to obtain more comprehensive context information. Furthermore, in the graph neural network model, natural language processing technology is introduced to perform semantic understanding and relationship extraction on the requirement document, identify the sequence, dependencies between business activities, and logical associations between operations and decisions. Finally, based on the training and reasoning of the model, a decoding layer is trained in the graph neural network model to extract key information and entities of the information aggregation graph, automatically identify common business patterns, standardize them, and facilitate the rapid generation of business process descriptions and corresponding modeling diagrams. By fusing the information of each node and the global context, an accurate and complete business process diagram is generated.

[0069] The code generation method provided by the embodiment of the present invention can automatically extract and express business processes from complex requirement documents through the application of graph neural network models. First, the graph construction layer and semantic enhancement ensure the deep understanding and accuracy of the requirement documents, so that the final generated business process diagram can accurately reflect the complex business logic and requirements in the original document. Secondly, the combination of the graph convolution layer and the decoding layer effectively aggregates and extracts key information in the document, so that the generated business process diagram has a good information structure and logical clarity. This method not only improves the efficiency and accuracy of requirement analysis, but also supports the design and implementation in the subsequent software development process, thereby significantly improving the overall development efficiency and development quality.

[0070] Based on any of the above embodiments, in the method, after generating the process code that meets the requirements based on the code generation strategy and the business process diagram, the method further includes: Testing the process code, and obtaining code that failed the test and code that passed the test based on the test result; Repairing the failed code to obtain a repaired code; Generate a compiled file based on the repair code and the tested code, and deploy the compiled file to a target server.

[0071] Here, the compiled file is a compilable file or deployment package generated after being processed by a compiler and is used to run on a target system.

[0072] In one embodiment, the process code is tested to determine the test results, which include test pass and test fail. According to the test results, it is analyzed which codes have passed the test and which codes have not passed. The code that passed the test usually refers to the code that functions normally and meets the requirements, while the code that failed the test needs to be further repaired. For the code that failed the test, a repair operation is required. The repair process includes analyzing errors, modifying the code, and ensuring that the code logic is correct and meets the expected business requirements. The repaired code and the code that passed the test are compiled into a compiled file, and then the compiled file is deployed to the target server for actual use.

[0073] In another embodiment, the process code is unit tested to determine the code that fails the unit test and the code that passes the unit test; the code that fails the unit test is repaired, and the repaired code and the code that passes the unit test are stored in the code library, and the repaired code and the code that passes the unit test are unit tested again. If all pass, the code continues to perform integration testing to determine the code that fails the integration test and the code that passes the integration test. Similarly, the code is repaired online and stored in the code library, and the integration test is performed again until the test passes. A compiled file is generated based on the code that finally passes the test, and the compiled file is deployed to the target server. Through the testing and repair process, problems in the code can be discovered and solved in a timely manner to ensure that the generated process code can work normally and meet user needs. After a rigorous testing and repair process, the risk of problems after the software product is released can be greatly reduced, and the stability and reliability of the software product can be improved.

[0074] In another embodiment, the failed code is repaired to obtain the repaired code; the repaired code and the code that passed the test are compiled to obtain a compiled file; the compiled file and the dependent files are constructed to determine the mirror package; the environment information of the target server is configured, and the mirror package is deployed to the target server.

[0075] Exemplarily, the code that has been tested can be compiled and built online. After the compilation and building are completed, the generated build image package can be pushed to the image product library. After the push is completed, the deployment environment information can be configured and released with one click. Based on the tested and repaired code, the compilation and build operations can be performed online. Compilation converts the source code into an executable binary file or a deployable application. Building refers to packaging the compiled files and related dependencies after the source code is compiled into a runnable component or image. After the compilation and building are completed, the generated build image package can be pushed to the image product library. The image product library is a central warehouse for storing and managing build images. It can provide functions such as version control, image sharing, and containerized deployment. Before pushing the build image package, the deployment environment information needs to be configured. The deployment environment information includes the IP address, port number, access credentials, etc. of the target server to ensure the correct deployment location and permissions. After the configuration is completed, the deployment can be started through the one-click release operation. One-click release will automatically obtain the build image package from the image product library and deploy it to the predefined target server, simplifying the deployment process and improving the consistency and repeatability of the deployment. This automates the deployment process, improves efficiency and consistency, and has flexibility and scalability. At the same time, the image repository provides version control and dependency management functions, which helps with code management and tracking.

[0076] The code generation method provided in the embodiment of the present invention can effectively discover and repair potential problems and errors in the code by comprehensively testing the generated process code. The code that passes the test proves that its function is normal and meets expectations, while the code that fails the test requires further analysis and repair operations. The repair process involves analyzing and modifying the errors to ensure that the code logic is correct and meets business requirements. Once the code passes the test and the repair is completed, a compiled file or deployment package can be generated. The compiled file is processed by the compiler, converted into an executable program or service, and then deployed to the target server.

[0077] Figure 3 The schematic diagram of the structure of the code generation device provided by the present invention is shown in FIG3. The code generation device comprises: A business process diagram generation module 310 is used to input the demand document into the graph neural network model to obtain a business process diagram output by the graph neural network model, wherein the business process diagram includes at least one of a page flow diagram and a service flow diagram; The code generation module 320 is used to obtain a code generation strategy and generate a process code that meets the requirements based on the code generation strategy and the business process diagram, wherein the code generation strategy is the rules that need to be followed during code generation, the page flow diagram is used to generate front-end code, and the service flow diagram is used to generate back-end code.

[0078] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the code generation method, which includes: inputting the requirement document into the graph neural network model to obtain a business process diagram output by the graph neural network model, wherein the business process diagram includes at least one of a page flow diagram and a service flow diagram; obtaining a code generation strategy, and generating a process code that meets the requirements based on the code generation strategy and the business flow diagram, wherein the code generation strategy is a rule that needs to be followed during code generation, the page flow diagram is used to generate front-end code, and the service flow diagram is used to generate back-end code.

[0079] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0080] On the other hand, the present invention also provides a computer program product, which includes a computer program, and the computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the code generation method provided by the above methods, and the method includes: inputting the requirement document into the graph neural network model to obtain a business process diagram output by the graph neural network model, wherein the business process diagram includes at least one of a page flow diagram and a service flow diagram; obtaining a code generation strategy, and generating a process code that meets the requirements based on the code generation strategy and the business flow diagram, wherein the code generation strategy is a rule that needs to be followed during code generation, the page flow diagram is used to generate front-end code, and the service flow diagram is used to generate back-end code.

[0081] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the code generation method provided by the above-mentioned methods, the method comprising: inputting a requirement document into a graph neural network model to obtain a business process diagram output by the graph neural network model, wherein the business process diagram comprises at least one of a page flow diagram and a service flow diagram; obtaining a code generation strategy, and generating a process code that meets the requirements based on the code generation strategy and the business flow diagram, wherein the code generation strategy is a rule that needs to be followed during code generation, the page flow diagram is used to generate front-end code, and the service flow diagram is used to generate back-end code.

[0082] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0083] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0084] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A code generation method, characterized in that: include: Inputting the demand document into the graph neural network model to obtain a business process diagram output by the graph neural network model, wherein the business process diagram includes at least one of a page flow diagram and a service flow diagram; Obtain a code generation strategy, and generate a process code that meets the requirements based on the code generation strategy and the business process diagram, wherein the code generation strategy is the rules that need to be followed during code generation, the page flow diagram is used to generate front-end code, and the service flow diagram is used to generate back-end code.

2. The code generation method according to claim 1, characterized in that: The generating of the process code that meets the requirements based on the code generation strategy and the business process diagram includes: Converting the code generation unit in the business process diagram into an intermediate description language, wherein each of the code generation units corresponds to one intermediate description language; The process code is generated based on the code generation strategy and the intermediate description language corresponding to each code generation unit.

3. The code generation method according to claim 2, characterized in that: The code generation unit includes at least one of a page element of the page flow diagram and a node of the service flow diagram, and converting the code generation unit in the service flow diagram into an intermediate description language includes: In the case where the code generation unit is a page element of the page flow diagram, the page element of the page flow diagram is converted into an intermediate description language, each of the page elements corresponds to one intermediate description language; In the case where the code generation unit is a node of the service flow chart, the node of the service flow chart is converted into an intermediate description language, and each of the nodes corresponds to one intermediate description language.

4. The code generation method according to claim 1, characterized in that: The requirement document is obtained based on the following method: Categorize the code generation requirements in the initial requirements document and determine the required data set; Analyze the logical relationship between each demand data in the demand data set to obtain a demand relationship analysis result; Generate a use case model based on the requirement data set and the requirement relationship analysis result, wherein the use case model is used to verify the logical relationship between the code generation requirements and the dependency relationship between the code generation requirements; The code generation requirements in the initial requirement document are verified based on the use case model to obtain a verification result, and the verification result is used to determine the requirement document.

5. The code generation method according to claim 1, characterized in that: The step of inputting the demand document into the graph neural network model to obtain a business process diagram output by the graph neural network model includes: Inputting the requirement document into a graph construction layer in the graph neural network model, obtaining a first requirement structure graph output by the graph construction layer, wherein the graph construction layer is used to represent each element in the requirement document as a plurality of nodes and a plurality of edges, and the graph construction layer is further used to construct the plurality of nodes and the plurality of edges into a first requirement structure graph; Extracting the semantic relationship of the requirement document to obtain a requirement logic data set, and semantically enhancing the first requirement structure diagram based on the requirement logic data set to obtain a semantically enhanced second requirement structure diagram; Inputting the second demand structure graph into the graph convolution layer in the graph neural network model to obtain an information aggregation graph output by the graph convolution layer; The information aggregation graph is input into the decoding layer in the graph neural network model to obtain a business process graph output by the decoding layer. The decoding layer is used to extract key information and business entities from the information aggregation graph. The decoding layer is also used to construct the key information and the business entities into a business process graph. The decoding layer is also used to map the key information into page elements of a page flow graph. The decoding layer is also used to map the business entities into nodes of a service flow graph.

6. The code generation method according to claim 1, characterized in that: After generating the process code that meets the requirements based on the code generation strategy and the business process diagram, the method further includes: Testing the process code, and obtaining code that failed the test and code that passed the test based on the test result; Repairing the failed code to obtain a repaired code; Generate a compiled file based on the repair code and the tested code, and deploy the compiled file to a target server.

7. A code generating device, characterized in that: include: A business process diagram generation module, used to input the demand document into the graph neural network model to obtain a business process diagram output by the graph neural network model, wherein the business process diagram includes at least one of a page flow diagram and a service flow diagram; The code generation module is used to obtain the code generation strategy and generate process code that meets the requirements based on the code generation strategy and the business process diagram, wherein the code generation strategy is the rules that need to be followed during code generation, the page flow diagram is used to generate front-end code, and the service flow diagram is used to generate back-end code.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the code generation method according to any one of claims 1 to 6 is implemented.

9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the code generation method according to any one of claims 1 to 6 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the code generation method according to any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Code generation method and system based on business requirements

    CN120762651A

  • Code generation method and device for multi-modal demand, equipment and storage medium

    CN121635875A

  • Method for designing a task system using a object lifecycle-based state transition diagram

    KR102964554B1

  • Method and apparatus for determining call relationship of generated code, and storage medium

    WO2026144483A1