Component conversion method and device based on low-code platform, server and medium
By generating operation components to express graphics, split and display mortise and tenon graphics, the problem that low-code platforms cannot meet the needs of users with insufficient programming experience, and the effective conversion and functional implementation of operation components are achieved.
Patent Information
- Application Number
- CN202411648296.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-19
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2044-11-19
AI Technical Summary
The existing low-code platform cannot meet the programming tasks that users lack programming experience and complete complex functions, and users cannot effectively utilize the rich resources provided by the platform.
By generating the operation component expression graph, selecting the approximate operation components, splitting and dividing them into tenon interfaces and tenon interfaces, displaying the mortise and tenon graphics, and converting the operation components according to the user's confirmation operations to meet the user's operation component needs.
Convert complex computing component requirements into graphs that are easy for users to understand, helping users select suitable components and convert them, implementing the functions required by users, and improving the efficiency of using low-code platforms.
Smart Images

Figure CN119166132A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of low-code platforms, and in particular to a component conversion method, device, server and medium based on a low-code platform. Background Art
[0002] Low Code Platform is an efficient development method that can accelerate the software development process. It abstracts and minimizes manual coding, uses visual tools and little or no code to quickly build and deploy customized applications.
[0003] Low-code platforms allow end users to develop their own applications using easy-to-understand visual tools instead of the traditional way of writing code. Build the required functions such as business processes, logic and data models, and add your own code when necessary. After completing the construction of business logic and functions, you can deliver and update the application with one click, automatically track all changes and handle database scripts and deployment processes, and realize deployment on multiple platforms such as IOS, Android, and Web.
[0004] Although users can develop applications using low-code platforms, they currently only program based on simple business logic visualization. For complex functions, users need to have certain programming skills and use the code they add to complete them. For users who lack programming experience, they cannot use the rich resources provided by the low-code platform to complete the programming tasks they need. Summary of the invention
[0005] The embodiments of the present invention provide a component conversion method, device, server and medium based on a low-code platform to solve the technical problem in the prior art that users cannot use the rich resources provided by the low-code platform to complete programming tasks that meet their own needs.
[0006] In a first aspect, an embodiment of the present invention provides a component conversion method based on a low-code platform, comprising: Generate an operation component expression graph according to the input operation component requirements; Selecting an approximate operation component from existing operation components according to the operation component expression graph, and displaying the approximate operation component; Receiving a selection operation in a display area of a virtual image component of a program module, and determining a selected approximate operation component; The approximate operation component is split to obtain at least two transfer connection interfaces, and the transfer connection interfaces are divided into corresponding tenon interfaces and mortise interfaces based on the transfer relationship, a tenon-and-mortise graph is generated based on the properties of the tenon interfaces and the mortise interfaces, and the tenon-and-mortise graph is displayed; After receiving the mortise and tenon graphic confirmation operation, the approximate operation component is converted according to the input operation component requirement.
[0007] In a second aspect, an embodiment of the present invention further provides a component conversion device based on a low-code platform, including: A generation module, used to generate a computing component expression graph according to the input computing component requirements; A selection module, used for selecting an approximate operation component from existing operation components according to the operation component expression graph, and displaying the approximate operation component; A receiving module, used for receiving a selection operation in a display area of a virtual image component of a program module, and determining a selected approximate operation component; A splitting module, used to split the approximate operation component, obtain at least two transfer connection interfaces, and divide the transfer connection interfaces into corresponding tenon interfaces and mortise interfaces based on the transfer relationship, generate a tenon-and-mortise graph based on the properties of the tenon interface and the mortise interface, and display the tenon-and-mortise graph; The conversion module is used to convert the approximate operation component according to the input operation component requirement after receiving the mortise and tenon graphic confirmation operation.
[0008] In a third aspect, an embodiment of the present invention further provides a server, including: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the component conversion method based on the low-code platform as provided in the above embodiments.
[0009] In a fourth aspect, an embodiment of the present invention further provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to execute a component conversion method based on a low-code platform as provided in the above embodiment.
[0010] The component conversion method, device, server and medium based on the low-code platform provided by the embodiment of the present invention generate a computing component expression graph according to the input computing component demand; select an approximate computing component from the existing computing components according to the computing component expression graph, and display the approximate computing component; receive a selection operation in the virtual image component display area of the program module, and determine the selected approximate computing component; split the approximate computing component to obtain at least two transfer connection interfaces, and divide the transfer connection interface into corresponding tenon interfaces and mortise interfaces based on the transfer relationship, generate a tenon-mortise and tenon graph based on the properties of the tenon interfaces and mortise interfaces, and display the tenon-mortise and tenon graph; after receiving the tenon-mortise and tenon graph confirmation operation, convert the approximate computing component according to the input computing component demand. The computing component demand and the existing computing component can be converted into a graph that is easy for the user to understand, and the approximate computing component is selected according to the user, and the interface data in the approximate computing component is converted into a compatible graph, so that the user can determine whether the computing requirements can be met. And the determined approximate computing component is converted. It is convenient for the user to use the converted approximate computing component to realize the functions required by the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] By reading the following Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments shown in the accompanying drawings: Figure 1 It is a flowchart of a component conversion method based on a low-code platform provided in the first embodiment of the present invention; Figure 2 It is a flowchart of a component conversion method based on a low-code platform provided in Embodiment 2 of the present invention; Figure 3 It is a structural schematic diagram of a component conversion device based on a low-code platform provided in Embodiment 3 of the present invention; Figure 4 It is a structural diagram of a server provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0012] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0013] Embodiment 1 Figure 1This is a flowchart of a component conversion method based on a low-code platform provided in the first embodiment of the present invention. This embodiment can be applied to convert existing components in a low-code platform into components suitable for programming requirements according to user programming requirements. The method can be executed by a component conversion device based on a low-code platform and can be integrated in a server. Specifically, it includes the following steps: Step 110, generating a computing component expression graph according to the input computing component requirements.
[0014] In this embodiment, the user may input programming requirements, which may be requirements of a component, ie, computing requirements of the component.
[0015] Exemplarily, it may include: determining the type of the operation component expression graph according to the type of the input operation component; querying the attributes of the input operation component, and determining the graphic unit of the operation component expression graph according to the attributes; determining the length of the graphic unit of the operation component expression graph according to the number of variables of the input operation component; generating the operation component expression graph according to the type of the operation component expression graph, the graphic unit and the degree of the graphic unit.
[0016] The attribute of the operation component can be the function of the component. For example: logic or operation. According to the pre-set attribute and graphic correspondence table, the basic graphic of the component is set. And according to the number of variables of the input operation component, the length of the graphic unit expressing the graphic of the operation component is determined. For example: determine that the attribute corresponds to a polygon, and determine the length of the corresponding variable according to the number of variables. Using the above method, a personalized image can be generated according to the needs of each operation component. It can not only reflect the operation logic, but also reflect the number of parameters involved in the operation.
[0017] Step 120 , selecting an approximate operation component from existing operation components according to the operation component expression graph, and displaying the approximate operation component.
[0018] Exemplarily, the method of generating the computing component expression graph in the above step can be adopted to convert the existing components in the low-code platform into corresponding expression graphs. And based on the similarity between the expression graph and the computing component expression graph generated in the previous step, an approximate computing component that is closer to the image features required by the computing component is selected.
[0019] Optionally, there may be multiple approximate computing components selected, so that the user can select the existing computing component that the user considers to be closest, so that the user can assist in the conversion according to the part that the user is good at.
[0020] Step 130, receiving a selection operation in the program module virtual image component display area, and determining the selected approximate operation component.
[0021] In this embodiment, when selecting multiple approximate computing components by similarity, a virtual image component display area is provided in the component conversion operation interface, which is used to display the graphics of the selected multiple approximate computing components. Furthermore, the graphics corresponding to the computing component requirements can also be displayed in this area, so that users with less programming experience can understand the differences between the graphics and select existing components that are more suitable for themselves for later conversion. The existing components to be converted are determined according to the user's selection.
[0022] Step 140, split the approximate operation component to obtain at least two transfer connection interfaces, and divide the transfer connection interfaces into corresponding mortise and tenon interfaces based on the transfer relationship, generate a mortise and tenon graphic based on the properties of the mortise and tenon interfaces, and display the mortise and tenon graphic.
[0023] In this embodiment, the approximate operation component may not be completely consistent with the requirements. Among them, the most common situation is that the external interface of the component may not be consistent with the requirements and cannot be adapted to other components. Alternatively, other variable parameters are added on the basis of the original parameters. Therefore, in this embodiment, the corresponding external interface is obtained by splitting the approximate operation component, and based on the nature of the interface, it corresponds to a tenon interface and a mortise interface, respectively, to match the external mortise and tenon interfaces and mortise interfaces provided by other components, and convert it into a corresponding graphic to avoid parameter errors, so that users can intuitively observe whether there are errors in the variable settings corresponding to the interface transmission.
[0024] Step 150, after receiving the mortise and tenon graphic confirmation operation, convert the approximate operation component according to the input operation component requirement.
[0025] The user can judge whether there is a problem with the subsequent components according to the mortise and tenon pattern, and confirm it when it is determined that there is no problem, so that the platform can convert the selected approximate operation component according to the input operation component requirements.
[0026] Exemplarily, it may include: when there are differences in input variables or intermediate variables between the approximate operation component and the input operation component requirements, providing an input interface to receive the input variables and adding variable definition codes according to the input variables; when there are differences in operation methods between the approximate operation component and the input operation component requirements, receiving the input operation formula through a replacement interface, and converting the operation formula into corresponding operation code to replace the original operation code.
[0027] The above method can be used to transform and replace existing computing components according to the calculation method and variables required by the user to meet the computing component requirements proposed by the user.
[0028] This embodiment generates an operation component expression graph according to the input operation component requirements; selects an approximate operation component from the existing operation components according to the operation component expression graph, and displays the approximate operation component; receives a selection operation in the program module virtual image component display area, determines the selected approximate operation component; splits the approximate operation component to obtain at least two transfer connection interfaces, and divides the transfer connection interface into a corresponding tenon interface and a mortise interface based on the transfer relationship, generates a tenon-mortise and tenon graph based on the properties of the tenon interface and the mortise interface, and displays the tenon-mortise and tenon graph; after receiving the tenon-mortise and tenon graph confirmation operation, converts the approximate operation component according to the input operation component requirements. The operation component requirements and the existing operation components can be converted into a graph that is easy for the user to understand, and the approximate operation component is selected according to the user, and the interface data in the approximate operation component is converted into a compatible graph, so that the user can determine whether the operation requirements can be met. And the determined approximate operation component is converted. It is convenient for the user to use the converted approximate operation component to realize the functions required by the user.
[0029] Embodiment 2
[0030] Figure 2 A flow chart of a component conversion method based on a low-code platform provided for the second embodiment of the present invention. This embodiment is optimized based on the above embodiment. In this embodiment, the approximate operation component is split to obtain at least two transfer connection interfaces, and the transfer connection interface is divided into corresponding tenon interfaces and mortise interfaces based on the transfer relationship. The specific optimization is as follows: traverse the code of the approximate operation component, and establish a code tree based on the code of the approximate operation component, and split the code according to the functional statements as the functional module subtrees of the code tree; query the input variables and output variables of each functional module subtree; determine whether the input variable is the output variable of other functional module subtrees; when it is not the output variable of other functional module subtrees, use the input port of the input variable as the tenon interface; when the output variable is not the input variable of other functional module subtrees, use the output port of the output variable as the mortise interface. And the generation of mortise and tenon graphics based on the properties of the mortise and tenon interfaces is specifically optimized as follows: respectively obtain the properties and quantity of variables corresponding to the mortise and tenon interfaces; construct the number of tenon edges of the mortise and tenon interfaces based on the basic graphics of the mortise and tenon interfaces and the number of variables, and determine the line type of the tenon edges based on the properties; construct the number of tenon edges of the mortise and tenon interfaces based on the basic graphics of the mortise and tenon interfaces and the number of variables, and determine the line type of the tenon edges based on the properties, the basic graphics of the mortise and tenon interfaces and the basic graphics of the mortise and tenon interfaces correspond to each other, and the line type of the tenon edges and the line type of the mortise edges correspond to each other.
[0031] Accordingly, the component conversion method based on the low-code platform provided in this embodiment specifically includes: Step 210 , generating a computing component expression graph according to the input computing component requirement, selecting an approximate computing component from existing computing components according to the computing component expression graph, and displaying the approximate computing component.
[0032] Step 220, receiving a selection operation in the program module virtual image component display area, and determining the selected approximate operation component.
[0033] Step 230, traverse the code of the approximate operation component, and establish a code tree based on the code of the approximate operation component, and split the code according to functional statements as functional module subtrees of the code tree; query the input variables and output variables of each functional module subtree.
[0034] In this embodiment, the code of the approximate operation component is traversed and split according to functions. For example, the code is split according to functions such as judgment or loop statements, or calculation and output statements, and a functional module subtree is generated according to the split results. The code tree can prevent omissions. Furthermore, the input variables and output variables of each functional module subtree can be queried.
[0035] Step 240, determine whether the input variable is an output variable of other functional module subtrees; when it is not an output variable of other functional module subtrees, use the input port of the input variable as a tenon interface; when the output variable is not an input variable of other functional module subtrees, use the output port of the output variable as a mortise interface.
[0036] In this embodiment, the external interface of the computing component can be found in the above manner, and various interfaces transmitted internally can be removed by using the code tree. Further, the external interface of the computing component is determined, and the input variable entry port is used as the tenon interface, and the adaptation relationship between the interfaces is expressed by the tenon-tenon relationship.
[0037] Step 250, respectively obtain the attributes and quantity of the variables corresponding to the tenon interface and the mortise interface; construct the number of tenon edges of the tenon interface based on the basic graphics of the tenon interface and the number of variables, and determine the line type of the tenon edge based on the attributes; construct the number of tenon edges of the tenon interface based on the basic graphics of the tenon interface and the number of variables, and determine the line type of the tenon edge based on the attributes, and the basic graphics of the tenon interface and the basic graphics of the mating tenon interface correspond to each other.
[0038] In this embodiment, the mortise and tenon joints are graphically expressed in the above manner, so that the user can intuitively observe from the graphics that the mortise and tenon joints can match.
[0039] Step 260, after receiving the mortise and tenon graphic confirmation operation, convert the approximate operation component according to the input operation component requirement.
[0040] The user can determine the matching relationship with other computing components through the graphical expression of the tenon and mortise interfaces. After confirming that there is no problem with the matching, a confirmation operation can be issued, and the low-code platform can convert the approximate computing component according to the input computing component requirements.
[0041] This embodiment splits the approximate operation component to obtain at least two transfer connection interfaces, and divides the transfer connection interface into corresponding tenon interfaces and mortise interfaces based on the transfer relationship. The specific optimization is: traverse the code of the approximate operation component, and establish a code tree based on the code of the approximate operation component, and split the code according to functional statements as functional module subtrees of the code tree; query the input variables and output variables of each functional module subtree; determine whether the input variable is the output variable of other functional module subtrees; when it is not the output variable of other functional module subtrees, use the input port of the input variable as the tenon interface; when the output variable is not the input variable of other functional module subtrees, use the output port of the output variable as the mortise interface. And the generation of the tenon and mortise graphics based on the properties of the tenon and mortise interfaces is specifically optimized as follows: respectively obtain the properties and quantity of the variables corresponding to the tenon and mortise interfaces; construct the number of tenon edges of the tenon interface based on the basic graphics of the tenon interface and the number of variables, and determine the line type of the tenon edge based on the properties; construct the number of tenon edges of the tenon interface based on the basic graphics of the tenon interface and the number of variables, and determine the line type of the tenon edge based on the properties, the basic graphics of the tenon interface and the basic graphics of the tenon interface correspond to each other, and the line type of the tenon edge and the line type of the tenon edge correspond to each other. The various interfaces of the approximate operation components can be analyzed, the various interfaces exposed to the outside can be determined, and the interfaces can be graphically expressed, so that users can intuitively understand whether the coordination relationship with other components meets the requirements.
[0042] Embodiment 3
[0043] Figure 3 A schematic diagram of the structure of a component conversion device based on a low-code platform provided in Embodiment 4 of the present invention, such as Figure 3 As shown, the device comprises: A generating module 310, for generating a computing component expression graph according to the input computing component requirements; A selection module 320, configured to select an approximate operation component from existing operation components according to the operation component expression graph, and display the approximate operation component; A receiving module 330 is used to receive a selection operation in the display area of the program module virtual image component and determine the selected approximate operation component; A splitting module 340 is used to split the approximate operation component, obtain at least two transfer connection interfaces, and divide the transfer connection interfaces into corresponding tenon interfaces and mortise interfaces based on the transfer relationship, generate a tenon-and-mortise graph based on the properties of the tenon interface and the mortise interface, and display the tenon-and-mortise graph; The conversion module 350 is used to convert the approximate operation component according to the input operation component requirement after receiving the mortise and tenon graphic confirmation operation.
[0044] The component conversion device based on the low-code platform provided in this embodiment generates a computing component expression graph according to the input computing component requirements; selects an approximate computing component from the existing computing components according to the computing component expression graph, and displays the approximate computing component; receives a selection operation in the program module virtual image component display area, and determines the selected approximate computing component; splits the approximate computing component, obtains at least two transfer connection interfaces, and divides the transfer connection interface into corresponding tenon interfaces and mortise interfaces based on the transfer relationship, generates a tenon-mortise and tenon graph based on the properties of the tenon interfaces and mortise interfaces, and displays the tenon-mortise and tenon graph; after receiving the tenon-mortise and tenon graph confirmation operation, converts the approximate computing component according to the input computing component requirements. The computing component requirements and the existing computing components can be converted into graphics that are easy for users to understand, and the approximate computing components are selected according to the user, and the interface data in the approximate computing components are converted into compatible graphics, so that the user can determine whether the computing requirements can be met. And the determined approximate computing components are converted. It is convenient for users to use the converted approximate computing components to realize the functions required by users.
[0045] Based on the above embodiments, the generation module includes: A type determination unit, used to determine the type of the operation component expression graph according to the type of the input operation component; An attribute query unit, used for querying the attributes of the input computing component and determining the graphic unit of the computing component expression graphic according to the attributes; A length determination unit, used to determine the length of the graphic unit of the expression graphic of the operation component according to the number of variables of the input operation component; A generating unit is used to generate a computing component expression graph according to the type of the computing component expression graph, the graphic unit and the degree of the graphic unit.
[0046] Based on the above embodiments, the detection module includes: A second judgment unit is used to judge whether the current frame image includes a server storage path identifier; A determining unit is used to determine whether server storage path information exists according to the server storage path identifier.
[0047] Based on the above embodiments, the selection module includes: A characteristic acquisition unit, used to acquire the image characteristics of the computing component and the image characteristics of existing computing components; The selection unit is used to select an approximate operation component from existing operation components according to the image characteristics.
[0048] Based on the above embodiments, the splitting module includes: A traversal unit, used for traversing the code of the approximate operation component, establishing a code tree based on the code of the approximate operation component, and splitting the code according to functional statements as a functional module subtree of the code tree; A variable query unit, used to query the input variables and output variables of each functional module subtree; A judging unit, used to judge whether the input variable is an output variable of another functional module subtree; The tenon interface is used as a unit to use the input port of the input variable as the tenon interface when it is not an output variable of other functional module subtrees; The 90 interface is used as a unit, and is used to use the output port of the output variable as the 90 interface when the output variable is not an input variable of other function module subtrees.
[0049] Based on the above embodiments, the splitting module further includes: Respective acquisition units are used to respectively acquire the properties and quantities of variables corresponding to the tenon interface and the mortise interface; A line type determination unit, used for constructing the number of tenon edges of the tenon interface based on the basic graphics of the tenon interface and the number of variables, and determining the line type of the tenon edge based on the attribute; The edge number determination unit is used to construct the mortise edge number of the mortise interface based on the basic graphics of the mortise interface and the number of variables, and determine the line type of the mortise edge based on the attributes. The basic graphics of the mortise interface correspond to the basic graphics of the mating tenon interface.
[0050] Based on the above embodiments, the conversion module includes: An adding unit, used for providing an input interface to receive input variables and adding variable definition codes according to the input variables when there are differences in input variables or intermediate variables required by the approximate operation component and the input operation component; The replacement unit is used to receive the input operation formula through the replacement interface when there is a difference in operation mode between the approximate operation component and the input operation component requirement, and convert the operation formula into corresponding operation code to replace the original operation code.
[0051] The component conversion device based on the low-code platform provided in an embodiment of the present invention can execute the component conversion method based on the low-code platform provided in any embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method.
[0052] Embodiment 4
[0053] Figure 4 A schematic diagram of the structure of a server provided in Embodiment 5 of the present invention. Figure 4 A block diagram of an exemplary server 12 suitable for use in implementing embodiments of the present invention is shown. Figure 4 The server 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0054] like Figure 4 As shown, the server 12 is in the form of a general purpose computing device. The components of the server 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).
[0055] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0056] The server 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the server 12, including volatile and non-volatile media, removable and non-removable media.
[0057] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache 32. The server 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0058] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0059] The server 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may communicate with one or more devices that enable users to interact with the server 12, and / or may communicate with any device that enables the server 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. In addition, the server 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the server 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the server 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0060] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the component conversion method based on the low-code platform provided in an embodiment of the present invention.
[0061] Embodiment 5
[0062] Embodiment 5 of the present invention also provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to execute a component conversion method based on a low-code platform as described in any of the above embodiments.
[0063] The computer storage medium of the embodiment of the present invention may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device.
[0064] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0065] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0066] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0067] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A component conversion method based on a low-code platform, characterized in that: include: Generate an operation component expression graph according to the input operation component requirements; Selecting an approximate operation component from existing operation components according to the operation component expression graph, and displaying the approximate operation component; Receiving a selection operation in a display area of a virtual image component of a program module, and determining a selected approximate operation component; The approximate operation component is split to obtain at least two transfer connection interfaces, and the transfer connection interfaces are divided into corresponding tenon interfaces and mortise interfaces based on the transfer relationship, a tenon-and-mortise graph is generated based on the properties of the tenon interfaces and the mortise interfaces, and the tenon-and-mortise graph is displayed; After receiving the mortise and tenon graphic confirmation operation, the approximate operation component is converted according to the input operation component requirement.
2. The method according to claim 1, characterized in that The step of generating a computing component expression graph according to the input computing component requirements includes: Determining the type of the expression graph of the computing component according to the type of the input computing component; Querying the attributes of the input computing component, and determining the graphic unit of the computing component expression graphic according to the attributes; Determining the length of the graphic unit of the graphic expression of the computing component according to the number of variables of the input computing component; An operation component expression graph is generated according to the type of the operation component expression graph, the graphic unit and the degree of the graphic unit.
3. The method according to claim 2, characterized in that The selecting an approximate operation component from existing operation components according to the operation component expression graph includes: Acquire image characteristics of the computing component and image characteristics of existing computing components; An approximate operation component is selected from existing operation components according to the image characteristics.
4. The method according to claim 3, characterized in that The step of splitting the approximate operation component to obtain at least two transfer connection interfaces, and dividing the transfer connection interfaces into corresponding tenon interfaces and mortise interfaces based on the transfer relationship, includes: Traversing the code of the approximate operation component, and establishing a code tree based on the code of the approximate operation component, and splitting the code according to functional statements as a functional module subtree of the code tree; Query the input variables and output variables of each functional module subtree; Determine whether the input variable is an output variable of another functional module subtree; When it is not an output variable of other function module subtrees, the input port of the input variable is used as a tenon interface; When the output variable is not an input variable of other functional module subtrees, the output port of the output variable is used as a 90 interface.
5. The method according to claim 4, characterized in that The generating of the mortise and tenon graphics based on the properties of the mortise and tenon interfaces includes: Get the properties and quantity of the variables corresponding to the tenon and mortise interfaces respectively; The number of tenon edges of the tenon interface is constructed based on the number of basic graphics and variables of the tenon interface, and the line type of the tenon edge is determined based on the attributes; The number of mortise edges of the mortise interface is constructed based on the basic graphics of the mortise interface and the number of variables, and the line type of the mortise edge is determined based on the attributes. The basic graphics of the mortise interface and the basic graphics of the mating tenon interface correspond to each other.
6. The method according to claim 1, characterized in that The converting of the approximate operation component according to the input operation component requirement includes: When there are differences in input variables or intermediate variables between the approximate operation component and the input operation component requirements, an input interface is provided to receive the input variables, and a variable definition code is added according to the input variables; When there is a difference in operation mode between the approximate operation component and the input operation component requirement, the input operation formula is received through the replacement interface, and the operation formula is converted into a corresponding operation code to replace the original operation code.
7. A component conversion device based on a low-code platform, characterized in that: The device comprises: A generation module, used to generate a computing component expression graph according to the input computing component requirements; A selection module, used for selecting an approximate operation component from existing operation components according to the operation component expression graph, and displaying the approximate operation component; A receiving module, used for receiving a selection operation in a display area of a virtual image component of a program module, and determining a selected approximate operation component; A splitting module, used to split the approximate operation component, obtain at least two transfer connection interfaces, and divide the transfer connection interfaces into corresponding tenon interfaces and mortise interfaces based on the transfer relationship, generate a tenon-and-mortise graph based on the properties of the tenon interface and the mortise interface, and display the tenon-and-mortise graph; The conversion module is used to convert the approximate operation component according to the input operation component requirement after receiving the mortise and tenon graphic confirmation operation.
8. A server, characterized in that: The server comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the component conversion method based on the low-code platform as described in any one of claims 1-6.
9. A storage medium containing computer executable instructions, which, when executed by a computer processor, are used to execute the component conversion method based on a low-code platform as described in any one of claims 1-6.
Citation Information
Patent Citations
Programming method of intelligent robot
CN107943474A
Guided visual graphical modular rule editing method, system and editor
CN110837362A
Configurable visual development method and system
CN112114797A
Visual component acquisition method and device and storage medium
CN113885857A
Code generation method and device, electronic equipment and storage medium
CN114816372A
