Method and system for implementing suite mechanism based on low-code platform

By building and managing functional suites on the low-code platform, and using natural language processing and semantic representation models to dynamically select matching suites, we solve the suite management and integration problems of the low-code platform in supporting multiple applications, achieving rapid development and high efficiency. Application deployment improves development efficiency and application quality.

CN118312167BActive Publication Date: 2024-09-10冠骋信息技术(苏州)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410741532.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-09-10
Estimated Expiration
2044-06-11

AI Technical Summary

Technical Problem

When low-code platforms support multiple types of applications, they lack effective suite asset management mechanisms and have barriers to integration and sharing between unit software, resulting in challenges when building and managing suites.

Method used

By obtaining the preset front-end components, back-end service units and data source adapters of the low-code platform, multiple functional suites are built, and natural language processing and semantic representation models are used to dynamically select the target functional suite that best matches the business requirements. Visual configuration and code generation enable rapid application development and deployment.

Benefits of technology

It improves development efficiency, lowers the development threshold, simplifies the development process, supports agile delivery, ensures the quality and stability of applications, and forms a virtuous cycle of asset reuse.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118312167B
    Figure CN118312167B
Patent Text Reader

Abstract

The present invention provides a method and system for realizing a suite mechanism based on a low-code platform, which relates to the field of low-code technology, including obtaining multiple sets of front-end components, back-end service units and data source adapters pre-installed in the low-code platform to constitute multiple function suites of the low-code platform; receiving business requirements input by users, and dynamically selecting a target function suite with the highest matching degree with the business requirements from the multiple function suites based on the business requirements and preset matching rules; visually configuring the target function suite to generate front-end component configuration information, back-end service configuration information and data source adapter configuration information, and dynamically generating corresponding visualization interfaces, API interfaces and microservice units, as well as data models and data access layer codes based on the front-end component configuration information, back-end service configuration information and data source adapter configuration information, and compiling them to obtain a business application package.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to low-code technology, and in particular to a method and system for implementing a suite mechanism based on a low-code platform. Background Art

[0002] With the in-depth development of enterprise digitalization, more and more digital service providers have developed their own low-code platforms in order to carry out product development and project delivery faster. On the low-code platform, developers only need to drag and drop front-end components and write business scripts to quickly develop functional pages. Although the low-code platform can help us quickly build business functions based on front-end components and writing business scripts, if the low-code platform needs to support multiple types of applications, the platform itself cannot design and encapsulate components and logic with application characteristics. There are many challenges in building and managing suites in a low-code environment, such as the lack of an effective suite asset management mechanism, and obstacles to integration and sharing between unit software. Summary of the invention

[0003] The embodiments of the present invention provide a method and system for implementing a suite mechanism based on a low-code platform, which can solve the problems in the prior art.

[0004] According to a first aspect of the embodiments of the present invention,

[0005] Provides a suite mechanism implementation method based on a low-code platform, including:

[0006] Obtain multiple sets of front-end components, back-end service units, and data source adapters pre-installed in the low-code platform to form multiple functional suites of the low-code platform;

[0007] Receiving a business requirement input by a user, and dynamically selecting a target function suite with the highest matching degree with the business requirement from the multiple function suites according to the business requirement and based on a preset matching rule;

[0008] The target functional suite is visually configured to generate front-end component configuration information, back-end service configuration information and data source adapter configuration information; based on the front-end component configuration information, back-end service configuration information and data source adapter configuration information, the corresponding visual interface, API interface and microservice unit, as well as data model and data access layer code are dynamically generated, and compiled to obtain a business application package.

[0009] In an optional embodiment,

[0010] According to the business requirement, based on the preset matching rules, dynamically selecting a target function suite with the highest matching degree with the business requirement from the multiple function suites includes:

[0011] Collect raw data from business-related data and perform standardization processing to obtain text data. Use natural language processing technology to extract entity information and semantic relationships between entity information from text data. Based on the extracted entity information and semantic relationships between entity information, perform knowledge fusion through a preset domain ontology model to obtain a domain knowledge graph.

[0012] Based on the domain knowledge graph, the low-dimensional semantic vectors of business requirements and functional suites are learned through the preset semantic representation model. The low-dimensional semantic vectors of business requirements and functional suites are input into the pre-built matching model for feature conversion and interaction, and the matching score is calculated to obtain the target functional suite with the highest matching degree with the business requirements.

