Program development method, program development device, and readable storage medium
Patent Information
- Application Number
- CN202211383858.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-07
- Publication Date
- 2026-08-18
- Estimated Expiration
- 2042-11-07
AI Technical Summary
[0002]现阶段在企业的业务流程中,RPA(机器人流程自动化)系统被广泛应用,但在RPA系统的开发过程中,存在不同人员开发的流程代码无法共享,系统中的流程代码复用率低,流程代码冗余等问题,浪费了大量开发资源,增加了RPA流程代码的开发成本
[0047] The program development device in this technical solution converts multiple instruction codes in the software system into multiple component commands, and then combines the multiple component commands into a first functional component. Through the first functional component, the reusability of instruction codes in the software system is improved, the problem of instruction code redundancy is avoided, the development time of the target project that uses the first functional component is shortened, a lot of development resources are saved, and the development cost of the target project that uses the first functional component is reduced.
Smart Images

Figure CN115686473B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of program development technology, and more specifically, to a program development method, a program development apparatus, and a readable storage medium. Background Technology
[0002] Currently, RPA (Robotic Process Automation) systems are widely used in enterprise business processes. However, during the development of RPA systems, there are problems such as the inability to share process code developed by different personnel, low reusability of process code in the system, and redundancy of process code, which waste a lot of development resources and increase the development cost of RPA process code. Summary of the Invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.
[0004] Therefore, the first aspect of the present invention is to provide a program development method.
[0005] A second aspect of the invention is to provide a program development apparatus.
[0006] A third aspect of the invention is to provide a program development apparatus.
[0007] A fourth aspect of the present invention is to provide a readable storage medium.
[0008] In view of this, according to a first aspect of the present invention, a program development method is proposed, comprising: acquiring multiple instruction codes in a software system; determining attribute parameters corresponding to any instruction code among the multiple instruction codes; converting any instruction code into a component command according to the attribute parameters; combining the multiple component commands into a first functional component; and installing the first functional component in a target project.
[0009] The execution subject of the program development method provided by this invention can be a program development device, or it can be determined according to actual usage requirements, and no specific limitation is made here. In order to more clearly describe the program development method provided by this invention, the following description uses a program development device as the execution subject.
[0010] This technical solution proposes a program development method for software systems. It should be noted that the software system is a computer software system that includes multiple instruction codes. The software system can implement different operation processes through different instruction codes. The instruction codes are the computer codes corresponding to the operation instructions stored in the software system.
[0011] For example, the software system can be specifically an RPA (Robotic Process Automation) system. The RPA system can realize operation processes such as operating a personal finance system or operating a human resources system. The instruction code can be specifically the instruction code stored in the software system to implement the function of adding expense reports. The instruction code can also be specifically the instruction code stored in the software system to implement the function of adding employee personal information.
[0012] Furthermore, the program development device selects any one of the multiple instruction codes in the software system, adds command parameters and attribute parameters corresponding to the instruction code, and combines the attribute parameters to convert the instruction code into component commands.
[0013] It should be noted that a component command is a data collection that includes instruction codes, attribute parameters, and other data parameters. The attribute parameters are the data parameters corresponding to the properties executed in the component command.
[0014] For example, a component command can be specifically a component command that adds an expense report, or a component command that adds employee personal information, and the attribute parameters can be specific attributes such as quantity and type.
[0015] Furthermore, the program development device sequentially performs data conversion processing on multiple instruction codes to obtain multiple component commands. The program development device then combines the multiple component commands into a first functional component, wherein the first functional component is a functional component capable of implementing part of the operation process.
[0016] Furthermore, the program development device can install the first functional component into the target project, wherein the target project is a project that can implement a specific process.
[0017] It should be noted that the first functional component can be referenced and run by the target project. In addition, the first functional component can form a nested structure with other functional components and can be referenced and run nested by the target project.
[0018] For example, the target project could be specifically a project that manages the personal information of company employees.
[0019] For example, the first functional component may specifically include component command A, component command B, and component command C. Component command A may specifically be a component command that implements logging into the personal finance system, component command B may specifically be a component command that implements creating a new expense report, and component command C may specifically be a component command that implements submitting an expense report. The first functional component may specifically be a functional component that implements the operation process of logging into the personal finance system, creating a new expense report, and then submitting the new expense report.
[0020] For example, the first functional component can be used in combination with other functional components.
[0021] For example, the first functional component may be specifically functional component 1, and the first functional component may form a nested structure with functional component 2.
[0022] The program development method in this technical solution converts multiple instruction codes in the software system into multiple component commands, and then combines the multiple component commands into a first functional component. Through the first functional component, the reusability of instruction codes in the software system is improved, the problem of instruction code redundancy is avoided, the development time of the target project that uses the first functional component is shortened, a lot of development resources are saved, and the development cost of the target project that uses the first functional component is reduced.
[0023] According to the above-described program development method of the present invention, it may also have the following additional technical features:
[0024] In the above technical solution, the program development method further includes: obtaining the internal variables in the first functional component and determining the first data type of the internal variables; and determining the second data type of the attribute parameters based on the first data type.
[0025] The program development method in this technical solution determines the second data type of the attribute parameters based on the first data type of the internal variables, thereby enhancing the extensibility of the component commands in the first functional component and thus enhancing the ease of application of the first functional component.
[0026] In the above technical solution, the program development method further includes: running the component command in the first functional component, obtaining the running data of the component command; determining the running result of the component command based on the running data, and generating the running data record of the component command.
[0027] The program development method in this technical solution determines the execution result of the component command based on the execution data of the component command, which ensures the functional accuracy of the component command in the first functional component, and thus ensures the functional integrity and accuracy of the first functional component.
[0028] In the above technical solution, the program development method further includes: obtaining a first functional component from a local database or a cloud database, and obtaining a list of the first components from the local database or the cloud database; determining the first version information of the first functional component based on the list of the first components; and installing the first functional component in the target project based on the first version information.
[0029] The program development method in this technical solution obtains the first functional component through a local database or a cloud database and installs the first functional component in the target project. By using local and cloud databases, the application scope of the first functional component is expanded. At the same time, the installation, updating, and uninstallation functions of the first functional component are realized, reducing the difficulty and cost of upgrading the first functional component, ensuring the accuracy of the upgrade, and reducing the maintenance cost of the first functional component. In addition, seamless upgrades and differentiated updates are realized for projects that use the first functional component.
[0030] In the above technical solution, the program development method further includes: obtaining the script file of the target project; converting the plurality of component commands in the first functional component into a plurality of running instructions according to the script file; running the target project by referencing the plurality of running instructions, and saving the component running information of the first functional component.
[0031] The program development method in this technical solution converts multiple component commands in the first functional component into multiple execution instructions, and then runs the first functional component by referencing multiple execution instructions. This ensures the normal operation of the first functional component, thereby ensuring the workflow functionality of the target project that references the first functional component, optimizing the execution flow of the target project that references the first functional component, and improving the execution efficiency of the target project that references the first functional component. At the same time, by monitoring the execution status of the first functional component through component execution information, errors such as execution abnormalities in the target project that references the first functional component are avoided.
[0032] In the above technical solution, the program development method further includes: obtaining a second functional component, installing the second functional component in a first functional component to update the first functional component; wherein the second functional component is a sub-component in the first functional component; updating the target project according to the updated first functional component, and obtaining the project structure and script file of the updated target project; running the updated target project according to the script file and project structure, and saving the component running information of the updated first functional component.
[0033] The program development method in this technical solution runs the target project through the project structure and script files of the target project, and then debugs the first functional component, ensuring that the first functional component can run normally, thereby ensuring the flow function of the first functional component, and at the same time improving the running efficiency of the target project that references the first functional component.
[0034] In the above technical solution, the program development method further includes: obtaining a third functional component and obtaining a command update list of the target project; determining the target component command in the third functional component based on the command update list; and updating the component command in the target project based on the target component command.
[0035] The program development method in this technical solution obtains a third functional component, then determines the target component command in the third functional component according to the command update list, and then updates the component commands in the target project according to the target component command. This allows the target project to be updated without affecting its running status, improving the smoothness of the target project's upgrade, reducing the maintenance and upgrade costs of the target project, and thus ensuring the user experience.
[0036] According to a second aspect of the present invention, a program development apparatus is provided, comprising: a first processing module for acquiring multiple instruction codes in a software system; the first processing module for further determining an attribute parameter corresponding to any one of the multiple instruction codes; the first processing module for further converting any one instruction code into a component command according to the attribute parameter; and the first processing module for further combining the multiple component commands into a first functional component and installing the first functional component in a target project.
[0037] This technical solution proposes a program development device for a software system. It should be noted that the software system is a computer software system that includes multiple instruction codes. The software system can implement different operation processes through different instruction codes. The instruction codes are the computer codes corresponding to the operation instructions stored in the software system.
[0038] For example, the software system can be specifically an RPA (Robotic Process Automation) system. The RPA system can realize operation processes such as operating a personal finance system or operating a human resources system. The instruction code can be specifically the instruction code stored in the software system to implement the function of adding expense reports. The instruction code can also be specifically the instruction code stored in the software system to implement the function of adding employee personal information.
[0039] Furthermore, the first processing module selects any one of the multiple instruction codes in the software system, adds the corresponding attribute parameters to the instruction code, and combines the attribute parameters to convert the instruction code into a component command.
[0040] It should be noted that a component command is a data collection that includes instruction codes, attribute parameters, and other data parameters. The attribute parameters are the data parameters corresponding to the properties executed in the component command.
[0041] For example, a component command can be specifically a component command that adds an expense report, or a component command that adds employee personal information, and the attribute parameters can be specific attributes such as quantity and type.
[0042] Furthermore, the first processing module sequentially performs data conversion processing on multiple instruction codes to obtain multiple component commands. The first processing module then combines the multiple component commands into a first functional component, wherein the first functional component is a functional component capable of implementing part of the operation process.
[0043] Furthermore, the program development device can install the first functional component in the target project, wherein the target project is a project that can implement a specific process.
[0044] It should be noted that the first functional component can be referenced and run by the target project. Furthermore, the first functional component can form a nested structure with other functional components and can be referenced and run nested within the target project. For example, the target project could specifically be a project that manages the personal information of company employees.
[0045] For example, the first functional component may specifically include component command A, component command B, and component command C. Component command A may specifically be a component command that implements logging into the personal finance system, component command B may specifically be a component command that implements creating a new expense report, and component command C may specifically be a component command that implements submitting an expense report. The first functional component may specifically be a functional component that implements the operation process of logging into the personal finance system, creating a new expense report, and then submitting the new expense report.
[0046] For example, the first functional component can be used in combination with other functional components.
[0047] The program development device in this technical solution converts multiple instruction codes in the software system into multiple component commands, and then combines the multiple component commands into a first functional component. Through the first functional component, the reusability of instruction codes in the software system is improved, the problem of instruction code redundancy is avoided, the development time of the target project that uses the first functional component is shortened, a lot of development resources are saved, and the development cost of the target project that uses the first functional component is reduced.
[0048] According to a third aspect of the present invention, a program development apparatus is provided, comprising a processor and a memory, wherein the memory stores a program or instructions, which, when executed by the processor, implement the steps of the program development method as described in any of the above-described technical solutions. Therefore, this program development apparatus possesses all the beneficial effects of the program development methods in any of the above-described technical solutions, and will not be elaborated further here.
[0049] According to a fourth aspect of the present invention, a readable storage medium is provided on which a program or instructions are stored, which, when executed by a processor, implement the program development method as described in any of the above-described technical solutions. Therefore, this readable storage medium possesses all the beneficial effects of the program development method in any of the above-described technical solutions, which will not be elaborated further here.
[0050] Additional aspects and advantages of the invention will become apparent in the following description or may be learned by practice of the invention. Attached Figure Description
[0051] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:
[0052] Figure 1 One of the flowcharts of the program development method in the first embodiment of the present invention is shown;
[0053] Figure 2 A second flowchart of the program development method according to the first embodiment of the present invention is shown;
[0054] Figure 3 A third flowchart illustrating the program development method in the first embodiment of the present invention is shown;
[0055] Figure 4 The fourth flowchart of the program development method in the first embodiment of the present invention is shown;
[0056] Figure 5 The fifth flowchart of the program development method in the first embodiment of the present invention is shown;
[0057] Figure 6 A schematic diagram of a program development method according to a first embodiment of the present invention is shown;
[0058] Figure 7 A flowchart of the program development method in the first embodiment of the present invention is shown in diagram six.
[0059] Figure 8 A flowchart of the program development method in the first embodiment of the present invention is shown as diagram number seven.
[0060] Figure 9 A structural block diagram of the program development apparatus according to a second embodiment of the present invention is shown;
[0061] Figure 10 One of the schematic diagrams of a program development apparatus according to a second embodiment of the present invention is shown;
[0062] Figure 11 A second schematic diagram of the program development apparatus according to the second embodiment of the present invention is shown;
[0063] Figure 12 A third schematic diagram of the program development apparatus in the second embodiment of the present invention is shown;
[0064] Figure 13 A fourth schematic diagram of a program development apparatus according to a second embodiment of the present invention is shown;
[0065] Figure 14 The fifth schematic diagram of the program development apparatus in the second embodiment of the present invention is shown;
[0066] Figure 15 A structural block diagram of a program development apparatus according to a third embodiment of the present invention is shown. Detailed Implementation
[0067] To better understand the above-mentioned objectives, features, and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments of the present invention and the features thereof can be combined with each other.
[0068] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and therefore the scope of protection of the invention is not limited to the specific embodiments disclosed below.
[0069] The following is combined Figures 1 to 15 The application provides a detailed description of the program development method, program development apparatus, and readable storage medium through specific embodiments and application scenarios.
[0070] The execution subject of the program development method provided by this invention can be a program development device, or it can be determined according to actual usage requirements, and no specific limitation is made here. In order to more clearly describe the program development method provided by this invention, the following description uses a program development device as the execution subject.
[0071] Example 1:
[0072] like Figure 1 As shown, the first embodiment of the present invention provides a program development method, which includes:
[0073] Step 102: Obtain multiple instruction codes from the software system;
[0074] Step 104: Determine the attribute parameters corresponding to any instruction code among multiple instruction codes;
[0075] Step 106: Based on the attribute parameters, convert any instruction code into a component command;
[0076] Step 108: Combine multiple component commands into a first functional component, and install the first functional component in the target project.
[0077] This embodiment proposes a program development apparatus for a software system. It should be noted that the software system is a computer software system that includes multiple instruction codes. The software system can implement different operation processes through different instruction codes. The instruction codes are the computer codes corresponding to the operation instructions stored in the software system.
[0078] For example, the software system can be specifically an RPA (Robotic Process Automation) system. The RPA system can realize operation processes such as operating a personal finance system or operating a human resources system. The instruction code can be specifically the instruction code stored in the software system to implement the function of adding expense reports. The instruction code can also be specifically the instruction code stored in the software system to implement the function of adding employee personal information.
[0079] Furthermore, the program development device selects any one of the multiple instruction codes in the software system, adds attribute parameters corresponding to the instruction code, and combines the attribute parameters to convert the instruction code into component commands.
[0080] It should be noted that a component command is a data collection that includes instruction codes, attribute parameters, and other data parameters. Here, represents the data parameters corresponding to the operation commands in the component command, and the attribute parameters represent the data parameters corresponding to the running attributes in the component command.
[0081] For example, a component command can be specifically a component command that adds an expense report, or a component command that adds employee personal information. Attribute parameters can be specific to attributes such as quantity, range, or permissions.
[0082] Furthermore, the program development device sequentially performs data conversion processing on multiple instruction codes to obtain multiple component commands. The program development device then combines the multiple component commands into a first functional component, wherein the first functional component is a functional component capable of implementing part of the operation process.
[0083] Furthermore, the program development device can install the first functional component in the target project, wherein the target project is a project that can implement a specific process.
[0084] It should be noted that the first functional component can be referenced and run by the target project. Furthermore, the first functional component can form a nested structure with other functional components and can be referenced and run nested within the target project. For example, the target project could specifically be a project that manages the personal information of company employees.
[0085] For example, the first functional component may specifically include component command A, component command B, and component command C. Component command A may specifically be a component command that implements logging into the personal finance system, component command B may specifically be a component command that implements creating a new expense report, and component command C may specifically be a component command that implements submitting an expense report. The first functional component may specifically be a functional component that implements the operation process of logging into the personal finance system, creating a new expense report, and then submitting the new expense report.
[0086] For example, the first functional component can be used in combination with other first functional components.
[0087] For example, the first functional component may be specifically functional component 1, and the first functional component may form a nested structure with functional component 2.
[0088] For example, the first functional component may specifically include folders such as config, dependency, elementlib, excommand, and libprjo. The config folder is a configuration folder that can be used to record all configuration file information of the first functional component. The dependency folder is a dependency folder that can be used to store the dependent component file information of the first functional component and can also be used to support component-based scenarios. The elementlib folder is an element library folder that can be used to record the element library information of the first functional component. The element library is a database that stores the elements of the first functional component. The excommand folder is a component command folder. The component commands of the first functional component can be grouped through multiple folders. Each component command corresponds to a script file. The libprjo folder is a basic information folder that can be used to record basic information such as the component name of the first functional component.
[0089] The program development method in this embodiment converts multiple instruction codes in the software system into multiple component commands, and then combines the multiple component commands into a first functional component. Through the first functional component, the reusability of instruction codes in the software system is improved, the problem of instruction code redundancy is avoided, the development time of the target project that uses the first functional component is shortened, a lot of development resources are saved, and the development cost of the target project that uses the first functional component is reduced.
[0090] like Figure 2 As shown, in any of the above embodiments, the program development method includes:
[0091] Step 202: Obtain multiple instruction codes from the software system;
[0092] Step 204: Determine the attribute parameters corresponding to any instruction code among multiple instruction codes;
[0093] Step 206: Based on the attribute parameters, convert any instruction code into a component command;
[0094] Step 208: Combine multiple component commands into a first functional component, and install the first functional component in the target project.
[0095] Step 210: Obtain the internal variables in the first functional component and determine the first data type of the internal variables;
[0096] Step 212: Determine the second data type of the attribute parameter based on the first data type.
[0097] In this embodiment, the program development device obtains the internal variables in the first functional component and determines the first data type of the internal variables. The internal variables are variable parameters stored inside the first functional component. The internal variables are able to transmit data and interact between the command of the first functional component and the target project. The first data type is the data type of the variable parameters.
[0098] For example, the first data type can be specifically a table, list, dictionary, password, or other similar type.
[0099] Furthermore, there is a corresponding relationship between the data types of the internal variables and attribute parameters in the first functional component. Based on the above correspondence, the program development device determines the second data type of the attribute parameter, wherein the second data type is the data type of the attribute parameter.
[0100] For example, the second data type can be specifically a table, list, dictionary, password, or other similar type.
[0101] For example, the first data type of the internal variable can be a table type, and the second data type of the corresponding attribute parameter can also be a table type.
[0102] The program development method in this technical solution determines the second data type of the attribute parameters based on the first data type of the internal variables, enhancing the extensibility of component commands in the first functional component and thus improving the ease of use of the first functional component. For example... Figure 3 As shown, in any of the above embodiments, the program development method includes:
[0103] Step 302: Obtain multiple instruction codes from the software system;
[0104] Step 304: Determine the attribute parameters corresponding to any instruction code among multiple instruction codes;
[0105] Step 306: Based on the attribute parameters, convert any instruction code into a component command;
[0106] Step 308: Combine multiple component commands into a first functional component, and install the first functional component in the target project;
[0107] Step 310: Run the component command in the first functional component and obtain the execution data of the component command;
[0108] Step 312: Based on the running data, determine the running result of the component command and generate the running data record of the component command.
[0109] In this embodiment, the program development device debugs the component commands in the first functional component to determine the functional accuracy of the component commands.
[0110] Specifically, the program development device runs component commands and collects the execution data of the component commands in real time. The program development device analyzes the execution data of the component commands to determine the execution results of the component commands. At the same time, the program development device processes the execution data to obtain the execution data record of the component commands.
[0111] It should be noted that runtime data refers to the data output by the component command in the running state, runtime result refers to the data result that can represent the accuracy of the component command's function, and runtime data record is a data set of runtime data of the component command.
[0112] For example, the component command in the first functional component can be specifically a component command that implements the function of creating a new expense report. The running data of the component command can be specifically data such as the amount and purpose in the expense report. The running result can be specifically the component command function is normal or the running result can be specifically the component command function is abnormal. The running data record can be specifically the monitoring log of the component command.
[0113] The program development method in this embodiment determines the execution result of the component command based on the execution data of the component command, thereby ensuring the functional accuracy of the component command in the first functional component and thus ensuring the functional integrity and accuracy of the first functional component.
[0114] like Figure 4 As shown, in any of the above embodiments, the program development method includes:
[0115] Step 402: Obtain multiple instruction codes from the software system;
[0116] Step 404: Determine the attribute parameters corresponding to any instruction code among multiple instruction codes;
[0117] Step 406: Based on the attribute parameters, convert any instruction code into a component command;
[0118] Step 408: Combine multiple component commands into a first functional component;
[0119] Step 410: Obtain the first functional component from the local database or cloud database, and obtain the list of the first components from the local database or cloud database.
[0120] Step 412: Determine the first version information of the first functional component based on the first component list;
[0121] Step 414: Based on the first version information, install the first functional component in the target project.
[0122] In this embodiment, the program development device can obtain a first functional component from a local database or a cloud database, and at the same time, obtain a list of the first components from the local database or the cloud database.
[0123] It should be noted that the first functional component can be stored in a local database or a cloud database. The local database is a database located on a local server for storing functional components, and the cloud database is a database located on a cloud server for storing functional components. The first component list is a list of data used to record the version information of the functional components stored in the local database or the cloud database.
[0124] For example, the application development apparatus can request a first functional component from a cloud database via HTTP (a transport protocol).
[0125] Furthermore, the program development device performs data query processing on the first component list to obtain the first version information of the first functional component, wherein the first version information is the version information of the first functional component.
[0126] Furthermore, after obtaining the first functional component, the program development device installs the first functional component into the target project.
[0127] For example, the application development device obtains a first functional component from a local database. The first version information of the first functional component in the local database may specifically be version v2.1, and the target project may specifically be a project that manages the personal information of company employees. For example, while the target project is running or referenced, the application development device cannot uninstall the first functional component from the target project; when the first functional component is not referenced, the application development device can uninstall the first functional component from the target project.
[0128] For example, by publishing the first functional component in different locations, the usage permissions of the first functional component can be set. Specifically, if the first functional component is published in a local database, the usage permissions of the first functional component can be specifically designed for global isolation. If the first functional component is published in a cloud database, the usage permissions of the first functional component can be specifically designed for tenant isolation or global sharing.
[0129] The program development method in this technical solution obtains the first functional component through a local database or a cloud database and installs the first functional component in the target project. By using local and cloud databases, the application scope of the first functional component is expanded. At the same time, the installation, updating, and uninstallation functions of the first functional component are realized, reducing the difficulty and cost of upgrading the first functional component, ensuring the accuracy of the upgrade, and reducing the maintenance cost of the first functional component. In addition, it enables seamless upgrading and differentiated updates of the target project that references the first functional component.
[0130] like Figure 5 As shown, in any of the above embodiments, the program development method includes:
[0131] Step 502: Obtain multiple instruction codes from the software system;
[0132] Step 504: Determine the attribute parameters corresponding to any instruction code among multiple instruction codes;
[0133] Step 506: Based on the attribute parameters, convert any instruction code into a component command;
[0134] Step 508: Combine multiple component commands into a first functional component, and install the first functional component in the target project;
[0135] Step 510: Obtain the script file for the target project;
[0136] Step 512: Based on the script file, convert multiple component commands in the first functional component into multiple execution instructions;
[0137] Step 514: Run the target project by referencing multiple run instructions and save the component run information of the first functional component.
[0138] In this embodiment, the first functional component includes a script file and multiple component commands. The script file is a file data of multiple operation commands. The program development device obtains the script file in the first functional component and then converts the multiple component commands into multiple running instructions based on the script file. The running instructions are operation instructions for running.
[0139] Furthermore, the program development device runs the target project by referencing multiple running instructions, and then references the first functional component. At the same time, when the first functional component is referenced, the program development device obtains and saves the component running information of the first functional component, wherein the component running information is the data information output by the first functional component during runtime.
[0140] For example, the program development device can determine the operating status of the first functional component through the component operation information of the first functional component.
[0141] For example, the first functional component may specifically include component command A, and the program development device converts component command A into a running instruction, which may specifically be a general command.
[0142] For example, such as Figure 6 As shown, a software system may include a command library, and specifically, it may include component commands and execution instructions. Component commands may be specifically as follows: Figure 6 Extended commands in the code, the execution instructions can be specifically as follows: Figure 6 Common commands in the language.
[0143] For example, the process of the program development device running the first functional component can be specifically as follows: First, the program development device loads the script file in the first functional component; second, the program development device parses the first functional component into the system's memory through the script file and generates a component model corresponding to the first functional component. The component model can specifically include multiple component command models; third, the program development device converts the multiple component commands into multiple running instructions based on the multiple component command models. The running instructions can specifically be ordinary commands; fourth, the program development device runs the first functional component by referencing the multiple running instructions according to the component structure of the first functional component. The component structure of the first functional component can specifically be a tree structure.
[0144] The program development method in this embodiment converts multiple component commands in the first functional component into multiple running instructions, and then runs the first functional component by referencing multiple running instructions. This ensures the normal operation of the first functional component, thereby ensuring the flow function of the target project that references the first functional component, optimizing the running flow of the target project that references the first functional component, and improving the running efficiency of the target project that references the first functional component. At the same time, by monitoring the running status of the first functional component through component running information, errors such as running abnormalities in the target project that references the first functional component are avoided.
[0145] like Figure 7 As shown, in any of the above embodiments, the program development method includes:
[0146] Step 702: Obtain multiple instruction codes from the software system;
[0147] Step 704: Determine the attribute parameters corresponding to any instruction code among multiple instruction codes;
[0148] Step 706: Based on the attribute parameters, convert any instruction code into a component command;
[0149] Step 708: Combine multiple component commands into a first functional component, and install the first functional component in the target project;
[0150] Step 710: Obtain the second functional component and install the second functional component into the first functional component to update the first functional component;
[0151] Step 712: Update the target project according to the updated first functional component, and obtain the project structure and script files of the updated target project;
[0152] Step 714: Based on the script file and project structure, run the updated target project and save the component running information of the updated first functional component.
[0153] In this embodiment, the program development device obtains a second functional component from a local database or a cloud database, and installs the second functional component into a first functional component to obtain an updated first functional component, wherein the second functional component is a sub-component of the first functional component.
[0154] Furthermore, the program development device obtains the updated target project by updating the first functional component.
[0155] Furthermore, the program development device obtains the project structure of the first functional component and the second functional component in the target project, and obtains the script file of the target project, wherein the project structure is the structure between multiple functional components in the target project.
[0156] For example, the first functional component can be specifically component A, the second functional component can be specifically component B, and the project structure can be specifically a nested structure. Specifically, the target project contains the first functional component, and the first functional component contains the second functional component.
[0157] Furthermore, the program development device runs the target project according to the project structure and the script file, and then references the first functional component. At the same time, when the first functional component is referenced, the program development device obtains and saves the component operation information of the first functional component, wherein the component operation information is the data information output by the first functional component during runtime.
[0158] For example, during the execution of the target project, the target project is parsed using a stack structure. The paths of the component commands in the first functional component and the component commands in the second functional component are pushed onto the stack in sequence. In the target project, the component commands in the second functional component are executed first, and then the component commands in the first functional component are executed.
[0159] For example, the process of the program development device running the first functional component can be specifically as follows: First, the program development device obtains the script file of the target project and parses the script file into the system's memory. Second, the attribute parameters can specifically be configuration data input by the user. Before the target project is executed, the program development device performs data parsing processing on the externally input attribute parameters, determines the internal variables in the first functional component, assigns the attribute parameters to the internal variables, and obtains the project path of the first functional component. The program development device determines the component structure of the first functional component through the project path. The component structure can specifically be a stack structure. Third, during the execution of the target project, the program development device converts the script file into an execution unit and runs the first functional component through the execution unit. The execution unit is an executable program unit. Fourth, after the target project is executed, the first functional component transmits the component running information to the execution unit and then outputs the component running information through the execution unit. At the same time, multiple component commands are retrieved from the command structure through the project path. Fifth, the program development device collects the component running information of the first functional component and stores the component running information in a log file.
[0160] The program development method in this technical solution runs the target project through the project structure and script files of the target project, and then debugs the first functional component, ensuring that the first functional component can run normally, thereby ensuring the flow function of the first functional component, and at the same time improving the running efficiency of the target project that references the first functional component.
[0161] like Figure 8 As shown, in any of the above embodiments, the program development method includes:
[0162] Step 802: Obtain multiple instruction codes from the software system;
[0163] Step 804: Determine the attribute parameters corresponding to any instruction code among multiple instruction codes;
[0164] Step 806: Based on the attribute parameters, convert any instruction code into a component command;
[0165] Step 808: Combine multiple component commands into a first functional component, and install the first functional component in the target project;
[0166] Step 810: Obtain the third functional component and the command update list of the target project;
[0167] Step 812: Based on the command update list, determine the target component command in the third functional component;
[0168] Step 814: Update the component commands in the target project according to the target component commands.
[0169] In this embodiment, when the target project needs to be updated, the program development device obtains the third functional component from the local database or the cloud database and determines the command update list of the third functional component of the target project. The third functional component is the functional component that needs to be updated, and the command update list is a list of commands used to determine the component that needs to be updated.
[0170] Furthermore, the program development device replaces the files under the target of the target project based on the files contained in the third functional component. Further, the program development device iterates through all component commands in the third functional component according to the command update list, and selects the target component command from the component commands in the third functional component, where the target component command is the component command that needs to be updated.
[0171] Furthermore, the program development device identifies the component commands that need to be updated in the target project and replaces the component commands that need to be updated with the target component commands.
[0172] Furthermore, the program development device updates the script files of the target project according to the target component commands.
[0173] For example, the target project may reference a first functional component, which may specifically include component command A1, component command B1, and component command C1. A third functional component may specifically include component command A1, component command B2, and component command C1. The program development device determines the target component command in the third functional component based on the command update list. The target component command may specifically be component command B2 in the third functional component. For example, the first functional component may specifically include component command A1, component command B1, and component command C1, and the third functional component may specifically include component command A2 and component command C1. The program development device compares the component commands in the first and third functional components to determine if there are component commands in the first functional component that need to be deleted. If there are such commands, the user needs to be prompted to delete them. If the user confirms the deletion, the program development device uninstalls the first functional component and then reinstalls the third functional component. After the third functional component is installed, if other functional components reference the deleted component commands, the user is prompted to handle them as needed.
[0174] For example, updating component commands in the target project can be specifically as follows: First, the program development device obtains a third functional component, performs data parsing processing on the third functional component, and obtains the metadata corresponding to the third functional component. Second, the program development device determines the target component command based on the sequence number of the component commands in the third functional group. Third, the program development device updates the component commands that need to be updated in the target project to the target component commands based on the script file of the third functional component. In this process, the program development device updates the attribute parameters of the component commands in the target project through the metadata corresponding to the third functional component.
[0175] The program development method in this embodiment obtains a third functional component, then determines the target component command in the third functional component according to the command update list, and then updates the component command in the target project according to the target component command. This allows the target project to be updated without affecting its running status, improving the smoothness of the target project's upgrade, reducing the maintenance and upgrade costs of the target project, and thus ensuring the user experience.
[0176] Example 2:
[0177] like Figure 9 As shown, a second embodiment of the present invention provides a program development apparatus, the program development apparatus 900 comprising:
[0178] The first processing module 902 is used to acquire multiple instruction codes from the software system;
[0179] The first processing module 902 is also used to determine the attribute parameters corresponding to any instruction code among multiple instruction codes;
[0180] The first processing module 902 is also used to convert any instruction code into a component command based on the attribute parameters;
[0181] The first processing module 902 is also used to combine multiple component commands into a first functional component and install the first functional component in the target project.
[0182] This embodiment proposes a program development apparatus for a software system. It should be noted that the software system is a computer software system that includes multiple instruction codes. The software system can implement different operation processes through different instruction codes. The instruction codes are the computer codes corresponding to the operation instructions stored in the software system.
[0183] For example, the software system can be specifically an RPA (Robotic Process Automation) system. The RPA system can realize operation processes such as operating a personal finance system or operating a human resources system. The instruction code can be specifically the instruction code stored in the software system to implement the function of adding expense reports. The instruction code can also be specifically the instruction code stored in the software system to implement the function of adding employee personal information.
[0184] Furthermore, the first processing module 902 selects any one of the multiple instruction codes in the software system, adds the corresponding attribute parameters to the instruction code, and combines the attribute parameters to convert the instruction code into a component command.
[0185] It should be noted that a component command is a data collection that includes instruction codes, attribute parameters, and other data parameters. The attribute parameters are the data parameters corresponding to the properties executed in the component command.
[0186] For example, a component command can be specifically a component command that adds an expense report, or a component command that adds employee personal information. Attribute parameters can be specific to attributes such as quantity, range, or permissions.
[0187] Furthermore, the first processing module 902 sequentially performs data conversion processing on multiple instruction codes to obtain multiple component commands. The first processing module 902 then combines the multiple component commands into a first functional component, wherein the first functional component is a functional component capable of implementing part of the operation process.
[0188] For example, the first functional component may specifically include component command A, component command B, and component command C. Component command A may specifically be a component command that implements logging into the personal finance system, component command B may specifically be a component command that implements creating a new expense report, and component command C may specifically be a component command that implements submitting an expense report. The first functional component may specifically be a functional component that implements the operation process of logging into the personal finance system, creating a new expense report, and then submitting the new expense report.
[0189] Furthermore, the program development device can install the first functional component in the target project, wherein the target project is a project that can implement a specific process.
[0190] It should be noted that the first functional component can be referenced and run by the target project. Furthermore, the first functional component can form a nested structure with other functional components and can be referenced and run nested within the target project. For example, the target project could specifically be a project that manages the personal information of company employees.
[0191] For example, the first functional component can be used in combination with other functional components.
[0192] For example, such as Figure 10 As shown, the first processing module 902 can be specifically as follows: Figure 10 The component design center in the software allows for component design, publishing, and uploading. The software system can specifically include a console and a designer.
[0193] For example, such as Figure 11 As shown, the first processing module 902 can be specifically as follows: Figure 11 The component commands in the software encapsulate corresponding functional modules. First, the first processing module 902 enables global support for existing project functions (element library, resources) within the software system. The element library is a database that stores elements of the first functional component. Second, the first processing module 902 enables nested use of the first functional component in edit mode. Third, the first processing module 902 enables real-time execution, debugging, and verification of component commands in the first functional component. Fourth, the first processing module 902 enables variable isolation of component commands in the first functional component. Fifth, the first processing module 902 supports the dynamic generation of attribute parameters (tables, dictionaries, lists, passwords) in the first functional component.
[0194] The program development device in this technical solution converts multiple instruction codes in the software system into multiple component commands, and then combines the multiple component commands into a first functional component. Through the first functional component, the reusability of instruction codes in the software system is improved, the problem of instruction code redundancy is avoided, the development time of the target project that uses the first functional component is shortened, a lot of development resources are saved, and the development cost of the target project that uses the first functional component is reduced.
[0195] In any of the above embodiments, the program development apparatus 900 includes:
[0196] The first processing module 902 is used to obtain the internal variables in the first functional component and determine the first data type of the internal variables;
[0197] The first processing module 902 is also used to determine the second data type of the attribute parameter based on the first data type.
[0198] The program development device in this technical solution determines the second data type of the attribute parameters based on the first data type of the internal variables, thereby enhancing the extensibility of the component commands in the first functional component and thus enhancing the ease of application of the first functional component.
[0199] In any of the above embodiments, the program development apparatus 900 includes:
[0200] The first processing module 902 is used to run component commands in the first functional component and obtain the running data of the component commands;
[0201] The first processing module 902 is also used to determine the execution result of the component command based on the execution data, and generate the execution data record of the component command.
[0202] In this embodiment, the program development device determines the execution result of the component command based on the execution data of the component command, thereby ensuring the functional accuracy of the component command in the first functional component and thus ensuring the functional integrity and accuracy of the first functional component.
[0203] In any of the above embodiments, the program development apparatus 900 includes:
[0204] The second processing module is used to obtain the first functional component in the local database or cloud database, and to obtain the list of the first components in the local database or cloud database.
[0205] The second processing module is also used to determine the first version information of the first functional component based on the first component list;
[0206] The second processing module is also used to install the first functional component in the target project based on the first version information.
[0207] For example, such as Figure 10 As shown, the second processing module can be specifically as follows: Figure 10 The custom component center allows for the installation and upgrade of primary functional components, and the local database can be specifically configured as follows: Figure 10 The local component library can store the first list of components. The local component library provides global isolation for the collector, while the cloud database can be specifically configured as... Figure 10 The remote component library can store a list of the first components. The cloud database can specifically include the enterprise center and the official website. The enterprise center can be isolated for tenants, while the official website can be shared globally. The second processing module can also extend the reference and upgrade it into a component extension center. The second processing module can obtain the first functional components from the cloud database through HTTP requests (a transmission protocol).
[0208] For example, such as Figure 12 As shown, the second processing module can be specifically as follows: Figure 12The custom component center has the following features: First, the local database can be a local designer. The second processing module can install the first functional component in the local database and manage its version through the first component list. The first functional component can be a local component. Second, the cloud database can be a database of a remote enterprise tenant. The second processing module can upgrade and isolate permissions for the first functional component in the cloud database and update the first component list in the cloud database. The first functional component can be a remote component. Third, the target project can be a robot project. The second processing module can perform differentiated upgrades on the first functional component in the target project and update the second component list in the target project. The first functional component can be an installed component.
[0209] The program development device in this technical solution obtains the first functional component through a local database or a cloud database and installs the first functional component in the target project. By using both local and cloud databases, the application scope of the first functional component is expanded. At the same time, it realizes the functions of installing, updating, and uninstalling the first functional component, reducing the difficulty and cost of upgrading the first functional component, ensuring the accuracy of the upgrade, and reducing the maintenance cost of the first functional component. Furthermore, it enables seamless upgrades and differentiated updates of target projects that reference the first functional component.
[0210] In any of the above embodiments, the program development apparatus 900 includes:
[0211] The third processing module is used to obtain the script file of the target project;
[0212] The third processing module is also used to convert multiple component commands in the first functional component into multiple execution instructions based on the script file;
[0213] The third processing module is also used to run the target project by referencing multiple running instructions and to save the component running information of the first functional component.
[0214] In this embodiment, the program development device converts multiple component commands in the first functional component into multiple running instructions, and then runs the first functional component by referencing the multiple running instructions. This ensures the normal operation of the first functional component, thereby ensuring the flow function of the target project that references the first functional component, optimizing the running flow of the target project that references the first functional component, and improving the running efficiency of the target project that references the first functional component. At the same time, by monitoring the running status of the first functional component through component running information, errors such as running abnormalities in the target project that references the first functional component are avoided.
[0215] In any of the above embodiments, the program development apparatus 900 includes:
[0216] The third processing module is used to obtain the second functional component and install the second functional component into the first functional component to update the first functional component;
[0217] The third processing module is also used to update the target project based on the updated first functional component, and to obtain the project structure and script files of the updated target project;
[0218] The third processing module is also used to run the updated target project according to the script file and project structure, and save the component running information of the updated first functional component.
[0219] For example, such as Figure 13 As shown, the third processing module may specifically include a variable parser and a runtime engine. Among the multiple attribute parameters, there may be attribute parameter 1 and attribute parameter 2. Before the execution of the first functional component, the third processing module may receive external parameters of the component, including external variable 1 corresponding to attribute parameter 1. During the execution of the first functional component, the script file of the first functional component is executed. The third processing module converts the input external variable 1 into internal variable 1, and performs data parsing processing on internal variable 1 through the variable parser. Then, it obtains internal variable 2 through the runtime engine. After the execution of the first functional component, the third processing module converts internal variable 2 into external variable 2 corresponding to attribute parameter 2, and outputs external variable 2 to the external parameters of the component.
[0220] For example, such as Figure 14 As shown, the third processing module may specifically include a runtime engine, and the command structure of the first functional component may be specifically as follows: Figure 14 In the scenario, the nested structure, i.e., the component-within-a-component structure, is as follows: P (project) includes C1 (component), and C1 (component) includes Cc1 (sub-component). Specifically, before the execution of the first functional component, the third processing module puts P, C1, and Cc1 into the command structure in sequence. During the execution of the first functional component, the third processing module constructs an execution unit through the script file of the first functional component. The first functional component is run through the execution unit and in combination with the command structure. The third processing module can obtain and save the component running information of the first functional component. Here, the execution unit is an executable program unit. After the execution of the first functional component, the third processing module retrieves P, C1, and Cc1 from the command structure in sequence.
[0221] The program development device in this technical solution runs the target project through the project structure and script files of the target project, and then debugs the first functional component, ensuring that the first functional component can run normally, thereby ensuring the flow function of the first functional component, and at the same time improving the running efficiency of the target project that references the first functional component.
[0222] In any of the above embodiments, the program development apparatus 900 includes:
[0223] The second processing module is used to obtain the third functional component and the command update list of the target project;
[0224] The second processing module is also used to update the list based on the commands and determine the target component command in the third functional component;
[0225] The second processing module is also used to update the component commands in the target project based on the target component commands.
[0226] In this embodiment, the program development device obtains the third functional component, first updates the files in the target project directory, then determines the target component command in the third functional component according to the command update list, and then updates the component command in the first functional component according to the target component command, and updates the script file of the target project. The first functional component is updated without affecting its running status, which improves the upgrade smoothness of the first functional component, reduces the maintenance and upgrade cost of the first functional component, and thus ensures the user experience.
[0227] Example 3:
[0228] like Figure 15 As shown, in a third embodiment of the present invention, a program development apparatus is provided. The program development apparatus 1500 includes a processor 1502 and a memory 1504. The memory 1504 stores a program or instructions, which, when executed by the processor 1502, implement the steps of the program development method as described in any of the above-described technical solutions. Therefore, this program development apparatus possesses all the beneficial effects of the program development method in any of the above-described technical solutions, and will not be elaborated further here.
[0229] Example 4:
[0230] A fourth embodiment of the present invention provides a readable storage medium on which a program is stored. When the program is executed by a processor, it implements the program development method as described in any of the above embodiments, and thus has all the beneficial technical effects of the program development method described in any of the above embodiments.
[0231] Among them, readable storage media include read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0232] It should be clarified that in the claims, description, and accompanying drawings of this invention, the term "plural" refers to two or more. Unless otherwise explicitly defined, the terms "upper," "lower," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing the invention and simplifying the description process, not to indicate or imply that the device or element referred to must have the described specific orientation, or be constructed and operated in a specific orientation. Therefore, these descriptions should not be construed as limiting the invention. The terms "connection," "installation," "fixing," etc., should be interpreted broadly. For example, "connection" can be a fixed connection between multiple objects, a detachable connection between multiple objects, or an integral connection; it can be a direct connection between multiple objects or an indirect connection between multiple objects through an intermediate medium. For those skilled in the art, the specific meaning of the above terms in this invention can be understood based on the specific circumstances of the above data.
[0233] In the claims, description, and accompanying drawings of this invention, the terms "one embodiment," "some embodiments," "specific embodiment," etc., refer to a specific feature, structure, material, or characteristic described in connection with that embodiment or example, which is included in at least one embodiment or example of the invention. In the claims, description, and accompanying drawings of this invention, illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0234] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A program development method characterized by comprising: The program development method includes: Obtain multiple instruction codes from the software system; Determine the attribute parameters corresponding to any one of the plurality of instruction codes; Based on the attribute parameters, convert any one of the instruction codes into a component command; Combine multiple component commands into a first functional component, and install the first functional component in the target project; The program development method also includes: Obtain the internal variables in the first functional component and determine the first data type of the internal variables; Based on the first data type, determine the second data type of the attribute parameter; The internal variables are the variable parameters stored internally within the first functional component; The program development method also includes: Obtain the script file of the target project; According to the script file, the multiple component commands in the first functional component are converted into multiple execution instructions; By referencing the multiple running instructions, the target project is run, and the component running information of the first functional component is saved; The attribute parameters are configuration data input by the user. The attribute parameters are assigned to internal variables, and the project path of the first functional component is obtained. The component structure of the first functional component is determined by the project path. Before saving the component runtime information of the first functional component, multiple component commands are retrieved from the command structure of the first functional component through the project path.
2. The program development method according to claim 1, characterized by, The program development method also includes: Run the component commands in the first functional component and obtain the execution data of the component commands; Based on the running data, determine the running result of the component command and generate the running data record of the component command.
3. The program development method according to claim 1 or 2, characterized by, Installing the first functional component in the target project specifically includes: Obtain the first functional component from the local database or the cloud database, and obtain the list of the first components from the local database or the cloud database; Based on the first component list, determine the first version information of the first functional component; Based on the first version information, the first functional component is installed in the target project.
4. The program development method according to claim 1 or 2, characterized by, The program development method also includes: Obtain a second functional component and install the second functional component into the first functional component to update the first functional component; wherein the second functional component is a sub-component in the first functional component; Based on the updated first functional component, update the target project and obtain the updated project structure and script files of the target project; Based on the script file and the project structure, run the updated target project and save the component running information of the updated first functional component.
5. The program development method according to claim 1 or 2, characterized by, The program development method also includes: Obtain the third functional component and the command update list of the target project; Based on the command update list, determine the target component command in the third functional component; Update the component commands in the target project according to the target component commands.
6. A program development device characterized by comprising: The program development apparatus, employing the program development method as described in any one of claims 1 to 5, comprises: The first processing module is used to acquire multiple instruction codes from the software system; The first processing module is also used to determine the attribute parameters corresponding to any one of the plurality of instruction codes; The first processing module is further configured to convert any one of the instruction codes into component commands based on the attribute parameters; The first processing module is also used to combine multiple component commands into a first functional component and install the first functional component in the target project.
7. A program development device characterized by comprising: include: processor; A memory that stores programs or instructions, wherein a processor, when executing programs or instructions in memory, implements the steps of the program development method as described in any one of claims 1 to 5.
8. A readable storage medium, characterized by, A program or instructions are stored on a readable storage medium, which, when executed by a processor, implement the steps of the program development method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Method for achieving combined command in ePLC (embedded programmable logic controller) figure programming platform
CN104407861A
Construction method and device of application program template and storage medium
CN113590107A