CN117075884B - Digital processing system and method based on visual script - Google Patents
Digital processing system and method based on visual script Download PDFInfo
- Publication number
- CN117075884B CN117075884B CN202311323479.8A CN202311323479A CN117075884B CN 117075884 B CN117075884 B CN 117075884B CN 202311323479 A CN202311323479 A CN 202311323479A CN 117075884 B CN117075884 B CN 117075884B
- Authority
- CN
- China
- Prior art keywords
- node
- variable
- nodes
- view
- main line
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 171
- 238000013515 script Methods 0.000 title claims abstract description 64
- 230000000007 visual effect Effects 0.000 title claims abstract description 60
- 238000012545 processing Methods 0.000 title claims abstract description 42
- 238000004458 analytical method Methods 0.000 claims abstract description 36
- 230000005484 gravity Effects 0.000 claims description 6
- 238000012549 training Methods 0.000 claims description 6
- 238000012800 visualization Methods 0.000 claims description 5
- 238000010422 painting Methods 0.000 claims description 4
- 230000008859 change Effects 0.000 claims description 3
- 238000005192 partition Methods 0.000 claims description 3
- 230000001105 regulatory effect Effects 0.000 claims description 3
- 238000003672 processing method Methods 0.000 claims 2
- 238000011161 development Methods 0.000 abstract description 4
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 239000004744 fabric Substances 0.000 description 2
- 238000011144 upstream manufacturing Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001276 controlling effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Abstract
The invention discloses a digital processing system and method based on a visual script, and belongs to the technical field of digital processing. The system comprises: the system comprises a visual script editing module, a view analysis module, a node configuration module and a digital processing module; the output end of the visual script editing module is connected with the input end of the view analysis module; the output end of the view analysis module is connected with the input end of the node configuration module; the output end of the node configuration module is connected with the input end of the digital processing module. The invention can realize visual programming, write logic through the graphical interface, use the mode of node and connecting wire to represent the logic relationship, make the logic structure clearer and easier to maintain, save time and energy of the developer, avoid some common programming errors at the same time, greatly improve the development efficiency.
Description
Technical Field
The invention relates to the technical field of digital processing, in particular to a digital processing system and method based on a visual script.
Background
The fields of digital processing systems and low code tools are in a rapid development stage at home and abroad. Many businesses and developers are seeking more efficient and flexible ways of developing to meet the ever-increasing demands. At present, programming often needs to meet a large number of harsh technical conditions, for example, programming needs professional technicians, and code content is not intuitive and easy to understand; programming errors are numerous and cannot be avoided, wasting a lot of modification time; the development efficiency is low, and the workload of writing codes is high; the debugging process needs to be operated continuously, which wastes energy; code reusability is poor, and a group of codes often only support corresponding software logic; based on such programming dilemma, how to solve a large number of problems occurring in programming is one of the important researches in the current field.
Disclosure of Invention
The invention aims to provide a digital processing system and method based on a visual script, which are used for solving the problems in the background technology.
In order to solve the technical problems, the invention provides the following technical scheme: a method for digitally processing based on visual scripts, the method comprising the steps of:
s1, the system enters a visual script editor, is switched to a variable view, drags nodes from a node list to create data type variables, edits names and default values of the data type variables, and stores node configuration of the data type variables to be recorded as variable nodes;
s2, opening a visual script editor, switching to a method view, constructing a custom method to a canvas, editing names and parameters of the custom method, and setting parameter names and parameter data types; editing a method return value, wherein the default return value is null;
s3, entering the interior of the self-defining method, and configuring nodes of the self-defining method, wherein the nodes of the self-defining method comprise universal nodes, branch nodes and object nodes, the nodes of the self-defining method are dragged into a node list, and the nodes enter a canvas editing area;
s4, constructing a logic main line through deleting and connecting operations provided by the canvas editing area, configuring a custom method node on the logic main line every time, and adjusting the position of a variable node in the variable view;
s5, selecting a needed variable node under a variable view, dragging the variable node into a picture-cloth editing area, linking the variable node to parameters of a self-defined method, enabling one variable node to link one or more parameters, constructing an ending node when the end of a logic main line is reached, linking an output anchor point of the last node to the ending node, and storing method configuration.
According to the technical scheme, the name of the created data type variable is default +data type, the variable with the same data type is created for many times, serial numbers are added as distinction after naming, and the naming of the variable nodes supports Chinese, english and digital underlining;
the name of the custom method is named as a default method by default; serial numbers are added as distinction after naming of a plurality of methods, and the naming of the methods supports Chinese, english and digital underlining; if the user-defined method needs to call the API, whether the user-defined method is an asynchronous function or not needs to be defined.
According to the technical scheme, the universal node refers to a node applied to a logic main line, serves service logic and is a main component forming the service logic; the branch node refers to a node capable of generating a branch, and when a branch line of the branch node is not on a logic main line, the branch node can independently operate; the variable node refers to a node created and defined through a variable view, can output a variable, belongs to a certain general node or branch node, comprises five types of text, figure, boolean, object and array, and performs distinguishing marking in different color modes; the object node refers to a node capable of expanding or constructing an object.
A node is a tool used to define behavior and logic. They provide a graphical way to allow a user to build complex program flows by connecting nodes. The nodes may contain various types of functions such as receiving inputs, performing calculations, generating outputs, or controlling program flows.
According to the above technical solution, in step S4, further includes:
each logic main line represents a service operation logic, and each time a user-defined method node is configured on the logic main line, one or more variable nodes are correspondingly dragged into the variable view to support universal nodes or branch nodes;
a variable node change model is inserted into a node page of the variable view, and the type of the variable node can be regulated based on a user-defined method node configured on a logic main line;
the variable node variation model includes:
acquiring operation data of a logic main line in a history behavior, writing each self-defined method node and a corresponding variable node in the logic main line into a training set, and constructing information gain of a variable node type V according to the training set:
the information gain is defined based on the information entropy calculated as follows:
,
wherein D represents a current data set, k represents a k-th category target variable in the current data set, and the target variable comprises the number of custom method nodes of the preamble, the last inserted variable node type and the number of variable node types V in the preamble;information entropy of the current data set; l represents the total number of types of the target variable;
,
wherein,the method comprises the steps of classifying information entropy based on a feature A, wherein the feature A is used for carrying out range value in the quantity or classifying the variable node type inserted last, each range value is marked as a feature, and each variable node type is marked as a feature; />Refers to the subset of the data set D partition based on feature a; />Means that the data volume of each sub-set accounts for the proportion of the data set; n refers to the total number of classifications for feature A, representing the presence of n +.>;/>Refer to each feature class subset->A subset of the target class; />The specific gravity of the classified subset in the characteristic classified subset is referred to as the specific gravity of each characteristic classified subset in the characteristic classified subset;
different target variables bring different influences, for example, the quantity of the leading custom method nodes can influence the inserted variable nodes, and if the method nodes are of an array type, the large probability of the inserted nodes is also of the array type; if the number of the variable node types 'numbers' in the preamble is large, the high probability logic main line is a calculation main line, and the insertion node is also likely to be of the number type;
the information gain of the feature A is as follows:
calculating information gain for each feature, selecting the maximum information gain for each time, and dividing to generate a classification tree model of each variable node type V;
acquiring the operation data of the preamble in real time, substituting the operation data into a classification tree model of each variable node type V, marking the classification result positively, judging the positive result in the classification tree result as a positive result, and judging the positive result as the variable node type under the selected model; dividing the variable views according to the number of the marks, and displaying the variable nodes corresponding to the marks.
A visualization script-based digital processing system, the system comprising: the system comprises a visual script editing module, a view analysis module, a node configuration module and a digital processing module;
the visual script editing module is provided with a visual script editor which is linked with a variable view and a method view; the view analysis module is used for entering a visual script editor, switching to a variable view, dragging nodes from a node list to create data type variables, editing names and default values of the data type variables, and storing node configuration of the data type variables to be recorded as variable nodes; opening a visual script editor, switching to a method view, constructing a custom method to a canvas, editing names and parameters of the custom method, and setting parameter names and parameter data types; editing a method return value, wherein the default return value is null; the node configuration module is used for entering the interior of the self-defining method and configuring the nodes of the self-defining method, wherein the nodes of the self-defining method comprise universal nodes, branch nodes and object nodes, and the nodes of the self-defining method are dragged into the node list and enter the canvas editing area; constructing a logic main line through deleting and connecting operations provided by the canvas editing area, configuring a custom method node on the logic main line every time, and switching to a variable view; the digital processing module is used for selecting a needed variable node under a variable view, dragging the variable node into a painting editing area, linking the variable node to parameters of a self-defined method, enabling one variable node to link one or more parameters, constructing an ending node when the end of a logic main line is reached, linking an output anchor point of a final node to the ending node, and storing method configuration;
the output end of the visual script editing module is connected with the input end of the view analysis module; the output end of the view analysis module is connected with the input end of the node configuration module; the output end of the node configuration module is connected with the input end of the digital processing module.
According to the technical scheme, the visual script editing module comprises an editor unit and a link unit;
the visual script editor is arranged in the editor unit, and the system performs script editing through the visual script editor; the link unit is used for linking the variable view and the method view;
the output end of the editor unit is connected with the input end of the link unit.
According to the technical scheme, the view analysis module comprises a variable view analysis unit and a method view analysis unit;
the variable view analysis unit is used for entering a visual script editor, switching to a variable view, dragging nodes from a node list to create data type variables, editing names and default values of the data type variables, and storing node configuration of the data type variables to be recorded as variable nodes; the sum method view analysis unit opens a visual script editor, switches to a method view, constructs a custom method to a canvas, edits the name and parameters of the custom method, and sets a parameter name and a parameter data type; editing a method return value, wherein the default return value is null;
the output end of the variable view analysis unit is connected with the input end of the method view analysis unit. According to the technical scheme, the node configuration module comprises a node configuration unit and a logic main line unit;
the node configuration unit is used for entering the interior of the self-defining method and configuring the nodes of the self-defining method, wherein the nodes of the self-defining method comprise universal nodes, branch nodes and object nodes, and the nodes of the self-defining method are dragged into the node list and enter the canvas editing area; the logic main line unit constructs a logic main line through deleting and connecting operations provided by the canvas editing area, and each time a user-defined method node is configured on the logic main line, the logic main line unit is switched to a variable view;
the output end of the node configuration unit is connected with the input end of the logic main line unit.
According to the technical scheme, the digital processing module comprises a canvas editing unit and a digital processing unit;
the canvas editing unit is used for selecting a needed variable node under a variable view, dragging the variable node into a canvas editing area, linking the variable node to the parameter of the user-defined method, and linking one variable node to one or more parameters; the digital processing unit is used for constructing an end node when reaching the end of the logic main line, linking the output anchor point of the last node to the end node, and storing method configuration;
the output end of the canvas editing unit is connected with the input end of the digital processing unit.
Compared with the prior art, the invention has the following beneficial effects: the invention can write logic through the graphical interface, so that programming becomes more visual and easier to understand; the logical relationship is represented by using nodes and connecting lines, so that the logical structure is clearer and is easy to maintain; logic can be quickly created, so that time and energy of developers are saved, and common programming errors can be avoided; development efficiency can be greatly improved, particularly under the condition that frequent iteration and logic modification are needed, such as business logic design, AI system design and the like; logic can be modularized, so that the logic can be reused in a plurality of places, and the workload of writing codes is reduced; the method can help a developer to debug the logic more conveniently, observe the execution process of the logic in a visual mode, and debug and repair errors conveniently. The invention defines the interaction behavior between nodes in a visual connection mode, and can enable a user to create logic and functions of an application without writing codes, and optimize pages at the same time, so that the application is more intelligent, quicker and simpler.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention. In the drawings:
FIG. 1 is a schematic diagram of a logic editor for a visual script-based digital processing system and method of the present invention;
FIG. 2 is a general node schematic diagram of a digital processing system and method based on visual script of the present invention;
FIG. 3 is a schematic diagram of a branch node of a digital processing system and method based on visual script of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1-3, the present invention provides the following technical solutions: in the first embodiment, the system enters a visual script editor, switches to a variable view, drags nodes from a node list to create data type variables, edits names and default values of the data type variables, and stores node configuration of the data type variables to be recorded as variable nodes;
the name of the created data type variable is default plus data type, the variable of the same data type is created for many times, serial numbers are added as distinction after naming, and the naming of the variable nodes supports Chinese, english and digital underlining;
opening a visual script editor, switching to a method view, constructing a custom method to a canvas, editing names and parameters of the custom method, and setting parameter names and parameter data types; editing a method return value, wherein the default return value is null;
the name of the custom method is named as a default method by default; serial numbers are added as distinction after naming of a plurality of methods, and the naming of the methods supports Chinese, english and digital underlining; if the user-defined method needs to call the API, whether the user-defined method is an asynchronous function or not needs to be defined.
Entering into a self-defining method, configuring nodes of the self-defining method, wherein the nodes of the self-defining method comprise general nodes, branch nodes and object nodes, dragging the nodes of the self-defining method from a node list, and entering into a canvas editing area;
the universal node refers to a node applied to a logic main line, serves service logic and is a main component forming the service logic; the branch node refers to a node capable of generating a branch, and when a branch line of the branch node is not on a logic main line, the branch node can independently operate; the variable node refers to a node created and defined through a variable view, can output a variable, belongs to a certain general node or branch node, comprises five types of text, figure, boolean, object and array, and performs distinguishing marking in different color modes; the object node refers to a node capable of expanding or constructing an object.
As shown in fig. 2, the input anchor point is connected with the upstream node, which means that after the logic operation of the upstream node is completed, the operation will proceed to the node; the output anchor point is connected with the downstream node, and after the logic operation of the node is completed, the logic of the downstream node is operated; as shown in fig. 2: parameters of the node include three of page, CMS group and limit; these parameters all support connecting an input variable, or setting default values directly on the right;
as shown in fig. 3: the input and output anchor points are the connection points of the main line; if condition 1 is satisfied, a new branch line is generated; the branch line task runs preferentially, and the main line task runs after the branch line task is completed; condition 1 supports the input of a boolean value;
constructing a logic main line through deleting and connecting operations provided by the canvas editing area, configuring a custom method node on the logic main line every time, and adjusting the position of a variable node in a variable view;
each logic main line represents a service operation logic, and each time a user-defined method node is configured on the logic main line, one or more variable nodes are correspondingly dragged into the variable view to support universal nodes or branch nodes;
a variable node change model is inserted into a node page of the variable view, and the type of the variable node can be regulated based on a user-defined method node configured on a logic main line;
the variable node variation model includes:
acquiring operation data of a logic main line in a history behavior, writing each self-defined method node and a corresponding variable node in the logic main line into a training set, and constructing information gain of a variable node type V according to the training set:
the information gain is defined based on the information entropy calculated as follows:
,
wherein D represents the current data set, k tableThe k-th category target variable in the current data set is shown, wherein the target variable comprises the number of custom method nodes of the preamble, the last inserted variable node type and the number of variable node type V in the preamble;information entropy of the current data set; l represents the total number of types of the target variable;
,
wherein,the method comprises the steps of classifying information entropy based on a feature A, wherein the feature A is used for carrying out range value in the quantity or classifying the variable node type inserted last, each range value is marked as a feature, and each variable node type is marked as a feature; />Refers to the subset of the data set D partition based on feature a; />Means that the data volume of each sub-set accounts for the proportion of the data set; n refers to the total number of classifications for feature A, representing the presence of n +.>;/>Refer to each feature class subset->A subset of the target class; />The specific gravity of the classified subset in the characteristic classified subset is referred to as the specific gravity of each characteristic classified subset in the characteristic classified subset;
the information gain of the feature A is as follows:
,
calculating information gain for each feature, selecting the maximum information gain for each time, and dividing to generate a classification tree model of each variable node type V;
in this embodiment, the number of nodes of the custom method of the preamble, the last inserted variable node type, and the number of occurrences of the variable node type V in the preamble are used as target variables, for example, the number of occurrences of the variable node type V in the preamble is 100 times, 50 times, 10 times, etc., and the dividing range is 0-20;20-100, etc., the remaining features a are range intervals, that is, represent target features at different range values in the decision of the classification tree, are at different priority positions on branches of the classification tree, and are ordered according to the calculated information gain.
Acquiring the operation data of the preamble in real time, substituting the operation data into a classification tree model of each variable node type V, marking the classification result positively, judging the positive result in the classification tree result as a positive result, and judging the positive result as the variable node type under the selected model; dividing the variable views according to the number of the marks, and displaying the variable nodes corresponding to the marks.
And selecting a needed variable node under the variable view, dragging the variable node into a picture-cloth editing area, linking the variable node to the parameters of the self-defined method, enabling one variable node to link one or more parameters, constructing an ending node when the end of the logic main line is reached, linking the output anchor point of the last node to the ending node, and storing the configuration of the method.
In a second embodiment, a digital processing system based on a visual script is provided, the system including: the system comprises a visual script editing module, a view analysis module, a node configuration module and a digital processing module;
the visual script editing module is provided with a visual script editor which is linked with a variable view and a method view; the view analysis module is used for entering a visual script editor, switching to a variable view, dragging nodes from a node list to create data type variables, editing names and default values of the data type variables, and storing node configuration of the data type variables to be recorded as variable nodes; opening a visual script editor, switching to a method view, constructing a custom method to a canvas, editing names and parameters of the custom method, and setting parameter names and parameter data types; editing a method return value, wherein the default return value is null; the node configuration module is used for entering the interior of the self-defining method and configuring the nodes of the self-defining method, wherein the nodes of the self-defining method comprise universal nodes, branch nodes and object nodes, and the nodes of the self-defining method are dragged into the node list and enter the canvas editing area; constructing a logic main line through deleting and connecting operations provided by the canvas editing area, configuring a custom method node on the logic main line every time, and switching to a variable view; the digital processing module is used for selecting a needed variable node under a variable view, dragging the variable node into a painting editing area, linking the variable node to parameters of a self-defined method, enabling one variable node to link one or more parameters, constructing an ending node when the end of a logic main line is reached, linking an output anchor point of a final node to the ending node, and storing method configuration;
the output end of the visual script editing module is connected with the input end of the view analysis module; the output end of the view analysis module is connected with the input end of the node configuration module; the output end of the node configuration module is connected with the input end of the digital processing module.
The visual script editing module comprises an editor unit and a link unit;
the visual script editor is arranged in the editor unit, and the system performs script editing through the visual script editor; the link unit is used for linking the variable view and the method view;
the output end of the editor unit is connected with the input end of the link unit.
The view analysis module comprises a variable view analysis unit and a method view analysis unit;
the variable view analysis unit is used for entering a visual script editor, switching to a variable view, dragging nodes from a node list to create data type variables, editing names and default values of the data type variables, and storing node configuration of the data type variables to be recorded as variable nodes; the sum method view analysis unit opens a visual script editor, switches to a method view, constructs a custom method to a canvas, edits the name and parameters of the custom method, and sets a parameter name and a parameter data type; editing a method return value, wherein the default return value is null;
the output end of the variable view analysis unit is connected with the input end of the method view analysis unit.
The node configuration module comprises a node configuration unit and a logic main line unit;
the node configuration unit is used for entering the interior of the self-defining method and configuring the nodes of the self-defining method, wherein the nodes of the self-defining method comprise universal nodes, branch nodes and object nodes, and the nodes of the self-defining method are dragged into the node list and enter the canvas editing area; the logic main line unit constructs a logic main line through deleting and connecting operations provided by the canvas editing area, and each time a user-defined method node is configured on the logic main line, the logic main line unit is switched to a variable view;
the output end of the node configuration unit is connected with the input end of the logic main line unit.
The digital processing module comprises a canvas editing unit and a digital processing unit;
the canvas editing unit is used for selecting a needed variable node under a variable view, dragging the variable node into a canvas editing area, linking the variable node to the parameter of the user-defined method, and linking one variable node to one or more parameters; the digital processing unit is used for constructing an end node when reaching the end of the logic main line, linking the output anchor point of the last node to the end node, and storing method configuration;
the output end of the canvas editing unit is connected with the input end of the digital processing unit.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Finally, it should be noted that: the foregoing description is only a preferred embodiment of the present invention, and the present invention is not limited thereto, but it is to be understood that modifications and equivalents of some of the technical features described in the foregoing embodiments may be made by those skilled in the art, although the present invention has been described in detail with reference to the foregoing embodiments. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (8)
1. A digital processing method based on a visual script is characterized in that: the method comprises the following steps:
s1, the system enters a visual script editor, is switched to a variable view, drags nodes from a node list to create data type variables, edits names and default values of the data type variables, and stores node configuration of the data type variables to be recorded as variable nodes;
s2, opening a visual script editor, switching to a method view, constructing a custom method to a canvas, editing names and parameters of the custom method, and setting parameter names and parameter data types; editing a method return value, wherein the default return value is null;
s3, entering the interior of the self-defining method, and configuring nodes of the self-defining method, wherein the nodes of the self-defining method comprise universal nodes, branch nodes and object nodes, the nodes of the self-defining method are dragged into a node list, and the nodes enter a canvas editing area;
s4, constructing a logic main line through deleting and connecting operations provided by the canvas editing area, configuring a custom method node on the logic main line every time, and adjusting the position of a variable node in the variable view;
s5, selecting a needed variable node under a variable view, dragging the variable node into a painting editing area, linking the variable node to parameters of a self-defined method, enabling one variable node to link one or more parameters, constructing an ending node when the end of a logic main line is reached, linking an output anchor point of a final node to the ending node, and storing method configuration;
in step S4, further comprising:
each logic main line represents a service operation logic, and each time a user-defined method node is configured on the logic main line, one or more variable nodes are correspondingly dragged into the variable view to support universal nodes or branch nodes;
a variable node change model is inserted into a node page of the variable view, and the type of the variable node can be regulated based on a user-defined method node configured on a logic main line;
the variable node variation model includes:
acquiring operation data of a logic main line in a history behavior, writing each self-defined method node and a corresponding variable node in the logic main line into a training set, and constructing information gain of a variable node type V according to the training set:
the information gain is defined based on the information entropy calculated as follows:
,
wherein D represents a current data set, k represents a k-th category target variable in the current data set, and the target variable comprises the number of custom method nodes of the preamble, the last inserted variable node type and the number of variable node types V in the preamble;information entropy of the current data set; l represents the total number of types of the target variable; />Representing the probability of occurrence of the kth category of target variable;
,
wherein,the method comprises the steps of classifying information entropy based on a feature A, wherein the feature A is used for carrying out range value in the quantity or classifying the variable node type inserted last, each range value is marked as a feature, and each variable node type is marked as a feature; />Refers to the subset of the data set D partition based on feature a; />Means that the data volume of each sub-set accounts for the proportion of the data set; n refers to the total number of classifications for feature A, representing the presence of n +.>;/>Refer to each feature class subset->A subset of the target class; />The specific gravity of the classified subset in the characteristic classified subset is referred to as the specific gravity of each characteristic classified subset in the characteristic classified subset;
wherein the features areInformation gain of AThe method comprises the following steps:
,
calculating information gain for each feature, selecting the maximum information gain for each time, and dividing to generate a classification tree model of each variable node type V;
acquiring the operation data of the preamble in real time, substituting the operation data into a classification tree model of each variable node type V, marking the classification result positively, judging the positive result in the classification tree result as a positive result, and judging the positive result as the variable node type under the selected model; dividing the variable views according to the number of the marks, and displaying the variable nodes corresponding to the marks.
2. The method for digitizing a visual script according to claim 1, wherein: the name of the created data type variable is default plus data type, the variable of the same data type is created for many times, serial numbers are added as distinction after naming, and the naming of the variable nodes supports Chinese, english and digital underlining;
the name of the custom method is named as a default method by default; serial numbers are added as distinction after naming of a plurality of methods, and the naming of the methods supports Chinese, english and digital underlining; if the user-defined method needs to call the API, whether the user-defined method is an asynchronous function or not needs to be defined.
3. The method for digitizing a visual script according to claim 2, wherein: the universal node refers to a node applied to a logic main line, serves service logic and is a main component forming the service logic; the branch node refers to a node capable of generating a branch, and when a branch line of the branch node is not on a logic main line, the branch node can independently operate; the variable node refers to a node created and defined through a variable view, can output a variable, belongs to a certain general node or branch node, comprises five types of text, figure, boolean, object and array, and performs distinguishing marking in different color modes; the object node refers to a node capable of expanding or constructing an object.
4. A visual script based digital processing system employing a visual script based digital processing method of claim 1, wherein: the system comprises: the system comprises a visual script editing module, a view analysis module, a node configuration module and a digital processing module;
the visual script editing module is provided with a visual script editor which is linked with a variable view and a method view; the view analysis module is used for entering a visual script editor, switching to a variable view, dragging nodes from a node list to create data type variables, editing names and default values of the data type variables, and storing node configuration of the data type variables to be recorded as variable nodes; opening a visual script editor, switching to a method view, constructing a custom method to a canvas, editing names and parameters of the custom method, and setting parameter names and parameter data types; editing a method return value, wherein the default return value is null; the node configuration module is used for entering the interior of the self-defining method and configuring the nodes of the self-defining method, wherein the nodes of the self-defining method comprise universal nodes, branch nodes and object nodes, and the nodes of the self-defining method are dragged into the node list and enter the canvas editing area; constructing a logic main line through deleting and connecting operations provided by the canvas editing area, configuring a custom method node on the logic main line every time, and switching to a variable view; the digital processing module is used for selecting a needed variable node under a variable view, dragging the variable node into a painting editing area, linking the variable node to parameters of a self-defined method, enabling one variable node to link one or more parameters, constructing an ending node when the end of a logic main line is reached, linking an output anchor point of a final node to the ending node, and storing method configuration;
the output end of the visual script editing module is connected with the input end of the view analysis module; the output end of the view analysis module is connected with the input end of the node configuration module; the output end of the node configuration module is connected with the input end of the digital processing module.
5. The visualization script-based digital processing system of claim 4, wherein: the visual script editing module comprises an editor unit and a link unit;
the visual script editor is arranged in the editor unit, and the system performs script editing through the visual script editor; the link unit is used for linking the variable view and the method view;
the output end of the editor unit is connected with the input end of the link unit.
6. The visualization script-based digital processing system of claim 4, wherein: the view analysis module comprises a variable view analysis unit and a method view analysis unit;
the variable view analysis unit is used for entering a visual script editor, switching to a variable view, dragging nodes from a node list to create data type variables, editing names and default values of the data type variables, and storing node configuration of the data type variables to be recorded as variable nodes; the sum method view analysis unit opens a visual script editor, switches to a method view, constructs a custom method to a canvas, edits the name and parameters of the custom method, and sets a parameter name and a parameter data type; editing a method return value, wherein the default return value is null;
the output end of the variable view analysis unit is connected with the input end of the method view analysis unit.
7. The visualization script-based digital processing system of claim 4, wherein: the node configuration module comprises a node configuration unit and a logic main line unit;
the node configuration unit is used for entering the interior of the self-defining method and configuring the nodes of the self-defining method, wherein the nodes of the self-defining method comprise universal nodes, branch nodes and object nodes, and the nodes of the self-defining method are dragged into the node list and enter the canvas editing area; the logic main line unit constructs a logic main line through deleting and connecting operations provided by the canvas editing area, and each time a user-defined method node is configured on the logic main line, the logic main line unit is switched to a variable view;
the output end of the node configuration unit is connected with the input end of the logic main line unit.
8. The visualization script-based digital processing system of claim 4, wherein: the digital processing module comprises a canvas editing unit and a digital processing unit;
the canvas editing unit is used for selecting a needed variable node under a variable view, dragging the variable node into a canvas editing area, linking the variable node to the parameter of the user-defined method, and linking one variable node to one or more parameters; the digital processing unit is used for constructing an end node when reaching the end of the logic main line, linking the output anchor point of the last node to the end node, and storing method configuration;
the output end of the canvas editing unit is connected with the input end of the digital processing unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311323479.8A CN117075884B (en) | 2023-10-13 | 2023-10-13 | Digital processing system and method based on visual script |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311323479.8A CN117075884B (en) | 2023-10-13 | 2023-10-13 | Digital processing system and method based on visual script |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117075884A CN117075884A (en) | 2023-11-17 |
CN117075884B true CN117075884B (en) | 2023-12-15 |
Family
ID=88719775
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311323479.8A Active CN117075884B (en) | 2023-10-13 | 2023-10-13 | Digital processing system and method based on visual script |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117075884B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007147166A2 (en) * | 2006-06-16 | 2007-12-21 | Quantum Leap Research, Inc. | Consilence of data-mining |
CN107909062A (en) * | 2017-12-11 | 2018-04-13 | 海南大学 | A kind of Algorithm for Discretization of Remote Sensing Image Attribute and system based on comentropy |
CN111695588A (en) * | 2020-04-14 | 2020-09-22 | 北京迅达云成科技有限公司 | Distributed decision tree learning system based on cloud computing |
CN113240518A (en) * | 2021-07-12 | 2021-08-10 | 广州思迈特软件有限公司 | Bank-to-public customer loss prediction method based on machine learning |
WO2022151654A1 (en) * | 2021-01-14 | 2022-07-21 | 新智数字科技有限公司 | Random greedy algorithm-based horizontal federated gradient boosted tree optimization method |
CN115098091A (en) * | 2022-06-23 | 2022-09-23 | 海南电信规划设计院有限公司 | Method for realizing graphical programming |
CN116016303A (en) * | 2022-12-05 | 2023-04-25 | 浪潮通信信息系统有限公司 | Method for identifying service quality problem of core network based on artificial intelligence |
-
2023
- 2023-10-13 CN CN202311323479.8A patent/CN117075884B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007147166A2 (en) * | 2006-06-16 | 2007-12-21 | Quantum Leap Research, Inc. | Consilence of data-mining |
CN107909062A (en) * | 2017-12-11 | 2018-04-13 | 海南大学 | A kind of Algorithm for Discretization of Remote Sensing Image Attribute and system based on comentropy |
CN111695588A (en) * | 2020-04-14 | 2020-09-22 | 北京迅达云成科技有限公司 | Distributed decision tree learning system based on cloud computing |
WO2022151654A1 (en) * | 2021-01-14 | 2022-07-21 | 新智数字科技有限公司 | Random greedy algorithm-based horizontal federated gradient boosted tree optimization method |
CN113240518A (en) * | 2021-07-12 | 2021-08-10 | 广州思迈特软件有限公司 | Bank-to-public customer loss prediction method based on machine learning |
CN115098091A (en) * | 2022-06-23 | 2022-09-23 | 海南电信规划设计院有限公司 | Method for realizing graphical programming |
CN116016303A (en) * | 2022-12-05 | 2023-04-25 | 浪潮通信信息系统有限公司 | Method for identifying service quality problem of core network based on artificial intelligence |
Non-Patent Citations (3)
Title |
---|
医疗数据挖掘可视化系统的研究与实现;吴春姗;《中国优秀硕士学位论文全文数据库医药卫生科技辑》(第03期);E054-15 * |
可视化编程环境下人机界面信息交互控制仿真;康晶晶;杨怀卿;《计算机仿真》;第37卷(第05期);287-290 * |
韩忠明,段大高著.数据分析与R.北京邮电大学出版社,2014,209-211. * |
Also Published As
Publication number | Publication date |
---|---|
CN117075884A (en) | 2023-11-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Lehmann et al. | Test case design by means of the CTE XL | |
Rauf et al. | Automated GUI test coverage analysis using GA | |
CN108319456B (en) | Development method of programming-free deep learning application | |
CN102693317B (en) | Method and device for data mining process generating | |
CN106933889A (en) | For regular collocation method, display methods and the client screened | |
CN104679488A (en) | Flow path customized development platform and method | |
US20210232630A1 (en) | Methods and systems for creating networks | |
CN102707669B (en) | Method for constructing CAM (computer-aided manufacturing) system for punching for automobile girders | |
CN110837362A (en) | Method, system and editor for editing rule of guide type visual graphic modularization | |
CN110377279A (en) | Visualization guidance is without code construction workflow and automatic verification method and system | |
CN112433702A (en) | Lightweight process design system and method | |
CN113434220A (en) | Method, device and equipment for constructing workflow and computer storage medium | |
CN117075884B (en) | Digital processing system and method based on visual script | |
CN101710275B (en) | Gui tool is utilized to carry out the method and system of editing stream logic and screens | |
CN117112262A (en) | Visual configuration method and device for event processing flow | |
JP4835859B2 (en) | State transition diagram creation device and state transition diagram creation method | |
CN116360739A (en) | Visual business logic development system | |
CN114090611A (en) | Method and device for generating cable inventory by terminal wiring table and electronic equipment | |
CN113867714A (en) | Automatic code generation method adaptive to multiple languages | |
CN111027196A (en) | Simulation analysis task processing method and device for power equipment and storage medium | |
CN113238746A (en) | Hybrid programming control method, device, equipment and storage medium | |
CN110298062B (en) | Automatic layout method of Simulink | |
Merchant et al. | Tool for performance tuning and regression analyses of HPC systems and applications | |
CN112382343A (en) | Visual biological information analysis flow framework system | |
CN114529017A (en) | Steam turbine fault maintenance system, maintenance method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |