Business logic code generation method, device and equipment

Through the atomic node configuration interface and parameter configuration interface, users generate business logic nodes, and use the atomic node's logical code segments and business parameters to automatically generate business logic code segments, solving the problem of low efficiency in business logic code generation in the existing technology, and achieving efficient and flexible business logic code generation.

CN119718288APending Publication Date: 2025-03-28TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311291053.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-28
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

In the prior art, the generation efficiency of business logic code is low, and developers need to hand-written multiple business logic nodes, resulting in inconsistent code quality and low production efficiency.

Method used

The candidate atomic nodes are displayed through the atomic node configuration interface. The user selects and configures parameters to generate business logic nodes, and uses the atomic node's logical code segments and business parameters to automatically generate business logic code segments.

Benefits of technology

It realizes the automatic generation of business logic nodes, improves the generation efficiency and configuration flexibility of business logic code, and reduces the burden on developers to handwritten code.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119718288A_ABST
    Figure CN119718288A_ABST
Patent Text Reader

Abstract

The invention discloses a business logic code generation method, device and equipment, and relates to the technical field of computers. The method comprises the steps that an atomic node configuration interface is displayed, at least one candidate atomic node is displayed in the atomic node configuration interface, and the atomic node is used for representing a logic code segment irrelevant to a service; in response to an operation of selecting a first atomic node in the at least one candidate atomic node, displaying a parameter configuration interface corresponding to the first atomic node; displaying service parameters configured for the first atomic node in a parameter configuration interface; in the logic node arrangement interface, displaying a first service logic node generated based on the at least one atomic node; wherein the business logic code snippet corresponding to the first business logic node is generated based on the logic code snippet and the business parameter corresponding to the at least one atomic node. According to the method, the generation efficiency of the business logic code is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a method, device and equipment for generating business logic code. Background Art

[0002] In code development technology, developers usually need to design and develop business logic codes that meet business needs based on business requirements.

[0003] In the related art, developers write business logic nodes one by one, and different business logic nodes represent different business logic relationships. Business logic codes are obtained by performing business arrangement on business logic nodes.

[0004] However, the codes included in the business logic nodes in the above-mentioned related technologies all need to be written by developers one by one, which also leads to low efficiency in generating the business logic codes. Summary of the invention

[0005] The embodiment of the present application provides a method, device and equipment for generating business logic code. The technical solution is as follows:

[0006] According to one aspect of an embodiment of the present application, a method for generating a business logic code is provided, the method comprising:

[0007] Displaying an atomic node configuration interface, wherein at least one candidate atomic node is displayed in the atomic node configuration interface, and the atomic node is used to represent a logical code segment that is not related to the business;

[0008] In response to an operation of selecting a first atomic node among the at least one candidate atomic node, displaying a parameter configuration interface corresponding to the first atomic node;

[0009] In the parameter configuration interface, the service parameters configured for the first atomic node are displayed, and the service parameters refer to input parameters and output parameters related to the service;

[0010] In the logic node orchestration interface, a first business logic node generated based on at least one atomic node is displayed; wherein, the business logic code fragment corresponding to the first business logic node is generated based on the logic code segment and business parameters respectively corresponding to the at least one atomic node, and the at least one atomic node includes the first atomic node.

[0011] According to another aspect of an embodiment of the present application, a method for generating a business logic code is provided, the method comprising:

[0012] Acquire a service parameter configured for a first atomic node, where the first atomic node is selected from at least one candidate atomic node, the atomic node is used to represent a logic code segment that is not related to the service, and the service parameter refers to an input parameter and an output parameter related to the service;

[0013] Acquire a logical code segment and a business parameter respectively corresponding to at least one atomic node, wherein the at least one atomic node includes the first atomic node;

[0014] Based on the logic code segments and business parameters respectively corresponding to the at least one atomic node, a business logic code segment corresponding to the first business logic node is generated.

[0015] According to one aspect of an embodiment of the present application, a device for generating a business logic code is provided, the device comprising:

[0016] An interface display module, used for displaying an atomic node configuration interface, wherein the atomic node configuration interface displays at least one candidate atomic node, wherein the atomic node is used for representing a logical code segment that is not related to the business;

[0017] The interface display module is further configured to, in response to an operation of selecting a first atomic node among the at least one candidate atomic node, display a parameter configuration interface corresponding to the first atomic node;

[0018] A parameter display module, used to display the business parameters configured for the first atomic node in the parameter configuration interface, where the business parameters refer to input parameters and output parameters related to the business;

[0019] A node display module is used to display a first business logic node generated based on at least one atomic node in a logical node orchestration interface; wherein the business logic code fragment corresponding to the first business logic node is generated based on the logic code fragment and business parameters respectively corresponding to the at least one atomic node, and the at least one atomic node includes the first atomic node.

[0020] According to another aspect of an embodiment of the present application, a device for generating a business logic code is provided, the device comprising:

[0021] A parameter acquisition module, used to acquire a service parameter configured for a first atomic node, where the first atomic node is selected from at least one candidate atomic node, the atomic node is used to represent a logical code segment that is not related to the service, and the service parameter refers to an input parameter and an output parameter related to the service;

[0022] The parameter acquisition module is further used to acquire the logic code segment and the service parameter respectively corresponding to at least one atomic node, and the at least one atomic node includes the first atomic node;

[0023] The code generation module is used to generate a business logic code fragment corresponding to the first business logic node based on the logic code segment and business parameters respectively corresponding to the at least one atomic node.

[0024] According to one aspect of an embodiment of the present application, a computer device is provided, comprising a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the method for generating business logic code as described above.

[0025] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the above-mentioned method for generating business logic code.

[0026] According to one aspect of the embodiments of the present application, a computer program product is provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the above-mentioned method for generating business logic code.

[0027] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0028] By using atomic nodes to generate business logic nodes, the automatic generation of business logic nodes is realized, thereby improving the efficiency of generating business logic code. Specifically, by configuring business parameters for atomic nodes, business logic nodes related to the business are constructed, which not only improves the efficiency of generating business logic code, but also improves the configuration flexibility of business logic nodes. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a schematic diagram of an implementation environment of a solution provided by an embodiment of the present application;

[0030] Figure 2 It is a schematic diagram of a method for generating business logic code provided by an embodiment of the present application;

[0031] Figure 3 It is a flowchart of a method for generating business logic code provided by an embodiment of the present application;

[0032] Figure 4 It is a schematic diagram of system capabilities represented by atomic nodes provided by an embodiment of the present application;

[0033] Figure 5 is a schematic diagram of an atomic node configuration interface provided by an embodiment of the present application;

[0034] Figure 6 is a schematic diagram of a parameter configuration interface provided by an embodiment of the present application;

[0035] Figure 7 is a schematic diagram of a logical node arrangement interface provided by an embodiment of the present application;

[0036] Figure 8 is a flowchart of a method for generating business logic code provided by another embodiment of the present application;

[0037] Fig. 9 is a schematic diagram of an assignment method selection interface provided by an embodiment of the present application;

[0038] Fig.10 is a flowchart of a method for generating business logic code provided by another embodiment of the present application;

[0039] Fig.11 is a schematic diagram of a logical node arrangement interface provided by another embodiment of the present application;

[0040] Fig.12 is a flowchart of a method for generating business logic code provided by another embodiment of the present application;

[0041] Fig.13 is a flowchart of a method for generating business logic code provided by another embodiment of the present application;

[0042] Fig.14 is a flowchart of a method for generating business logic code provided by another embodiment of the present application;

[0043] Fig.15 It is a block diagram of a method for generating business logic code provided by an embodiment of the present application;

[0044] Fig.16 It is a schematic diagram of the architecture design and implementation of the execution engine provided by one embodiment of the present application;

[0045] Fig.17 is a block diagram of a method for generating business logic code provided by another embodiment of the present application;

[0046] Fig.18 It is a block diagram of a device for generating business logic code provided by one embodiment of the present application;

[0047] Fig.19 is a block diagram of a device for generating business logic code provided by another embodiment of the present application;

[0048] Fig. 20 is a block diagram of a device for generating business logic code provided by another embodiment of the present application;

[0049] Fig.21 is a block diagram of a device for generating business logic code provided by another embodiment of the present application;

[0050] Fig. 22 It is a structural block diagram of a computer device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0051] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0052] Before introducing the technical solution of this application, some background technical knowledge involved in this application is first introduced and explained. The following related technologies can be combined arbitrarily with the technical solution of the embodiment of this application as optional solutions, and they all belong to the protection scope of the embodiment of this application. The embodiment of this application includes at least part of the following contents.

[0053] 1. DSL (Domain-specific Language): A language tool used to solve business problems in specific scenarios.

[0054] 2.Logic Schema: Data model expression of a specific problem domain.

[0055] 3. Execution engine: highly abstract business execution logic, the core component of the system. The engine can be used to quickly establish and lay out the functions required by the program.

[0056] 4. Business logic node: In business orchestration, a code snippet with business attributes and concepts.

[0057] 5. Atomic nodes: code snippets or components that do not contain business logic.

[0058] 6. User Interface (UI) controls: Any visual controls or elements that can be seen on the user interface of an application, such as pictures, input boxes, text boxes, buttons, labels, and other controls, some of which respond to user operations. For example, a configuration control displays an assignment method selection interface in response to an operation on the configuration control. The UI controls involved in the embodiments of this application include, but are not limited to: configuration controls.

[0059] Please refer to Figure 1 , which shows a schematic diagram of a solution implementation environment provided by an embodiment of the present application. The solution implementation environment may include: a terminal device 10 and a server 20.