[0013] The matching model is trained by minimizing the loss function using historical matching data between business requirements and feature suites.

[0014] In an optional embodiment,

[0015] By minimizing the loss function, training the matching model includes:

[0016] The loss function calculation formula is as follows:

[0017]

[0018] Where L represents the loss function of the matching model, N represents the total number of training samples, a represents the index of the sample, and w p represents the weight of the positive sample, y a represents the true label of the a-th sample, represents the predicted probability of the ath sample, w n Represents the weight of negative samples.

[0019] In an optional embodiment,

[0020] Through the preset semantic representation model, the low-dimensional semantic vectors of business requirements and functional suites are learned, and the low-dimensional semantic vectors of business requirements and functional suites are input into the pre-built matching model for feature conversion and interaction, and the matching score is calculated. The target functional suite with the highest matching degree with business requirements includes:

[0021] Build a business domain corpus, collect text description data of business requirements and functional suites, train a word embedding model on the business domain corpus through a preset semantic representation model, and use the trained word embedding model to vectorize the text descriptions of business requirements and functional suites to obtain low-dimensional semantic vectors of business requirements and functional suites.

[0022] Through the graph traversal algorithm, the shortest path between the business requirements and the candidate functional suites in the knowledge graph is calculated, and the path similarity is calculated as the matching feature at the knowledge level;

[0023] Based on the path similarity, it is fused with the low-dimensional semantic vectors of business requirements and functional suites, input into the pre-trained matching model, and the final matching score is calculated;

[0024] According to the calculated matching scores, the candidate function suites are sorted, and the function suite with the highest matching degree is selected as the target function suite and recommended to the user.

[0025] In an optional embodiment,

[0026] The objective function calculation formula of the word embedding model is as follows:

[0027] ;

[0028] Where J() represents the objective function of the word embedding model, θ represents the parameter set of the model, T represents the total number of words in the training corpus, and ω t represents the central word at the t-th position, σ(·) represents the Sigmoid function, Indicates the central word ω t The output vector of Indicates the central word ω t The input vector, k represents the number of negative sampling samples, ω i represents the i-th negative sampling word, Represents negative sample ω i expectations, represents the negative sampling distribution.

[0029] In an optional embodiment,

[0030] The method further comprises:

[0031] For new business requirements input by users, the pre-trained semantic representation model is used to convert them into low-dimensional semantic vectors, and the target function suite with the highest semantic similarity is retrieved from the function suite library;

[0032] Use the pre-trained matching model to calculate the matching scores between new business requirements and candidate function suites, sort the candidate function suites according to the matching scores, and generate a recommendation list;

[0033] Collect user feedback data on recommendation results, use the feedback data as new training samples, and update the semantic representation model and matching model according to the preset period.

[0034] In an optional embodiment,

[0035] The target functional suite is visually configured to generate front-end component configuration information, back-end service configuration information and data source adapter configuration information. Based on the front-end component configuration information, back-end service configuration information and data source adapter configuration information, a corresponding visual interface, API interface and microservice unit, as well as data model and data access layer code are dynamically generated, and the business application package is compiled to include:

[0036] Drag and drop front-end components, back-end service components, and data source adapter components from a predefined component library through a visual editor, define the logical relationship and data flow between components through wiring and nesting, combine and configure the components in a visual way, and generate visual configuration information;

[0037] Introducing intelligent recommendation mechanism, analyzing users' historical configuration data and behavior patterns, using collaborative filtering and adaptive recommendation algorithms, and automatically generating personalized recommendation results;

[0038] Based on the visualized configuration information and in combination with the predefined code generation template, the source code of the business application is automatically generated. The source code can be further compiled and packaged to obtain a business application package, which is then deployed to the cloud environment to automatically complete the deployment configuration of the application.

[0039] According to a second aspect of the embodiments of the present invention,

[0040] Provide a suite mechanism implementation system based on a low-code platform, including:

[0041] The first unit is used to obtain multiple sets of front-end components, back-end service units, and data source adapters pre-installed in the low-code platform, forming multiple functional suites of the low-code platform;

[0042] The second unit is configured to receive a business requirement input by a user, and dynamically select a target function suite with the highest matching degree with the business requirement from the multiple function suites according to the business requirement and based on a preset matching rule;

