CN114201149B - Operation flow generation method, device and system and computer readable storage medium - Google Patents

Operation flow generation method, device and system and computer readable storage medium Download PDF

Info

Publication number
CN114201149B
CN114201149B CN202210148831.8A CN202210148831A CN114201149B CN 114201149 B CN114201149 B CN 114201149B CN 202210148831 A CN202210148831 A CN 202210148831A CN 114201149 B CN114201149 B CN 114201149B
Authority
CN
China
Prior art keywords
operation flow
functional
node
function node
description text
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
Application number
CN202210148831.8A
Other languages
Chinese (zh)
Other versions
CN114201149A (en
Inventor
黄耀
刘飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Aqiu Technology Co ltd
Original Assignee
Beijing Aqiu Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Aqiu Technology Co ltd filed Critical Beijing Aqiu Technology Co ltd
Priority to CN202210148831.8A priority Critical patent/CN114201149B/en
Publication of CN114201149A publication Critical patent/CN114201149A/en
Application granted granted Critical
Publication of CN114201149B publication Critical patent/CN114201149B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/22Procedural
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method, a device and a system for generating an operation flow and a computer readable storage medium, wherein the method comprises the following steps: acquiring an XML (extensive makeup language) description text of an upper computer through an embedded system, and determining a function node set and a function node connection relation according to the XML description text; generating an operation flow according to the function node set and the function node connection relation through the embedded system, and starting the operation flow when a starting instruction is received; according to the invention, the embedded system determines the function node set and the function node connection relation according to the XML description text of the upper computer, and generates the operation flow according to the function node set and the function node connection relation, so that the development efficiency of the operation flow of the embedded system is improved.

Description

Operation flow generation method, device and system and computer readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a system, and a computer-readable storage medium for generating an operation flow.
Background
With the enhancement of computing power of embedded chips and the development of embedded CPU + GPU heterogeneous chip technology, more and more detection systems based on PC + display cards begin to migrate to embedded systems. However, compared with the traditional PC system which mainly develops a Windows system, the operating system of the embedded box is almost all based on a Linux operating system, and the problems of high development and application thresholds, difficult operation and deployment and the like exist. In fragmented application scenes, almost all detection requirements of each scene need different operation flows, and the traditional method for developing software codes for the detection requirements of each scene to determine the operation flow of the embedded system is adopted, so that the development efficiency of the operation flow of the embedded system is low, and difficulty is brought to the application and popularization of the embedded system.
Disclosure of Invention
The invention mainly aims to provide a method, a device and a system for generating an operation flow and a computer readable storage medium, aiming at solving the problem of how to improve the development efficiency of the operation flow of an embedded system.
In order to achieve the above object, the present invention provides an operation flow generation method, including the following steps:
acquiring an XML (extensive makeup language) description text of an upper computer through an embedded system, and determining a function node set and a function node connection relation according to the XML description text;
and generating an operation flow according to the function node set and the function node connection relation through the embedded system, and starting the operation flow when a starting instruction is received.
Preferably, the step of determining the function node set and the function node connection relation according to the XML description text includes:
and comparing the XML description text with a preset function node description text library through the embedded system to determine a function node set, and comparing the XML description text with a preset function node connection relation description text library to determine a function node connection relation.
Preferably, the step of generating the operation flow according to the function node set and the connection relationship of the function nodes by the embedded system includes:
initializing each functional node in the functional node set through the embedded system, and analyzing whether the next connection of each functional node is a plurality of functional nodes according to the connection relation of the functional nodes to obtain an analysis result;
and determining the connection relationship between the output parameter interface and the input parameter interface of each functional node according to the analysis result, and generating an operation flow according to the functional node set, the functional node connection relationship and the connection relationship between the output parameter interface and the input parameter interface of each functional node.
Preferably, the step of determining the connection relationship between the output parameter interface and the input parameter interface of each functional node according to the analysis result includes:
if the analysis result is that the next connection of the function node is a single function node, the pointer of the function node points to the next function node connected with the function node, and the output parameter interface of the function node is connected with the input parameter interface of the next function node connected with the function node;
and if the analysis result is that the next connection of the functional nodes is a plurality of functional nodes, generating corresponding pointer linked lists according to the addresses of the plurality of functional nodes connected next to the functional nodes, and connecting the output parameter interface of the functional node with the input parameter interface corresponding to each functional node connected next to the functional node according to the pointer linked lists.
Preferably, before the step of acquiring an XML description text of the upper computer by the embedded system and determining a function node set and a function node connection relationship according to the XML description text, the operation flow generation method includes:
responding to an operation instruction of a user, arranging a graphical function module in a human-computer interaction interface through an upper computer, responding to a configuration instruction of the user, and connecting the function modules in the human-computer interaction interface through a data connecting line and a control connecting line to obtain a flow chart;
and generating an XML description text according to the flow chart by the upper computer.
Preferably, the step of connecting the functional modules in the human-computer interaction interface through the data connection line and the control connection line in response to the configuration instruction of the user to obtain the flowchart includes:
determining an output port and an input port of a functional module in the human-computer interaction interface, determining the connection relation of the functional module according to a configuration instruction of a user, and connecting the output port and the input port of the functional module through a data connecting line and a control connecting line according to the connection relation of the functional module to obtain a flow chart.
Preferably, when a start instruction is received and before the step of starting the operation flow, the operation flow generation method includes:
verifying the operation flow through the embedded system to obtain a verification result;
if the checking result is that the operation flow is abnormal, the operation flow is sent to the upper computer, and an abnormal alarm is sent out;
if the check result shows that the running process is not abnormal, when a starting instruction is received, executing the following steps: and starting the operation flow.
In addition, to achieve the above object, the present invention further provides an operation flow generation apparatus, including:
the determining module is used for acquiring an XML (extensive makeup language) description text of the upper computer through the embedded system and determining a function node set and a function node connection relation according to the XML description text;
and the generating module is used for generating an operation flow according to the function node set and the function node connection relation through the embedded system and starting the operation flow when a starting instruction is received.
Further, the determining module further comprises a comparing module, and the comparing module is configured to:
and comparing the XML description text with a preset function node description text library through the embedded system to determine a function node set, and comparing the XML description text with a preset function node connection relation description text library to determine a function node connection relation.
Further, the generation module is further configured to:
initializing each functional node in the functional node set through the embedded system, and analyzing whether the next connection of each functional node is a plurality of functional nodes according to the connection relation of the functional nodes to obtain an analysis result;
and determining the connection relationship between the output parameter interface and the input parameter interface of each functional node according to the analysis result, and generating an operation flow according to the functional node set, the functional node connection relationship and the connection relationship between the output parameter interface and the input parameter interface of each functional node.
Further, the generation module is further configured to:
if the analysis result is that the next connection of the function node is a single function node, the pointer of the function node points to the next function node connected with the function node, and the output parameter interface of the function node is connected with the input parameter interface of the next function node connected with the function node;
and if the analysis result is that the next connection of the functional nodes is a plurality of functional nodes, generating corresponding pointer linked lists according to the addresses of the plurality of functional nodes connected next to the functional nodes, and connecting the output parameter interface of the functional node with the input parameter interface corresponding to each functional node connected next to the functional node according to the pointer linked lists.
Further, the determining module further includes an obtaining module, and the obtaining module is configured to:
in response to an operation instruction of a user, arranging a graphical function module in a human-computer interaction interface through an upper computer, and in response to a configuration instruction of the user, connecting the function modules in the human-computer interaction interface through a data connecting line and a control connecting line to obtain a flow chart;
and generating an XML description text according to the flow chart by the upper computer.
Further, the obtaining module is further configured to:
determining an output port and an input port of a functional module in the human-computer interaction interface, determining the connection relation of the functional module according to a configuration instruction of a user, and connecting the output port and the input port of the functional module through a data connecting line and a control connecting line according to the connection relation of the functional module to obtain a flow chart.
Further, the generating module further comprises a checking module, and the checking module is configured to:
verifying the operation flow through the embedded system to obtain a verification result;
if the checking result is that the operation flow is abnormal, the operation flow is sent to the upper computer, and an abnormal alarm is sent out;
if the check result shows that the running process is not abnormal, when a starting instruction is received, executing the following steps: and starting the operation flow.
In addition, to achieve the above object, the present invention further provides an operation flow generation system, including: the execution flow generation program can be executed on the processor, and the execution flow generation program realizes the steps of the execution flow generation method when being executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, which is a computer readable storage medium, the readable storage medium stores an operation flow generation program, and the operation flow generation program, when executed by a processor, implements the steps of the operation flow generation method as described above.
The method for generating the operation flow comprises the steps of obtaining an XML (extensive makeup language) description text of an upper computer through an embedded system, and determining a function node set and a function node connection relation according to the XML description text; generating an operation flow according to the function node set and the function node connection relation through the embedded system, and starting the operation flow when a starting instruction is received; according to the invention, the embedded system determines the function node set and the function node connection relation according to the XML description text of the upper computer, and generates the operation flow according to the function node set and the function node connection relation, so that the development efficiency of the operation flow of the embedded system is improved.
Drawings
FIG. 1 is a schematic diagram of an apparatus architecture of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a first embodiment of the operation flow generation method of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The device of the embodiment of the invention can be a PC or a server device.
As shown in fig. 1, the apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the apparatus shown in fig. 1 is not intended to be limiting of the apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an execution flow generation program.
The operating system is a program for managing and controlling the portable storage device and software resources, and supports the operation of the network communication module, the user interface module, the operation flow generation program and other programs or software; the network communication module is used for managing and controlling the network interface 1002; the user interface module is used to manage and control the user interface 1003.
In the storage device shown in fig. 1, the storage device calls the operation flow generation program stored in the memory 1005 by the processor 1001, and performs the operations in the embodiments of the operation flow generation method described below.
Based on the hardware structure, the embodiment of the operation flow generation method is provided.
Referring to fig. 2, fig. 2 is a schematic flow chart diagram of a first embodiment of an operation flow generation method of the present invention, where the method includes:
step S10, acquiring an XML description text of the upper computer through the embedded system, and determining a function node set and a function node connection relation according to the XML description text;
and step S20, generating an operation flow according to the function node set and the function node connection relation through the embedded system, and starting the operation flow when a starting instruction is received.
The operation flow generation method of the embodiment is applied to an operation flow generation system, and the operation flow generation system comprises: the system comprises an upper computer and an embedded system, wherein the upper computer is generally a Windows system PC, the embedded system is installed in embedded hardware equipment, and the upper computer and the embedded hardware equipment provided with the embedded system can interact in an operation flow generation system; for convenience in description, the operation flow generation system is taken as an example for description, after the operation flow generation system determines that the upper computer generates an XML description text, the XML description text of the upper computer is obtained through the embedded system, the XML description text is compared with a preset function node description text library through the embedded system, a function node set is determined, the XML description text is compared with a preset function node connection relation description text library, and a function node connection relation is determined; the operation flow generation system initializes each function node in the function node set through the embedded system, and analyzes whether the next connection of each function node is a plurality of function nodes according to the connection relation of the function nodes to obtain an analysis result; and the operation flow generation system determines the connection relationship between the output parameter interface and the input parameter interface of each functional node according to the analysis result, generates an operation flow according to the functional node set, the connection relationship between the functional nodes and the connection relationship between the output parameter interface and the input parameter interface of each functional node, and starts the operation flow when receiving a starting instruction. It should be noted that the XML description text is an extensible markup language description text; the function nodes comprise program codes for realizing corresponding functions, are packaged in advance, and generally receive input data to obtain output data; the preset function node description text library is set in the operation flow generation system in advance, wherein the preset function node description text library comprises XML description texts corresponding to each function node, and the preset function node connection relation description text library comprises XML description texts corresponding to different function node connection relation descriptions; the operation flow can be understood as program codes, and is determined by the program codes of different function nodes and the connection relationship of different functions.
In the operation flow generation method of the embodiment, an XML description text of an upper computer is obtained through an embedded system, and a function node set and a function node connection relation are determined according to the XML description text; generating an operation flow according to the function node set and the function node connection relation through the embedded system, and starting the operation flow when a starting instruction is received; according to the invention, the embedded system determines the function node set and the function node connection relation according to the XML description text of the upper computer, and generates the operation flow according to the function node set and the function node connection relation, so that the development efficiency of the operation flow of the embedded system is improved.
The respective steps will be described in detail below:
step S10, acquiring an XML description text of the upper computer through the embedded system, and determining a function node set and a function node connection relation according to the XML description text;
in this embodiment, the operation flow generation system obtains an XML description text of the upper computer through the embedded system, and determines the function node set and the function node connection relationship according to the XML description text, it can be understood that, in the XML description text, each function node in the function node set and the function node connection relationship are described correspondingly, and the operation flow generation system may traverse the XML description text through the embedded system and be described correspondingly in the XML description text, so as to determine the function node set and the function node connection relationship.
Specifically, the step of determining the function node set and the function node connection relationship according to the XML description text includes:
step a, comparing the XML description text with a preset function node description text library through the embedded system to determine a function node set, and comparing the XML description text with a preset function node connection relation description text library to determine a function node connection relation.
In the step, the operation flow generation system traverses the XML description text through the embedded system, extracts the description of the function node in the XML description text, compares the description of the function node in the XML description text with the description text of each function node in a preset function node description text library, further determines each function node recorded in the XML description text, and further determines a function node set; extracting the description of the connection relation of the functional nodes in the XML description text, comparing the description of the connection relation of the functional nodes in the XML description text with the connection relation description text of each functional node in the comparison of a preset functional node connection relation description text library, and further determining the connection relation of the functional nodes recorded in the XML description text; it can be understood that the description text corresponding to each function node is recorded in the preset function node description text library, the description text strictly complies with the requirements of format, syntax, and the like of XML, and is associated with the type, name, and the like of the function node, and the embedded system compares the description of the function node in the XML description text with the description text of each function node in the preset function node description text library, and determines the type, name, and the like of the function node described in the XML text, and for the similarity between the preset function node connection relationship description text library and the preset function node description text library, it is not repeated here.
And step S20, generating an operation flow according to the function node set and the function node connection relation through the embedded system, and starting the operation flow when receiving a starting instruction.
In this embodiment, the operation flow generation system generates an operation flow according to the function node set and the connection relationship between the function nodes through the embedded system, and starts the operation flow when receiving the start instruction. It can be understood that, when determining the type and name of each functional node in the functional node set and the connection relationship between each functional node in the functional node set, the embedded system connects which functional node in the functional node set is used as a root node, which functional node is used as a second-level node, which functional node is used as a third-level node, etc. according to the connection relationship of the functional nodes, connects the output of the root node to the input of the second-level node through a pointer, connects the output of the second-level node to the input of the third-level node through a pointer, generates an operation flow after completing the connection, starts the operation flow when receiving a start instruction, when the operation flow is executed, configures a Run () function in each functional node as an operation interface of the functional node, executes the Run () function from the root node, and then obtains a next node through a next pointer, and sequentially executing Run () functions of the flow to realize the operation of the whole flow.
Specifically, the step of generating the operation flow by the embedded system according to the function node set and the connection relationship of the function nodes includes:
b, initializing each functional node in the functional node set through the embedded system, and analyzing whether the next connection of each functional node is a plurality of functional nodes according to the connection relation of the functional nodes to obtain an analysis result;
in this step, the operation flow generation system initializes each function node in the function node set through the embedded system, that is, calls a program code corresponding to each function node in the embedded system, and analyzes whether the next connection of each function node is a plurality of function nodes according to the connection relationship of the function nodes, thereby obtaining an analysis result.
And c, determining the connection relation of the output parameter interface and the input parameter interface of each functional node according to the analysis result, and generating an operation flow according to the functional node set, the functional node connection relation and the connection relation of the output parameter interface and the input parameter interface of each functional node.
In the step, the operation flow generation system determines the connection relationship between the output parameter interface and the input parameter interface of each function node according to the analysis result through the embedded system, and generates the operation flow according to the function node set, the connection relationship between the function nodes and the connection relationship between the output parameter interface and the input parameter interface of each function node; such as: in an XML description text, a first function node, a second function node and a third function node are included, each function node includes an output parameter interface and an input parameter interface, an operation flow generation system determines the next connection of each function node as a single function node according to an analysis result through an embedded system, namely, the output parameter interface of the first function node is connected with the input parameter interface of the second function node, the output parameter interface of the second function node is connected with the input parameter interface of the third function node, the embedded system generates an operation flow according to the function node set, the function node connection relation and the connection relation of the output parameter interface and the input parameter interface of each function node, namely, program codes corresponding to the first function node, the second function node and the third function node are read in software for generating the operation flow, and enabling the output parameter of the program code of the first function node to point to the input parameter of the program code of the second function node through the pointer, and enabling the output parameter of the program code of the second function node to point to the input parameter of the program code of the third function node through the pointer, thereby generating an operation flow.
Further, the step of determining the connection relationship between the output parameter interface and the input parameter interface of each functional node according to the analysis result includes:
step c1, if the analysis result is that the next connection of the function node is a single function node, the pointer of the function node points to the next connected function node of the function node, and the output parameter interface of the function node is connected with the input parameter interface of the next connected function node of the function node;
in this step, if the next connection of the function node is a single function node as a result of the analysis obtained by the operation flow generation system through the embedded system, the pointer of the function node points to the next function node connected to the function node, and the output parameter interface of the function node is connected to the input parameter interface of the next function node connected to the function node; such as: if the next connection of the function node is a single function node according to the analysis result obtained by the embedded system, the operation flow generation system finds the next connection function node of the function node from the XML description text, points the next pointer of the function node to the next connection function node, and simultaneously takes the output parameter of the root node as the input parameter of the next connection function node, namely connects the output parameter interface of the function node with the input parameter interface of the function node connected next to the function node.
And c2, if the analysis result is that the next connection of the functional node is a plurality of functional nodes, generating corresponding pointer linked lists according to the addresses of the plurality of functional nodes of the next connection of the functional node, and connecting the output parameter interface of the functional node with the input parameter interface corresponding to each functional node of the next connection of the functional node according to the pointer linked lists.
In the step, if the analysis result obtained by the operation flow generation system through the embedded system is that the next connection of the function nodes is a plurality of function nodes, generating corresponding pointer linked lists according to the addresses of the function nodes for the next connection of the function nodes, and connecting the output parameter interface of the function node with the input parameter interface corresponding to each function node for the next connection of the function node according to the pointer linked lists; such as: and forming a pointer linked list by using the next pointer of the function node, writing the object addresses of a plurality of function nodes connected next to the function node into the next pointer linked list, and simultaneously connecting the output parameter of the function node with the input parameter interface corresponding to each function node connected next to the function node by using the output parameter of the function node as the input parameter of each function node connected next according to the next pointer linked list.
The operation flow generation system of the embodiment acquires an XML description text of an upper computer through an embedded system, compares the XML description text with a preset function node description text library through the embedded system, determines a function node set, compares the XML description text with a preset function node connection relation description text library, and determines a function node connection relation; the operation flow generation system initializes each functional node in the functional node set through the embedded system, and analyzes whether the next connection of each functional node is a plurality of functional nodes according to the connection relation of the functional nodes to obtain an analysis result; the operation flow generation system determines the connection relationship between the output parameter interface and the input parameter interface of each function node according to the analysis result, generates an operation flow according to the function node set, the connection relationship between the function nodes and the connection relationship between the output parameter interface and the input parameter interface of each function node, and starts the operation flow when receiving a start instruction, thereby improving the development efficiency of the operation flow of the embedded system.
Further, based on the first embodiment of the operation flow generation method of the present invention, a second embodiment of the operation flow generation method of the present invention is provided.
The second embodiment of the operation flow generation method differs from the first embodiment of the operation flow generation method in that, before step S10, the operation flow generation method further includes:
d, responding to an operation instruction of a user, arranging the graphical function module in a human-computer interaction interface through an upper computer, responding to a configuration instruction of the user, and connecting the function module in the human-computer interaction interface through a data connecting line and a control connecting line to obtain a flow chart;
and e, generating an XML description text according to the flow chart by the upper computer.
In this embodiment, the operation flow generation system responds to an operation instruction of a user, places a graphical function module in a human-computer interaction interface through an upper computer, determines an output port and an input port of the function module in the human-computer interaction interface, determines a connection relationship of the function module according to a configuration instruction of the user, connects the output port and the input port of the function module through a data connection line and a control connection line according to the connection relationship of the function module to obtain a flow chart, and generates an XML description text according to the flow chart through the upper computer.
The following describes each step in detail:
step d, responding to an operation instruction of a user, arranging a graphical function module in a human-computer interaction interface through an upper computer, responding to a configuration instruction of the user, and connecting the function modules in the human-computer interaction interface through a data connecting line and a control connecting line to obtain a flow chart;
in the step, the operation flow generation system responds to an operation instruction of a user, places a graphical function module in a human-computer interaction interface through an upper computer, responds to a configuration instruction of the user, and connects the function modules in the human-computer interaction interface through a data connecting line and a control connecting line to obtain a flow chart; such as: the upper computer comprises a human-computer interaction interface, when a user needs to generate a corresponding operation flow, the graphical function module is used for setting the flow on the human-computer interaction interface in a dragging mode through the human-computer interaction interface of the upper computer, the user inputs a corresponding configuration instruction on the human-computer interaction interface, and the upper computer connects the input and output ports identified in the graphical function module through a data connecting line and a control connecting line according to the configuration instruction so as to generate a flow chart. Furthermore, the user can manually connect the input port and the output port of the human-computer interaction interface functional module through a data connecting line and a control connecting line.
Further, in response to a configuration instruction of a user, connecting the functional modules in the human-computer interaction interface through a data connection line and a control connection line to obtain a flow chart, wherein the step of obtaining the flow chart comprises the following steps:
d1, determining the output port and the input port of the function module in the human-computer interaction interface, determining the connection relation of the function module according to the configuration instruction of the user, and connecting the output port and the input port of the function module through the data connecting line and the control connecting line according to the connection relation of the function module to obtain the flow chart.
In the step, the operation flow generation system determines an output port and an input port of a functional module in the human-computer interaction interface through the upper computer, determines the connection relation of the determined functional module in the human-computer interaction interface according to a configuration instruction of a user, and connects the output port and the input port of the functional module through a data connecting line and a control connecting line according to the connection relation of the functional module to obtain a flow chart; it can be understood that, according to actual requirements, a user sets the connection relationship of the functional modules in the human-computer interaction interface in the configuration instruction, and the operation flow generation system automatically connects the output ports and the input ports of the functional modules through the data connecting line and the control connecting line by the upper computer.
And e, generating an XML description text according to the flow chart by the upper computer.
In the step, the operation flow generation system generates an XML description text by combining the description format, grammar and the like of the XML according to the flow chart through the upper computer. It should be noted that the XML description text may include information of one flowchart or a plurality of flowcharts.
The operation flow generation system of the embodiment responds to an operation instruction of a user, places a graphical function module in a human-computer interaction interface through an upper computer, responds to a configuration instruction of the user, and connects the function modules in the human-computer interaction interface through a data connecting line and a control connecting line to obtain a flow chart; such as: the upper computer comprises a human-computer interaction interface, when a user needs to generate a corresponding operation flow, the graphical function module is used for setting the flow on the human-computer interaction interface in a dragging mode through the human-computer interaction interface of the upper computer, the user inputs a corresponding configuration instruction on the human-computer interaction interface, the upper computer connects the input and output ports identified in the graphical function module according to the configuration instruction through a data connecting line and a control connecting line to generate a flow chart, a foundation is laid for the subsequent generation of the operation flow of the embedded system, and the development efficiency of the operation flow of the embedded system is improved.
Further, a third embodiment of the operation flow generation method of the present invention is proposed based on the first embodiment and the second embodiment of the operation flow generation method of the present invention.
The third embodiment of the operation flow generation method is different from the first and second embodiments of the operation flow generation method in that, before the step of starting the operation flow when a start instruction is received, the operation flow generation method includes:
f, checking the operation flow through the embedded system to obtain a checking result;
step g, if the checking result is that the operation flow is abnormal, sending the operation flow to the upper computer and sending an abnormal alarm;
step h, if the check result shows that the running process is not abnormal, when a starting instruction is received, executing the following steps: and starting the operation flow.
In the embodiment, the operation flow generation system checks the operation flow through the embedded system to obtain a check result; if the checking result is that the operation flow is abnormal, the operation flow is sent to an upper computer, and an abnormal alarm is sent out; if the check result shows that the running process is not abnormal, when a starting instruction is received, executing the following steps: and starting the operation flow. Such as: the operation flow generation system checks the grammar of the operation flow through the embedded system, and performs simulation operation on the operation flow, thereby verifying whether the operation flow is abnormal.
In this embodiment, the operation flow generation system verifies the operation flow through the embedded system to ensure that no exception exists in the operation flow, which is helpful for improving the development efficiency of the operation flow of the embedded system.
In specific implementation, the software function module is referred to by the graphical function module, and a user puts the function module on a human-computer interaction interface for setting a process in the operation process generation system by dragging the function module through upper computer software. The graphical function module comprises an input/output port for identifying the output/output parameters of the module, and the input/output ports of different function modules can be connected through a data connecting line and a control connecting line;
a user generates a flow chart by connecting different functional modules on a human-computer interaction interface;
the operation flow generation system converts the flow chart into an XML description text through upper computer software;
the running process generation system acquires the XML description text through the embedded system, traverses the XML description text, finds the root function node description in the XML description text, and initializes an object of the root function node in the running process.
If the next connection of the root function node does not generate a branch, namely the next connection of the root function node is a single function node, finding the next connection function node of the root function node from the XML description text, initializing the next connection function node, pointing a next pointer of the root function node to the next connection function node, and simultaneously taking an output parameter of the root function node as an input parameter of the next connection function node;
if the next connection of the root function node generates a branch, namely the next connection of the root function node is a plurality of function nodes, sequentially initializing the function nodes according to an XML description text, forming a pointer linked list by a next object of the root function node, writing the addresses of the function nodes connected next to the root function node into the next pointer linked list, and simultaneously, sequentially using the output parameters of the root function node as the input parameters of each next connected function node according to the next pointer linked list;
repeating the steps until all the functional nodes described in the XML description text are sequentially connected to the position below the next pointer of the previous-stage functional node, and simultaneously realizing the connection of the input parameter interface of the output parameter interface;
within each functional node there is a Run () function as the operational interface of the module. When a starting instruction is received, a Run () function is executed from a root function node, then a next node is obtained through a next pointer, and the Run () function is sequentially executed, so that the execution of the whole operation flow is realized.
The invention also provides an operation flow generation device. The operation flow generation device of the invention comprises:
the determining module is used for acquiring an XML (extensive makeup language) description text of the upper computer through the embedded system and determining a function node set and a function node connection relation according to the XML description text;
and the generating module is used for generating an operation flow according to the function node set and the function node connection relation through the embedded system and starting the operation flow when a starting instruction is received.
Further, the determining module further comprises a comparing module, and the comparing module is configured to:
and comparing the XML description text with a preset function node description text library through the embedded system to determine a function node set, and comparing the XML description text with a preset function node connection relation description text library to determine a function node connection relation.
Further, the generation module is further configured to:
initializing each functional node in the functional node set through the embedded system, and analyzing whether the next connection of each functional node is a plurality of functional nodes according to the connection relation of the functional nodes to obtain an analysis result;
and determining the connection relationship between the output parameter interface and the input parameter interface of each functional node according to the analysis result, and generating an operation flow according to the functional node set, the functional node connection relationship and the connection relationship between the output parameter interface and the input parameter interface of each functional node.
Further, the generation module is further configured to:
if the analysis result is that the next connection of the function node is a single function node, the pointer of the function node points to the next function node connected with the function node, and the output parameter interface of the function node is connected with the input parameter interface of the next function node connected with the function node;
and if the analysis result is that the next connection of the functional nodes is a plurality of functional nodes, generating corresponding pointer linked lists according to the addresses of the plurality of functional nodes connected next to the functional nodes, and connecting the output parameter interface of the functional node with the input parameter interface corresponding to each functional node connected next to the functional node according to the pointer linked lists.
Further, the determining module further includes an obtaining module, and the obtaining module is configured to:
responding to an operation instruction of a user, arranging a graphical function module in a human-computer interaction interface through an upper computer, responding to a configuration instruction of the user, and connecting the function modules in the human-computer interaction interface through a data connecting line and a control connecting line to obtain a flow chart;
and generating an XML description text according to the flow chart by the upper computer.
Further, the obtaining module is further configured to:
determining an output port and an input port of a functional module in the human-computer interaction interface, determining the connection relation of the functional module according to a configuration instruction of a user, and connecting the output port and the input port of the functional module through a data connecting line and a control connecting line according to the connection relation of the functional module to obtain a flow chart.
Further, the generating module further comprises a checking module, and the checking module is configured to:
verifying the operation flow through the embedded system to obtain a verification result;
if the checking result is that the operation flow is abnormal, the operation flow is sent to the upper computer, and an abnormal alarm is sent out;
if the check result shows that the running process is not abnormal, when a starting instruction is received, executing the following steps: and starting the operation flow.
The invention also provides an operation flow generation system.
The operation flow generation system comprises: the execution flow generation program is used for realizing the steps of the execution flow generation method when being executed by the processor.
The method implemented when the operation flow generation program executed on the processor is executed may refer to each embodiment of the operation flow generation method of the present invention, and details are not described here.
The invention also provides a computer readable storage medium.
The computer-readable storage medium has stored thereon an operational flow generation program which, when executed by a processor, implements the steps of the operational flow generation method as described above.
The method implemented when the operation flow generation program executed on the processor is executed may refer to each embodiment of the operation flow generation method of the present invention, and details are not described here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. An operation flow generation method is characterized by comprising the following steps:
acquiring an XML (extensive makeup language) description text of an upper computer through an embedded system, and determining a function node set and a function node connection relation according to the XML description text;
generating an operation flow according to the function node set and the function node connection relation through the embedded system, and starting the operation flow when a starting instruction is received, wherein the operation flow is a program code;
wherein, the step of determining the function node set and the function node connection relation according to the XML description text comprises the following steps:
comparing the XML description text with a preset function node description text library through the embedded system to determine a function node set, and comparing the XML description text with a preset function node connection relation description text library to determine a function node connection relation;
the step of generating the operation flow according to the function node set and the function node connection relationship by the embedded system comprises:
initializing each functional node in the functional node set through the embedded system, and analyzing whether the next connection of each functional node is a plurality of functional nodes according to the connection relation of the functional nodes to obtain an analysis result;
and determining the connection relationship between the output parameter interface and the input parameter interface of each functional node according to the analysis result, and generating an operation flow according to the functional node set, the functional node connection relationship and the connection relationship between the output parameter interface and the input parameter interface of each functional node.
2. The operational flow generation method as claimed in claim 1, wherein the step of determining the connection relationship between the output parameter interface and the input parameter interface of each functional node based on the analysis result includes:
if the analysis result is that the next connection of the functional node is a single functional node, the pointer of the functional node points to the functional node connected next to the functional node, and the output parameter interface of the functional node is connected with the input parameter interface of the functional node connected next to the functional node;
and if the analysis result is that the next connection of the functional nodes is a plurality of functional nodes, generating corresponding pointer linked lists according to the addresses of the plurality of functional nodes connected next to the functional nodes, and connecting the output parameter interface of the functional node with the input parameter interface corresponding to each functional node connected next to the functional node according to the pointer linked lists.
3. The operation flow generation method according to claim 1, wherein before the step of acquiring an XML description text of the upper computer by the embedded system and determining the function node set and the connection relationship of the function nodes according to the XML description text, the operation flow generation method includes:
responding to an operation instruction of a user, arranging a graphical function module in a human-computer interaction interface through an upper computer, responding to a configuration instruction of the user, and connecting the function modules in the human-computer interaction interface through a data connecting line and a control connecting line to obtain a flow chart;
and generating an XML description text according to the flow chart by the upper computer.
4. The operational flow generating method according to claim 3, wherein the step of connecting the functional modules in the human-computer interaction interface through the data link and the control link to obtain the flow chart in response to the configuration command of the user comprises:
determining an output port and an input port of a functional module in the human-computer interaction interface, determining the connection relation of the functional module according to a configuration instruction of a user, and connecting the output port and the input port of the functional module through a data connecting line and a control connecting line according to the connection relation of the functional module to obtain a flow chart.
5. The operation flow generation method according to claim 1, wherein before the step of starting the operation flow when the start instruction is received, the operation flow generation method includes:
verifying the operation flow through the embedded system to obtain a verification result;
if the checking result is that the operation flow is abnormal, the operation flow is sent to the upper computer, and an abnormal alarm is sent out;
if the check result shows that the running process is not abnormal, when a starting instruction is received, executing the following steps: and starting the operation flow.
6. An operation flow generation apparatus, characterized in that the operation flow generation apparatus includes:
the determining module is used for acquiring an XML (extensive makeup language) description text of the upper computer through the embedded system and determining a function node set and a function node connection relation according to the XML description text;
the generating module is used for generating an operation flow according to the function node set and the function node connection relation through the embedded system, and starting the operation flow when a starting instruction is received, wherein the operation flow is a program code;
the determining module is further configured to compare the XML description text with a preset function node description text library through the embedded system to determine a function node set, and compare the XML description text with a preset function node connection relationship description text library to determine a function node connection relationship;
the generating module is further configured to initialize each functional node in the functional node set through the embedded system, and analyze whether a next connection of each functional node is a plurality of functional nodes according to the connection relationship of the functional nodes to obtain an analysis result;
and determining the connection relationship between the output parameter interface and the input parameter interface of each functional node according to the analysis result, and generating an operation flow according to the functional node set, the functional node connection relationship and the connection relationship between the output parameter interface and the input parameter interface of each functional node.
7. An operational flow generation system, comprising: a memory, a processor and a workflow generation program stored on the memory and executable on the processor, the workflow generation program, when executed by the processor, implementing the steps of the workflow generation method according to any one of claims 1 to 5.
8. A computer-readable storage medium, wherein an operation flow generation program is stored on the computer-readable storage medium, and when executed by a processor, the operation flow generation program implements the steps of the operation flow generation method according to any one of claims 1 to 5.
CN202210148831.8A 2022-02-18 2022-02-18 Operation flow generation method, device and system and computer readable storage medium Active CN114201149B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210148831.8A CN114201149B (en) 2022-02-18 2022-02-18 Operation flow generation method, device and system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210148831.8A CN114201149B (en) 2022-02-18 2022-02-18 Operation flow generation method, device and system and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114201149A CN114201149A (en) 2022-03-18
CN114201149B true CN114201149B (en) 2022-05-31

Family

ID=80645694

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210148831.8A Active CN114201149B (en) 2022-02-18 2022-02-18 Operation flow generation method, device and system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114201149B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189758A (en) * 2018-07-26 2019-01-11 新华三技术有限公司 O&M flow designing method, device and equipment, operation method, device and host

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081545A (en) * 2011-01-07 2011-06-01 中国电子科技集团公司第十研究所 Method of realizing software communications architecture (SCA) on embedded platform
CN104866298A (en) * 2014-02-26 2015-08-26 阿里巴巴集团控股有限公司 Flow chart based process business implementing method and device
CN106445640B (en) * 2016-10-20 2019-06-18 南京南瑞继保电气有限公司 A kind of embedded type virtual device operation method and system
CN107644286B (en) * 2017-08-15 2021-04-30 上海艾融软件股份有限公司 Workflow processing method and device
CN107943504B (en) * 2017-12-07 2021-03-26 中国航空工业集团公司西安航空计算技术研究所 Dynamic upgrading method for software module in embedded system
CN109976724A (en) * 2019-03-16 2019-07-05 平安城市建设科技(深圳)有限公司 Development approach, device, equipment and the computer readable storage medium of leasing system
CN113835680A (en) * 2020-06-24 2021-12-24 腾讯科技(成都)有限公司 Application program generation method and device, electronic equipment and computer storage medium
CN112433953A (en) * 2020-12-11 2021-03-02 杭州电魂网络科技股份有限公司 Embedded automatic testing method, device, equipment and medium based on network game client
CN112801464A (en) * 2021-01-07 2021-05-14 北京创仕科锐信息技术有限公司 Process management method and system
CN113568825B (en) * 2021-05-25 2024-03-15 杭州慧康物联网科技有限公司 Program flow debugging method, device, equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189758A (en) * 2018-07-26 2019-01-11 新华三技术有限公司 O&M flow designing method, device and equipment, operation method, device and host

Also Published As

Publication number Publication date
CN114201149A (en) 2022-03-18

Similar Documents

Publication Publication Date Title
CN113034095A (en) Man-machine interaction method and device combining RPA and AI, storage medium and electronic equipment
CN109918055B (en) Application program generation method and device
US20060265469A1 (en) XML based scripting framework, and methods of providing automated interactions with remote systems
CN105718289A (en) Component relationship establishing method and equipment
CN108415826B (en) Application testing method, terminal device and computer readable storage medium
CN113971110A (en) Interface testing method, device, equipment and computer readable storage medium
CN112463256A (en) Method, system, electronic device and storage medium for determining configuration file
CN116166525A (en) Method and device for generating test script
CN109614325B (en) Method and device for determining control attribute, electronic equipment and storage medium
CN113360379B (en) Program test environment creation method and program test environment creation apparatus
CN114594934A (en) Visual page generation method, device, equipment and medium
US20190073198A1 (en) Multi-flavored software execution from a singular code base
CN115113972A (en) Application transformation method, system, cluster, medium and program product
CN111488731B (en) File generation method, device, computer equipment and storage medium
CN114201149B (en) Operation flow generation method, device and system and computer readable storage medium
CN110287089B (en) Microkernel IPC (inter-processor communication protocol) verification method based on intermediate format and SMT (surface mount technology)
CN114911541B (en) Processing method and device of configuration information, electronic equipment and storage medium
CN110727436A (en) Operation interface script execution method and device, terminal equipment and storage medium
CN115904317A (en) Method, device, equipment and storage medium for uniformly calling front-end interface and back-end interface
CN113158195B (en) Distributed vulnerability scanning method and system based on POC script
CN116069324A (en) Dynamic form construction method and device based on Vue
CN111151008B (en) Verification method and device for game operation data, configuration background and medium
CN113434217B (en) Vulnerability scanning method, vulnerability scanning device, computer equipment and medium
CN113032256B (en) Automated testing method, apparatus, computer system, and readable storage medium
CN111124423B (en) Compiling detection method, device, server and medium based on multiple platforms

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