[0060] The terminal device 10 includes, but is not limited to, mobile phones, tablet computers, intelligent voice interaction devices, game consoles, wearable devices, multimedia playback devices, PCs (Personal Computers), vehicle-mounted terminals, smart home appliances and other electronic devices. The client of the target application (such as a business development program) can be installed in the terminal device 10. Optionally, the target application can be an application that needs to be downloaded and installed, or it can be a click-to-use application, which is not limited in the embodiments of the present application.

[0061] In the embodiment of the present application, the target application may be any one of a business development program, a code generation program, etc. In the present embodiment, the target application is a business development program. By building multiple atomic nodes in the business development program, when generating a business logic node, it is only necessary to assign values ​​to the input parameters and output parameters of the atomic nodes, thereby realizing rapid generation of business logic nodes.

[0062] The server 20 is used to provide background services for the client of the target application in the terminal device 10. For example, the server 20 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms, but is not limited to these.

[0063] The terminal device 10 and the server 20 can communicate with each other via a network, which can be a wired network or a wireless network.

[0064] In the method provided in the embodiment of the present application, the execution subject of each step may be a computer device, which refers to an electronic device with data calculation, processing and storage capabilities. The computer device may be Figure 1 The terminal device 10 in the embodiment may also be the server 20. In some embodiments, the terminal device 10 performs the steps related to display in the following steps, and the steps unrelated to display may be performed by the terminal device 10 or the server 20, and this application does not limit this.

[0065] Please refer to Figure 2 , showing a schematic diagram of a method for generating business logic code provided by an embodiment of the present application.

[0066] like Figure 2As shown in 200, by abstracting and integrating capabilities that do not contain business logic, atomic nodes that are not related to the business are formed. Business logic nodes are formed by arranging atomic capabilities and input and output assignment operations. Through the visual connection of the orchestration canvas and the use of the architecture code generation engine, the atomic nodes and business logic nodes are automatically coded.

[0067] The following is an exemplary description of the solutions in the related art.

[0068] In the front-end logic orchestration scheme of the related technology, developers use visual means to drag and drop the split business logic code fragments to form an orchestration flow for external use. The orchestration means in the related technology still use handwritten code to form business logic code fragments, and only use orchestration to connect the business logic fragments. However, as the demand for customized services becomes stronger and stronger, the logic code becomes complex and has great differences. The orchestration method in the related technology will have the following problems: the business node code in the orchestration is judged by the developer on his own, and there is a lack of splitting standards for business logic fragments, which causes the code fragments to become larger and larger, difficult to maintain, and loses the flexibility of orchestration; the business node code is still generated by handwritten code development, which is easy to cause inconsistent code quality due to the uneven level and proficiency of developers, and it is easy to have bugs in the existing network, and the production quality cannot be guaranteed; the handwritten code is inefficient and time-consuming, and manpower cannot be fully released, and production efficiency cannot be qualitatively improved; the visual orchestration interface is not interactive and the configuration panel information is large and complex, which makes the overall user process inconvenient and inefficient.

[0069] The embodiment of the present application provides a solution for generating business logic node codes in the orchestration. On the basis of retaining the flexibility and visualization of the orchestration itself, a standardized node code generation method is provided to improve the efficiency and quality of business logic code generation and reduce the external delivery cycle. Specifically, the process of generating business logic nodes in the technical solution provided in the embodiment of the present application does not require handwritten code and built into the system, but is directly automatically generated and automatically integrated into the system through atomic nodes, realizing the concept and process of automatic generation from atomic nodes to business nodes in the orchestration.

[0070] The following is an exemplary description of the embodiments of the present application from the perspective of interface display.

[0071] Please refer to Figure 3 , showing a flow chart of a method for generating business logic code provided by an embodiment of the present application. The execution subject of each step of the method can be the terminal device 10 introduced above, or it can be the server 20. In the following method embodiment, for the convenience of description, only the execution subject of each step is introduced as a "computer device". The method can include at least one of the following steps (310-340):

[0072] Step 310: displaying an atomic node configuration interface, in which at least one candidate atomic node is displayed. The atomic node is used to represent a logical code segment that is not related to the business.

[0073] In the embodiments of the present application, business logic nodes are generated based on atomic nodes, wherein atomic nodes are used to represent logical code segments that are not related to the business, or atomic nodes can also be understood as underlying logical code rules. In some embodiments, atomic nodes are unified and recognized by the industry, and existing data is already available in the database. In other embodiments, atomic nodes can be automatically generated based on the atomic node generation model in the following embodiments, and this application does not limit this. In some embodiments, atomic nodes are a collection of a series of standard interfaces or components, with a limited number, such as atoms for data source processing, string processing atoms, and browser interface atoms. Please refer to Figure 4 , which shows a schematic diagram of the system capabilities represented by atomic nodes. Figure 4 As shown in 400, the system capabilities that can be represented by atomic nodes include at least one aspect of data source processing, string processing, interaction processing, and external requests. Specifically, data source processing includes obtaining data from URL parameters, obtaining data from UA, obtaining data from Cookies, obtaining data from Localstorage, and so on. String processing includes Bsae64 processing, regular expressions, encryption and decryption processing, encoding and decoding, and so on. Interaction processing includes reporting, displaying Toast, micro X sharing, XX sharing, and so on. External requests include http requests, Loadscript, get.json, createlFrame, and so on. It should be understood by those skilled in the art that atomic nodes are business-independent and relatively complete nodes. They have clear inputs and outputs, and atomic nodes should solve a class or a specific problem. Of course, the power of atomic nodes is relatively large, and they are functional templates after abstracting business scenarios, so they are universal. The embodiment of the present application does not limit the specific types of atomic nodes. It not only includes Figure 4 The types shown in the figure can also represent other functions in the industry. Any logical code segment that has clear input and output, solves a specific problem and is not related to a specific business scenario can be considered an atomic node.

[0074] Of course, the size of the atomic node is not limited in this application. In some embodiments, when an atomic node is used to represent a large system capability, the system capability can be divided into several small system capabilities, and different small system capabilities correspond to different small atomic nodes, that is, the atomic node should include multiple small atomic nodes. Exemplarily, the length of the logic code segment corresponding to the atomic node is related to the system capability corresponding to the atomic node, and this application does not limit the length of the specific logic code segment.

[0075] In some embodiments, an atomic node configuration interface is displayed. The atomic node configuration interface is an interface for selecting the atomic node to be configured. On the atomic node configuration interface, the user can select the desired atomic node according to the specific business pair, thereby realizing the conversion of the atomic node into a business logic node. In some embodiments, the atomic node configuration interface is displayed in a terminal device. When the above-mentioned target application is running in the terminal device, if the user wants to configure the atomic node, the atomic node configuration interface can be displayed on the terminal device. The embodiment of the present application does not limit the display position of the atomic node configuration interface on the terminal device. Exemplarily, the atomic node configuration interface is displayed in full screen or half screen on the terminal device.

[0076] In some embodiments, the candidate atomic nodes are atomic nodes displayed on the atomic node configuration interface. Exemplarily, when the user opens the atomic node configuration interface, all atomic nodes are displayed in the atomic node configuration interface, and the user can select them. In other embodiments, the user can search for the required atomic nodes in the atomic node configuration interface, for example, by atomic name, atomic function, atomic description, author, etc., and display relevant atomic nodes according to keywords entered by the user. In other embodiments, based on the atomic nodes that the user has configured, other atomic nodes that have a logical relationship with the atomic node can be automatically recommended to the user, and atomic nodes can be recommended to the user according to the relevance, and displayed on the atomic node configuration interface. For the specific recommendation method, please refer to the embodiments of the technical side described below, which will not be repeated here. The atomic nodes recommended here can also be considered as the above-mentioned candidate atomic nodes. Please refer to Figure 5 , which shows a schematic diagram of an atomic node configuration interface provided by an embodiment of the present application, wherein at least one candidate atomic node 510 is displayed on the atomic node configuration interface 500. Figure 5 In the example, the system capability represented by the candidate atomic node 510 is "delete a certain DOM node". Of course, it should be understood that the logic code segment irrelevant to the business represented by the atomic node is not directly displayed on the atomic node configuration interface, but the system capability of the atomic node is prompted to the user by displaying the atomic name and atomic description of the atomic node, so as to provide the user with selection and configuration.

[0077] Step 320 , in response to the operation of selecting a first atomic node from at least one candidate atomic node, displaying a parameter configuration interface corresponding to the first atomic node.

[0078] In some embodiments, the user selects an atomic node on the atomic node configuration interface by himself, and the atomic node selected by the user is used as the first atomic node. Exemplarily, the operation type of the operation of selecting the first atomic node from at least one candidate atomic node includes but is not limited to operations such as clicking, sliding, and long pressing on the first atomic node. Of course, the operation can also be an operation such as voice input. This application does not limit the operation type of the operation of selecting the first atomic node from at least one candidate atomic node.

[0079] In some embodiments, a user selects a desired atomic node from a plurality of candidate atomic nodes according to their own business needs. The atomic node may also be referred to as a first atomic node.

[0080] In some embodiments, the parameter configuration interface is an interface for configuring the parameters of the atomic node. On the parameter configuration interface, the user can configure the input and output of the selected atomic node according to the specific business, thereby realizing the conversion of the atomic node into a business logic node. In some embodiments, the parameter configuration interface is displayed on the terminal device. When the above-mentioned target application is running in the terminal device, if the user wants to configure a specific atomic node, the parameter configuration interface can be displayed on the terminal device. The embodiment of the present application does not limit the display position of the parameter configuration interface on the terminal device. Exemplarily, the parameter configuration interface is displayed in full screen or half screen on the terminal device. In some embodiments, please refer to Figure 6 , which shows a schematic diagram of a parameter configuration interface provided by an embodiment of the present application. Parameters related to the first atomic node are displayed on the parameter configuration interface 600. The user can assign values ​​to the parameters in the atomic node based on specific business to obtain a business logic node.