[0043] The third unit is used to visually configure the target function suite, generate front-end component configuration information, back-end service configuration information and data source adapter configuration information, and dynamically generate corresponding visual interfaces, API interfaces and microservice units, as well as data models and data access layer codes based on the front-end component configuration information, back-end service configuration information and data source adapter configuration information, and compile them to obtain a business application package.

[0044] According to a third aspect of the embodiments of the present invention,

[0045] An electronic device is provided, comprising:

[0046] processor;

[0047] a memory for storing processor-executable instructions;

[0048] The processor is configured to call the instructions stored in the memory to execute the aforementioned method.

[0049] According to a fourth aspect of the embodiments of the present invention,

[0050] A computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the aforementioned method is implemented.

[0051] In this embodiment, by presetting multiple functional suites, commonly used front-end components, back-end service units and data source adapters are combined and integrated, reducing the workload of building applications from scratch. The appropriate target functional suite is automatically selected according to business needs, avoiding duplication of work and improving development efficiency. The front-end components, back-end service units and data source adapters preset in the low-code platform can be reused in multiple functional suites, improving the utilization rate of software assets. At the same time, the applications generated based on the target functional suite can also be reused by other projects, thus forming a virtuous asset reuse cycle. Users only need to perform visual configuration according to business needs, without writing a lot of code, to automatically generate front-end interfaces, API interfaces, microservice units and data model codes, which reduces the development threshold and simplifies the development process. Through configuration and assembly, changes in business needs can be quickly responded to, the development cycle can be shortened, and agile and iterative delivery can be supported. The preset functional suites are carefully designed and tested to ensure the quality and stability of the generated applications. At the same time, following coding standards and best practices improves the maintainability of the application. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 A flowchart of a method for implementing a suite mechanism based on a low-code platform according to an embodiment of the present invention;

[0053] Figure 2 This is a structural diagram of a system for implementing a suite mechanism based on a low-code platform according to an embodiment of the present invention. DETAILED DESCRIPTION

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

[0055] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0056] Figure 1 The following is a flow chart of a method for implementing a suite mechanism based on a low-code platform according to an embodiment of the present invention. Figure 1 As shown, the method includes:

[0057] S101. Acquire multiple sets of front-end components, back-end service units, and data source adapters pre-installed in the low-code platform to form multiple functional suites of the low-code platform;

[0058] The low-code platform pre-installs multiple sets of front-end components, back-end service units, and data source adapters, which constitute the basic functional suite of the platform. Each functional suite is designed for a specific business scenario or field, and includes the relevant UI interface, business logic, and data processing capabilities.

[0059] For example, a metadata-based description method is adopted. Each functional suite has a corresponding metadata file, which defines the basic information of the suite, such as name, version, applicable scenario, dependencies, etc., as well as the list and configuration parameters of the included components, services and adapters in JSON format. The metadata file is stored in the registration center of the low-code platform and can be queried and managed through the API interface.

[0060] When a user requests a list of available function suites, the low-code platform reads all metadata files from the registry, parses the information, and generates a summary view of the function suite. The summary view contains basic information and capability descriptions of the suite, making it easy for users to quickly understand and select. It also provides a visual preview and interactive demonstration of the function suite, so that users can actually experience the interface and functions of the suite to evaluate whether it meets their business needs.

[0061] S102. Receive a business requirement input by a user, and dynamically select a target function suite that has the highest degree of matching with the business requirement from the multiple function suites based on the business requirement and a preset matching rule;

[0062] Users enter their business requirements descriptions through natural language or structured forms. In order to facilitate users to accurately express their business requirements, a guidance mechanism based on question-answer interaction can be used. The system will dynamically generate a series of questions based on the user's initial input to guide the user to further clarify and refine their requirements.

[0063] When implementing question-and-answer interaction, a dialogue process design based on a decision tree is adopted. Each question corresponds to a node in the decision tree. Based on the user's answer, the system will traverse along the edge of the decision tree until it reaches the leaf node and generates the final business requirement description. The structure and question set of the decision tree can be configured and managed through a visual editor, supporting dynamic updates and optimization.

[0064] In an optional embodiment,

[0065] According to the business requirement, based on the preset matching rules, dynamically selecting a target function suite with the highest matching degree with the business requirement from the multiple function suites includes:

[0066] Collect raw data from business-related data and perform standardization processing to obtain text data. Use natural language processing technology to extract entity information and semantic relationships between entity information from text data. Based on the extracted entity information and semantic relationships between entity information, perform knowledge fusion through a preset domain ontology model to obtain a domain knowledge graph.

