WO2020220889A1 - Method and device for generating script program, and script program processing system - Google Patents
Method and device for generating script program, and script program processing system Download PDFInfo
- Publication number
- WO2020220889A1 WO2020220889A1 PCT/CN2020/081801 CN2020081801W WO2020220889A1 WO 2020220889 A1 WO2020220889 A1 WO 2020220889A1 CN 2020081801 W CN2020081801 W CN 2020081801W WO 2020220889 A1 WO2020220889 A1 WO 2020220889A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- script
- script program
- program
- input
- verification result
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
Definitions
- the present disclosure generally relates to the field of edge computing, and more specifically, to a method and device for generating script programs and a script program processing system.
- edge computing becomes more and more important.
- Data preprocessing in edge devices is widely used in industrial IoT solutions.
- the data preprocessing includes, for example, data filtering, aggregation or calculation of factory benchmarks.
- data preprocessing in edge devices is implemented using script programs.
- script programs need to be customized and developed for each industrial application instance.
- script developers usually only have experience in script programming and edge device development, but do not have domain knowledge of industrial application examples, so they need to communicate with domain experts to obtain the corresponding fields when developing script programs. Knowledge, leading to inefficient script program development.
- script development tools used by developers are expensive and heavy, and are not suitable for industrial application scenarios that only require low cost and lightweight preprocessing.
- the present disclosure provides a method, device and script program processing system for generating a script program.
- the method and system are used to generate the required script basic description information, input/output definition information, and calculation function description information by providing script programs, and based on the input script basic description information, input/output definition information, and calculation function description information To automatically generate script programs, eliminating the need for script programmers to have script programming and edge device development experience.
- a method for generating a script program including: receiving script basic description information, input/output definition information, and calculation function description information; and based on the script basic description information and the input/output definition information; Output definition information and the calculation function description information, and generate script programs and script program description files.
- the script program writer by receiving the script program input by the script program writer, the required script basic description information, input/output definition information, and calculation function description information are generated, and based on the input script basic description information and input/output definition information And calculate the function description information to generate the script program, so there is no need for the script program writer to have script programming and edge device development experience.
- generating the script program includes: based on the script basic description information, the Input/output definition information and the calculation function description information, and use a script program template to generate the script program.
- the script program is automatically generated by using the script program template, thereby making the writing of the script program easier.
- the method may further include: after receiving a script program generation trigger request, displaying a script editing interface, the script editing interface including a script basic description input area, an input/output definition Input area and calculation function description input area; and receiving script basic description information, input/output definition information, and calculation function description information includes: receiving script basic description information, input/output definition information, and calculation function input via the script editing interface Description.
- the script editor is provided with a script editing interface to input the basic script description information, input/output definition information, and calculation function description information required for script program generation, so that the process of inputting information required by the script program becomes More intuitive and concise.
- the method may further include: performing a script verification on the generated script program; and in response to the script verification passing, separate the generated script program description file and the script program It is stored in the script program description file database and the script program database for the configuration file generating device and the script program application device to call.
- the script editing interface includes a script verification result display area
- the generated script program description file and script program are respectively stored in the script program description file database and the script program database.
- the method may further include: displaying the script verification result for the script program in the script verification result display area.
- the script verification result for the script program is displayed before the script program description file and the script program are stored, and the script program description file and the script program are stored only when the script verification is passed, so that the The generated script program is interactively verified, thereby avoiding the generation of wrong script programs and thus avoiding the deployment of wrong functions on edge devices.
- the script programmer learns that the script verification has not passed through the script verification result displayed in the script verification result display area, he can adjust the script basic description input area, input/output definition input area and/or on the script editing interface. Or the calculation function describes the content input in the input area, and based on the adjusted content input, the script program is generated again for verification, thereby making the script program generation operation easier.
- the script verification includes syntax verification and script test verification.
- the script editing interface includes a script syntax verification result display area, an analog data input area, and a script test verification result display area
- the script verification result display area displays
- the script verification result for the script program may include: displaying the script syntax verification result for the script program in the script syntax verification result display area; and in response to the completion of the input of the simulation data, testing the verification in the script
- the verification result display area displays a script test verification result for the script program, and the script test verification result is obtained by using the simulation data to run the script program.
- the script test verification can be triggered by inputting the simulation data in the simulation data input area, thereby realizing the script test verification for the script program.
- the script editing interface includes a script program publishing area
- the method may further include: publishing the generated script program in the script program publishing area for the script program application Equipment.
- the generated script program can be displayed intuitively in the script editing interface, so that the script program writer can intuitively understand the generated script program information.
- the script application device is an edge device.
- an apparatus for generating a script program including: an information receiving unit configured to receive basic script description information, input/output definition information, and calculation function description information; a script program generating unit, Is configured to generate a script program based on the script basic description information, the input/output definition information, and the calculation function description information; and a script program description file generating unit is configured to generate a script program based on the script basic description information, The input/output definition information and the calculation function description information are described, and a script program description file is generated.
- the script program generation unit is configured to: use a script program template to generate a script based on the basic script description information, the input/output definition information, and the calculation function description information. Generate the script program.
- the device may further include: an interface display unit configured to display a script editing interface after receiving a script program generation trigger request, the script editing interface including a basic script description Input area, input/output definition input area, and calculation function description input area; and the information receiving unit is configured to receive script basic description information, input/output definition information, and calculation function description information input via the script editing interface .
- the device may further include: a script verification unit configured to perform script verification on the generated script program; and a script storage unit configured to respond to the script verification After passing the verification, the generated script program description file and script program are respectively stored in the script program description file database and the script program database for the configuration file generating device and the script program application device to call.
- a script verification unit configured to perform script verification on the generated script program
- a script storage unit configured to respond to the script verification After passing the verification, the generated script program description file and script program are respectively stored in the script program description file database and the script program database for the configuration file generating device and the script program application device to call.
- the script editing interface includes a script verification result display area
- the device further includes: a verification result display unit configured to combine the generated script program description file with Before the script programs are respectively stored in the script program description file database and the script program database, the script verification result for the script program is displayed in the script verification result display area.
- the script editing interface includes a script syntax verification result display area, an analog data input area, and a script test verification result display area
- the verification result display unit is configured to : Display the script syntax verification result for the script program in the script syntax verification result display area; and in response to the completion of the simulation data input for the analog data input area, display it in the script test verification result display area
- the script test verification result is obtained by using the simulation data to run the script program.
- the script editing interface includes a script program publishing area
- the device further includes: a script program publishing unit configured to publish the generated script in the script program publishing area The program is used by the script application device.
- a system for script processing including: a script program generation device, the script program generation device including the above-mentioned device for generating a script program, configured to generate a script program And a script program description file; a configuration file generating device configured to generate a script program configuration file based on the script program description file generated in the script program generating device, the script program configuration file including the workflow and working context of the script; And the script program application device is configured to execute the script program based on the script program configuration file.
- a computing device including: at least one processor; and a memory coupled with the at least one processor, configured to store instructions, when the instructions are used by the at least one processor During execution, the at least one processor is caused to execute the method for generating a script program as described above.
- a machine-readable storage medium that stores executable instructions that, when executed, cause the machine to execute the method for generating a script program as described above.
- a computer program product that is tangibly stored on a computer-readable medium and includes computer-executable instructions that, when executed, cause at least one The processor executes the method for generating the script program as described above.
- FIG. 1 shows a block diagram of a system for script program processing according to an embodiment of the present disclosure
- Figure 2 shows a schematic diagram of a script editing interface according to an embodiment of the present disclosure
- Fig. 3 shows a schematic diagram of an example of a calculation function description according to an embodiment of the present disclosure
- FIG. 4 shows a schematic diagram of an example of a script program description file according to an embodiment of the present disclosure
- Fig. 5 shows a schematic diagram of an example of a script program configuration file according to an embodiment of the present disclosure
- Fig. 6 shows a flowchart of a method for generating a script program according to an embodiment of the present disclosure
- FIG. 7 shows a schematic diagram of operations performed at a script program application device according to an embodiment of the present disclosure.
- FIG. 8 shows a block diagram of a computing device for generating a script program according to an embodiment of the present disclosure.
- S620 Receive content input for the script basic description input area, input/output definition input area, and calculation function description input area
- the term “including” and its variants means open terms, meaning “including but not limited to.”
- the term “based on” means “based at least in part on.”
- the terms “one embodiment” and “an embodiment” mean “at least one embodiment.”
- the term “another embodiment” means “at least one other embodiment.”
- the terms “first”, “second”, etc. may refer to different or the same objects. Other definitions can be included below, either explicit or implicit. Unless clearly indicated in the context, the definition of a term is consistent throughout the specification.
- FIG. 1 shows a block diagram of a system for script processing (hereinafter referred to as a script processing system) 10 according to an embodiment of the present disclosure.
- the script program processing system 10 includes a script program generating device 100, a configuration file generating device 200 and a script program application device 300.
- the script program generating device 100 includes a script program generating device (for simplicity of description, it is also referred to as a script program generating device 100 hereinafter).
- the script program generating device 100 is configured to generate a script program and a script program description file based on the script basic description, input/output definition, and calculation function description input by the user (ie, script program writer).
- the script program description file is used by the configuration file generating device 200 to generate a script program configuration file, and the script program is used by the script program application device 300 to perform corresponding processing.
- the script program generation device 100 may respond to the user (ie, the script writer) inputting the script basic description, input/output definition, and calculation function description via the script editing interface 20, based on the input script basic description, Input/output definition and calculation function description generate script program and script program description file.
- the configuration file generation device 200 communicates with the script program generation device 100.
- the configuration file generating device 200 and the script program generating device 100 may communicate in a wired or wireless manner.
- the configuration file generating device 200 is configured to obtain a script program description file from the script program generating device 100 and generate a script program configuration file based on the obtained script program description file.
- the script program configuration file may include, for example, the workflow and the working context of the script.
- the workflow of the script can be described using the input parameters and output parameters of the script.
- the working context of the script refers to the working environment of the script.
- the configuration file generating device 200 is also configured to communicate with the script application device 300. Similarly, the configuration file generating device 200 and the script application device 300 may communicate in a wired or wireless manner. When the script program application device 300 needs to execute the script program, the script program configuration file is obtained from the configuration file generation device 200.
- the script program application device 300 is configured to obtain a script program from the script program generating device 100 and to obtain a script program configuration file from the configuration file generating device 200. For example, the script program application device 300 downloads the script program from the script program generation device 100, or the script program generation device 100 actively distributes the generated script program to the script program application device 300. The script program application device 300 requests or downloads the script program configuration file from the configuration file generation device 200, or the configuration file generation device 200 actively delivers the generated script program configuration file to the script program application device 300.
- the script program application device 300 has a script program execution engine 310.
- the script program execution engine 310 uses the script file configuration file to organize the workflow of the script program.
- the workflow includes, but is not limited to, for example, all the script programs running on the script program execution engine.
- the message bus of the data point sends data from the message bus to the input of the script program, and sends data from the output of the script program to the message bus.
- the script program execution engine 310 uses the data captured by the data capture device on the script program application device 300 (for example, an edge device) as input data of the script program execution engine 310 based on the organized script program workflow to provide it to
- the corresponding script program performs script calculation (ie, data preprocessing). After the script program completes the script calculation, the script calculation result is provided to the output of the script program execution engine 310 to output the result.
- the script program generation device 100 and the configuration file generation device 200 may include but are not limited to: personal computers, server computers, workstations, desktop computers, laptop computers, notebook computers, mobile computing devices, smart phones, Tablet computers, cell phones, personal digital assistants (PDAs), handheld devices, etc.
- the script program generating device 100 and the script program configuration file generating device 200 are server devices.
- the script application device 300 may include an edge device, for example.
- the script program generating device 100 includes an interface display unit 110, an information receiving unit 120, a script program generating unit 130, a script program description file generating unit 140, a script verification unit 150, a script verification result display unit 160, The script storage unit 170 and the script issuance unit 180.
- the interface display unit 110 is configured to display the script editing interface 20 after receiving the script program generation trigger request.
- the apparatus for generating a script program according to an embodiment of the present disclosure may be implemented as an application program module.
- the script program generation trigger request may be issued by, for example, clicking the application program module.
- the script editing interface 20 may be drawn based on a pre-written script editing interface program after receiving a script program generation trigger request.
- FIG. 2 shows a schematic diagram of a script editing interface 20 according to an embodiment of the present disclosure.
- the script editing interface 20 includes a script basic description input area 210, an input/output definition input area 220 and a calculation function description input area 230.
- the script basic description input area 210 is configured to be used by a user to input a script basic description.
- the basic script description includes, for example, a script name and a script description.
- the script basic description input area 210 includes a script name editing area 211 and a script description content editing area 213.
- the user can edit (for example, fill in) the name of the script to be generated in the script name editing area 211, for example, fill in the script name FPY.
- the user can also write script description content in the script description content editing area 213, for example, "Message Type for FPY".
- the input/output definition input area 220 is configured for a user to input information about the input/output definition.
- the input/output definition input area 220 includes an input definition input area and an output definition input area.
- the input definition input area (Input) includes an input variable name editing area 221, an input variable data type selection area 222, and an input variable adding button 223.
- the input variable name editing area 221 is configured for the user to use to edit the input variable name, such as GoodItem, BadItem.
- the input variable data type selection area 222 may, for example, be designed in the form of a drop-down menu for the user to select the data type of the input variable, for example, INT.
- the input variable adding button 223 is configured for the user to add input variables.
- the output definition input area includes an output variable name editing area 224, an output variable data type selection area 225, an output variable unit selection area 226, and an output variable value range editing area 227.
- the output variable name editing area 224 is configured for the user to edit the output variable name, such as FPY.
- the output variable data type selection area 225 may, for example, be designed in the form of a drop-down menu for the user to select the data type of the output variable, for example, DOUBLE.
- the output variable unit selection area 226 may, for example, be designed in the form of a drop-down menu for the user to select the unit of the output variable, for example, %.
- the output variable value range editing area 227 is configured for the user to edit the value range of the output variable, for example, 0-100.
- the calculation function description input area 230 is configured for a user to input a calculation function description.
- the calculation function description input area 230 includes a script type selection area 231 and a calculation function description editing area 233.
- the script type selection area 231 may, for example, be designed in the form of a drop-down menu for the user to select the script type, for example, Python.
- the calculation function description editing area 233 is configured for the user to edit and input the description content of the calculation function.
- the description content is usually described in a program code language corresponding to the selected script type.
- Fig. 3 shows a schematic diagram of an example of a calculation function description according to an embodiment of the present disclosure.
- the information receiving unit 120 is configured to receive script basic description information, input/output definition information, and calculation function description information.
- the information receiving unit 120 may be configured to receive script basic description information, input/output definition information, and calculation function description information input by a user via a script editing interface.
- the script program generating unit 130 is configured to generate a script program based on the script basic description information, the input/output definition information, and the calculation function description information.
- the script program description file generating unit 140 is configured to generate a script program description file based on the basic script description information, the input/output definition information, and the calculation function description information.
- Fig. 4 shows a schematic diagram of an example of a script program description file according to an embodiment of the present disclosure.
- the script program description file is used by the configuration file generating device 200 to generate a script program configuration file.
- Fig. 5 shows a schematic diagram of an example of a script program configuration file according to an embodiment of the present disclosure.
- the script verification unit 150 is configured to verify the generated script program. After the script program verification is completed, the script verification result display unit 160 displays the script verification result.
- the verification for the script program may include syntax verification.
- the script editing interface 20 includes a script syntax verification result display area 240, as shown in FIG. 2.
- the script syntax verification result display area 240 is configured to display the syntax verification result for the generated script program.
- the content of the input area 230 is input to generate a script program, and the generated script program is grammatically checked, and then the grammatical check result is returned to the script editing interface 20 (that is, returned to the display unit for displaying the script editing interface, also It is called the front end) to display in the script syntax verification result display area 240, for example, to display the correct syntax verification, or to display program lines with syntax errors in the script program.
- the user confirms whether the generated script program meets the requirements according to the display result in the script syntax verification result display area 240, that is, whether it passes the syntax verification.
- the verification performed on the script program may also include script test verification.
- the script editing interface 20 may also include an analog data input area 250 and a script test verification result display area 260.
- the simulation data input area 250 is configured to be used by the user to input simulation data for script testing for the back-end processing device to perform script testing.
- the script test verification result display area 260 is configured to display the script test result of the back-end processing device for the user to determine whether the generated script program meets the requirements, that is, to determine whether the script test verification is passed.
- the script editing interface 20 also includes a test run start button 270. After the test run start button 270 is operated, the script test for the simulated data is started.
- the script storage unit 170 is configured to store the generated script program description file and script program in the script program description file database and the script program database, respectively, in response to the script verification passing, for the configuration file generating device 200 and the script program application
- the device 300 is called. For example, storing the generated script program description file in the script program description file database for the configuration file generating device 200 to call, and storing the generated script program in the script program database for the script program application device 300 to call .
- the script editing interface 20 may also include a script program release area 280.
- the script program release area 280 is configured to display the script program to be released.
- the script program release area 280 may include a script program add button 281, a script program delete button 282, and/or a script program release button 283.
- the script program generating apparatus 100 may further include a script program issuing unit 180.
- the script program publishing unit 180 is configured to publish the generated script program in the script program publishing area 280 for use by the script program application device 300.
- the script editing interface 20 may also include a script program save button 290.
- the script program save button 290 is clicked to perform the script program save operation. For example, in response to the user clicking the save operation, the generated script program and script program description file are saved.
- the script program generation device 100 can be divided into a front-end interaction part and a back-end processing part, wherein the front-end interaction part is used to perform data interaction operations that need to be performed at the front end when generating the script program.
- the back-end processing part is configured to execute data processing operations performed at the back-end when the script program is generated.
- the interface display unit 110, the information receiving unit 120, and the script verification result display unit 160 may belong to the front-end interactive part
- the script program generation unit 130, the script program description file generation unit 140, the script verification unit 150, and the script storage unit 170 And the script issuing unit 180 may belong to the back-end processing part.
- Fig. 6 shows a flowchart of a method for generating a script program according to an embodiment of the present disclosure.
- the script program After receiving the content input for the script basic description input area 210, the input/output definition input area 220, and the calculation function description input area 230, in block S630, use the script basic description input area, input/output definition input area and calculation function Describe the content input of the input area, generate script programs and script program description files.
- the script program can be automatically generated based on the script program template by using the script basic description input area, the input/output definition input area, and the calculation function description input area.
- script verification is performed on the generated script program.
- the script verification may include syntax verification.
- the syntax verification may be automatically performed by the script verification unit 150 at the back end.
- the script verification may also include script test verification.
- the script editing interface 20 further includes an analog data input area 250 and a script test verification result display area 260.
- the method may further include: in response to the completion of the simulation data input to the simulation data input area 250, using the simulation data to run the script program for script test verification, and verify the script test.
- the verification result is returned to the script editing interface 20 for display.
- the script editing interface 20 includes the test run start button 270
- the script test for the simulation data is run in response to the test run start button 270 being operated.
- the script verification result is returned to the script editing interface 20 for display.
- block S660 it is determined whether the script verification is passed. In an example, this step may be judged by the user based on the script syntax verification result display area 240/script test verification result display area 260, or may be judged by the back-end processing part, and the judgment result may be provided to the front end
- the interactive part is displayed to the user on the script editing interface 20.
- the script verification for the script program When it is determined that the script verification for the script program has not passed, it returns to block 620, and the user executes the content of the script basic description input area 210, input/output definition input area 220, and/or calculation function description input area 230 again. Input to adjust the content input of the script basic description input area 210, the input/output definition input area 220, and/or the calculation function description input area 230. Then, the script program generation process is sequentially executed again based on the adjusted content input.
- the generated script program and script program description file are respectively stored in the script program storage unit and script program description file storage unit for the script
- the program application device 300 calls the script program to perform corresponding operations
- the script program file configuration device 200 calls the script program description file to generate the script program configuration file.
- the generated script program and the script program description file are stored in the script program storage unit and the script program description file storage unit, respectively.
- the script editing interface 20 further includes a script program save button 290, the save operation for the generated script program is performed by operating the script save button 290.
- the method may further include: in block 680, in response to the script verification passing, publishing the generated script program for the script program application device 300 to use.
- the script editing interface 20 includes a script program publishing area 280
- the generated script program is published in the script program publishing area 280 for use by the script program application device 300.
- FIGS. 1 to 6 show only one embodiment of the method and device for generating a script program according to the present disclosure. In other embodiments of the present disclosure, it is also possible to modify the methods shown in FIGS. 1 to 6 The embodiments of the script program generation method and device are modified.
- the script program generating apparatus 100 may not include the interface display unit 110 and the script verification result display unit 160. That is, in this embodiment, there is no need to provide the script editing interface 20 to the user.
- the script editing interface 20 may only include the syntax verification result display area 240.
- the script editing interface 20 may only include an analog data input area 250 and a script test verification result display area 260.
- Fig. 7 shows a schematic diagram of operations performed at a script program application device according to an embodiment of the present disclosure.
- the script program application device 300 has a script program execution engine 310.
- the script program execution engine 310 After acquiring the script program 330 and the script program configuration file 340, the script program execution engine 310 installs the acquired script program 300 (ie, the script programs 320-1, 320-2 in FIG. 7). Then, the script program execution engine 310 uses the script file configuration file 340 to organize the workflow of the script program.
- the workflow includes, but is not limited to, for example: a message bus containing all data points running on the script program execution engine to transfer data from The message bus is sent to the input of the script program, and data is sent from the output of the script program to the message bus.
- the script program execution engine 310 provides the data captured by the data capture device on the script program application device 300 (that is, the input 350 of the script program execution engine 310) to the corresponding script program 320 based on the organized script program workflow.
- the script calculation result is provided to the output 360 of the script program execution engine 310 to output the result.
- the above script program generating device 100 can be implemented by hardware, or by software or a combination of hardware and software.
- FIG. 8 shows a block diagram of a computing device 800 for generating a script program according to an embodiment of the present disclosure.
- the computing device 800 may include at least one processor 810 that executes at least one computer-readable instruction stored or encoded in a computer-readable storage medium (ie, the memory 820) (ie, the above-mentioned in the form of software) Implementation elements).
- computer-executable instructions are stored in the memory 820, which when executed, cause at least one processor 810 to: receive script basic description information, input/output definition information, and calculation function description information; and based on the script basic The description information, the input/output definition information and the calculation function description information generate script programs and script program description files.
- a machine-readable medium may have machine-executable instructions (that is, the above-mentioned elements implemented in the form of software), which when executed by a machine, cause the machine to execute the various embodiments described above in conjunction with FIGS. 1-7 in the present disclosure.
- Machine-executable instructions that is, the above-mentioned elements implemented in the form of software
- a computer program including computer-executable instructions, which, when executed, cause at least one processor to execute the various embodiments described above in conjunction with FIGS. 1-7 in the various embodiments of the present disclosure.
- a computer program product including computer-executable instructions, which when executed, cause at least one processor to execute the above described in conjunction with FIGS. 1-7 in the various embodiments of the present disclosure.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The present disclosure provides a method for generating a script program, and a system. In the method, script basic description information, input/output definition information and calculation function description information are received. Then, a script program and a script program description file are generated on the basis of the script basic description information, the input/output definition information and the calculation function description information. With this method, script programming personnel can perform script programming without needing to have script programming and edge device development experience.
Description
本公开通常涉及边缘计算领域,更具体地,涉及用于生成脚本程序的方法和装置以及脚本程序处理系统。The present disclosure generally relates to the field of edge computing, and more specifically, to a method and device for generating script programs and a script program processing system.
随着云端服务器无法承受越来越多的设备和数据,并且由于不可避免的网络流量而导致的云端服务器的延迟也不能满足实时应用,边缘计算变得越来越重要。边缘设备中的数据预处理被广泛用于工业物联网解决方案,所述数据预处理例如包括数据过滤,工厂基准的聚合或计算。通常,边缘设备中的数据预处理是使用脚本程序来实现的。As cloud servers cannot withstand more and more devices and data, and the latency of cloud servers due to inevitable network traffic cannot satisfy real-time applications, edge computing becomes more and more important. Data preprocessing in edge devices is widely used in industrial IoT solutions. The data preprocessing includes, for example, data filtering, aggregation or calculation of factory benchmarks. Generally, data preprocessing in edge devices is implemented using script programs.
在当前用于边缘设备中的数据预处理解决方案中,需要针对每个工业应用实例定制开发脚本程序。此外,在进行脚本程序开发时,不仅需要具备脚本编程和边缘设备开发经验,而且还需要具备工业应用实例的领域知识,比如需要知道在该工业应用实例下边缘设备所获取的数据的含义以及针对该数据的数据处理流程。然而,在实际应用中,脚本程序开发人员通常仅仅具备脚本编程和边缘设备开发经验,但是不具备工业应用实例的领域知识,从而在进行脚本程序开发时需要与领域专家进行沟通以获取相应的领域知识,从而导致脚本程序开发效率不高。In the current data preprocessing solutions used in edge devices, script programs need to be customized and developed for each industrial application instance. In addition, when developing script programs, you need not only script programming and edge device development experience, but also domain knowledge of industrial application examples. For example, you need to know the meaning of the data obtained by the edge device under the industrial application example and the The data processing flow of the data. However, in actual applications, script developers usually only have experience in script programming and edge device development, but do not have domain knowledge of industrial application examples, so they need to communicate with domain experts to obtain the corresponding fields when developing script programs. Knowledge, leading to inefficient script program development.
此外,在进行脚本程序开发时,开发人员所使用的脚本开发工具的成本昂贵并且重量大,并不适合于只需要低成本和轻量级预处理的工业应用场景。In addition, when developing script programs, the script development tools used by developers are expensive and heavy, and are not suitable for industrial application scenarios that only require low cost and lightweight preprocessing.
发明内容Summary of the invention
鉴于上述,本公开提供了一种用于生成脚本程序的方法、装置和脚本程序处理系统。利用该方法和系统,通过提供脚本程序生成所需的脚本基本描述信息、输入/输出定义信息以及计算函数描述信息,并基于所输入的 脚本基本描述信息、输入/输出定义信息以及计算函数描述信息来自动生成脚本程序,从而无需脚本程序编写人员具备脚本编程和边缘设备开发经验。In view of the above, the present disclosure provides a method, device and script program processing system for generating a script program. The method and system are used to generate the required script basic description information, input/output definition information, and calculation function description information by providing script programs, and based on the input script basic description information, input/output definition information, and calculation function description information To automatically generate script programs, eliminating the need for script programmers to have script programming and edge device development experience.
根据本公开的一个方面,提供一种用于生成脚本程序的方法,包括:接收脚本基本描述信息、输入/输出定义信息和计算函数描述信息;以及基于所述脚本基本描述信息、所述输入/输出定义信息和所述计算函数描述信息,生成脚本程序和脚本程序描述文件。According to one aspect of the present disclosure, there is provided a method for generating a script program, including: receiving script basic description information, input/output definition information, and calculation function description information; and based on the script basic description information and the input/output definition information; Output definition information and the calculation function description information, and generate script programs and script program description files.
利用该方法,通过接收脚本程序编写人员所输入的脚本程序生成所需的脚本基本描述信息、输入/输出定义信息以及计算函数描述信息,并基于所输入的脚本基本描述信息、输入/输出定义信息以及计算函数描述信息来生成脚本程序,从而无需脚本程序编写人员具备脚本编程和边缘设备开发经验。Using this method, by receiving the script program input by the script program writer, the required script basic description information, input/output definition information, and calculation function description information are generated, and based on the input script basic description information and input/output definition information And calculate the function description information to generate the script program, so there is no need for the script program writer to have script programming and edge device development experience.
可选地,在上述方面的一个示例中,基于所述脚本基本描述信息、所述输入/输出定义信息和所述计算函数描述信息,生成脚本程序包括:基于所述脚本基本描述信息、所述输入/输出定义信息和所述计算函数描述信息,使用脚本程序模板来生成所述脚本程序。Optionally, in an example of the foregoing aspect, based on the script basic description information, the input/output definition information, and the calculation function description information, generating the script program includes: based on the script basic description information, the Input/output definition information and the calculation function description information, and use a script program template to generate the script program.
利用该方法,通过使用脚本程序模板来自动生成脚本程序,从而使得脚本程序的编写更加简便。Using this method, the script program is automatically generated by using the script program template, thereby making the writing of the script program easier.
可选地,在上述方面的一个示例中,所述方法还可以包括:在接收到脚本程序生成触发请求后,显示脚本编辑界面,所述脚本编辑界面包括脚本基本描述输入区、输入/输出定义输入区以及计算函数描述输入区;以及接收脚本基本描述信息、输入/输出定义信息和计算函数描述信息包括:接收经由所述脚本编辑界面输入的脚本基本描述信息、输入/输出定义信息和计算函数描述信息。Optionally, in an example of the above aspect, the method may further include: after receiving a script program generation trigger request, displaying a script editing interface, the script editing interface including a script basic description input area, an input/output definition Input area and calculation function description input area; and receiving script basic description information, input/output definition information, and calculation function description information includes: receiving script basic description information, input/output definition information, and calculation function input via the script editing interface Description.
利用该方法,通过向脚本程序编写人员提供脚本编辑界面来输入脚本程序生成所需的脚本基本描述信息、输入/输出定义信息以及计算函数描述信息,从而使得脚本程序所需信息的输入过程变得更加直观和简洁。Using this method, the script editor is provided with a script editing interface to input the basic script description information, input/output definition information, and calculation function description information required for script program generation, so that the process of inputting information required by the script program becomes More intuitive and concise.
可选地,在上述方面的一个示例中,所述方法还可以包括:对所生成的脚本程序进行脚本校验;以及响应于脚本校验通过,将所生成的脚本程序描述文件和脚本程序分别存储在脚本程序描述文件数据库和脚本程序数据库中,以供配置文件生成设备和脚本程序应用设备调用。Optionally, in an example of the above aspect, the method may further include: performing a script verification on the generated script program; and in response to the script verification passing, separate the generated script program description file and the script program It is stored in the script program description file database and the script program database for the configuration file generating device and the script program application device to call.
利用该方法,在生成脚本程序时,还需要对脚本程序进行脚本校验,并且在脚本校验通过时,才存储所生成的脚本程序和脚本程序描述文件,从而可以确保所生成的脚本程序的正确性。Using this method, when generating a script program, it is also necessary to perform a script verification on the script program, and only when the script verification is passed, the generated script program and the script program description file are stored, thereby ensuring the integrity of the generated script program. Correctness.
可选地,在上述方面的一个示例中,所述脚本编辑界面包括脚本校验结果显示区,在将所生成的脚本程序描述文件和脚本程序分别存储在脚本程序描述文件数据库和脚本程序数据库中之前,所述方法还可以包括:在所述脚本校验结果显示区显示针对所述脚本程序的脚本校验结果。Optionally, in an example of the above aspect, the script editing interface includes a script verification result display area, and the generated script program description file and script program are respectively stored in the script program description file database and the script program database. Previously, the method may further include: displaying the script verification result for the script program in the script verification result display area.
利用该方法,通过在存储脚本程序描述文件和脚本程序之前,显示针对脚本程序的脚本校验结果,并且只有在脚本校验通过时,才存储脚本程序描述文件和脚本程序,从而使得能够对所生成的脚本程序进行交互式验证,由此避免生成错误的脚本程序,进而避免在边缘设备上部署错误的功能。此外,在脚本程序编写人员通过脚本校验结果显示区所显示的脚本校验结果获悉脚本校验未通过时,能够在脚本编辑界面上调整脚本基本描述输入区、输入/输出定义输入区和/或计算函数描述输入区的内容输入,并基于调整后的内容输入来再次生成脚本程序以进行校验,从而使得脚本程序生成操作更加简便。Using this method, the script verification result for the script program is displayed before the script program description file and the script program are stored, and the script program description file and the script program are stored only when the script verification is passed, so that the The generated script program is interactively verified, thereby avoiding the generation of wrong script programs and thus avoiding the deployment of wrong functions on edge devices. In addition, when the script programmer learns that the script verification has not passed through the script verification result displayed in the script verification result display area, he can adjust the script basic description input area, input/output definition input area and/or on the script editing interface. Or the calculation function describes the content input in the input area, and based on the adjusted content input, the script program is generated again for verification, thereby making the script program generation operation easier.
可选地,在上述方面的一个示例中,所述脚本校验包括语法校验和脚本测试校验。Optionally, in an example of the above aspect, the script verification includes syntax verification and script test verification.
可选地,在上述方面的一个示例中,所述脚本编辑界面包括脚本语法校验结果显示区、模拟数据输入区和脚本测试校验结果显示区,以及在所述脚本校验结果显示区显示针对脚本程序的脚本校验结果可以包括:在所述脚本语法校验结果显示区显示针对所述脚本程序的脚本语法校验结果;以及响应于针对模拟数据的输入完成,在所述脚本测试校验结果显示区中显示针对所述脚本程序的脚本测试校验结果,所述脚本测试校验结果是使用所述模拟数据来运行所述脚本程序而得到的。Optionally, in an example of the above aspect, the script editing interface includes a script syntax verification result display area, an analog data input area, and a script test verification result display area, and the script verification result display area displays The script verification result for the script program may include: displaying the script syntax verification result for the script program in the script syntax verification result display area; and in response to the completion of the input of the simulation data, testing the verification in the script The verification result display area displays a script test verification result for the script program, and the script test verification result is obtained by using the simulation data to run the script program.
利用该方法,可以通过在模拟数据输入区中输入模拟数据来触发脚本测试校验,从而实现针对脚本程序的脚本测试校验。Using this method, the script test verification can be triggered by inputting the simulation data in the simulation data input area, thereby realizing the script test verification for the script program.
可选地,在上述方面的一个示例中,所述脚本编辑界面包括脚本程序发布区,所述方法还可以包括:在所述脚本程序发布区中发布所生成的脚本程序,以供脚本程序应用设备使用。Optionally, in an example of the above aspect, the script editing interface includes a script program publishing area, and the method may further include: publishing the generated script program in the script program publishing area for the script program application Equipment.
利用该方法,可以在脚本编辑界面中直观地显示所生成的脚本程序,从而使得脚本程序编写人员能够直观地了解所生成的脚本程序信息。By using this method, the generated script program can be displayed intuitively in the script editing interface, so that the script program writer can intuitively understand the generated script program information.
可选地,在上述方面的一个示例中,所述脚本程序应用设备是边缘设备。Optionally, in an example of the above aspect, the script application device is an edge device.
根据本公开的另一方面,提供一种用于生成脚本程序的装置,包括:信息接收单元,被配置为接收脚本基本描述信息、输入/输出定义信息和计算函数描述信息;脚本程序生成单元,被配置为基于所述脚本基本描述信息、所述输入/输出定义信息和所述计算函数描述信息,生成脚本程序;以及脚本程序描述文件生成单元,被配置为基于所述脚本基本描述信息、所述输入/输出定义信息和所述计算函数描述信息,生成脚本程序描述文件。According to another aspect of the present disclosure, there is provided an apparatus for generating a script program, including: an information receiving unit configured to receive basic script description information, input/output definition information, and calculation function description information; a script program generating unit, Is configured to generate a script program based on the script basic description information, the input/output definition information, and the calculation function description information; and a script program description file generating unit is configured to generate a script program based on the script basic description information, The input/output definition information and the calculation function description information are described, and a script program description file is generated.
可选地,在上述方面的一个示例中,所述脚本程序生成单元被配置为:基于所述脚本基本描述信息、所述输入/输出定义信息和所述计算函数描述信息,使用脚本程序模板来生成所述脚本程序。Optionally, in an example of the foregoing aspect, the script program generation unit is configured to: use a script program template to generate a script based on the basic script description information, the input/output definition information, and the calculation function description information. Generate the script program.
可选地,在上述方面的一个示例中,所述装置还可以包括:界面显示单元,被配置为在接收到脚本程序生成触发请求后,显示脚本编辑界面,所述脚本编辑界面包括脚本基本描述输入区、输入/输出定义输入区以及计算函数描述输入区;以及所述信息接收单元被配置为:接收经由所述脚本编辑界面输入的脚本基本描述信息、输入/输出定义信息和计算函数描述信息。Optionally, in an example of the above aspect, the device may further include: an interface display unit configured to display a script editing interface after receiving a script program generation trigger request, the script editing interface including a basic script description Input area, input/output definition input area, and calculation function description input area; and the information receiving unit is configured to receive script basic description information, input/output definition information, and calculation function description information input via the script editing interface .
可选地,在上述方面的一个示例中,所述装置还可以包括:脚本校验单元,被配置为对所生成的脚本程序进行脚本校验;以及脚本存储单元,被配置为响应于脚本校验通过,将所生成的脚本程序描述文件和脚本程序分别存储在脚本程序描述文件数据库和脚本程序数据库中,以供配置文件生成设备和脚本程序应用设备调用。Optionally, in an example of the above aspect, the device may further include: a script verification unit configured to perform script verification on the generated script program; and a script storage unit configured to respond to the script verification After passing the verification, the generated script program description file and script program are respectively stored in the script program description file database and the script program database for the configuration file generating device and the script program application device to call.
可选地,在上述方面的一个示例中,所述脚本编辑界面包括脚本校验结果显示区,所述装置还包括:校验结果显示单元,被配置为在将所生成的脚本程序描述文件和脚本程序分别存储在脚本程序描述文件数据库和脚本程序数据库中之前,在所述脚本校验结果显示区显示针对所述脚本程序的脚本校验结果。Optionally, in an example of the above aspect, the script editing interface includes a script verification result display area, and the device further includes: a verification result display unit configured to combine the generated script program description file with Before the script programs are respectively stored in the script program description file database and the script program database, the script verification result for the script program is displayed in the script verification result display area.
可选地,在上述方面的一个示例中,所述脚本编辑界面包括脚本语法 校验结果显示区、模拟数据输入区和脚本测试校验结果显示区,以及所述校验结果显示单元被配置为:在所述脚本语法校验结果显示区显示针对所述脚本程序的脚本语法校验结果;以及响应于针对模拟数据输入区的模拟数据输入完成,在所述脚本测试校验结果显示区中显示针对所述脚本程序的脚本测试校验结果,所述脚本测试校验结果是使用所述模拟数据来运行所述脚本程序而得到的。Optionally, in an example of the above aspect, the script editing interface includes a script syntax verification result display area, an analog data input area, and a script test verification result display area, and the verification result display unit is configured to : Display the script syntax verification result for the script program in the script syntax verification result display area; and in response to the completion of the simulation data input for the analog data input area, display it in the script test verification result display area For the script test verification result of the script program, the script test verification result is obtained by using the simulation data to run the script program.
可选地,在上述方面的一个示例中,所述脚本编辑界面包括脚本程序发布区,所述装置还包括:脚本程序发布单元,被配置为在所述脚本程序发布区中发布所生成的脚本程序以供脚本程序应用设备使用。Optionally, in an example of the above aspect, the script editing interface includes a script program publishing area, and the device further includes: a script program publishing unit configured to publish the generated script in the script program publishing area The program is used by the script application device.
根据本公开的另一方面,提供一种用于脚本处理的系统,包括:脚本程序生成设备,所述脚本程序生成设备包括如上所述的用于生成脚本程序的装置,被配置为生成脚本程序和脚本程序描述文件;配置文件生成设备,被配置为基于所述脚本程序生成设备中生成的脚本程序描述文件来生成脚本程序配置文件,所述脚本程序配置文件包括脚本的工作流以及工作上下文;以及脚本程序应用设备,被配置为基于所述脚本程序配置文件来执行脚本程序。According to another aspect of the present disclosure, there is provided a system for script processing, including: a script program generation device, the script program generation device including the above-mentioned device for generating a script program, configured to generate a script program And a script program description file; a configuration file generating device configured to generate a script program configuration file based on the script program description file generated in the script program generating device, the script program configuration file including the workflow and working context of the script; And the script program application device is configured to execute the script program based on the script program configuration file.
根据本公开的另一方面,提供一种计算设备,包括:至少一个处理器;以及与所述至少一个处理器耦合的存储器,被配置为存储指令,当所述指令被所述至少一个处理器执行时,使得所述至少一个处理器执行如上所述的用于生成脚本程序的方法。According to another aspect of the present disclosure, there is provided a computing device, including: at least one processor; and a memory coupled with the at least one processor, configured to store instructions, when the instructions are used by the at least one processor During execution, the at least one processor is caused to execute the method for generating a script program as described above.
根据本公开的另一方面,提供一种机器可读存储介质,其存储有可执行指令,所述指令当被执行时使得所述机器执行如上所述的用于生成脚本程序的方法。According to another aspect of the present disclosure, there is provided a machine-readable storage medium that stores executable instructions that, when executed, cause the machine to execute the method for generating a script program as described above.
根据本公开的另一方面,提供一种计算机程序产品,所述计算机程序产品被有形地存储在计算机可读介质上并且包括计算机可执行指令,所述计算机可执行指令在被执行时使至少一个处理器执行如上所述的用于生成脚本程序的方法。According to another aspect of the present disclosure, there is provided a computer program product that is tangibly stored on a computer-readable medium and includes computer-executable instructions that, when executed, cause at least one The processor executes the method for generating the script program as described above.
通过参照下面的附图,可以实现对于本公开内容的本质和优点的进一 步理解。在附图中,类似组件或特征可以具有相同的附图标记。By referring to the following drawings, a further understanding of the nature and advantages of the present disclosure can be achieved. In the drawings, similar components or features may have the same reference signs.
图1示出了根据本公开的实施例的用于脚本程序处理的系统的方框图;FIG. 1 shows a block diagram of a system for script program processing according to an embodiment of the present disclosure;
图2示出了根据本公开的实施例的脚本编辑界面的示意图;Figure 2 shows a schematic diagram of a script editing interface according to an embodiment of the present disclosure;
图3示出了根据本公开的实施例的计算函数描述的一个示例的示意图;Fig. 3 shows a schematic diagram of an example of a calculation function description according to an embodiment of the present disclosure;
图4示出了根据本公开的实施例的脚本程序描述文件的一个示例的示意图;FIG. 4 shows a schematic diagram of an example of a script program description file according to an embodiment of the present disclosure;
图5示出了根据本公开的实施例的脚本程序配置文件的一个示例的示意图;Fig. 5 shows a schematic diagram of an example of a script program configuration file according to an embodiment of the present disclosure;
图6示出了根据本公开的实施例的用于生成脚本程序的方法的流程图;Fig. 6 shows a flowchart of a method for generating a script program according to an embodiment of the present disclosure;
图7示出了根据本公开的实施例的脚本程序应用设备处执行的操作的示意图;和FIG. 7 shows a schematic diagram of operations performed at a script program application device according to an embodiment of the present disclosure; and
图8示出了根据本公开的实施例的用于生成脚本程序的计算设备的方框图。FIG. 8 shows a block diagram of a computing device for generating a script program according to an embodiment of the present disclosure.
附图标记Reference number
10 脚本程序处理系统10 Script program processing system
100 脚本程序生成设备/脚本程序生成装置100 Script program generation equipment/script program generation device
110 界面显示单元110 interface display unit
120 信息接收单元120 Information receiving unit
130 脚本程序生成单元130 Script program generation unit
140 脚本程序描述文件生成单元140 Script program description file generation unit
150 脚本校验单元150 script verification unit
160 脚本校验结果显示单元160 Script verification result display unit
170 脚本存储单元170 Script storage unit
180 脚本程序发布单元180 Script program release unit
200 配置文件生成设备200 Configuration file generation equipment
300 脚本程序应用设备300 Script application equipment
310 脚本程序执行引擎310 Script program execution engine
20 脚本编辑界面20 Script editing interface
210 脚本基本描述输入区210 Script basic description input area
211 脚本名称编辑区211 Script name editing area
213 脚本描述内容编辑区213 Script description content editing area
220 输入/输出定义输入区220 Input/output definition input area
221 输入变量名称编辑区221 Input variable name edit area
222 输入变量数据类型选择区222 Input variable data type selection area
223 输入变量添加按钮223 Input variable add button
224 输出变量名称编辑区224 Output variable name editing area
225 输出变量数据类型选择区225 Output variable data type selection area
226 输出变量单位选择区226 Output variable unit selection area
227 输出变量数值范围编辑区227 Output variable value range editing area
230 计算函数描述输入区230 Calculation function description input area
231 脚本类型选择区231 Script type selection area
233 计算函数描述编辑区233 Calculation function description editing area
240 语法校验结果显示区240 Syntax check result display area
250 模拟数据输入区250 Analog data input area
260 脚本测试校验结果显示区260 Script test verification result display area
270 测试运行启动按钮270 Test run start button
280 脚本程序发布区280 Script program release area
281 脚本程序添加按钮281 Script program add button
282 脚本程序删除按钮282 Script program delete button
283 脚本程序发布按钮283 Script program release button
290 脚本程序保存按钮290 Script program save button
S600 脚本程序生成过程S600 script program generation process
S610 显示脚本编辑界面S610 Display script editing interface
S620 接收针对脚本基本描述输入区、输入/输出定义输入区和计算函数描述输入区的内容输入S620 Receive content input for the script basic description input area, input/output definition input area, and calculation function description input area
S630 生成脚本程序及脚本程序描述文件S630 Generate script program and script program description file
S640 对脚本程序执行脚本校验S640 Perform script verification on script programs
S650 显示脚本校验结果S650 Display script verification result
S660 脚本校验是否通过?S660 Does the script verification pass?
S670 存储脚本程序和脚本程序描述文件S670 Store script programs and script program description files
S680 发布脚本程序S680 release script program
320 脚本程序320 Script program
330 脚本程序330 Script program
340 脚本程序配置文件340 Script program configuration file
350 数据输入350 Data input
360 数据输出360 data output
800 计算设备800 computing equipment
810 至少一个处理器810 At least one processor
820 存储器820 Memory
现在将参考示例实施方式讨论本文描述的主题。应该理解,讨论这些实施方式只是为了使得本领域技术人员能够更好地理解从而实现本文描述的主题,并非是对权利要求书中所阐述的保护范围、适用性或者示例的限制。可以在不脱离本公开内容的保护范围的情况下,对所讨论的元素的功能和排列进行改变。各个示例可以根据需要,省略、替代或者添加各种过程或组件。例如,所描述的方法可以按照与所描述的顺序不同的顺序来执行,以及各个步骤可以被添加、省略或者组合。另外,相对一些示例所描述的特征在其它例子中也可以进行组合。The subject matter described herein will now be discussed with reference to example embodiments. It should be understood that the discussion of these embodiments is only to enable those skilled in the art to better understand and implement the subject matter described herein, and is not to limit the scope of protection, applicability or examples set forth in the claims. The function and arrangement of the discussed elements can be changed without departing from the scope of protection of the present disclosure. Various examples can omit, replace or add various processes or components as needed. For example, the described method may be executed in a different order from the described order, and various steps may be added, omitted, or combined. In addition, features described with respect to some examples can also be combined in other examples.
如本文中使用的,术语“包括”及其变型表示开放的术语,含义是“包括但不限于”。术语“基于”表示“至少部分地基于”。术语“一个实施例”和“一实施例”表示“至少一个实施例”。术语“另一个实施例”表示“至少一个其他实施例”。术语“第一”、“第二”等可以指代不同的或相同的对象。下面可以包括其他的定义,无论是明确的还是隐含的。除非上下文中明确地指明,否则一个术语的定义在整个说明书中是一致的。As used herein, the term "including" and its variants means open terms, meaning "including but not limited to." The term "based on" means "based at least in part on." The terms "one embodiment" and "an embodiment" mean "at least one embodiment." The term "another embodiment" means "at least one other embodiment." The terms "first", "second", etc. may refer to different or the same objects. Other definitions can be included below, either explicit or implicit. Unless clearly indicated in the context, the definition of a term is consistent throughout the specification.
下面将结合附图来描述根据本公开的实施例的用于生成脚本程序的方法及系统。The method and system for generating script programs according to the embodiments of the present disclosure will be described below with reference to the accompanying drawings.
图1示出了根据本公开的实施例的用于脚本程序处理的系统(下文中称为脚本程序处理系统)10的方框图。如图1所示,脚本程序处理系统10 包括脚本程序生成设备100、配置文件生成设备200和脚本程序应用设备300。FIG. 1 shows a block diagram of a system for script processing (hereinafter referred to as a script processing system) 10 according to an embodiment of the present disclosure. As shown in FIG. 1, the script program processing system 10 includes a script program generating device 100, a configuration file generating device 200 and a script program application device 300.
脚本程序生成设备100包括脚本程序生成装置(为了描述简单,在下文中也称为脚本程序生成装置100)。脚本程序生成装置100被配置为基于用户(即,脚本程序编写人员)输入的脚本基本描述、输入/输出定义和计算函数(Calculation Function)描述,生成脚本程序和脚本程序描述文件。所述脚本程序描述文件被配置文件生成设备200使用来生成脚本程序配置文件,以及所述脚本程序被脚本程序应用设备300使用来执行相应的处理。例如,脚本程序生成设备100可以响应于用户(即,脚本程序编写人员)经由脚本编辑界面20输入脚本基本描述、输入/输出定义和计算函数(Calculation Function)描述,基于所输入的脚本基本描述、输入/输出定义和计算函数描述生成脚本程序和脚本程序描述文件。The script program generating device 100 includes a script program generating device (for simplicity of description, it is also referred to as a script program generating device 100 hereinafter). The script program generating device 100 is configured to generate a script program and a script program description file based on the script basic description, input/output definition, and calculation function description input by the user (ie, script program writer). The script program description file is used by the configuration file generating device 200 to generate a script program configuration file, and the script program is used by the script program application device 300 to perform corresponding processing. For example, the script program generation device 100 may respond to the user (ie, the script writer) inputting the script basic description, input/output definition, and calculation function description via the script editing interface 20, based on the input script basic description, Input/output definition and calculation function description generate script program and script program description file.
配置文件生成设备200与脚本程序生成设备100通信。例如,配置文件生成设备200与脚本程序生成设备100之间可以通过有线或者无线的方式进行通信。配置文件生成设备200被配置为从脚本程序生成设备100获取脚本程序描述文件,并且基于所获取的脚本程序描述文件生成脚本程序配置文件。所述脚本程序配置文件例如可以包括脚本的工作流以及工作上下文。这里,脚本的工作流可以使用脚本的输入参数和输出参数来描述。脚本的工作上下文是指脚本的工作环境。The configuration file generation device 200 communicates with the script program generation device 100. For example, the configuration file generating device 200 and the script program generating device 100 may communicate in a wired or wireless manner. The configuration file generating device 200 is configured to obtain a script program description file from the script program generating device 100 and generate a script program configuration file based on the obtained script program description file. The script program configuration file may include, for example, the workflow and the working context of the script. Here, the workflow of the script can be described using the input parameters and output parameters of the script. The working context of the script refers to the working environment of the script.
配置文件生成设备200还被配置为与脚本程序应用设备300通信。同样,配置文件生成设备200与脚本程序应用设备300之间可以通过有线或者无线的方式进行通信。在脚本程序应用设备300需要执行脚本程序时,从配置文件生成设备200获取脚本程序配置文件。The configuration file generating device 200 is also configured to communicate with the script application device 300. Similarly, the configuration file generating device 200 and the script application device 300 may communicate in a wired or wireless manner. When the script program application device 300 needs to execute the script program, the script program configuration file is obtained from the configuration file generation device 200.
脚本程序应用设备300被配置为从脚本程序生成设备100获取脚本程序,以及从配置文件生成设备200获取脚本程序配置文件。例如,脚本程序应用设备300从脚本程序生成设备100下载脚本程序,或者脚本程序生成设备100将所生成的脚本程序主动下发给脚本程序应用设备300。脚本程序应用设备300向配置文件生成设备200请求或下载脚本程序配置文件,或者配置文件生成设备200将所生成的脚本程序配置文件主动下发给脚本程序应用设备300。The script program application device 300 is configured to obtain a script program from the script program generating device 100 and to obtain a script program configuration file from the configuration file generating device 200. For example, the script program application device 300 downloads the script program from the script program generation device 100, or the script program generation device 100 actively distributes the generated script program to the script program application device 300. The script program application device 300 requests or downloads the script program configuration file from the configuration file generation device 200, or the configuration file generation device 200 actively delivers the generated script program configuration file to the script program application device 300.
脚本程序应用设备300具有脚本程序执行引擎310。在获取到脚本程序和脚本程序配置文件后,脚本程序执行引擎310使用脚本文件配置文件来组织脚本程序的工作流,所述工作流例如包括但不限于:包含在脚本程序执行引擎上运行的所有数据点的消息总线,将数据从消息总线发送到脚本程序的输入,以及将数据从脚本程序的输出发送到消息总线。然后,脚本程序执行引擎310基于所组织的脚本程序工作流,将脚本程序应用设备300(例如,边缘设备)上的数据捕获装置所捕获的数据作为脚本程序执行引擎310的输入数据,以提供给对应的脚本程序来进行脚本计算(即,数据预处理)。在脚本程序完成脚本计算后,将脚本计算结果提供给脚本程序执行引擎310的输出来进行结果输出。The script program application device 300 has a script program execution engine 310. After acquiring the script program and the script program configuration file, the script program execution engine 310 uses the script file configuration file to organize the workflow of the script program. The workflow includes, but is not limited to, for example, all the script programs running on the script program execution engine. The message bus of the data point sends data from the message bus to the input of the script program, and sends data from the output of the script program to the message bus. Then, the script program execution engine 310 uses the data captured by the data capture device on the script program application device 300 (for example, an edge device) as input data of the script program execution engine 310 based on the organized script program workflow to provide it to The corresponding script program performs script calculation (ie, data preprocessing). After the script program completes the script calculation, the script calculation result is provided to the output of the script program execution engine 310 to output the result.
这里要说明的是,脚本程序生成设备100和配置文件生成设备200可以包括但不限于:个人计算机、服务器计算机、工作站、桌面型计算机、膝上型计算机、笔记本计算机、移动计算设备、智能电话、平板计算机、蜂窝电话、个人数字助理(PDA)、手持装置等等。优选地,脚本程序生成设备100和脚本程序配置文件生成设备200是服务器设备。脚本程序应用设备300例如可以包括边缘设备。It should be noted here that the script program generation device 100 and the configuration file generation device 200 may include but are not limited to: personal computers, server computers, workstations, desktop computers, laptop computers, notebook computers, mobile computing devices, smart phones, Tablet computers, cell phones, personal digital assistants (PDAs), handheld devices, etc. Preferably, the script program generating device 100 and the script program configuration file generating device 200 are server devices. The script application device 300 may include an edge device, for example.
如图1所示,脚本程序生成装置100包括界面显示单元110、信息接收单元120、脚本程序生成单元130、脚本程序描述文件生成单元140、脚本校验单元150、脚本校验结果显示单元160、脚本存储单元170和脚本发布单元180。As shown in FIG. 1, the script program generating device 100 includes an interface display unit 110, an information receiving unit 120, a script program generating unit 130, a script program description file generating unit 140, a script verification unit 150, a script verification result display unit 160, The script storage unit 170 and the script issuance unit 180.
界面显示单元110被配置为在接收到脚本程序生成触发请求后,显示脚本编辑界面20。例如,根据本公开的实施例的用于生成脚本程序的装置可以被实现为应用程序模块。脚本程序生成触发请求可以例如是通过点击该应用程序模块来发出。这里,脚本编辑界面20可以是在接收到脚本程序生成触发请求后,基于预先编写的脚本编辑界面程序来绘制出的。图2示出了根据本公开的实施例的脚本编辑界面20的示意图。The interface display unit 110 is configured to display the script editing interface 20 after receiving the script program generation trigger request. For example, the apparatus for generating a script program according to an embodiment of the present disclosure may be implemented as an application program module. The script program generation trigger request may be issued by, for example, clicking the application program module. Here, the script editing interface 20 may be drawn based on a pre-written script editing interface program after receiving a script program generation trigger request. FIG. 2 shows a schematic diagram of a script editing interface 20 according to an embodiment of the present disclosure.
如图2所示,脚本编辑界面20包括脚本基本描述输入区210、输入/输出定义输入区220和计算函数描述输入区230。As shown in FIG. 2, the script editing interface 20 includes a script basic description input area 210, an input/output definition input area 220 and a calculation function description input area 230.
脚本基本描述输入区210被配置为供用户使用来输入脚本基本描述。所述脚本基本描述例如包括脚本名称和脚本描述。具体地,脚本基本描述 输入区210包括脚本名称编辑区211和脚本描述内容编辑区213。用户可以在脚本名称编辑区211编辑(例如,填写)需要生成的脚本的名称,例如,填写脚本名称FPY。此外,用户还可以在脚本描述内容编辑区213中编写脚本描述内容,例如,“Message Type for FPY”。The script basic description input area 210 is configured to be used by a user to input a script basic description. The basic script description includes, for example, a script name and a script description. Specifically, the script basic description input area 210 includes a script name editing area 211 and a script description content editing area 213. The user can edit (for example, fill in) the name of the script to be generated in the script name editing area 211, for example, fill in the script name FPY. In addition, the user can also write script description content in the script description content editing area 213, for example, "Message Type for FPY".
输入/输出定义输入区220被配置为供用户使用来输入关于输入/输出定义的信息。具体地,输入/输出定义输入区220包括输入定义输入区和输出定义输入区。输入定义输入区(Input)包括输入变量名称编辑区221、输入变量数据类型选择区222和输入变量添加按钮223。输入变量名称编辑区221被配置为供用户使用来编辑输入变量名称,例如GoodItem,BadItem。输入变量数据类型选择区222例如可以被设计为具有下拉菜单形式,供用户来选择输入变量的数据类型,例如,INT。输入变量添加按钮223被配置为供用户增加输入变量。在用户点击输入变量添加按钮223后,在输入定义输入区中会增加一个空白行,以供用户进行输入变量名称编辑以及输入变量数据类型选择。在用户完成输入变量名称编辑并且选择好输入变量数据类型后,就定义了一个新的输入变量。The input/output definition input area 220 is configured for a user to input information about the input/output definition. Specifically, the input/output definition input area 220 includes an input definition input area and an output definition input area. The input definition input area (Input) includes an input variable name editing area 221, an input variable data type selection area 222, and an input variable adding button 223. The input variable name editing area 221 is configured for the user to use to edit the input variable name, such as GoodItem, BadItem. The input variable data type selection area 222 may, for example, be designed in the form of a drop-down menu for the user to select the data type of the input variable, for example, INT. The input variable adding button 223 is configured for the user to add input variables. After the user clicks the input variable add button 223, a blank line will be added to the input definition input area for the user to edit the input variable name and select the input variable data type. After the user finishes editing the input variable name and selects the input variable data type, a new input variable is defined.
输出定义输入区(Output)包括输出变量名称编辑区224、输出变量数据类型选择区225、输出变量单位选择区226和输出变量数值范围编辑区227。输出变量名称编辑区224被配置为供用户使用来编辑输出变量名称,例如FPY。输出变量数据类型选择区225例如可以被设计为具有下拉菜单形式,供用户来选择输出变量的数据类型,例如,DOUBLE。输出变量单位选择区226例如可以被设计为具有下拉菜单形式,供用户来选择输出变量的单位,例如,%。输出变量数值范围编辑区227被配置为供用户编辑输出变量的数值范围,例如,0-100。The output definition input area (Output) includes an output variable name editing area 224, an output variable data type selection area 225, an output variable unit selection area 226, and an output variable value range editing area 227. The output variable name editing area 224 is configured for the user to edit the output variable name, such as FPY. The output variable data type selection area 225 may, for example, be designed in the form of a drop-down menu for the user to select the data type of the output variable, for example, DOUBLE. The output variable unit selection area 226 may, for example, be designed in the form of a drop-down menu for the user to select the unit of the output variable, for example, %. The output variable value range editing area 227 is configured for the user to edit the value range of the output variable, for example, 0-100.
计算函数描述输入区230被配置为供用户使用来输入计算函数描述。计算函数描述输入区230包括脚本类型选择区231和计算函数描述编辑区233。脚本类型选择区231例如可以被设计为具有下拉菜单形式,供用户来选择脚本类型,例如,Python。计算函数描述编辑区233被配置为供用户编辑输入计算函数的描述内容。这里,所述描述内容通常采用与所选择的脚本类型对应的程序代码语言来描述。图3示出了根据本公开的实施例的计算函数描述的一个示例的示意图。The calculation function description input area 230 is configured for a user to input a calculation function description. The calculation function description input area 230 includes a script type selection area 231 and a calculation function description editing area 233. The script type selection area 231 may, for example, be designed in the form of a drop-down menu for the user to select the script type, for example, Python. The calculation function description editing area 233 is configured for the user to edit and input the description content of the calculation function. Here, the description content is usually described in a program code language corresponding to the selected script type. Fig. 3 shows a schematic diagram of an example of a calculation function description according to an embodiment of the present disclosure.
信息接收单元120被配置为接收脚本基本描述信息、输入/输出定义信息和计算函数描述信息。例如,信息接收单元120可以被配置为接收用户经由脚本编辑界面输入的脚本基本描述信息、输入/输出定义信息和计算函数描述信息。The information receiving unit 120 is configured to receive script basic description information, input/output definition information, and calculation function description information. For example, the information receiving unit 120 may be configured to receive script basic description information, input/output definition information, and calculation function description information input by a user via a script editing interface.
脚本程序生成单元130被配置为基于所述脚本基本描述信息、所述输入/输出定义信息和所述计算函数描述信息,生成脚本程序。The script program generating unit 130 is configured to generate a script program based on the script basic description information, the input/output definition information, and the calculation function description information.
脚本程序描述文件生成单元140被配置为基于所述脚本基本描述信息、所述输入/输出定义信息和所述计算函数描述信息,生成脚本程序描述文件。图4示出了根据本公开的实施例的脚本程序描述文件的一个示例的示意图。在本公开中,所述脚本程序描述文件被配置文件生成设备200使用来生成脚本程序配置文件。图5示出了根据本公开的实施例的脚本程序配置文件的一个示例的示意图。The script program description file generating unit 140 is configured to generate a script program description file based on the basic script description information, the input/output definition information, and the calculation function description information. Fig. 4 shows a schematic diagram of an example of a script program description file according to an embodiment of the present disclosure. In the present disclosure, the script program description file is used by the configuration file generating device 200 to generate a script program configuration file. Fig. 5 shows a schematic diagram of an example of a script program configuration file according to an embodiment of the present disclosure.
脚本校验单元150被配置为对所生成的脚本程序进行校验。在完成脚本程序校验后,脚本校验结果显示单元160显示脚本校验结果。在本公开中,针对脚本程序进行的校验可以包括语法校验。相应地,脚本编辑界面20包括脚本语法校验结果显示区240,如图2所示。脚本语法校验结果显示区240被配置为显示针对所生成的脚本程序的语法校验结果。在用户完成针对脚本基本描述输入区210、输入/输出定义输入区220和计算函数描述输入区230的内容输入操作后,基于脚本基本描述输入区210、输入/输出定义输入区220和计算函数描述输入区230的内容输入生成脚本程序,并且对所生成的脚本程序进行语法校验,然后将语法校验结果返回给脚本编辑界面20(即,返回给用于显示脚本编辑界面的显示单元,也称为前端),以在脚本语法校验结果显示区240中进行显示,例如,显示语法校验正确,或者显示脚本程序中存在语法错误的程序行等。用户根据脚本语法校验结果显示区240中的显示结果来确认所生成的脚本程序是否满足要求,即,是否通过语法校验。The script verification unit 150 is configured to verify the generated script program. After the script program verification is completed, the script verification result display unit 160 displays the script verification result. In the present disclosure, the verification for the script program may include syntax verification. Correspondingly, the script editing interface 20 includes a script syntax verification result display area 240, as shown in FIG. 2. The script syntax verification result display area 240 is configured to display the syntax verification result for the generated script program. After the user completes the content input operation for the script basic description input area 210, the input/output definition input area 220, and the calculation function description input area 230, based on the script basic description input area 210, the input/output definition input area 220, and the calculation function description The content of the input area 230 is input to generate a script program, and the generated script program is grammatically checked, and then the grammatical check result is returned to the script editing interface 20 (that is, returned to the display unit for displaying the script editing interface, also It is called the front end) to display in the script syntax verification result display area 240, for example, to display the correct syntax verification, or to display program lines with syntax errors in the script program. The user confirms whether the generated script program meets the requirements according to the display result in the script syntax verification result display area 240, that is, whether it passes the syntax verification.
此外,在本公开的另一示例中,针对脚本程序进行的校验还可以包括脚本测试校验。相应地,脚本编辑界面20还可以包括模拟数据输入区250和脚本测试校验结果显示区260。模拟数据输入区250被配置为供用户使用来输入用于脚本测试的模拟数据,以供后端处理装置来进行脚本测试。脚 本测试校验结果显示区260被配置为显示后端处理装置的脚本测试结果,以供用户判断所生成的脚本程序是否满足要求,即,判断是否通过脚本测试校验。In addition, in another example of the present disclosure, the verification performed on the script program may also include script test verification. Correspondingly, the script editing interface 20 may also include an analog data input area 250 and a script test verification result display area 260. The simulation data input area 250 is configured to be used by the user to input simulation data for script testing for the back-end processing device to perform script testing. The script test verification result display area 260 is configured to display the script test result of the back-end processing device for the user to determine whether the generated script program meets the requirements, that is, to determine whether the script test verification is passed.
此外,脚本编辑界面20还包括测试运行启动按钮270。在测试运行启动按钮270被操作后,启动针对模拟数据的脚本测试。In addition, the script editing interface 20 also includes a test run start button 270. After the test run start button 270 is operated, the script test for the simulated data is started.
脚本存储单元170被配置为响应于脚本校验通过,将所生成的脚本程序描述文件和脚本程序分别存储在脚本程序描述文件数据库和脚本程序数据库中,以供配置文件生成设备200和脚本程序应用设备300调用。例如,将所生成的脚本程序描述文件存储在脚本程序描述文件数据库中,以供配置文件生成设备200调用,以及将所生成的脚本程序存储在脚本程序数据库中,以供脚本程序应用设备300调用。The script storage unit 170 is configured to store the generated script program description file and script program in the script program description file database and the script program database, respectively, in response to the script verification passing, for the configuration file generating device 200 and the script program application The device 300 is called. For example, storing the generated script program description file in the script program description file database for the configuration file generating device 200 to call, and storing the generated script program in the script program database for the script program application device 300 to call .
此外,脚本编辑界面20还可以包括脚本程序发布区280。脚本程序发布区280被配置为显示待发布的脚本程序。如图2所示,脚本程序发布区280可以包括脚本程序添加按钮281、脚本程序删除按钮282和/或脚本程序发布按钮283。相应地,脚本程序生成装置100还可以包括脚本程序发布单元180。脚本程序发布单元180被配置为在脚本程序发布区280中发布所生成的脚本程序,以供脚本程序应用设备300使用。In addition, the script editing interface 20 may also include a script program release area 280. The script program release area 280 is configured to display the script program to be released. As shown in FIG. 2, the script program release area 280 may include a script program add button 281, a script program delete button 282, and/or a script program release button 283. Correspondingly, the script program generating apparatus 100 may further include a script program issuing unit 180. The script program publishing unit 180 is configured to publish the generated script program in the script program publishing area 280 for use by the script program application device 300.
此外,脚本编辑界面20还可以包括脚本程序保存按钮290。在用户确认所生成的脚本程序满足要求后,即,语法校验和/或测试校验通过后,点击脚本程序保存按钮290来进行脚本程序保存操作。例如,响应于用户点击保存操作,保存所生成的脚本程序和脚本程序描述文件。In addition, the script editing interface 20 may also include a script program save button 290. After the user confirms that the generated script program meets the requirements, that is, after the grammar check and/or test verification pass, the script program save button 290 is clicked to perform the script program save operation. For example, in response to the user clicking the save operation, the generated script program and script program description file are saved.
如上参照图1到图5,对根据本公开的实施例的脚本程序生成装置100进行了描述。在本公开中,脚本程序生成装置100可以分为前端交互部分和后端处理部分,其中,所述前端交互部分用于执行在生成脚本程序时在前端需要执行的数据交互操作。所述后端处理部分被配置为执行在生成脚本程序时在后端执行的数据处理操作。例如,界面显示单元110、信息接收单元120和脚本校验结果显示单元160可以属于前端交互部分,以及脚本程序生成单元130、脚本程序描述文件生成单元140、脚本校验单元150、脚本存储单元170和脚本发布单元180可以属于后端处理部分。As above, referring to FIGS. 1 to 5, the script program generating apparatus 100 according to an embodiment of the present disclosure has been described. In the present disclosure, the script program generation device 100 can be divided into a front-end interaction part and a back-end processing part, wherein the front-end interaction part is used to perform data interaction operations that need to be performed at the front end when generating the script program. The back-end processing part is configured to execute data processing operations performed at the back-end when the script program is generated. For example, the interface display unit 110, the information receiving unit 120, and the script verification result display unit 160 may belong to the front-end interactive part, and the script program generation unit 130, the script program description file generation unit 140, the script verification unit 150, and the script storage unit 170 And the script issuing unit 180 may belong to the back-end processing part.
图6示出了根据本公开的实施例的用于生成脚本程序的方法的流程图。Fig. 6 shows a flowchart of a method for generating a script program according to an embodiment of the present disclosure.
如图6所示,首先,在块S610,在接收到脚本程序生成触发请求后,显示脚本编辑界面20。As shown in FIG. 6, first, in block S610, after receiving the script program generation trigger request, the script editing interface 20 is displayed.
接着,在块S620,接收针对脚本基本描述输入区210、输入/输出定义输入区220和计算函数描述输入区230的内容输入。Next, in block S620, the content input for the script basic description input area 210, the input/output definition input area 220, and the calculation function description input area 230 is received.
在接收到针对脚本基本描述输入区210、输入/输出定义输入区220和计算函数描述输入区230的内容输入后,在块S630,使用脚本基本描述输入区、输入/输出定义输入区和计算函数描述输入区的内容输入,生成脚本程序和脚本程序描述文件。在本公开的一个示例中,脚本程序可以是使用脚本基本描述输入区、输入/输出定义输入区和计算函数描述输入区的内容输入,基于脚本程序模板自动生成的。After receiving the content input for the script basic description input area 210, the input/output definition input area 220, and the calculation function description input area 230, in block S630, use the script basic description input area, input/output definition input area and calculation function Describe the content input of the input area, generate script programs and script program description files. In an example of the present disclosure, the script program can be automatically generated based on the script program template by using the script basic description input area, the input/output definition input area, and the calculation function description input area.
然后,在块S640,对所生成的脚本程序进行脚本校验。所述脚本校验可以包括语法校验。所述语法校验可以是由脚本校验单元150在后端自动执行。此外,所述脚本校验还可以包括脚本测试校验。相应地,脚本编辑界面20还包括模拟数据输入区250和脚本测试校验结果显示区260。在这种情况下,所述方法还可以包括:响应于针对模拟数据输入区250的模拟数据输入完成,使用所述模拟数据来运行所述脚本程序以进行脚本测试校验,并且将脚本测试校验结果返回给脚本编辑界面20来进行显示。此外,在脚本编辑界面20包括测试运行启动按钮270时,针对所述模拟数据的脚本测试是响应于测试运行启动按钮270被操作而运行的。Then, in block S640, script verification is performed on the generated script program. The script verification may include syntax verification. The syntax verification may be automatically performed by the script verification unit 150 at the back end. In addition, the script verification may also include script test verification. Correspondingly, the script editing interface 20 further includes an analog data input area 250 and a script test verification result display area 260. In this case, the method may further include: in response to the completion of the simulation data input to the simulation data input area 250, using the simulation data to run the script program for script test verification, and verify the script test. The verification result is returned to the script editing interface 20 for display. In addition, when the script editing interface 20 includes the test run start button 270, the script test for the simulation data is run in response to the test run start button 270 being operated.
在完成上述脚本校验后,在块650,将脚本校验结果返回给脚本编辑界面20来进行显示。接着,在块S660,判断脚本校验是否通过。在一个示例中,该步骤可以由用户基于脚本语法校验结果显示区240/脚本测试校验结果显示区260来进行判断,或者可以由后端处理部分来进行判断,并将判断结果提供给前端交互部分来在脚本编辑界面20上显示给用户。After completing the above script verification, in block 650, the script verification result is returned to the script editing interface 20 for display. Next, in block S660, it is determined whether the script verification is passed. In an example, this step may be judged by the user based on the script syntax verification result display area 240/script test verification result display area 260, or may be judged by the back-end processing part, and the judgment result may be provided to the front end The interactive part is displayed to the user on the script editing interface 20.
在判断为针对所述脚本程序的脚本校验未通过时,返回到块620,用户再次执行针对脚本基本描述输入区210、输入/输出定义输入区220和/或计算函数描述输入区230的内容输入,以对脚本基本描述输入区210、输入/输出定义输入区220和/或计算函数描述输入区230的内容输入进行调整。然后,基于调整后的内容输入再次顺序执行脚本程序生成过程。When it is determined that the script verification for the script program has not passed, it returns to block 620, and the user executes the content of the script basic description input area 210, input/output definition input area 220, and/or calculation function description input area 230 again. Input to adjust the content input of the script basic description input area 210, the input/output definition input area 220, and/or the calculation function description input area 230. Then, the script program generation process is sequentially executed again based on the adjusted content input.
在判定为脚本校验通过后,在块S670,响应于脚本校验通过,将所生 成的脚本程序以及脚本程序描述文件分别存储在脚本程序存储单元和脚本程序描述文件存储单元中,以供脚本程序应用设备300调用脚本程序来执行相应的操作,以及供脚本程序文件配置装置200调用脚本程序描述文件来生成脚本程序配置文件。例如,在判断为脚本校验通过并且用户触发针对脚本程序的保存操作后,将所生成的脚本程序以及脚本程序描述文件分别存储在脚本程序存储单元和脚本程序描述文件存储单元中。在本公开中,在脚本编辑界面20还包括脚本程序保存按钮290时,针对所生成的脚本程序的保存操作是通过操作脚本保存按钮290来执行的。After it is determined that the script verification is passed, in block S670, in response to the script verification passing, the generated script program and script program description file are respectively stored in the script program storage unit and script program description file storage unit for the script The program application device 300 calls the script program to perform corresponding operations, and the script program file configuration device 200 calls the script program description file to generate the script program configuration file. For example, after it is determined that the script verification is passed and the user triggers a saving operation for the script program, the generated script program and the script program description file are stored in the script program storage unit and the script program description file storage unit, respectively. In the present disclosure, when the script editing interface 20 further includes a script program save button 290, the save operation for the generated script program is performed by operating the script save button 290.
此外,在本公开的另一示例中,所述方法还可以包括:在块680,响应于脚本校验通过,发布所生成的脚本程序以供脚本程序应用设备300使用。例如,在脚本编辑界面20包括脚本程序发布区280的情况下,在脚本程序发布区280中发布所生成的脚本程序,以供脚本程序应用设备300使用。In addition, in another example of the present disclosure, the method may further include: in block 680, in response to the script verification passing, publishing the generated script program for the script program application device 300 to use. For example, in the case where the script editing interface 20 includes a script program publishing area 280, the generated script program is published in the script program publishing area 280 for use by the script program application device 300.
如上参照图1到图6对根据本公开的实施例的脚本程序生成装置100以及脚本程序处理系统10进行了描述。这里要说明的是,图1到图6示出的仅仅是根据本公开的脚本程序生成方法及装置的一个实施例,在本公开的其它实施例中,还可以对图1到图6中示出的脚本程序生成方法及装置的实施例进行修改。The script program generating apparatus 100 and the script program processing system 10 according to the embodiment of the present disclosure are described above with reference to FIGS. 1 to 6. It should be noted that FIGS. 1 to 6 show only one embodiment of the method and device for generating a script program according to the present disclosure. In other embodiments of the present disclosure, it is also possible to modify the methods shown in FIGS. 1 to 6 The embodiments of the script program generation method and device are modified.
例如,在本公开的另一实施例中,脚本程序生成装置100可以不包括界面显示单元110和脚本校验结果显示单元160。即,在该实施例中,不需要向用户提供脚本编辑界面20。For example, in another embodiment of the present disclosure, the script program generating apparatus 100 may not include the interface display unit 110 and the script verification result display unit 160. That is, in this embodiment, there is no need to provide the script editing interface 20 to the user.
此外,在本公开的另一实施例中,脚本编辑界面20可以仅仅包括语法校验结果显示区240。或者,脚本编辑界面20可以仅仅包括模拟数据输入区250和脚本测试校验结果显示区260。In addition, in another embodiment of the present disclosure, the script editing interface 20 may only include the syntax verification result display area 240. Alternatively, the script editing interface 20 may only include an analog data input area 250 and a script test verification result display area 260.
图7示出了根据本公开的实施例的脚本程序应用设备处执行的操作的示意图。Fig. 7 shows a schematic diagram of operations performed at a script program application device according to an embodiment of the present disclosure.
如图7所示,脚本程序应用设备300具有脚本程序执行引擎310。在获取到脚本程序330和脚本程序配置文件340后,脚本程序执行引擎310安装所获取的脚本程序300(即,图7中的脚本程序320-1,320-2)。然后,脚本程序执行引擎310使用脚本文件配置文件340来组织脚本程序的工作流,所述工作流例如包括但不限于:包含在脚本程序执行引擎上运行的所 有数据点的消息总线,将数据从消息总线发送到脚本程序的输入,以及将数据从脚本程序的输出发送到消息总线。然后,脚本程序执行引擎310基于所组织的脚本程序工作流,将脚本程序应用设备300上的数据捕获装置所捕获的数据(即,脚本程序执行引擎310的输入350)提供给对应的脚本程序320来进行脚本计算(即,数据预处理)。在脚本程序完成脚本计算后,将脚本计算结果提供给脚本程序执行引擎310的输出360来进行结果输出。As shown in FIG. 7, the script program application device 300 has a script program execution engine 310. After acquiring the script program 330 and the script program configuration file 340, the script program execution engine 310 installs the acquired script program 300 (ie, the script programs 320-1, 320-2 in FIG. 7). Then, the script program execution engine 310 uses the script file configuration file 340 to organize the workflow of the script program. The workflow includes, but is not limited to, for example: a message bus containing all data points running on the script program execution engine to transfer data from The message bus is sent to the input of the script program, and data is sent from the output of the script program to the message bus. Then, the script program execution engine 310 provides the data captured by the data capture device on the script program application device 300 (that is, the input 350 of the script program execution engine 310) to the corresponding script program 320 based on the organized script program workflow. To perform script calculations (ie, data preprocessing). After the script program completes the script calculation, the script calculation result is provided to the output 360 of the script program execution engine 310 to output the result.
如上参照图1到图7,对根据本公开的用于生成脚本程序的方法和系统的实施例进行了描述。上面的脚本程序生成装置100可以采用硬件实现,也可以采用软件或者硬件和软件的组合来实现。As above, referring to FIGS. 1 to 7, the embodiments of the method and system for generating script programs according to the present disclosure are described. The above script program generating device 100 can be implemented by hardware, or by software or a combination of hardware and software.
图8示出了根据本公开的实施例的用于生成脚本程序的计算设备800的方框图。根据一个实施例,计算设备800可以包括至少一个处理器810,处理器810执行在计算机可读存储介质(即,存储器820)中存储或编码的至少一个计算机可读指令(即,上述以软件形式实现的元素)。FIG. 8 shows a block diagram of a computing device 800 for generating a script program according to an embodiment of the present disclosure. According to an embodiment, the computing device 800 may include at least one processor 810 that executes at least one computer-readable instruction stored or encoded in a computer-readable storage medium (ie, the memory 820) (ie, the above-mentioned in the form of software) Implementation elements).
在一个实施例中,在存储器820中存储计算机可执行指令,其当执行时使得至少一个处理器810:接收脚本基本描述信息、输入/输出定义信息和计算函数描述信息;以及基于所述脚本基本描述信息、所述输入/输出定义信息和所述计算函数描述信息,生成脚本程序和脚本程序描述文件。In one embodiment, computer-executable instructions are stored in the memory 820, which when executed, cause at least one processor 810 to: receive script basic description information, input/output definition information, and calculation function description information; and based on the script basic The description information, the input/output definition information and the calculation function description information generate script programs and script program description files.
应该理解,在存储器820中存储的计算机可执行指令当执行时使得至少一个处理器810进行本公开的各个实施例中以上结合图1-7描述的各种操作和功能。It should be understood that the computer-executable instructions stored in the memory 820, when executed, cause the at least one processor 810 to perform various operations and functions described above in conjunction with FIGS. 1-7 in the various embodiments of the present disclosure.
根据一个实施例,提供了一种机器可读介质。该机器可读介质可以具有机器可执行指令(即,上述以软件形式实现的元素),该指令当被机器执行时,使得机器执行本公开的各个实施例中以上结合图1-7描述的各种操作和功能。According to one embodiment, a machine-readable medium is provided. The machine-readable medium may have machine-executable instructions (that is, the above-mentioned elements implemented in the form of software), which when executed by a machine, cause the machine to execute the various embodiments described above in conjunction with FIGS. 1-7 in the present disclosure. Kinds of operations and functions.
根据一个实施例,提供了一种计算机程序,包括计算机可执行指令,所述计算机可执行指令在被执行时使至少一个处理器执行本公开的各个实施例中以上结合图1-7描述的各种操作和功能。According to one embodiment, there is provided a computer program, including computer-executable instructions, which, when executed, cause at least one processor to execute the various embodiments described above in conjunction with FIGS. 1-7 in the various embodiments of the present disclosure. Kinds of operations and functions.
根据一个实施例,提供了一种计算机程序产品,包括计算机可执行指令,所述计算机可执行指令在被执行时使至少一个处理器执行本公开的各个实施例中以上结合图1-7描述的各种操作和功能。According to one embodiment, a computer program product is provided, including computer-executable instructions, which when executed, cause at least one processor to execute the above described in conjunction with FIGS. 1-7 in the various embodiments of the present disclosure. Various operations and functions.
上面结合附图阐述的具体实施方式描述了示例性实施例,但并不表示可以实现的或者落入权利要求书的保护范围的所有实施例。在整个本说明书中使用的术语“示例性”意味着“用作示例、实例或例示”,并不意味着比其它实施例“优选”或“具有优势”。出于提供对所描述技术的理解的目的,具体实施方式包括具体细节。然而,可以在没有这些具体细节的情况下实施这些技术。在一些实例中,为了避免对所描述的实施例的概念造成难以理解,公知的结构和装置以框图形式示出。The specific implementations set forth above in conjunction with the drawings describe exemplary embodiments, but do not represent all embodiments that can be implemented or fall within the protection scope of the claims. The term "exemplary" used throughout this specification means "serving as an example, instance, or illustration", and does not mean "preferred" or "advantageous" over other embodiments. The detailed description includes specific details for the purpose of providing an understanding of the described technology. However, these techniques can be implemented without these specific details. In some instances, in order to avoid incomprehensibility to the concepts of the described embodiments, well-known structures and devices are shown in block diagram form.
本公开内容的上述描述被提供来使得本领域任何普通技术人员能够实现或者使用本公开内容。对于本领域普通技术人员来说,对本公开内容进行的各种修改是显而易见的,并且,也可以在不脱离本公开内容的保护范围的情况下,将本文所定义的一般性原理应用于其它变型。因此,本公开内容并不限于本文所描述的示例和设计,而是与符合本文公开的原理和新颖性特征的最广范围相一致。The foregoing description of the present disclosure is provided to enable any person of ordinary skill in the art to implement or use the present disclosure. For those of ordinary skill in the art, various modifications to the present disclosure are obvious, and the general principles defined herein can also be applied to other modifications without departing from the scope of protection of the present disclosure. . Therefore, the present disclosure is not limited to the examples and designs described herein, but is consistent with the broadest scope that conforms to the principles and novel features disclosed herein.
Claims (20)
- 一种用于生成脚本程序的方法(S600),包括:A method (S600) for generating script programs, including:接收(S620)脚本基本描述信息、输入/输出定义信息和计算函数描述信息;以及Receive (S620) script basic description information, input/output definition information, and calculation function description information; and基于所述脚本基本描述信息、所述输入/输出定义信息和所述计算函数描述信息,生成(S630)脚本程序和脚本程序描述文件。Based on the script basic description information, the input/output definition information, and the calculation function description information, a script program and a script program description file are generated (S630).
- 如权利要求1所述的方法(S600),其中,基于所述脚本基本描述信息、所述输入/输出定义信息和所述计算函数描述信息,生成(S630)脚本程序包括:The method (S600) according to claim 1, wherein, based on the script basic description information, the input/output definition information, and the calculation function description information, generating (S630) a script program comprises:基于所述脚本基本描述信息、所述输入/输出定义信息和所述计算函数描述信息,使用脚本程序模板来生成(S630)所述脚本程序。Based on the script basic description information, the input/output definition information, and the calculation function description information, the script program template is used to generate (S630) the script program.
- 如权利要求1所述的方法(S600),还包括:The method (S600) according to claim 1, further comprising:在接收到脚本程序生成触发请求后,显示(S610)脚本编辑界面(20),所述脚本编辑界面(20)包括脚本基本描述输入区(210)、输入/输出定义输入区(220)以及计算函数描述输入区(230);以及After receiving the script program generation trigger request, a script editing interface (20) is displayed (S610). The script editing interface (20) includes a script basic description input area (210), an input/output definition input area (220), and a calculation Function description input area (230); and接收(S620)脚本基本描述信息、输入/输出定义信息和计算函数描述信息包括:Receive (S620) script basic description information, input/output definition information, and calculation function description information including:接收(S620)经由所述脚本编辑界面(20)输入的脚本基本描述信息、输入/输出定义信息和计算函数描述信息。Receive (S620) script basic description information, input/output definition information, and calculation function description information input via the script editing interface (20).
- 如权利要求1所述的方法(S600),还包括:The method (S600) according to claim 1, further comprising:对所生成的脚本程序进行脚本校验(S640);以及Perform script verification on the generated script program (S640); and响应于脚本校验通过,将所生成的脚本程序描述文件和脚本程序分别存储(S660)在脚本程序描述文件数据库和脚本程序数据库中,以供配置文件生成设备(200)和脚本程序应用设备(300)调用。In response to the script verification passing, the generated script program description file and the script program are respectively stored (S660) in the script program description file database and the script program database for the configuration file generating device (200) and the script program application device (S660) 300) Call.
- 如权利要求4所述的方法(S600),其中,所述脚本编辑界面(20) 包括脚本校验结果显示区(240,260),在将所生成的脚本程序描述文件和脚本程序分别存储(S660)在脚本程序描述文件数据库和脚本程序数据库中之前,所述方法还包括:The method (S600) according to claim 4, wherein the script editing interface (20) includes a script verification result display area (240, 260), and the generated script program description file and the script program are respectively stored ( S660) Before the script program description file database and the script program database are stored, the method further includes:在所述脚本校验结果显示区(240,260)显示(S650)针对所述脚本程序的脚本校验结果。The script verification result display area (240, 260) displays (S650) the script verification result for the script program.
- 如权利要求5所述的方法(S600),其中,所述脚本校验包括语法校验和/或脚本测试校验。The method (S600) according to claim 5, wherein the script verification includes syntax verification and/or script test verification.
- 如权利要求6所述的方法(S600),其中,所述脚本编辑界面(20)包括脚本语法校验结果显示区(240)、模拟数据输入区(250)和脚本测试校验结果显示区(260),以及在所述脚本校验结果显示区(240,260)显示(S650)针对脚本程序的脚本校验结果包括:The method (S600) according to claim 6, wherein the script editing interface (20) includes a script syntax verification result display area (240), an analog data input area (250), and a script test verification result display area ( 260), and displaying (S650) the script verification result for the script program in the script verification result display area (240, 260) includes:在所述脚本语法校验结果显示区(240)显示针对所述脚本程序的脚本语法校验结果;和/或Display the script syntax verification result for the script program in the script syntax verification result display area (240); and/or响应于针对模拟数据的输入完成,在所述脚本测试校验结果显示区(260)中显示针对所述脚本程序的脚本测试校验结果,所述脚本测试校验结果是使用所述模拟数据来运行所述脚本程序而得到的。In response to the completion of the input of the simulation data, the script test verification result for the script program is displayed in the script test verification result display area (260), the script test verification result is to use the simulation data to Obtained by running the script.
- 如权利要求3所述的方法(S600),其中,所述脚本编辑界面(20)包括脚本程序发布区(280),所述方法还包括:The method (S600) according to claim 3, wherein the script editing interface (20) comprises a script program publishing area (280), and the method further comprises:在所述脚本程序发布区(280)中发布所生成的脚本程序,以供脚本程序应用设备(300)使用。The generated script program is released in the script program release area (280) for use by the script program application device (300).
- 如权利要求4所述的方法(S600),其中,所述脚本程序应用设备(300)是边缘设备。The method (S600) according to claim 4, wherein the script application device (300) is an edge device.
- 一种用于生成脚本程序的装置(100),包括:A device (100) for generating script programs, including:信息接收单元(120),被配置为接收脚本基本描述信息、输入/输出定义信息和计算函数描述信息;以及The information receiving unit (120) is configured to receive basic script description information, input/output definition information, and calculation function description information; and脚本程序生成单元(130),被配置为基于所述脚本基本描述信息、所述输入/输出定义信息和所述计算函数描述信息,生成脚本程序;以及A script program generating unit (130) configured to generate a script program based on the basic script description information, the input/output definition information, and the calculation function description information; and脚本程序描述文件生成单元(140),被配置为基于所述脚本基本描述信息、所述输入/输出定义信息和所述计算函数描述信息,生成脚本程序描述文件。The script program description file generating unit (140) is configured to generate a script program description file based on the basic script description information, the input/output definition information, and the calculation function description information.
- 如权利要求10所述的装置(100),其中,所述脚本程序生成单元(130)被配置为:The device (100) according to claim 10, wherein the script program generating unit (130) is configured to:基于所述脚本基本描述信息、所述输入/输出定义信息和所述计算函数描述信息,使用脚本程序模板来生成所述脚本程序。Based on the script basic description information, the input/output definition information, and the calculation function description information, the script program template is used to generate the script program.
- 如权利要求10所述的装置(100),还包括:The device (100) according to claim 10, further comprising:界面显示单元(110),被配置为在接收到脚本程序生成触发请求后,显示脚本编辑界面(20),所述脚本编辑界面(20)包括脚本基本描述输入区(210)、输入/输出定义输入区(220)以及计算函数描述输入区(230);以及The interface display unit (110) is configured to display a script editing interface (20) after receiving a script program generation trigger request. The script editing interface (20) includes a script basic description input area (210) and an input/output definition Input area (220) and calculation function description input area (230); and所述信息接收单元(120)被配置为:The information receiving unit (120) is configured to:接收经由所述脚本编辑界面(20)输入的脚本基本描述信息、输入/输出定义信息和计算函数描述信息。Receive script basic description information, input/output definition information, and calculation function description information input via the script editing interface (20).
- 如权利要求10所述的装置(100),还包括:The device (100) according to claim 10, further comprising:脚本校验单元(150),被配置为对所生成的脚本程序进行脚本校验;以及The script verification unit (150) is configured to perform script verification on the generated script program; and脚本存储单元(170),被配置为响应于脚本校验通过,将所生成的脚本程序描述文件和脚本程序分别存储在脚本程序描述文件数据库和脚本程序数据库中,以供配置文件生成设备(200)和脚本程序应用设备(300)调用。The script storage unit (170) is configured to store the generated script program description file and script program in the script program description file database and the script program database respectively in response to the script verification passing, so as to be used by the configuration file generating device (200 ) And the script program application device (300) calls.
- 如权利要求13所述的装置(120),其中,所述脚本编辑界面(20)包括脚本校验结果显示区(240,260),所述装置(100)还包括:The device (120) according to claim 13, wherein the script editing interface (20) comprises a script verification result display area (240, 260), and the device (100) further comprises:校验结果显示单元(160),被配置为在将所生成的脚本程序描述文件和脚本程序分别存储在脚本程序描述文件数据库和脚本程序数据库中之前,在所述脚本校验结果显示区(240,260)显示针对所述脚本程序的脚本校验结果。The verification result display unit (160) is configured to store the generated script program description file and script program in the script program description file database and the script program database in the script verification result display area (240 , 260) Display the script verification result for the script program.
- 如权利要求14所述的装置(100),其中,所述脚本编辑界面(20)包括脚本语法校验结果显示区(240)、模拟数据输入区(250)和脚本测试校验结果显示区(260),以及所述校验结果显示单元(170)被配置为:The device (100) according to claim 14, wherein the script editing interface (20) comprises a script syntax verification result display area (240), an analog data input area (250), and a script test verification result display area ( 260), and the verification result display unit (170) is configured to:在所述脚本语法校验结果显示区(240)显示针对所述脚本程序的脚本语法校验结果;和/或Display the script syntax verification result for the script program in the script syntax verification result display area (240); and/or响应于针对模拟数据输入区(250)的模拟数据输入完成,在所述脚本测试校验结果显示区(260)中显示针对所述脚本程序的脚本测试校验结果,所述脚本测试校验结果是使用所述模拟数据来运行所述脚本程序而得到的。In response to the completion of the simulation data input for the simulation data input area (250), the script test verification result for the script program is displayed in the script test verification result display area (260), the script test verification result It is obtained by running the script program using the simulation data.
- 如权利要求11所述的装置(100),所述脚本编辑界面(20)包括脚本程序发布区(280),所述装置(100)还包括:The device (100) according to claim 11, wherein the script editing interface (20) comprises a script program release area (280), and the device (100) further comprises:脚本程序发布单元(180),被配置为在所述脚本程序发布区(280)中发布所生成的脚本程序以供脚本程序应用设备(300)使用。The script program publishing unit (180) is configured to publish the generated script program in the script program publishing area (280) for use by the script program application device (300).
- 一种用于脚本处理的系统(10),包括:A system (10) for script processing, including:脚本程序生成设备(100),所述脚本程序生成设备包括如权利要求10到16中任一所述的装置(100),被配置为生成脚本程序和脚本程序描述文件;A script program generating device (100), the script program generating device comprising the device (100) according to any one of claims 10 to 16, configured to generate a script program and a script program description file;配置文件生成设备(200),被配置为基于所述脚本程序生成设备(100)中生成的脚本程序描述文件来生成脚本程序配置文件,所述脚本程序配置文件包括脚本的工作流以及工作上下文;以及The configuration file generating device (200) is configured to generate a script program configuration file based on the script program description file generated in the script program generating device (100), the script program configuration file including the workflow and the working context of the script; as well as脚本程序应用设备(300),被配置为基于所述脚本程序配置文件来执行脚本程序。The script program application device (300) is configured to execute the script program based on the script program configuration file.
- 一种计算设备(800),包括:A computing device (800), including:至少一个处理器(810);以及At least one processor (810); and与所述至少一个处理器(810)耦合的存储器(820),被配置为存储指令,当所述指令被所述至少一个处理器(810)执行时,使得所述至少一个处理器(810)执行如权利要求1到9中任一所述的方法。The memory (820) coupled with the at least one processor (810) is configured to store instructions, and when the instructions are executed by the at least one processor (810), the at least one processor (810) is The method according to any one of claims 1-9 is performed.
- 一种机器可读存储介质,其存储有可执行指令,所述指令当被执行时使得所述机器执行如权利要求1到9中任一所述的方法。A machine-readable storage medium storing executable instructions, which when executed, cause the machine to execute the method according to any one of claims 1 to 9.
- 一种计算机程序产品,所述计算机程序产品被有形地存储在计算机可读介质上并且包括计算机可执行指令,所述计算机可执行指令在被执行时使至少一个处理器执行如权利要求1到9中任一所述的方法。A computer program product, which is tangibly stored on a computer-readable medium and includes computer-executable instructions, which when executed, cause at least one processor to execute as claimed in claims 1 to 9 Any of the methods described in.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910354019.9A CN111857679B (en) | 2019-04-29 | 2019-04-29 | Method and device for generating script program and script program processing system |
CN201910354019.9 | 2019-04-29 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020220889A1 true WO2020220889A1 (en) | 2020-11-05 |
Family
ID=72965350
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/081801 WO2020220889A1 (en) | 2019-04-29 | 2020-03-27 | Method and device for generating script program, and script program processing system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111857679B (en) |
WO (1) | WO2020220889A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114168174A (en) * | 2021-12-06 | 2022-03-11 | 江苏满运软件科技有限公司 | Data verification method, system, device and storage medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113467985A (en) * | 2021-07-28 | 2021-10-01 | 浙江大华技术股份有限公司 | Function checking method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130174119A1 (en) * | 2011-12-30 | 2013-07-04 | Hon Hai Precision Industry Co., Ltd. | Computing device and method for automatically generating measuring programs |
CN105488181A (en) * | 2015-12-01 | 2016-04-13 | 深圳联友科技有限公司 | Static page website generating method and system |
CN106598556A (en) * | 2015-10-15 | 2017-04-26 | 阿里巴巴集团控股有限公司 | User interface generation method and device |
CN108170809A (en) * | 2017-12-28 | 2018-06-15 | 平安科技(深圳)有限公司 | Build table scenario generation method, device, equipment and computer readable storage medium |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6113649A (en) * | 1996-03-27 | 2000-09-05 | International Business Machines Corporation | Object representation of program and script components |
CN102306102B (en) * | 2011-08-25 | 2017-09-12 | 中兴通讯股份有限公司 | Program file automatic generation method and device |
CN104461528A (en) * | 2014-12-01 | 2015-03-25 | 陕西海泰电子有限责任公司 | Method and device for generating signal-oriented application program codes in visualization mode |
US9870205B1 (en) * | 2014-12-29 | 2018-01-16 | Palantir Technologies Inc. | Storing logical units of program code generated using a dynamic programming notebook user interface |
US10713015B2 (en) * | 2016-05-15 | 2020-07-14 | Servicenow, Inc. | Visual programming system |
CN106469064A (en) * | 2016-09-04 | 2017-03-01 | 深圳市云智易联科技有限公司 | Code generating method and code generating unit |
CN108647049B (en) * | 2018-03-18 | 2023-01-31 | 平安科技(深圳)有限公司 | Configurable system, method, equipment and storage medium based on rule engine |
CN109117127A (en) * | 2018-08-21 | 2019-01-01 | 水木康益(北京)信息技术有限公司 | Program code generation method, device and computer readable storage medium |
-
2019
- 2019-04-29 CN CN201910354019.9A patent/CN111857679B/en active Active
-
2020
- 2020-03-27 WO PCT/CN2020/081801 patent/WO2020220889A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130174119A1 (en) * | 2011-12-30 | 2013-07-04 | Hon Hai Precision Industry Co., Ltd. | Computing device and method for automatically generating measuring programs |
CN106598556A (en) * | 2015-10-15 | 2017-04-26 | 阿里巴巴集团控股有限公司 | User interface generation method and device |
CN105488181A (en) * | 2015-12-01 | 2016-04-13 | 深圳联友科技有限公司 | Static page website generating method and system |
CN108170809A (en) * | 2017-12-28 | 2018-06-15 | 平安科技(深圳)有限公司 | Build table scenario generation method, device, equipment and computer readable storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114168174A (en) * | 2021-12-06 | 2022-03-11 | 江苏满运软件科技有限公司 | Data verification method, system, device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111857679B (en) | 2024-03-15 |
CN111857679A (en) | 2020-10-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8156473B2 (en) | Model oriented debugging | |
US10642720B2 (en) | Test case generator built into data-integration workflow editor | |
CN103984626B (en) | A kind of method and device for generating test case script | |
US11366704B2 (en) | Configurable analytics for microservices performance analysis | |
US9965252B2 (en) | Method and system for generating stateflow models from software requirements | |
US10162628B2 (en) | Transactional distributed data analysis and transformation | |
US8413109B2 (en) | Systems and methods for metamodel transformation | |
CN113360144A (en) | Auxiliary processing method, device, storage medium and program product for software development | |
WO2020220889A1 (en) | Method and device for generating script program, and script program processing system | |
CN111061522A (en) | Method, device, equipment and storage medium for generating front-end card assembly based on back end | |
CN110659210A (en) | Information acquisition method and device, electronic equipment and storage medium | |
US8732655B2 (en) | Systems and methods for metamodel transformation | |
US11928627B2 (en) | Workflow manager | |
CN113791787B (en) | Method and device for developing page | |
CN118034672B (en) | Spark-based visual data processing analysis method and system | |
CN110958243A (en) | Network vulnerability submitting method and device, storage medium and electronic equipment | |
CN116776595A (en) | Carbon emission process construction methods, devices, equipment and storage media | |
CN112346736B (en) | Data processing method and system | |
CN111522737B (en) | Automatic test verification method and device for front-end interface and storage medium | |
CN113515220A (en) | Task processing method and device, electronic equipment and storage medium | |
CN115509938A (en) | Code viewing method, device and computer readable storage medium | |
US9405514B1 (en) | Process fragment management | |
CN108170557B (en) | Method and apparatus for outputting information | |
KR102697544B1 (en) | Auxiliary processing methods, devices, storage media and program products and programs for software development | |
CN114416168B (en) | Version number processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20799230 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20799230 Country of ref document: EP Kind code of ref document: A1 |