[0081] Step 330: Display the business parameters configured for the first atomic node in the parameter configuration interface. Business parameters refer to input parameters and output parameters related to the business.

[0082] In some embodiments, the user configures business parameters for the first atomic node on the parameter configuration interface. For the specific configuration process, please refer to the embodiments of the technical side described below, which are not limited in this application. In some embodiments, business parameters refer to input parameters and output parameters related to the business. For different businesses, the input parameters and output parameters are different. By configuring business parameters for atomic nodes, it is possible to convert atomic nodes into business logic nodes, thereby meeting business needs.

[0083] Step 340, in the logic node orchestration interface, display a first business logic node generated based on at least one atomic node; wherein the business logic code fragment corresponding to the first business logic node is generated based on the logic code fragment and business parameters respectively corresponding to at least one atomic node, and the at least one atomic node includes the first atomic node.

[0084] In some embodiments, the logical node orchestration interface is an interface for orchestrating business logic nodes. On the logical node orchestration interface, users can orchestrate different business logic nodes according to specific businesses to obtain a complete business. In some embodiments, the logical node orchestration interface is displayed on a terminal device. When the above-mentioned target application is running in the terminal device, if the user wants to orchestrate the business logic node, the logical node orchestration interface can be displayed on the terminal device. The embodiments of the present application do not limit the display position of the logical node orchestration interface on the terminal device. Exemplarily, the logical node orchestration interface is displayed in full screen or half screen on the terminal device. In some embodiments, please refer to Figure 7 , which shows a schematic diagram of a logical node arrangement interface provided by an embodiment of the present application, where multiple business logic nodes are displayed on the logical node arrangement interface 700, and the user can arrange the business logic nodes based on specific business. Optionally, the first business logic node - "Get application activity information" 710 is displayed on the logical node arrangement interface 700.

[0085] In some embodiments, a business logic node is generated based on an atomic node. Of course, a business logic node can also be generated based on multiple atomic nodes, which is not limited in this application.

[0086] In some other embodiments, the logic node orchestration interface may be displayed first, and the user may first orchestrate each business logic node on the logic node orchestration interface. However, at this time, these business logic nodes are empty business logic nodes, which may only have node names but no corresponding codes. After the user has orchestrated the business logic nodes, the user needs to inject codes into the business logic nodes. At this time, in response to the user's operation of selecting the first logic node, execution starts from the above step 310 until step 340. The first logic node displayed in step 340 can be considered as a business logic node that can have a specific business code.

[0087] The business logic code snippet corresponding to the first business logic node in the embodiment of the present application is generated based on the logic code snippet and business parameters corresponding to at least one atomic node, which can be understood as assigning the logic code snippet corresponding to the atomic node using the business parameters, thereby obtaining the business logic code snippet corresponding to the business logic node. For the specific code generation process, please refer to the embodiment of the following technical side, which will not be repeated here.

[0088] The technical solution provided in the embodiment of the present application generates business logic nodes through atomic nodes, realizes the automatic generation of business logic nodes, and thus improves the generation efficiency of business logic nodes. Specifically, by configuring business parameters for atomic nodes, business logic nodes related to the business are constructed, which not only improves the generation efficiency of business logic nodes, but also improves the configuration flexibility of business logic nodes.

[0089] The following is an exemplary description of how to configure the parameters.

[0090] Please refer to Figure 8 , showing a flow chart of a method for generating business logic code provided by another embodiment of the present application. The execution subject of each step of the method can be the terminal device 10 introduced above, or the server 20. In the following method embodiment, for the convenience of description, only the execution subject of each step is introduced as a "computer device". The method can include at least one of the following steps (810-860):

[0091] Step 810: displaying an atomic node configuration interface, in which at least one candidate atomic node is displayed. The atomic node is used to represent a logical code segment that is not related to the business.

[0092] In some embodiments, an input bar is displayed in the atomic node configuration interface. In some embodiments, the input bar displays the inputted business intention information; and in the atomic node configuration interface, at least one recommended atomic node determined based on the business intention information is displayed.

[0093] The business intent information in the embodiment of the present application is information used to characterize the business intent of the user. The present application does not limit the category of the information. For example, the business intent information can be an atom name, an atom description, a description of the author who wrote the atom node, etc. Of course, the present application also does not limit the form of expression of the business intent information, which includes but is not limited to text, voice, and pictures, etc. Figure 5As shown, an input bar 520 is displayed in the atomic node configuration interface 500. In the input bar 520, the user can enter business intent information, and it is displayed on the atomic node configuration interface 500. In some embodiments, the computer device displays at least one recommended atomic node determined based on the business intent information based on the business intent information input by the user. In some embodiments, the terminal device obtains the business intent information, and sends the business intent information to the background server of the terminal device. The server determines at least one recommended atomic node based on the business intent information, and sends the at least one recommended atomic node to the terminal device for display by the terminal device. For the specific method of determining at least one recommended atomic node based on the business intent information, please refer to the following technical side embodiments, which will not be repeated here.

[0094] Step 820 , in response to the operation of selecting a first atomic node from at least one candidate atomic node, displaying a parameter configuration interface corresponding to the first atomic node.

[0095] In some embodiments, step 820 may also be considered as displaying a parameter configuration interface corresponding to the first atomic node in response to an operation of selecting the first atomic node from the at least one recommended atomic node.

[0096] Step 830, in response to the operation on the configuration control in the parameter configuration interface, an assignment method selection interface is displayed, in which at least one candidate assignment method is displayed, and the assignment method is used to characterize the source of the business parameter.

[0097] In some embodiments, the configuration control is a UI control. The present application does not limit the display position of the configuration control on the parameter configuration interface. Figure 6 As shown, a configuration control 610 is displayed in the parameter configuration interface 600. Exemplarily, the operation type for the configuration control in the parameter configuration interface includes, but is not limited to, a click operation, a sliding operation, a long press operation, etc. for the configuration control. Of course, the operation may also be an operation such as voice input. The present application does not limit the operation type for the configuration control in the parameter configuration interface.

[0098] In some embodiments, the assignment method selection interface is an interface for selecting an assignment method. On the assignment method selection interface, the user can select an assignment method according to their needs. In some embodiments, the assignment method selection interface is displayed on the terminal device. When the above-mentioned target application is running in the terminal device, if the user wants to select an assignment method, the assignment method selection interface can be displayed on the terminal device. The embodiment of the present application does not limit the display position of the assignment method selection interface on the terminal device. Exemplarily, the assignment method selection interface is displayed in full screen or half screen on the terminal device. In some embodiments, please refer to Fig. 9 , which shows a schematic diagram of an assignment method selection interface provided by an embodiment of the present application. Multiple assignment methods 900 are displayed on the logical node arrangement interface, and the user can select the assignment method according to his or her needs.

[0099] In some embodiments, the assignment method is used to characterize the source of the business parameters. That is, the assignment method refers to the source of the assigned business parameters when assigning values ​​to the parameters of the atomic nodes. In some embodiments, at least one candidate assignment method includes at least one of the following: assigning values ​​according to a dictionary table, which refers to selecting variables from the dictionary table and configuring them as business parameters; assigning values ​​according to a constant list, which refers to selecting constants from a constant list and configuring them as business parameters; assigning values ​​according to an input form, which refers to selecting parameters pre-configured for the business from the input form and configuring them as business parameters.

[0100] The following are illustrative explanations of these three assignment methods. The first is to assign values ​​according to the dictionary table, that is, to select a fixed field or structure from the dictionary table. The field in the dictionary table is an identifier, and in the actual execution process, it is a dynamic variable. For example, mp_app_id represents the identifier of the current application, and the real value will only be obtained at runtime. The second is to assign values ​​according to the constant list, that is, to select certain fixed values ​​from the constant list. The constant is actually a content that is clear at the beginning and will not change as the program runs. For example, the numbers 1 / 2 / 3 are all constants, and the strings "Hello", "2-121212", etc. The third is to assign values ​​according to the input form. The developer manually enters and configures according to the input form designed by himself.

[0101] In the embodiment of the present application, the dictionary table fields are automatically connected in series on the input and output configuration nodes to reduce the user configuration content, improve the editing efficiency, and automatically map and associate the fields. That is, multiple business logic nodes are connected in series through the fields of the dictionary table, so that the same input or output only needs to be configured once, and the subsequent business logic nodes are directly connected in series, which improves the configuration efficiency.

[0102] Step 840: In response to the operation of selecting a first assignment method from at least one candidate assignment method, displaying an assignment interface corresponding to the first assignment method.

[0103] Exemplarily, the assignment method pointed to by the operation is considered to be the first assignment method, and the first assignment method can be any one of the three assignment methods mentioned above. Exemplarily, the operation type of the operation of selecting the first assignment method in at least one candidate assignment method includes but is not limited to click operation, sliding operation, long press and other operations on the assignment method. Of course, the operation can also be voice input and other operations. This application does not limit the operation type of the operation of selecting the first assignment method in at least one candidate assignment method.

[0104] In some embodiments, the assignment interface corresponding to the first assignment method is an interface for determining the business parameters configured for the atomic node according to the first assignment method. On the assignment interface, the user can input or select business parameters as business parameters configured for the atomic node. In some embodiments, the assignment interface is displayed on the terminal device. When the above-mentioned target application is running in the terminal device, if the user wants to assign values ​​to the parameters of the atomic node according to the specific assignment method, the assignment interface can be displayed on the terminal device. The embodiment of the present application does not limit the display position of the assignment interface on the terminal device. Exemplarily, the assignment interface is displayed in full screen or half screen on the terminal device.