[0067] Based on the domain knowledge graph, the low-dimensional semantic vectors of business requirements and functional suites are learned through the preset semantic representation model. The low-dimensional semantic vectors of business requirements and functional suites are input into the pre-built matching model for feature conversion and interaction, and the matching score is calculated to obtain the target functional suite with the highest matching degree with the business requirements.

[0068] The matching model is trained by minimizing the loss function using historical matching data between business requirements and feature suites.

[0069] For example, firstly, raw data is collected from multi-source heterogeneous data such as business documents, functional descriptions, and technical documents; the collected raw data is cleaned, deduplicated, and formatted; natural language processing technologies such as named entity recognition and part-of-speech tagging are used to extract entity information such as business concepts, functional components, and technical terms from text data; and semantic relationships between entities are extracted from text data using technologies such as dependency analysis and co-occurrence analysis;

[0070] Based on the extracted entities and relationships, a domain ontology model is designed to define the hierarchical structure and constraint rules of concept categories, attributes and relationships; the extracted entities and relationships are instantiated into the ontology model, and through knowledge fusion technology, entity ambiguity is eliminated, duplicate entities are merged, and entity links across data sources are established to form an interconnected knowledge graph;

[0071] The business domain knowledge graph is represented as a directed heterogeneous graph, where nodes represent entities and edges represent relationships. Different types of entities and relationships are represented by different node and edge attributes.

[0072] Initialize the feature vectors of nodes and edges. You can use pre-trained knowledge graph embedding vectors, such as TransE, TransR, etc., or you can initialize them randomly.

[0073] Apply graph neural networks to learn the hidden state representation of nodes and edges, and update the hidden state of nodes by aggregating the neighbor information of nodes. Multi-hop information propagation and reasoning are achieved by superimposing multiple layers of graph neural networks. Each layer of graph neural network can capture neighbor information of different hops and learn long-range dependencies between nodes. In the output layer of the graph neural network, the final hidden state representation of each node is obtained as the knowledge-enhanced representation of the entity. The knowledge-enhanced representation integrates the structural information and semantic information of the entity in the knowledge graph.

[0074] Map entities in business requirements and functional suites to corresponding nodes in the knowledge graph, find their shortest paths in the graph, and calculate path similarity. Path similarity takes into account the semantic and structural associations between entities.

[0075] The knowledge-enhanced representation and path similarity of the entity are used as additional features, input into the matching model, and fused with the low-dimensional semantic vector to obtain the final matching score. The knowledge-enhanced representation and path similarity can provide additional semantic and structural matching signals to supplement the deficiencies of semantic matching.

[0076] In an optional embodiment,

[0077] By minimizing the loss function, training the matching model includes:

[0078] The loss function calculation formula is as follows:

[0079] ;

[0080] Where L represents the loss function of the matching model, N represents the total number of training samples, a represents the index of the sample, and w p represents the weight of the positive sample, y a represents the true label of the a-th sample, : The predicted probability of the ath sample, w n Represents the weight of negative samples.

[0081] In an optional embodiment,

[0082] Through the preset semantic representation model, the low-dimensional semantic vectors of business requirements and functional suites are learned, and the low-dimensional semantic vectors of business requirements and functional suites are input into the pre-built matching model for feature conversion and interaction, and the matching score is calculated. The target functional suite with the highest matching degree with business requirements includes:

[0083] Build a business domain corpus, collect text description data of business requirements and functional suites, train a word embedding model on the business domain corpus through a preset semantic representation model, and use the trained word embedding model to vectorize the text descriptions of business requirements and functional suites to obtain low-dimensional semantic vectors of business requirements and functional suites.

[0084] Through the graph traversal algorithm, the shortest path between the business requirements and the candidate functional suites in the knowledge graph is calculated, and the path similarity is calculated as the matching feature at the knowledge level;

[0085] Based on the path similarity, it is fused with the low-dimensional semantic vectors of business requirements and functional suites, input into the pre-trained matching model, and the final matching score is calculated;

[0086] According to the calculated matching scores, the candidate function suites are sorted, and the function suite with the highest matching degree is selected as the target function suite and recommended to the user.

[0087] For example, the system dynamically selects the target function suite that best matches the requirements from the preset function suites based on the business requirements input by the user and using the preset matching rules. The matching rules include keyword matching, semantic analysis matching, and manual annotation matching, which comprehensively consider factors such as the capabilities, applicable scenarios, and user evaluations of the function suites.

