Program generation method and device based on visual low code, equipment and medium
A program generation, code technology, applied in the field of low-code programming, can solve problems such as no support
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0080] refer to figure 1 ,Such as figure 1 Shown is a schematic flow chart of the program generation method based on the visualized low code provided in this embodiment. The method specifically includes the following steps:
[0081] Step S100: Obtain and load the flow chart data, the flow chart data includes the nodes and edges of the flow chart, the edges include IN edges and OUT edges, the OUT edges represent the edges of the node, and the IN edges represent the edges entering the node. This step loads information such as nodes and edges of the flowchart, and prepares the data structure for analysis.
[0082] Step S200: Determine the order of the OUT edges of the node by repeatedly traversing the subgraph after a certain node. For branch nodes, there will be multiple OUT edges. Since addition and deletion adjustments will be made during drawing, it is necessary to formulate effective rules to judge the order of OUT edges. The order of the OUT edges of the nodes is diffe...
Embodiment approach
[0083] As an implementation manner, the determination of the order of the OUT edges of the nodes in this embodiment specifically includes:
[0084] If the OUT edge of the node is an unconditional edge, it will be executed last; among them, the unconditional edge means that there is a judgment condition when entering the next node, and the unconditional edge is always executed at the end, because if the unconditional edge is executed before, then the subsequent branches will have no Opportunity to execute is useless.
[0085] If the OUT edge of the node is a conditional edge, determine the order of the OUT edge of the node according to the difference between the abscissa and ordinate of the successor node.
[0086] Among them, determining the order of the OUT edge of the node according to the difference between the abscissa and ordinate of the successor node specifically includes:
[0087] Method 1: Calculate the cumulative value of the difference between the horizontal and ve...
Embodiment 2
[0128] refer to image 3 ,Such as image 3 Shown is the structural block diagram of the program generation device based on the visualized low code provided by this embodiment. Specifically, the device includes:
[0129] The data loading module 10 is used to obtain and load the flow chart data, the flow chart data includes the nodes and edges of the flow chart, the edges include IN edges and OUT edges, the OUT edge represents the edge of the node, and the IN edge represents the edge of the node ;
[0130] The OUT edge sorting module 20 is used to determine the order of the OUT edge of the node by repeatedly traversing the subgraph after a certain node;
[0131] The node sequencing module 30 is used to determine the order of control nodes and edges of nodes by repeating depth traversal, and determine the type of edges, and the control node is a node that must be passed to reach a certain node;
[0132] The edge type adjustment module 40 is used to adjust the edge type accord...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