[0105] Step 850 , in response to the operation of determining the target parameters on the assignment interface, displaying the business parameters configured for the first atomic node, the business parameters including the target parameters.

[0106] Exemplarily, the operation types of the operation of determining the target parameters on the assignment interface include but are not limited to click operations, sliding operations, long press operations, etc. on the target parameters. Of course, the operation can also be voice input operations, etc. This application does not limit the operation types of the operation of determining the target parameters on the assignment interface. Exemplarily, when the assignment method is to assign values ​​according to a dictionary table or a constant list, all business parameters in the dictionary table or all business parameters in the constant list are displayed in the assignment interface. At this time, the user only needs to select the desired business parameters, and the parameters pointed to by the operation of determining the target parameters on the assignment interface are considered to be business parameters. Of course, there can be one or more business parameters configured for an atomic node, and this application does not limit the number of business parameters.

[0107] Step 860, in the logic node orchestration interface, display a first business logic node generated based on at least one atomic node; wherein the business logic code fragment corresponding to the first business logic node is generated based on the logic code fragment and business parameters respectively corresponding to at least one atomic node, and the at least one atomic node includes the first atomic node.

[0108] In the embodiment of the present application, the business parameters configured for the atomic node are determined by first selecting the assignment method and then determining the target parameter method. By defining and configuring the input parameters and output parameters of the atomic node, the problem that the industry's business logic code generation relies purely on handwriting and cannot be well reused and maintained can be solved. Then, through a variety of flexible configuration schemes (multiple assignment schemes) for the input parameters, it helps to develop a rapid formation of business logic nodes and achieve the purpose of rapid generation of logic code. Atoms are built-in and summarized by the system, thus solving the problem of uneven code quality caused by handwriting by developers.

[0109] The following is an exemplary description of how to recommend business logic nodes and how to arrange to run the code.

[0110] Please refer to Fig.10 , showing a flow chart of a method for generating business logic code provided by another embodiment of the present application. The execution subject of each step of the method can be the terminal device 10 introduced above, or it can be the server 20. In the following method embodiment, for the convenience of description, only the execution subject of each step is introduced as a "computer device". The method can include at least one of the following steps (1010-1080):

[0111] Step 1010: display an atomic node configuration interface, in which at least one candidate atomic node is displayed. The atomic node is used to represent a logical code segment that is not related to the business.

[0112] Step 1020 , in response to an operation of selecting a first atomic node from at least one candidate atomic node, displaying a parameter configuration interface corresponding to the first atomic node.

[0113] Step 1030: Display the business parameters configured for the first atomic node in the parameter configuration interface. Business parameters refer to input parameters and output parameters related to the business.

[0114] Step 1040, in the logic node orchestration interface, display a first business logic node generated based on at least one atomic node; wherein the business logic code fragment corresponding to the first business logic node is generated based on the logic code fragment and business parameters respectively corresponding to at least one atomic node, and the at least one atomic node includes the first atomic node.

[0115] Steps 1010 to 1040 refer to the explanation of the above embodiment and are not described again here.

[0116] Step 1050: In response to an operation on a second business logic node in the logic node orchestration interface, display at least one candidate business logic node related to the second business logic node; wherein the second business logic node is a business logic node for which there is no corresponding business logic code snippet, and the candidate business logic node has a corresponding business logic code snippet.

[0117] Exemplarily, the operation type of the operation on the second service logic node in the logical node orchestration interface includes, but is not limited to, a click operation, a sliding operation, a long press operation, etc. on the second service logic node. Of course, the operation can also be an operation such as voice input. The present application does not limit the operation type of the operation on the second service logic node in the logical node orchestration interface. Exemplarily, the second service logic node is the service logic node to which the operation on the second service logic node in the logical node orchestration interface points.

[0118] In some embodiments, the user arranges the business logic nodes on the logic node arrangement interface. Some of these business logic nodes have corresponding business logic code snippets, while some do not. In this case, the user needs to generate corresponding business logic codes for these business logic nodes that do not have corresponding business logic code snippets. There are two ways to generate the corresponding business logic codes. One is to determine based on atomic nodes (steps 1010 to 1040), that is, to obtain the above-mentioned first business logic node, and the other is to directly select the required business logic nodes from the business logic nodes with corresponding business logic code snippets (steps 1050 to 1060).

[0119] In some embodiments, the second business logic node is a business logic node for which there is no corresponding business logic code snippet, and corresponding business logic code snippets need to be generated for these business logic nodes. Exemplarily, at least one candidate business logic node related to the second business logic node is directly displayed.

[0120] In some embodiments, when the user selects the second business logic node, related candidate business logic nodes are displayed. In some embodiments, all business logic nodes with corresponding business logic code snippets are displayed and selected by the user. In other embodiments, based on the business logic nodes that the user has configured, other business logic nodes with corresponding business logic code snippets that have a logical relationship with the business logic node can be automatically recommended to the user, and they are the user's business logic nodes according to the relevance. For the specific recommendation method, please refer to the embodiments of the technical side described below, which will not be repeated here. The business logic nodes recommended here can also be considered as the above-mentioned candidate business logic nodes. Please refer to Fig.11, which shows a schematic diagram of a logical node arrangement interface provided by another embodiment of the present application, in which a second service logic node 1110 is displayed on the logical node arrangement interface 1100, and candidate service logic nodes displayed based on the second service logic node are also displayed. Fig.11 In the example, the candidate business logic node 1120 represents "lottery arrangement". Of course, it should be understood that the business logic code snippet represented by the candidate business logic node is not directly displayed, but the node name, component description, etc. of the candidate business logic node are displayed to prompt the user of the business represented by the candidate business logic node, so as to provide the user with a choice.

[0121] Step 1060, in response to the operation of selecting a target business logic node from at least one candidate business logic node, displaying an updated second business logic node, wherein a business logic code snippet corresponding to the updated second business logic node is generated based on a business logic code snippet corresponding to the target business logic node.

[0122] Exemplarily, the operation type of the operation of selecting the target business logic node from at least one candidate business logic node includes, but is not limited to, a click operation, a slide operation, a long press operation, etc. on the target business logic node. Of course, the operation can also be an operation such as voice input. The present application does not limit the operation type of the target business logic node. Exemplarily, the target business logic node is the candidate business logic node to which the operation of selecting the target business logic node from at least one candidate business logic node points.

[0123] In some embodiments, the updating here refers to assigning the service logic code fragment corresponding to the target service logic node to the second service logic node, so that the second service logic node has the corresponding service logic code fragment.

[0124] Step 1070: In the logic node orchestration interface, in response to an operation on at least one service logic node, display a service orchestration result, wherein the at least one service logic node includes a first service logic node.

[0125] Exemplarily, the operation type of the operation on at least one business logic node includes but is not limited to the click operation, sliding operation, long press and other operations on the business logic node. Of course, the operation can also be voice input and other operations. The present application does not limit the operation type of the operation on at least one business logic node. Exemplarily, the user drags each business logic node and connects each business logic node with an arrow to obtain the business arrangement result. Of course, the above steps of determining the business logic code fragment can be performed while arranging, or the arrangement can be completed first, and then the above steps of determining the business logic code fragment are performed for each business logic node.

[0126] In some embodiments, the business logic nodes in the logic node arrangement interface are nodes established by the user according to business needs. The user needs to arrange these nodes and inject business logic codes at the same time. Fig.11 As shown, when all business logic nodes in the logic node orchestration interface are configured, the orchestration results of these business logic codes are called business orchestration results, such as Fig.11 As shown, each business logic node in the business arrangement result 1130 should have a business logic code snippet. Exemplarily, the business logic node in step 1070 includes the first business logic node mentioned above, and may also include the updated second business logic node mentioned above.

[0127] In some embodiments, the service orchestration result is a result presented on the canvas after the service logic nodes are orchestrated.

[0128] Step 1080 , in response to the operation on the business orchestration result, display the code running result corresponding to the business orchestration result.

[0129] Exemplarily, the operation types for the operation on the business orchestration results include, but are not limited to, click operations, sliding operations, long press operations, etc. on the business orchestration results. Of course, the operation can also be an operation such as voice input. This application does not limit the operation types for the operation on the business orchestration results.

[0130] In some embodiments, Figure 7 As shown, the operation on the business arrangement result refers to the operation on the debug and publish control 720. In response to the click operation on the debug and publish control, the code running result corresponding to the business arrangement result is displayed.

[0131] In the embodiment of the present application, by recommending business logic nodes with corresponding business logic code snippets for users to select and use, not only the hit rate of candidate business logic nodes can be improved, but also the efficiency of determining business logic nodes can be improved.

[0132] The following is an exemplary description of the technical solution provided by the embodiment of the present application from the technical side. For details of the solution not involved in the technical side, please refer to the explanation in the above embodiment.

[0133] Please refer to Fig.12 , showing a flow chart of a method for generating business logic code provided by another embodiment of the present application. The execution subject of each step of the method can be the terminal device 10 introduced above, or it can be the server 20. In the following method embodiment, for the convenience of description, only the execution subject of each step is introduced as a "computer device". The method can include at least one of the following steps (1210-1230):

[0134] Step 1210, obtain business parameters configured for the first atomic node, the first atomic node is selected from at least one candidate atomic node, the atomic node is used to represent a logical code segment that is not related to the business, and the business parameters refer to input parameters and output parameters related to the business.

[0135] In some embodiments, the terminal device obtains the service parameters configured for the first atomic node according to the user's operation. Of course, the terminal device may also send the obtained service parameters configured for the first atomic node to the server.