[0088] Semantic analysis matching uses natural language processing technology to analyze the semantic similarity between user demand descriptions and feature suite metadata based on keyword matching. A pre-trained language model is used to convert text into low-dimensional semantic vectors, and the cosine similarity between vectors is calculated to obtain the semantic matching score. Semantic analysis matching can discover implicit semantic relationships that are difficult to capture with keyword matching, thus improving the accuracy of matching.

[0089] Manual labeling and matching uses artificial intelligence and crowdsourcing to label the domain knowledge and business scenarios of the function suite. By adding business tags and applicable scenario descriptions to each function suite, a knowledge graph of the function suite is formed. When the user enters a business requirement, the system finds the function suite related to the requirement through reasoning and querying of the knowledge graph and calculates its matching score.

[0090] When implementing matching rules, we used a combination of rule-based reasoning and machine learning. Rule-based reasoning uses predefined IF-THEN rules to perform weighted combination and threshold filtering on the scores of different matching methods to generate preliminary matching results. Machine learning trains on historical user needs and selected functional suites to learn the optimal parameters and combination strategies of matching rules, and continuously optimizes matching accuracy and efficiency.

[0091] In an optional embodiment,

[0092] The objective function calculation formula of the word embedding model is as follows:

[0093] ;

[0094] Where J() represents the objective function of the word embedding model, θ represents the parameter set of the model, T represents the total number of words in the training corpus, and ω t represents the central word at the t-th position, σ(·) represents the Sigmoid function, Indicates the central word ω t The output vector of Indicates the central word ω t The input vector, k represents the number of negative sampling samples, ω i represents the i-th negative sampling word, Represents negative sample ω i expectations, represents the negative sampling distribution.

[0095] In an optional embodiment,

[0096] The method further comprises:

[0097] For new business requirements input by users, the pre-trained semantic representation model is used to convert them into low-dimensional semantic vectors, and the target function suite with the highest semantic similarity is retrieved from the function suite library;

[0098] Use the pre-trained matching model to calculate the matching scores between new business requirements and candidate function suites, sort the candidate function suites according to the matching scores, and generate a recommendation list;

[0099] Collect user feedback on recommendation results, use the feedback data as new training samples, and update the semantic representation model and matching model according to the preset cycle

[0100] Exemplarily, firstly, a business domain corpus is constructed to collect text description data of business requirements and functional suites, and pre-processing operations such as cleaning, word segmentation, and stop word removal are performed on the text data.

[0101] Select a preset semantic representation model, such as Word2Vec, GloVe, FastText, etc., and train a word embedding model on the business domain corpus. The word embedding model maps each word to a low-dimensional continuous vector space, so that semantically similar words are close in the vector space.

[0102] Use the trained word embedding model to vectorize the text description of business requirements and functional suites. Replace each word with the corresponding word vector, and perform operations such as averaging, weighted averaging, and maximum pooling on the word vectors to obtain the document-level semantic vectors of business requirements and functional suites.

[0103] A matching model is constructed. The input of the matching model is the semantic vector of the business requirements and functional suite, and the output is the matching score between them.

[0104] Collect paired data of business requirements and functional suites to build a training dataset for the matching model. Each training sample includes a business requirement vector, a functional suite vector, and the matching label between them (match is 1, mismatch is 0).

[0105] The matching model is trained end-to-end using the training dataset. The matching model calculates the predicted matching score through forward propagation, then measures the difference between the predicted value and the true label through a loss function (such as cross entropy loss), and updates the model parameters through a back-propagation algorithm to continuously optimize the performance of the matching model.

[0106] For a given business requirement, the trained word embedding model is used to convert it into a semantic vector representation. Then, the candidate function suite library is traversed and a semantic vector representation is also performed for each function suite.

[0107] The business requirement vector and the candidate functional suite vector are input into the trained matching model to calculate the matching score between them. The matching model automatically learns the semantic interaction and matching pattern between the requirements and the suite, and obtains a matching score between 0 and 1. The higher the score, the higher the matching degree.

[0108] The candidate function suites are sorted according to the matching scores, and several function suites with the highest scores are selected as recommendation results and returned to the user.

[0109] Based on user feedback and choices, new business requirements and functional suite matching data are collected, the matching model is updated regularly, and the performance and adaptability of the matching model are continuously improved.

[0110] In this embodiment, by training the word embedding model on the business domain corpus, the business domain-specific word semantic representation can be learned. Compared with the general pre-trained word embedding model, the domain-specific word embedding model can better capture the semantic information of key words in business requirements and functional suites, and improve the quality of text representation and the accuracy of matching. Introducing knowledge graph to enhance semantic understanding: Using the shortest path between the mapping nodes of business requirements and functional suites in the knowledge graph as the matching feature at the knowledge level, the association information between domain knowledge and concepts can be fully utilized to capture the implicit semantic relationship between business requirements and functional suites, and improve the accuracy and interpretability of matching. By fusing the low-dimensional semantic vector and the path similarity feature and inputting the pre-trained matching model, the matching information of different dimensions can be comprehensively utilized to more comprehensively evaluate the correlation between business requirements and functional suites, and improve the accuracy and robustness of matching. For new business requirements, the pre-trained semantic representation model and matching model can be used to calculate the matching score between the candidate functional suites in real time, and sort and recommend them according to the score. This personalized recommendation mechanism can improve user satisfaction and efficiency, reduce the time cost of user search and screening, and collect user feedback data on recommendation results as new training samples to regularly update and optimize semantic representation models and matching models to adapt to changing business needs and user preferences, thereby improving the quality of recommendations and user experience. Pre-trained semantic representation models and matching models can quickly calculate the matching degree between business needs and massive functional suites, avoiding the inefficiency of traditional manual matching and searching, and greatly improving matching efficiency and response speed.

[0111] S103. Visually configure the target function suite to generate front-end component configuration information, back-end service configuration information and data source adapter configuration information; based on the front-end component configuration information, back-end service configuration information and data source adapter configuration information, dynamically generate corresponding visual interfaces, API interfaces and microservice units, as well as data models and data access layer codes, and compile them to obtain business application packages.

[0112] After selecting the target functional suite, the low-code platform needs to provide a visual configuration environment, allowing users to complete the personalized customization of the functional suite and the orchestration of business logic through human-computer interaction methods such as dragging and dropping and connecting. At the same time, the system automatically generates the corresponding application code and configuration files based on the user's visual configuration, realizing the rapid construction and delivery of business applications.

[0113] In an optional embodiment,

[0114] The target functional suite is visually configured to generate front-end component configuration information, back-end service configuration information and data source adapter configuration information. Based on the front-end component configuration information, back-end service configuration information and data source adapter configuration information, a corresponding visual interface, API interface and microservice unit, as well as data model and data access layer code are dynamically generated, and the business application package is compiled to include:

[0115] Drag and drop front-end components, back-end service components, and data source adapter components from a predefined component library through a visual editor, define the logical relationship and data flow between components through wiring and nesting, combine and configure the components in a visual way, and generate visual configuration information;

[0116] Introducing intelligent recommendation mechanism, analyzing users' historical configuration data and behavior patterns, using collaborative filtering and adaptive recommendation algorithms, and automatically generating personalized recommendation results;

[0117] Based on the visualized configuration information and in combination with the predefined code generation template, the source code of the business application is automatically generated. The source code can be further compiled and packaged to obtain a business application package, which is then deployed to the cloud environment to automatically complete the deployment configuration of the application.

[0118] Exemplarily, a visual editor is provided, which includes a predefined component library, including front-end components, back-end service components, and data source adapter components. The user selects the required components from the component library by dragging and dropping, and places them on the editor's canvas. The logical relationship and data flow between components are defined by connecting and nesting, such as connecting the front-end component with the back-end service component, connecting the back-end service component with the data source adapter component, etc. The properties of each component are configured, such as setting the component name, parameters, style, etc. After the combination and configuration of the components are completed, the visual configuration information is generated, including the component type, location, connection relationship, and property settings.

[0119] Collect and analyze users' historical configuration data and behavior patterns, such as commonly used component combinations and parameter settings, and use collaborative filtering algorithms to generate personalized component recommendations and configuration recommendations based on the user's configuration behavior and similar configurations of other users. Use adaptive recommendation algorithms to dynamically adjust recommendation results based on the user's current configuration status and contextual information, provide real-time intelligent recommendations, and present recommendation results to users in a visual manner, such as highlighting recommended components in the component library, or providing smart prompts and auto-completion functions during the configuration process.