[0136] Step 1220, obtaining logic code segments and business parameters corresponding to at least one atomic node, wherein the at least one atomic node includes a first atomic node.

[0137] In some embodiments, the server receives the business parameters corresponding to at least one atomic node respectively sent by the terminal device, and simultaneously obtains the logical code segments corresponding to at least one atomic node respectively stored in the database.

[0138] Step 1230: Generate a business logic code fragment corresponding to the first business logic node based on the logic code segment and business parameters corresponding to at least one atomic node.

[0139] In some embodiments, the terminal device generates a business logic code fragment corresponding to the first business logic node based on the logic code segment and business parameters corresponding to at least one atomic node. In other embodiments, the server generates a business logic code fragment corresponding to the first business logic node based on the logic code segment and business parameters corresponding to at least one atomic node. The specific method of generating the business logic code is described in the following embodiments and will not be repeated here.

[0140] The technical solution provided in the embodiment of the present application generates business logic nodes through atomic nodes, realizes the automatic generation of business logic nodes, and thus improves the generation efficiency of business logic nodes. Specifically, by configuring business parameters for atomic nodes, business logic nodes related to the business are constructed, which not only improves the generation efficiency of business logic nodes, but also improves the configuration flexibility of business logic nodes.

[0141] The following is an illustrative technical explanation of how to recommend atomic nodes and how to generate business logic nodes based on atomic nodes.

[0142] Please refer to Fig.13, showing a flow chart of a method for generating business logic code provided by another embodiment of the present application. The execution subject of each step of the method can be the terminal device 10 introduced above, or it can be the server 20. In the following method embodiment, for the convenience of description, only the execution subject of each step is introduced as a "computer device". The method can include at least one of the following steps (1310-1360):

[0143] Step 1310, obtaining a first assignment method, where the first assignment method is determined from an assignment method selection interface, where at least one candidate assignment method is displayed, and the assignment method is used to characterize an assignment source of a business parameter.

[0144] In some embodiments, the terminal device obtains the first assignment method and sends it to the server.

[0145] Step 1320, obtaining target parameters, where the target parameters are determined in the assignment interface corresponding to the first assignment method.

[0146] In some embodiments, the terminal device obtains the target parameters and sends them to the server.

[0147] Step 1330: Determine the service parameters configured for the first atomic node according to the target parameters.

[0148] In some embodiments, the terminal device determines the service parameters configured for the first atomic node based on the target parameters, and sends them to the server.

[0149] In some embodiments, the terminal device or the server determines the service parameters configured for the first atomic node.

[0150] In some embodiments, the configured business parameters are determined for the first atomic node according to the above steps 1310 to 1330, wherein the first atomic node is selected from at least one candidate atomic node. Of course, the first atomic node may also be selected from recommended atomic nodes, and this application does not limit this.

[0151] The following is an example of how to recommend an atomic node.

[0152] In some embodiments, business intention information is obtained, and the business intention information is input in an input field of an atomic node configuration interface; and at least one recommended atomic node is determined based on the business intention information.

[0153] In some embodiments, at least one label word is determined from the business intent information, where the label word is a word used to characterize the business intent information; the at least one label word is matched with multiple atomic nodes in a database to obtain first matching scores corresponding to the multiple atomic nodes; and the atomic node whose first matching score satisfies the first condition is determined as at least one recommended atomic node.

[0154] Specifically, the business intent information is segmented to obtain at least one label word. At the same time, each atomic node has a corresponding label, which characterizes the system capability represented by the atomic node. Exemplarily, at least one label word is matched with the labels corresponding to multiple atomic nodes in the database to obtain first matching scores corresponding to multiple atomic nodes. For an atomic node, the more labels in the atomic node match the label words, the higher the first matching score of the first atom; the atomic node whose first matching score meets the first condition is determined as at least one recommended atomic node. Exemplarily, the first condition includes but is not limited to being greater than a score threshold, and the score threshold is set in advance.

[0155] In some embodiments, the logic code segment corresponding to the atomic node is generated based on a trained atomic node generation model, which is a machine learning model for generating the logic code segment corresponding to the atomic node. The training method of the atomic node generation model is as follows: obtaining at least one set of training samples, the training samples including sample business rules and label information of the atomic nodes corresponding to the sample business rules; generating prediction information of the atomic nodes corresponding to the sample business rules according to the sample business rules through the atomic node generation model; training the atomic node generation model according to the prediction information of the atomic nodes and the label information of the atomic nodes to obtain the trained atomic node generation model.

[0156] Specifically, the label information of an atomic node refers to the correct logical code segment corresponding to the atomic node, and the prediction information of an atomic node refers to the predicted logical code segment of the atomic node. The atomic node generation model is trained based on the difference between the correct logical code segment and the predicted logical code segment. The trained atomic node generation model can output a logical code segment that matches the input system capability, that is, generate an atomic node.

[0157] Step 1340, obtaining logic code segments and business parameters corresponding to at least one atomic node, wherein the at least one atomic node includes a first atomic node.

[0158] In some embodiments, the terminal device or the server determines the logical code segments and business parameters corresponding to at least one atomic node.

[0159] Step 1350: for each atomic node in at least one atomic node, update the logic code segment corresponding to the atomic node according to the business parameter corresponding to the atomic node to obtain a code segment.

[0160] The update here can be understood as using the business parameters to assign values ​​to the parameters in the logic code segment corresponding to the atomic node to obtain a code segment. For example, the input parameter a and the output parameter b in the logic code segment corresponding to the atomic node, and the input parameter c and the output parameter d in the business parameters corresponding to the atomic node, then for the logic code segment corresponding to the atomic node, c is assigned to a and d is assigned to b to obtain a code segment.

[0161] Step 1360: Generate a business logic code fragment corresponding to the first business logic node based on at least one code fragment obtained according to at least one atomic node.

[0162] In some embodiments, when determining the first business logic node, it is necessary to clarify the atomic nodes that the first business logic node needs to include, and configure the business parameters for each atomic node. For each atomic node, the parameters in the logic code segment corresponding to the atomic node are assigned according to the business parameters to obtain the code snippet corresponding to the atomic node. At this time, the code snippet here includes the business logic relationship. Exemplarily, according to the business parameters, at least one code snippet is connected in series to generate a business logic code snippet corresponding to the first business logic node. Exemplarily, the output parameter of code snippet 1 is a, and the input parameter of code snippet 3 is a, then code snippet 1 and code snippet 3 are associated, and code snippet 1 is before code snippet 3. The process of generating the business logic code snippet corresponding to the first business logic node can be performed in the server or in the terminal device, and this application does not limit this.

[0163] In the embodiment of the present application, the business parameters configured for the atomic node are determined by first selecting the assignment method and then determining the target parameter method. By defining and configuring the input parameters and output parameters of the atomic node, the problem that the industry's business logic code generation relies purely on handwriting and cannot be well reused and maintained can be solved. Then, through a variety of flexible configuration schemes (multiple assignment schemes) for the input parameters, it helps to develop a rapid formation of business logic nodes and achieve the purpose of rapid generation of logic code. Atoms are built-in and summarized by the system, thus solving the problem of uneven code quality caused by handwriting by developers.

[0164] The following is an illustrative technical explanation of how to recommend business logic nodes, how to orchestrate business, and how to run code.

[0165] Please refer to Fig.14, showing a flow chart of a method for generating business logic code provided by another embodiment of the present application. The execution subject of each step of the method can be the terminal device 10 introduced above, or it can be the server 20. In the following method embodiment, for the convenience of description, only the execution subject of each step is introduced as a "computer device". The method can include at least one of the following steps (1410-1491):

[0166] Step 1410, obtain business parameters configured for the first atomic node, the first atomic node is selected from at least one candidate atomic node, the atomic node is used to represent a logical code segment that is not related to the business, and the business parameters refer to input parameters and output parameters related to the business.

[0167] Step 1420, obtaining logic code segments and business parameters corresponding to at least one atomic node, wherein the at least one atomic node includes a first atomic node.

[0168] Step 1430: Generate a business logic code fragment corresponding to the first business logic node based on the logic code segment and business parameters corresponding to at least one atomic node.

[0169] Step 1440: Obtain a second business logic node; wherein the second business logic node is a business logic node for which there is no corresponding business logic code fragment.

[0170] In some embodiments, after the terminal device determines the second service logic node, it sends it to the server.

[0171] Step 1450: Determine at least one candidate business logic node related to the second business logic node, the candidate business logic node corresponding to a business logic code snippet.

[0172] In some embodiments, the terminal device or the server determines at least one candidate service logic node related to the second service logic node.

[0173] In some embodiments, business intent information is determined based on the second business logic node, and the business intent information includes at least one of the following: a node name of the second business logic node, a keyword input by a user based on the second business logic node; at least one tag word is determined from the business intent information, and the tag word is a word used to characterize the business intent information; the at least one tag word is matched with multiple business logic nodes in a database to obtain second matching scores corresponding to the multiple business logic nodes respectively; and a business logic node whose second matching score meets the second condition is determined as at least one candidate business logic node.

[0174] Specifically, the business intent information (including the node name of the second business logic node and the keywords input by the user based on the second business logic node) is segmented to obtain at least one label word. At the same time, multiple business logic nodes in the database correspond to labels respectively, and the labels represent the business types corresponding to multiple business logic nodes in the database. Exemplarily, at least one label word is matched with labels corresponding to multiple business logic nodes in the database to obtain second matching scores corresponding to multiple business logic nodes. For multiple business logic nodes in the database, the more labels in the business logic node match the label words, the higher the second matching score of the business logic node; the business logic node whose second matching score meets the second condition is determined as at least one candidate business logic node. Exemplarily, the second condition includes but is not limited to being greater than a score threshold, and the score threshold is set in advance.