[0120] Based on the visual configuration information, combined with the predefined code generation template, the source code of the business application is automatically generated. According to the type and attributes of the component, the corresponding front-end code, such as HTML, CSS and JavaScript, is generated. According to the connection relationship and data flow between components, the back-end service code, such as API interface, microservice unit, etc., is generated. According to the configuration of the data source adapter, the data model and data access layer code, such as database table structure, ORM mapping, etc., are generated. The generated source code is compiled and packaged to obtain a deployable business application package.

[0121] Upload the generated business application package to the cloud environment, and automatically complete the application deployment configuration according to the configuration information of the application package, such as creating a virtual machine, configuring the network, allocating resources, etc., start the application, and perform necessary initialization and data loading, monitor the running status of the application, and provide log viewing, performance monitoring and other functions to facilitate users to perform application operation and maintenance management.

[0122] In this embodiment, through visual configuration and automatic code generation, the workload of manual coding is greatly reduced, and the development efficiency and speed are improved. Users do not need to have deep programming knowledge and experience, and can complete the development of business applications in a visual way, which lowers the development threshold and enables more business personnel to participate in application development. Through visual configuration and code generation templates, the generated code structure is clear, standardized and unified, which improves the maintainability and scalability of the application. Through the automated code generation and deployment process, the application delivery cycle is greatly shortened, and rapid iteration and launch are achieved. Convenience and user experience. By automatically deploying the application to the cloud environment, the elastic scaling and high availability of the application are achieved, meeting the performance and concurrency requirements in different business scenarios.

[0123] Figure 2 This is a schematic diagram of a system for implementing a suite mechanism based on a low-code platform according to an embodiment of the present invention. Figure 2 As shown, the system comprises:

[0124] The first unit is used to obtain multiple sets of front-end components, back-end service units, and data source adapters pre-installed in the low-code platform, forming multiple functional suites of the low-code platform;

[0125] The second unit is configured to receive a business requirement input by a user, and dynamically select a target function suite with the highest matching degree with the business requirement from the multiple function suites according to the business requirement and based on a preset matching rule;

[0126] The third unit is used to visually configure the target function suite, generate front-end component configuration information, back-end service configuration information and data source adapter configuration information, and dynamically generate corresponding visual interfaces, API interfaces and microservice units, as well as data models and data access layer codes based on the front-end component configuration information, back-end service configuration information and data source adapter configuration information, and compile them to obtain a business application package.

[0127] According to a third aspect of the embodiments of the present invention,

[0128] An electronic device is provided, comprising:

[0129] processor;

[0130] a memory for storing processor-executable instructions;

[0131] The processor is configured to call the instructions stored in the memory to execute the aforementioned method.

[0132] According to a fourth aspect of the embodiments of the present invention,

[0133] A computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the aforementioned method is implemented.

[0134] The present invention may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present invention.

[0135] 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 replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for implementing a suite mechanism based on a low-code platform, characterized in that: include: Obtain multiple sets of front-end components, back-end service units, and data source adapters pre-installed in the low-code platform to form multiple functional suites of the low-code platform; Receiving a business requirement input by a user, and dynamically selecting a target function suite with the highest matching degree with the business requirement from the multiple function suites according to the business requirement and based on a preset matching rule; Visually configure the target functional suite to generate front-end component configuration information, back-end service configuration information, and data source adapter configuration information; based on the front-end component configuration information, back-end service configuration information, and data source adapter configuration information, dynamically generate corresponding visual interfaces, API interfaces, and microservice units, as well as data models and data access layer codes, and compile them to obtain a business application package; According to the business requirement, based on the preset matching rules, dynamically selecting a target function suite with the highest matching degree with the business requirement from the multiple function suites includes: Collect raw data from business-related data and perform standardization processing to obtain text data. Use natural language processing technology to extract entity information and semantic relationships between entity information from text data. Based on the extracted entity information and semantic relationships between entity information, perform knowledge fusion through a preset domain ontology model to obtain a domain knowledge graph. Based on the domain knowledge graph, the low-dimensional semantic vectors of business requirements and functional suites are learned through the preset semantic representation model. The low-dimensional semantic vectors of business requirements and functional suites are input into the pre-built matching model for feature conversion and interaction, and the matching score is calculated to obtain the target functional suite with the highest matching degree with the business requirements. The matching model is trained by minimizing the loss function using historical matching data between business requirements and feature suites.

2. The method according to claim 1, characterized in that By minimizing the loss function, training the matching model includes: The loss function calculation formula is as follows: ; Where L represents the loss function of the matching model, N represents the total number of training samples, a represents the index of the sample, and w p represents the weight of the positive sample, y a represents the true label of the a-th sample, ŷ a : The predicted probability of the ath sample, w n Represents the weight of negative samples.

3. The method according to claim 1, characterized in that Through the preset semantic representation model, the low-dimensional semantic vectors of business requirements and functional suites are learned, and the low-dimensional semantic vectors of business requirements and functional suites are input into the pre-built matching model for feature conversion and interaction, and the matching score is calculated. The target functional suite with the highest matching degree with business requirements includes: Build a business domain corpus, collect text description data of business requirements and functional suites, train a word embedding model on the business domain corpus through a preset semantic representation model, and use the trained word embedding model to vectorize the text descriptions of business requirements and functional suites to obtain low-dimensional semantic vectors of business requirements and functional suites. Through the graph traversal algorithm, the shortest path between the business requirements and the candidate functional suites in the knowledge graph is calculated, and the path similarity is calculated as the matching feature at the knowledge level; Based on the path similarity, it is fused with the low-dimensional semantic vectors of business requirements and functional suites, input into the pre-trained matching model, and the final matching score is calculated; According to the calculated matching scores, the candidate function suites are sorted, and the function suite with the highest matching degree is selected as the target function suite and recommended to the user.

4. The method according to claim 3, characterized in that The objective function calculation formula of the word embedding model is as follows: ; Where J() represents the objective function of the word embedding model, θ represents the parameter set of the model, T represents the total number of words in the training corpus, and ω t represents the central word at the t-th position, σ(·) represents the Sigmoid function, Indicates the central word ω t The output vector of Indicates the central word ω t The input vector, k represents the number of negative sampling samples, ω i represents the i-th negative sampling word, Represents negative sample ω i expectations, represents the negative sampling distribution.

5. The method according to claim 1, characterized in that The method further comprises: For new business requirements input by users, the pre-trained semantic representation model is used to convert them into low-dimensional semantic vectors, and the target function suite with the highest semantic similarity is retrieved from the function suite library; Use the pre-trained matching model to calculate the matching scores between new business requirements and candidate function suites, sort the candidate function suites according to the matching scores, and generate a recommendation list; Collect user feedback data on recommendation results, use the feedback data as new training samples, and update the semantic representation model and matching model according to the preset period.

6. The method according to claim 1, characterized in that The target functional suite is visually configured to generate front-end component configuration information, back-end service configuration information and data source adapter configuration information. Based on the front-end component configuration information, back-end service configuration information and data source adapter configuration information, a corresponding visual interface, API interface and microservice unit, as well as data model and data access layer code are dynamically generated, and the business application package is compiled to include: Drag and drop front-end components, back-end service components, and data source adapter components from a predefined component library through a visual editor, define the logical relationship and data flow between components through wiring and nesting, combine and configure the components in a visual way, and generate visual configuration information; Introducing intelligent recommendation mechanism, analyzing users' historical configuration data and behavior patterns, using collaborative filtering and adaptive recommendation algorithms, and automatically generating personalized recommendation results; Based on the visualized configuration information and in combination with the predefined code generation template, the source code of the business application is automatically generated. The source code can be further compiled and packaged to obtain a business application package, which is then deployed to the cloud environment to automatically complete the deployment configuration of the application.

7. A suite mechanism implementation system based on a low-code platform, used to implement the method described in any one of claims 1 to 6, characterized in that: include: The first unit is used to obtain multiple sets of front-end components, back-end service units, and data source adapters pre-installed in the low-code platform, forming multiple functional suites of the low-code platform; The second unit is configured to receive a business requirement input by a user, and dynamically select a target function suite with the highest matching degree with the business requirement from the multiple function suites according to the business requirement and based on a preset matching rule; The third unit is used to visually configure the target function suite, generate front-end component configuration information, back-end service configuration information and data source adapter configuration information, and dynamically generate corresponding visual interfaces, API interfaces and microservice units, as well as data models and data access layer codes based on the front-end component configuration information, back-end service configuration information and data source adapter configuration information, and compile them to obtain a business application package.

8. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to call the instructions stored in the memory to execute the method according to any one of claims 1 to 6.

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