[0175] In some embodiments, based on at least one third business logic node having a corresponding business logic code snippet, at least one tag word included in the business name of the third business logic node is determined, where the tag word is a word used to characterize the third business logic node; the at least one tag word is matched with multiple business logic nodes in a database to obtain third matching scores corresponding to the multiple business logic nodes respectively; and a business logic node whose third matching score meets a third condition is determined as at least one candidate business logic node.

[0176] Specifically, the third business logic node can be considered as a business logic node corresponding to the business logic code fragment that already exists in the logic node arrangement interface, which refers to obtaining the recommended business logic node based on the business logic node of the business logic code fragment that has been determined. Exemplarily, the business name of the third business logic node is segmented to obtain at least one label word. At the same time, multiple business logic nodes in the database correspond to labels respectively, and the labels represent the business types corresponding to multiple business logic nodes in the database. Exemplarily, at least one label word is matched with labels corresponding to multiple business logic nodes in the database to obtain third matching scores corresponding to multiple business logic nodes. For multiple business logic nodes in the database, the more labels in the business logic node match the label words, the higher the third matching score of the business logic node; the business logic node whose third matching score meets the third condition is determined as at least one candidate business logic node. Exemplarily, the third condition includes but is not limited to being greater than a score threshold, and the score threshold is set in advance.

[0177] In some embodiments, comprehensive scores corresponding to the multiple business logic nodes are determined based on the category relationship between at least one third business logic node having a corresponding business logic code snippet and multiple business logic nodes in the database, popularity information corresponding to the multiple business logic nodes in the database, update time corresponding to the multiple business logic nodes in the database, and tag information in the user account; a business logic node whose comprehensive score meets the fourth condition is determined as at least one candidate business logic node; wherein the tag information of the user account is used to characterize the business type of the code business involved in the user account history.

[0178] Specifically, according to the category relationship between at least one third business logic node with a corresponding business logic code fragment and multiple business logic nodes in the database, if the two belong to the same business category, the first weight of the business logic node in the database is increased, and if they belong to different business categories, the first weight of the business logic node in the database is reduced. Exemplarily, the heat information corresponding to multiple business logic nodes in the database is obtained, if the heat information prompts that the heat is high, the second weight of the business logic node in the database is increased, and if the heat information prompts that the heat is low, the second weight of the business logic node in the database is reduced. The heat information here includes but is not limited to the number of uses, the number of recommendations, etc. Exemplarily, the update time corresponding to multiple business logic nodes in the database is obtained, if the update time prompts that it is recently updated, the third weight of the business logic node in the database is increased, and if the update time prompts that it has not been updated for a long time, the third weight of the business logic node in the database is reduced. Exemplarily, the tag information in the user account and the tags corresponding to the multiple business logic nodes in the database are matched, and the fourth weight is determined according to the matching result. The more the number of matches, the greater the fourth weight. Finally, based on at least one of the first weight, the second weight, the third weight, and the fourth weight, the basic score of each business logic node in the database is weighted and summed to obtain a comprehensive score of each business logic node in the database. The business logic node whose comprehensive score meets the fourth condition is determined as at least one candidate business logic node. Exemplarily, the fourth condition includes but is not limited to being greater than a score threshold, and the score threshold is set in advance.

[0179] Step 1460: Obtain a target service logic node from at least one candidate service logic node.

[0180] Step 1470: Generate a business logic code snippet corresponding to the second business logic node according to the business logic code snippet corresponding to the target business logic node.

[0181] In some embodiments, the terminal device generates a business logic code snippet corresponding to the second business logic node based on the business logic code snippet corresponding to the target business logic node, for example, using the business logic code snippet corresponding to the target business logic node as the business logic code snippet corresponding to the second business logic node. Exemplarily, the server generates a business logic code snippet corresponding to the second business logic node based on the business logic code snippet corresponding to the target business logic node, and sends the business logic code snippet to the terminal device.

[0182] Step 1480: Obtain a service orchestration result, where the service orchestration result is obtained based on orchestrating at least one service logic node, where the at least one service logic node includes a first service logic node.

[0183] Step 1490: Obtain DSL according to the service orchestration result. DSL is used to characterize the relationship between various service logic nodes in the service orchestration result.

[0184] In some embodiments, the result of business orchestration can also be considered as canvas Logic Schema. In some embodiments, users configure input and output of built-in atomic nodes to form business logic nodes; users use the orchestration canvas to drag business logic nodes, and the canvas Logic Schema is generated after orchestration. The system converts the Logic Schema into the system DSL. The information in the canvas described by the LogicSchema. For example, what a certain node does, where it is located in the canvas, and what color and style it presents in the canvas. After saving this Schema, the canvas can be rendered again through this canvas LogicSchema. The relationship between the canvas Logic Schema and DSL is: Logic Schema expresses the logical canvas information, which contains information such as the location of the node, but these are not actually needed when the code is generated, and it is not easy to express the relationship flow between nodes. Therefore, the DSL layer is used to perform conversion to carry clearer content and information. In the process of converting the Logic Schema into DSL through the DSL layer, the following contents are mainly done: 1. "Remove" the content that is not related to the code generation or execution engine, such as the position, size and other fields; 2. "Simplify" the formats of inputs, outputs, shape, etc., and convert them into the specifications required by DSL. Essentially, it can be understood as the conversion of two different formats. The former is larger and broader, while the latter is more focused on code output and more concise. Finally, through the abstraction of DSL process execution, an execution engine is formed. Finally, atoms, business components and execution engine code output form directly executable code.

[0185] In the embodiment of the present application, the Logic Schema contains the basic information and node positions of the canvas nodes, which is more of an information description of the front-end canvas nodes. DSL is a set of domain-specific languages ​​based on the orchestration scenario, which is more of a description of the code flow itself. Through the Transform conversion layer, the Logic Schema is quickly converted into a DSL, making the DSL purer and separate from the information of the canvas itself, so that the code output engine can better understand and execute it.

[0186] In some embodiments, Fig.15 As shown in 1500, by assigning input parameters and output parameters to built-in atomic nodes (built-in atomic nodes), business logic nodes are generated, and the business logic nodes are arranged to obtain a canvas LogicSchema. Based on the business logic code snippets corresponding to the business logic nodes and the canvas Logic Schema, a DSL can be obtained, and the code is output according to the DSL through the execution engine.

[0187] Step 1491: Obtain the code running result corresponding to the service arrangement result according to the DSL.

[0188] In some embodiments, according to the relationship between each business logic node included in the DSL, the business logic code snippet corresponding to the business logic node is loaded; and the execution engine is used to obtain the code running result corresponding to the business orchestration result based on at least one business logic code snippet, and the execution engine is an engine for running the code.

[0189] In other embodiments, a code generation engine is used to generate complete business logic code according to the business logic code snippets corresponding to the DSL and each business logic node. The code generation engine is an engine for generating business logic code. In some embodiments, the atomic logic code snippets corresponding to each business logic node are encoded and packaged in advance. In the subsequent code running process, the code running result can be obtained by directly loading the packaged code package on demand.

[0190] The execution engine in the embodiment of the present application includes a code output engine. The code output engine is used to output code according to the DSL, and the execution engine is used to continue execution on the basis of the code output, so as to obtain the code running result. Exemplarily, when the code output engine outputs code, it is necessary not only to pay attention to the DSL that is produced by the arrangement, but also to pay attention to the code resources (i.e., logical code segments) corresponding to each atomic node in the DSL. Exemplarily, for each atomic node, it corresponds to its own atomic identifier, and each atomic identifier is used to uniquely characterize the atom. When the code output engine is outputting code, it is necessary to find the corresponding logical code segment according to the atomic identifier of the atom in each business logic node included in the DSL. That is, when the business logic node is generated based on the atomic node, the atomic identifier of the atomic node will be included in the DSL to inform the unique identifier of the current atomic node. When the execution engine gets the DSL, it will be loaded into the logical code segment corresponding to the atomic node through the atomic identifier and executed. In this way, the embodiment of the present application realizes on-demand loading to ensure the readability and maintainability of the DSL.

[0191] In some embodiments, Fig.16 As shown, it shows a schematic diagram of the architecture design and implementation of the execution engine. The execution engine 1600 has built-in error handling, log processing, input and output collection, field mapping and conversion, and DSL parsing functions, thereby helping developers reduce the development burden and quickly build and produce code processes. The overall code output engine is only 9KB in the end.

[0192] In some embodiments, since the front end deals with users, it pays more attention to performance and user experience. When the size of the code package is too large, it will take a long time to initiate an HTTP request from the client to pull out the code resources, resulting in a long waiting time for the user and a long white screen time. In the related art, the code is often directly executed to convert the DSL into real code execution, while the present application combines the code execution with the parsing execution to produce a Runtime runtime engine (execution engine) to process the DSL arrangement logic flow to support the parsing execution and flow of the logic; the code compilation engine (code engine) is used to compile, package and code the logic code segments of the atomic nodes in advance; the atomic node information that has been coded in advance is dynamically loaded through the execution engine to ensure on-demand loading, and the code fragments are preloaded at idle time through advance analysis. The code engine includes the parsing execution of the Runtime type understood by the DSL, and the compilation and coding of the atomic nodes, which greatly reduces the size of the package while ensuring the function. Therefore, in the design of the code engine, the present application is small and precise, with a small code volume, which not only improves the operating efficiency, but also improves the user's development experience. As shown in Table 1, it shows the comparison between the code-generated execution and the parsed execution.

[0193] Table 1 Comparison between code execution and parsing execution

[0194] Component generation type Features Compile Bundle size debug Execution efficiency Code execution Converting DSL into real code execution yes big inconvenient Low Parsing execution Using the Runtime engine to parse and execute DSL no Small convenient high

[0195] In some embodiments, Fig.17 1700 in FIG. 1 shows a method for generating business logic code. Based on built-in atomic nodes, business logic nodes are generated, and the business logic nodes are orchestrated, and the code is generated and executed through the business logic orchestration execution engine. Among them, the built-in atomic node refers to an atomic node with a corresponding logic code segment, which can be preset in advance or automatically generated based on the atomic node generation model. Exemplarily, the business types of business logic nodes include but are not limited to marketing business nodes, mall business nodes, and content business nodes.

[0196] In the embodiment of the present application, by recommending business logic nodes with corresponding business logic code snippets for users to choose and use, not only the hit rate of candidate business logic nodes can be improved, but also the efficiency of determining business logic nodes can be improved. Through this solution, the pain point that traditional logic orchestration logic is not easy to combine and split is solved, and unified development standards and specifications are provided. The embodiment of the present application solves the problem that the orchestration logic code in the related technology cannot be generated and is purely handwritten. The quality and delivery efficiency of the code are improved. The same business logic has been tested and the delivery time can be reduced by 80% through this system. The accident rate of the existing network is greatly reduced. The technical solution provided by this application can solve the problem of complex orchestration in the industry. Through the dictionary table series connection and business node orchestration, users only need to drag and drop nodes without worrying about configuration, which lowers the development threshold and improves the user experience.

[0197] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0198] Please refer to Fig.18 , which shows a block diagram of a device for generating business logic code provided by an embodiment of the present application. The device has the function of implementing the above method example, and the function can be implemented by hardware, or by hardware executing corresponding software. The device can be the computer device introduced above, or it can be set in a computer device. Fig.18 As shown, the device 1800 may include: an interface display module 1810 , a parameter display module 1820 and a node display module 1830 .

[0199] The interface display module 1810 is used to display an atomic node configuration interface, in which at least one candidate atomic node is displayed. The atomic node is used to represent a logical code segment that is not related to the business.

[0200] The interface display module 1810 is further configured to display a parameter configuration interface corresponding to a first atomic node in response to an operation of selecting the first atomic node among the at least one candidate atomic node.

[0201] The parameter display module 1820 is used to display the business parameters configured for the first atomic node in the parameter configuration interface, where the business parameters refer to input parameters and output parameters related to the business.

[0202] The node display module 1830 is used to display a first business logic node generated based on at least one atomic node in the logical node orchestration interface; wherein the business logic code fragment corresponding to the first business logic node is generated based on the logic code fragment and business parameters respectively corresponding to the at least one atomic node, and the at least one atomic node includes the first atomic node.

[0203] In some embodiments, the parameter display module 1820 is used to display an assignment method selection interface in response to an operation on a configuration control in the parameter configuration interface, wherein at least one candidate assignment method is displayed in the assignment method selection interface, and the assignment method is used to characterize the source of the business parameters; in response to an operation of selecting a first assignment method among the at least one candidate assignment method, an assignment interface corresponding to the first assignment method is displayed; in response to an operation of determining a target parameter on the assignment interface, the business parameters configured for the first atomic node are displayed, and the business parameters include the target parameter.

[0204] In some embodiments, the at least one candidate assignment method includes at least one of the following: assigning according to a dictionary table, which means selecting variables from the dictionary table and configuring them as the business parameters; assigning according to a constant list, which means selecting constants from the constant list and configuring them as the business parameters; assigning according to an input form, which means selecting parameters pre-configured for the business from the input form and configuring them as the business parameters.

[0205] In some embodiments, an input field is displayed in the atomic node configuration interface.

[0206] In some embodiments, the interface display module 1810 is further used to display the input business intention information in the input field; and to display at least one recommended atomic node determined based on the business intention information in the atomic node configuration interface.

[0207] In some embodiments, the node display module 1830 is further used to display at least one candidate business logic node related to the second business logic node in response to an operation on the second business logic node in the logic node orchestration interface; wherein the second business logic node is a business logic node for which there is no corresponding business logic code snippet, and the candidate business logic node corresponds to a business logic code snippet; in response to an operation of selecting a target business logic node from the at least one candidate business logic node, display an updated second business logic node, wherein the updated business logic code snippet corresponding to the second business logic node is generated based on the business logic code snippet corresponding to the target business logic node.

[0208] In some embodiments, the interface display module 1810 is further configured to display a service orchestration result in the logic node orchestration interface in response to an operation on at least one service logic node, wherein the at least one service logic node includes the first service logic node.

[0209] In some embodiments, Fig.19 As shown, the device also includes a result display module 1840.

[0210] The result display module 1840 is used to display the code running result corresponding to the business arrangement result in response to the operation on the business arrangement result.

[0211] Please refer to Fig. 20 , which shows a block diagram of a device for generating business logic code provided by another embodiment of the present application. The device has the function of implementing the above method example, and the function can be implemented by hardware, or by hardware executing corresponding software. The device can be the computer device introduced above, or it can be set in a computer device. Fig. 20 As shown, the device 2000 may include: a parameter acquisition module 2010 and a code generation module 2020.

[0212] A parameter acquisition module 2010 is used to acquire a service parameter configured for a first atomic node, where the first atomic node is selected from at least one candidate atomic node, the atomic node is used to represent a logical code segment that is not related to the service, and the service parameter refers to an input parameter and an output parameter related to the service;

[0213] The parameter acquisition module 2010 is further used to acquire the logic code segment and the service parameter respectively corresponding to at least one atomic node, wherein the at least one atomic node includes the first atomic node;

[0214] The code generation module 2020 is used to generate a business logic code fragment corresponding to the first business logic node based on the logic code segment and business parameters respectively corresponding to the at least one atomic node.

[0215] In some embodiments, the code generation module 2020 is used to update the logic code segment corresponding to each of the at least one atomic node according to the business parameters corresponding to the atomic node to obtain a code fragment; based on at least one of the code fragments obtained according to the at least one atomic node, generate a business logic code fragment corresponding to the first business logic node.

[0216] In some embodiments, the parameter acquisition module 2010 is used to obtain a first assignment method, which is determined from an assignment method selection interface, in which at least one candidate assignment method is displayed, and the assignment method is used to characterize the assignment source of the business parameter; obtain a target parameter, which is determined in an assignment interface corresponding to the first assignment method; and determine the business parameters configured for the first atomic node based on the target parameter.

[0217] In some embodiments, Fig.21 As shown, the device also includes a node determination module 2030.

[0218] The node determination module 2030 is used to obtain business intention information, which is input in the input field of the atomic node configuration interface; and determine at least one recommended atomic node according to the business intention information.

[0219] In some embodiments, the node determination module 2030 is used to determine at least one label word from the business intent information, where the label word is a word used to characterize the business intent information; match the at least one label word with multiple atomic nodes in the database to obtain first matching scores corresponding to the multiple atomic nodes respectively; and determine the atomic node whose first matching score satisfies the first condition as the at least one recommended atomic node.

[0220] In some embodiments, the logic code segment corresponding to the atomic node is generated based on a trained atomic node generation model, and the atomic node generation model is a machine learning model used to generate the logic code segment corresponding to the atomic node.

[0221] In some embodiments, the code generation module 2020 is used to obtain a second business logic node; wherein the second business logic node is a business logic node for which there is no corresponding business logic code snippet; determine at least one candidate business logic node related to the second business logic node, and the candidate business logic node corresponds to a business logic code snippet; obtain a target business logic node from the at least one candidate business logic node; and generate a business logic code snippet corresponding to the second business logic node according to the business logic code snippet corresponding to the target business logic node.

[0222] In some embodiments, the code generation module 2020 is used to determine business intent information based on the second business logic node, and the business intent information includes at least one of the following: a node name of the second business logic node, a keyword input by a user based on the second business logic node; determine at least one tag word from the business intent information, and the tag word is a word used to characterize the business intent information; match the at least one tag word with multiple business logic nodes in a database to obtain second matching scores corresponding to the multiple business logic nodes respectively; determine the business logic node whose second matching score meets the second condition as the at least one candidate business logic node; or, based on at least one third business logic node having a corresponding business logic code snippet, determine at least one tag word included in the business name of the third business logic node, and the tag word is a word used to characterize the third business logic node. word; matching the at least one tag word with a plurality of business logic nodes in the database to obtain third matching scores respectively corresponding to the plurality of business logic nodes; determining the business logic node whose third matching score satisfies the third condition as the at least one candidate business logic node; or determining the comprehensive scores respectively corresponding to the plurality of business logic nodes according to the category relationship between at least one third business logic node having a corresponding business logic code fragment and the plurality of business logic nodes in the database, the popularity information respectively corresponding to the plurality of business logic nodes in the database, the update time respectively corresponding to the plurality of business logic nodes in the database, and the tag information in the user account; determining the business logic node whose comprehensive score satisfies the fourth condition as the at least one candidate business logic node; wherein the tag information of the user account is used to characterize the business type of the code business involved in the history of the user account.

[0223] In some embodiments, Fig.21 As shown, the device also includes a result determination module 2040.

[0224] The result determination module 2040 is used to obtain a business orchestration result, where the business orchestration result is obtained based on orchestration of at least one business logic node, and the at least one business logic node includes the first business logic node; obtain a DSL according to the business orchestration result, where the DSL is used to characterize the relationship between each business logic node in the business orchestration result; and obtain a code running result corresponding to the business orchestration result according to the DSL.

[0225] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0226] Fig. 22 A structural block diagram of a computer device provided by another exemplary embodiment of the present application is shown.

[0227] Typically, the computer device 2200 includes a processor 2201 and a memory 2202 .

[0228] The processor 2201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 2201 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 2201 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 2201 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 2201 may also include an AI processor, which is used to process computing operations related to machine learning.

[0229] The memory 2202 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 2202 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 2202 stores a computer program, which is loaded and executed by the processor 2201 to implement the above-mentioned method for generating the business logic code.

[0230] Those skilled in the art will understand that Fig. 22 The structure shown in the figure does not constitute a limitation on the computer device 2200, and the computer device 2200 may include more or fewer components than shown in the figure, or combine some components, or adopt a different component arrangement.

[0231] In an exemplary embodiment, a computer-readable storage medium is further provided, wherein a computer program is stored in the storage medium, and when the computer program is executed by a processor, the method for generating the business logic code is implemented.

[0232] Optionally, the computer-readable storage medium may include: ROM (Read-Only Memory), RAM (Random Access Memory), SSD (Solid State Drives) or an optical disk, etc. Among them, the random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).

[0233] In an exemplary embodiment, a computer program product is also provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the above-mentioned method for generating business logic code.

[0234] It should be noted that the collection and processing of relevant data (such as atomic nodes, business intent information, etc.) in this application should be strictly in accordance with the requirements of relevant national laws and regulations when applied in instances, and the informed consent or separate consent of the personal information subject should be obtained, and subsequent data use and processing should be carried out within the scope of authorization of laws and regulations and the personal information subject.

[0235] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.

[0236] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for generating business logic code, characterized in that: The method comprises: Displaying an atomic node configuration interface, wherein at least one candidate atomic node is displayed in the atomic node configuration interface, and the atomic node is used to represent a logical code segment that is not related to the business; In response to an operation of selecting a first atomic node among the at least one candidate atomic node, displaying a parameter configuration interface corresponding to the first atomic node; In the parameter configuration interface, the service parameters configured for the first atomic node are displayed, and the service parameters refer to input parameters and output parameters related to the service; In the logic node orchestration interface, a first business logic node generated based on at least one atomic node is displayed; wherein, the business logic code fragment corresponding to the first business logic node is generated based on the logic code segment and business parameters respectively corresponding to the at least one atomic node, and the at least one atomic node includes the first atomic node.

2. The method according to claim 1, characterized in that In the parameter configuration interface, the business parameters configured for the first atomic node are displayed, including: In response to an operation on a configuration control in the parameter configuration interface, an assignment method selection interface is displayed, wherein at least one candidate assignment method is displayed in the assignment method selection interface, and the assignment method is used to characterize the source of the business parameter; In response to an operation of selecting a first assignment method among the at least one candidate assignment method, displaying an assignment interface corresponding to the first assignment method; In response to an operation of determining the target parameter on the assignment interface, business parameters configured for the first atomic node are displayed, the business parameters including the target parameter.

3. The method according to claim 2, characterized in that The at least one candidate assignment method includes at least one of the following: Assigning values ​​according to the dictionary table refers to selecting variables from the dictionary table and configuring them as the business parameters; Assigning values ​​according to a constant list refers to selecting constants from the constant list and configuring them as the business parameters; Assigning values ​​according to an input form refers to selecting parameters pre-configured for a service from the input form and configuring them as the service parameters.

4. The method according to claim 1, characterized in that An input field is displayed in the atomic node configuration interface; After displaying the atomic node configuration interface, the method further includes: In the input column, the inputted business intention information is displayed; In the atomic node configuration interface, at least one recommended atomic node determined based on the business intent information is displayed.

5. The method according to claim 1, characterized in that The method further comprises: In response to an operation on a second business logic node in the logic node arrangement interface, displaying at least one candidate business logic node related to the second business logic node; wherein the second business logic node is a business logic node for which no corresponding business logic code fragment exists, and the candidate business logic node corresponds to a business logic code fragment; In response to an operation of selecting a target business logic node from the at least one candidate business logic node, the updated second business logic node is displayed, and a business logic code snippet corresponding to the updated second business logic node is generated based on the business logic code snippet corresponding to the target business logic node.

6. A method for generating business logic code, characterized in that: The method comprises: Acquire a service parameter configured for a first atomic node, where the first atomic node is selected from at least one candidate atomic node, the atomic node is used to represent a logic code segment that is not related to the service, and the service parameter refers to an input parameter and an output parameter related to the service; Acquire a logical code segment and a business parameter respectively corresponding to at least one atomic node, wherein the at least one atomic node includes the first atomic node; Based on the logic code segments and business parameters respectively corresponding to the at least one atomic node, a business logic code segment corresponding to the first business logic node is generated.

7. The method according to claim 6, characterized in that The generating a business logic code segment corresponding to the first business logic node based on the logic code segment and the business parameters respectively corresponding to the at least one atomic node includes: For each atomic node of the at least one atomic node, updating a logic code segment corresponding to the atomic node according to a business parameter corresponding to the atomic node to obtain a code segment; Based on at least one of the code snippets obtained according to the at least one atomic node, a business logic code snippet corresponding to the first business logic node is generated.

8. The method according to claim 6, characterized in that The method further comprises: Acquire business intention information, where the business intention information is input in an input field of an atomic node configuration interface; At least one recommended atomic node is determined according to the business intent information.

9. The method according to claim 8, characterized in that The determining, according to the business intent information, at least one recommended atomic node includes: Determine at least one tag word from the business intent information, where the tag word is a word used to characterize the business intent information; Matching the at least one label word with a plurality of atomic nodes in the database to obtain first matching scores respectively corresponding to the plurality of atomic nodes; An atomic node whose first matching score satisfies a first condition is determined as the at least one recommended atomic node.

10. The method according to claim 6, characterized in that The method further comprises: Obtain a second business logic node; wherein the second business logic node is a business logic node for which no corresponding business logic code fragment exists; Determine at least one candidate service logic node related to the second service logic node, the candidate service logic node corresponding to a service logic code snippet; Acquire a target service logic node from the at least one candidate service logic node; According to the business logic code fragment corresponding to the target business logic node, a business logic code fragment corresponding to the second business logic node is generated.

11. The method according to claim 10, characterized in that The determining at least one candidate service logic node related to the second service logic node comprises: Determine business intent information according to the second business logic node, the business intent information including at least one of the following: a node name of the second business logic node, a keyword input by a user based on the second business logic node; determine at least one tag word from the business intent information, the tag word being a word used to characterize the business intent information; match the at least one tag word with a plurality of business logic nodes in a database to obtain second matching scores respectively corresponding to the plurality of business logic nodes; determine a business logic node whose second matching score satisfies a second condition as the at least one candidate business logic node; or, According to at least one third business logic node having a corresponding business logic code snippet, at least one label word included in the business name of the third business logic node is determined, where the label word is a word used to characterize the third business logic node; the at least one label word is matched with a plurality of business logic nodes in a database to obtain third matching scores respectively corresponding to the plurality of business logic nodes; and a business logic node whose third matching score satisfies a third condition is determined as the at least one candidate business logic node; or, Determine the comprehensive scores corresponding to the multiple business logic nodes respectively according to the category relationship between at least one third business logic node having a corresponding business logic code snippet and the multiple business logic nodes in the database, the popularity information corresponding to the multiple business logic nodes in the database, the update time corresponding to the multiple business logic nodes in the database, and the tag information in the user account; determine the business logic node whose comprehensive score meets the fourth condition as the at least one candidate business logic node; wherein the tag information of the user account is used to characterize the business type of the code business involved in the history of the user account.

12. The method according to claim 6, characterized in that The method further comprises: Acquire a service orchestration result, where the service orchestration result is obtained based on orchestrating at least one service logic node, where the at least one service logic node includes the first service logic node; According to the business arrangement result, a domain general language DSL is obtained, where the DSL is used to characterize the relationship between each business logic node in the business arrangement result; According to the DSL, a code running result corresponding to the service orchestration result is obtained.

13. A device for generating business logic code, characterized in that: The device comprises: An interface display module, used for displaying an atomic node configuration interface, wherein the atomic node configuration interface displays at least one candidate atomic node, wherein the atomic node is used for representing a logical code segment that is not related to the business; The interface display module is further configured to, in response to an operation of selecting a first atomic node among the at least one candidate atomic node, display a parameter configuration interface corresponding to the first atomic node; A parameter display module, used to display the business parameters configured for the first atomic node in the parameter configuration interface, where the business parameters refer to input parameters and output parameters related to the business; A node display module is used to display a first business logic node generated based on at least one atomic node in a logical node orchestration interface; wherein the business logic code fragment corresponding to the first business logic node is generated based on the logic code fragment and business parameters respectively corresponding to the at least one atomic node, and the at least one atomic node includes the first atomic node.

14. A device for generating business logic code, characterized in that: The device comprises: A parameter acquisition module, used to acquire a service parameter configured for a first atomic node, where the first atomic node is selected from at least one candidate atomic node, the atomic node is used to represent a logical code segment that is not related to the service, and the service parameter refers to an input parameter and an output parameter related to the service; The parameter acquisition module is further used to acquire the logic code segment and the service parameter respectively corresponding to at least one atomic node, and the at least one atomic node includes the first atomic node; The code generation module is used to generate a business logic code fragment corresponding to the first business logic node based on the logic code segment and business parameters respectively corresponding to the at least one atomic node.

15. A computer device, characterized in that: The computer device includes a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the method for generating a business logic code as described in any one of claims 1 to 5 above, or to implement the method for generating a business logic code as described in any one of claims 6 to 11 above.