Development method and development device of process robot and computer program product
By analyzing business needs and generating visual flow charts, the process robot code is automatically generated, which solves the problem of inefficient development caused by complex processes in the existing technology, and achieves fast and efficient process robot development.
Patent Information
- Application Number
- CN202411917955.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-03-28
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The complex process of the development process robot in the prior art leads to low development efficiency, and the traditional development methods have communication problems between users and developers, resulting in the development results that do not meet the needs of users and take a long time.
By analyzing the business needs of the target business scenario, generating business processes, and configuring components in response to the selection operations of the graphical interface according to the business process, a visual flow chart is generated. The visual flow chart displays the pre-encapsulated functional modules and operation modules in geometric shapes according to the business process, and automatically generates the process robot code, and finally calls and compiles the code to obtain the process robot.
It significantly reduces the complexity and threshold of process robot development, improves development efficiency, and allows non-IT personnel to participate in development, directly generates corresponding robot code, reduces the need for manual encoding, and realizes the rapid development of process robots.
Smart Images

Figure CN119718295A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of process robot development, and in particular to a process robot development method, a development device, a computer-readable storage medium and a computer program product. Background Art
[0002] As an agile, efficient and cost-controlled digital transformation method, RPA (Robotic Process Automation) has been gradually applied to the power industry. At present, RPA robots developed by third-party developers have begun to be used in the power system to perform some repetitive process operations, but there are still the following shortcomings: 1. There is a certain threshold for the development of RPA robots. Although RPA robots have lowered the programming threshold to a certain extent, there is still a certain threshold for ordinary employees. 2. The traditional process robot development method has communication problems between users and developers. The developed robots may not fully meet the needs of users and take a long time. Secondary modifications and function expansions still rely on external parties and are subject to many restrictions. In the traditional information system development process, even for some scenarios with simple business logic and single functions, such as adding, deleting, modifying and checking a single table, in order to realize these simple business scenarios, it often requires a lot of manpower to develop, including system design, UI design, back-end development, front-end development, testing, etc. Summary of the invention
[0003] The main purpose of the present application is to provide a process robot development method, a development device, a computer-readable storage medium and a computer program product, so as to at least solve the problem of low development efficiency caused by the complex process of developing process robots in the prior art.
[0004] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for developing a process robot is provided, including: analyzing the business requirements of the target business scenario and generating a business process; configuring components in response to the selection operation of the graphical interface according to the business process to generate a visual flowchart, wherein the selection operation is used to select pre-packaged functional modules and operation modules, and the functional modules at least include an automatic login module, an automatic form filling module and an automatic data acquisition module, and the operation modules at least include the system's operation modules for the browser, EXCEL and user interface, and the visual flowchart is a visual diagram that displays the functional modules and the operation modules in the form of geometric graphics according to the business process, and there is a mapping relationship between the geometric graphics and the actual code; according to the visual flowchart, the process robot code is automatically generated; the process robot code is called and compiled to obtain a process robot.
[0005] Optionally, the business requirements of the target business scenario are analyzed to generate a business process, including: identifying the target task in the target business scenario; analyzing the logical flow and operation steps of the target task; using a structured requirement analysis method according to the logical flow and the operation steps to decompose the target task into multiple different subtasks, and configure the input parameters and output parameters of each subtask; and generating the overall business process based on all the subtasks based on the logical flow and the operation steps.
[0006] Optionally, components are configured in response to a selection operation of a graphical interface according to the business process to generate a visual flowchart, including: determining a process start node on a visual canvas according to the business process, the process start node being the starting point of the business process; displaying the selected function module or operation module on the visual canvas in response to the selection operation using a drag-and-drop method; connecting all function modules or operation modules according to the direction of the data flow or control flow of the business process to form an execution order of the business process, and generating the visual flowchart at the same time.
[0007] Optionally, after configuring components according to the business process in response to selection operations on a graphical interface to generate a visual flowchart, the method further includes: performing a grammar check on the visual flowchart; and correcting grammatical errors in the visual flowchart if the grammar check fails.
[0008] Optionally, the process robot code is called and compiled to obtain the process robot, including: obtaining the process configuration file and the application entry file of the process robot from the template component library, the process configuration file at least including the visual flowchart; calling the command line tool to compile and generate the executable file of the process robot according to the process robot code, the process configuration file and the application entry file, the executable file also includes a configuration file, and the configuration file is a configuration parameter information file of each component; obtaining the dynamic link library file based on the dependency relationship, the dependency relationship at least includes the dependency relationship between the components at runtime; and packaging and generating the process robot according to the executable file and the dynamic link library file.
[0009] Optionally, after calling and compiling the process robot code to generate the process robot, the method also includes: configuring a planned task for the process robot, the planned task at least including the time to execute the task, the task content and the task flow, and the task flow is the flow corresponding to the visual flowchart; controlling the timer of the operation manager to calculate the running time of the process robot to execute all the planned tasks within the set historical time, the process robot and the operation manager communicate through a high-performance remote procedure call protocol, and the operation manager manages multiple process robots; when the running time reaches the start time, controlling the timer to start the planned task at the current moment; controlling the operation manager to query the process configuration content of the planned task in the database to generate the startup parameters of the process robot; starting the process robot based on the startup parameters, and controlling the process robot to execute the planned task, and at the same time controlling the operation manager to record and store the operation log of the process robot, the operation log is a log file generated by the process robot during operation.
[0010] Optionally, controlling the process robot to execute the planned task includes: checking the node configuration of all process components according to the visual flowchart, the process components being components corresponding to the functional modules or the operation modules represented by the geometric figures in the visual flowchart; in the case where the node configurations of all the process components are incorrect, issuing an error message and terminating the operation, the error message being used to prompt that an error has occurred in the code of the process components in the visual flowchart; in the case where the node configurations of all the process components are correct, running the corresponding nodes in sequence in the order of the process components until all the nodes in the visual flowchart have completed the operation, one process component corresponding to one node.
[0011] According to another aspect of the present application, a development device for a process robot is provided, the device comprising: a first generation unit, for analyzing business requirements of a target business scenario and generating a business process; a second generation unit, for performing component configuration in response to a selection operation of a graphical interface according to the business process and generating a visual flow chart, the selection operation being used to select pre-packaged functional modules and operating modules, the functional modules comprising at least an automatic login module, an automatic form filling module and an automatic data acquisition module, the operating modules comprising at least an operating module of the system for a browser, EXCEL and a user interface, the visual flow chart being a visual diagram that displays the functional modules and the operating modules in the form of geometric figures according to the business process, and a mapping relationship between the geometric figures and the actual code; a third generation unit, for automatically generating a process robot code according to the visual flow chart; and a calling compilation unit, for calling and compiling the process robot code to obtain a process robot.
[0012] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the methods described.
[0013] According to another aspect of the present application, a computer program product is provided, comprising computer instructions, wherein when the computer instructions are executed by a processor, any one of the methods described above is implemented.
[0014] Applying the technical solution of the present application, in the development method of the process robot, first, the business requirements of the target business scenario are analyzed to generate a business process; then, according to the above business process, component configuration is performed in response to the selection operation of the graphical interface to generate a visual flow chart, the above selection operation is used to select pre-packaged functional modules and operation modules, the above functional modules at least include an automatic login module, an automatic form filling module and an automatic data acquisition module, the above operation modules at least include system operation modules for the browser, EXCEL and user interface, the above visual flow chart is a visual diagram that displays the above functional modules and the above operation modules in the form of geometric graphics according to the above business process, and there is a mapping relationship between the above geometric graphics and the actual code; thereafter, according to the above visual flow chart, the process robot code is automatically generated; finally, the above process robot code is called and compiled to obtain the process robot. The present application analyzes the business scenarios to be implemented, defines relevant processes according to the business scenario requirements, generates business processes, uses a variety of geometric shapes, displays a single functional module in a rectangular form under the diagram, displays the logical judgment process in a diamond form, displays the loop process in a trapezoidal form, uses an arrow to represent the process between multiple business logics, uses arrows of different colors to represent two branches of logical judgment, and other visual displays. The flow chart and actual code generation mainly rely on the reflection machine of the .NET Framework to achieve. The corresponding robot code can be directly generated according to the visual flow chart, and the process robot can be obtained by calling the edge of the robot code. The user only needs to use the drag-and-drop method to reference the module and configure the input and output parameters to complete the process of developing a process robot without writing a lot of configuration or code. The present application solves the problem of low development efficiency caused by the complex process of developing process robots in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A hardware structure block diagram of a mobile terminal for developing a process robot according to an embodiment of the present application is shown;
[0016] Figure 2 A schematic diagram of a process flow of a process robot development method provided according to an embodiment of the present application is shown;
[0017] Figure 3 A schematic diagram of a generation process robot provided according to an embodiment of the present application is shown;
[0018] Figure 4 A schematic diagram of the operation principle of an operation manager provided according to an embodiment of the present application is shown;
[0019] Figure 5A software process operation principle diagram provided according to an embodiment of the present application is shown;
[0020] Figure 6 A structural block diagram of a process robot development device provided according to an embodiment of the present application is shown.
[0021] The above drawings include the following reference numerals:
[0022] 102, processor; 104, memory; 106, transmission device; 108, input and output devices. DETAILED DESCRIPTION
[0023] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0026] As introduced in the background technology, there is a certain threshold in the development of RPA robots in the prior art. Although RPA robots have lowered the programming threshold to a certain extent, there is still a certain threshold for ordinary employees. In addition, the traditional process robot development method has communication problems between users and developers. The developed robots may not fully meet the needs of users and are time-consuming. Secondary modifications and function expansions still rely on external parties and are subject to many restrictions. In order to solve the problem of low development efficiency caused by the complex process of developing process robots in the prior art, the embodiments of the present application provide a process robot development method, development device, computer-readable storage medium and computer program product.
[0027] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0028] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure diagram of a mobile terminal for executing a development method of a process robot according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0029] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the development method of the process robot in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0030] In this embodiment, a method for developing a process robot that runs on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0031] Figure 2 FIG. 1 is a flow chart of a method for developing a process robot according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:
[0032] Step S201: Analyze the business requirements of the target business scenario and generate a business process.
[0033] Specifically, collect and understand the specific requirements of the business scenario, including but not limited to the starting point, end point and all operational steps involved in the business process, convert the collected business requirements into a business process design, clarify the logic and data flow of each operation step, and ensure the integrity and logic of the process. Clear business requirements and process design can guide subsequent component configuration and code output, avoiding repetition and uncertainty in the development process.
[0034] Step S202, configure components in response to selection operations on the graphical interface according to the above business process, and generate a visual flowchart. The above selection operation is used to select pre-packaged functional modules and operation modules. The above functional modules include at least an automatic login module, an automatic form filling module and an automatic data acquisition module. The above operation modules include at least system operation modules for the browser, EXCEL and user interface. The above visual flowchart is a visualization diagram that displays the above functional modules and the above operation modules in the form of geometric graphics according to the above business process. There is a mapping relationship between the above geometric graphics and the actual code.
[0035] Specifically, in the graphical interface, according to the business process diagram, you can drag the pre-packaged functional modules to the canvas and then configure the parameters of these modules. Use arrows or connecting lines to connect these modules in the order of the business process to form a visual flow chart. Each geometric figure (rectangle, diamond, trapezoid, etc.) has a direct mapping relationship with the class or function of the actual code, ensuring that the graphical configuration can be directly converted into code. The graphical configuration interface allows non-IT personnel to participate in development and understand and build business processes through intuitive operations, greatly reducing the threshold of development technology.
[0036] Step S203: automatically generate process robot code according to the above visual flowchart.
[0037] Specifically, it is mainly based on the workflow engine (WorkFlow) of the .NET Framework. The rectangle represents the workflow business, the diamond represents the conditional judgment, and the trapezoid represents the process storage. In the design phase, the process designer designs the business flow and saves it (represented by the trapezoid), and at runtime, the process server reads the records and executes them (represented by the rectangle and diamond). The flowchart design and actual code generation mainly rely on the reflection machine of the .NET Framework. The flowchart information is stored in the process configuration file (usually XML). The process designer reads the process DLL and configuration, loads the process DLL, uses the configuration rules for reflection, and generates source code according to the rules. The system reads and parses the visual flowchart, identifies each module and the connection relationship between them, and automatically generates the corresponding functional code based on the parsing results. These codes will follow the specifications and standards of .NET. Automatic code generation greatly reduces the need for manual coding, making the development process more efficient.
[0038] Step S204, calling and compiling the above process robot code to obtain the process robot.
[0039] Specifically, by calling the compilation command (such as MSBuild.exe for C#), the generated process robot code is compiled, and all necessary dependency packages, such as dynamic link library (Dll) files, are automatically managed and introduced during the compilation process to ensure that the generated robot can run normally. After the compilation is completed, the generated executable file and related resources are deployed to the specified operating environment to obtain the final process robot.
[0040] In this embodiment, first, the business requirements of the target business scenario are analyzed and a business process is generated; then, according to the above business process, component configuration is performed in response to the selection operation of the graphical interface to generate a visual flowchart, the above selection operation is used to select pre-packaged functional modules and operation modules, the above functional modules at least include an automatic login module, an automatic form filling module and an automatic data acquisition module, the above operation modules at least include system operation modules for the browser, EXCEL and user interface, the above visual flowchart is a visualization diagram that displays the above functional modules and the above operation modules in the form of geometric graphics according to the above business process, and there is a mapping relationship between the above geometric graphics and the actual code; thereafter, according to the above visual flowchart, the process robot code is automatically generated; finally, the above process robot code is called and compiled to obtain the process robot. The present application analyzes the business scenarios to be implemented, defines relevant processes according to the business scenario requirements, generates business processes, uses a variety of geometric shapes, displays a single functional module in a rectangular form under the diagram, displays the logical judgment process in a diamond form, displays the loop process in a trapezoidal form, uses an arrow to represent the process between multiple business logics, uses arrows of different colors to represent two branches of logical judgment, and other visual displays. The flow chart and actual code generation mainly rely on the reflection machine of the .NET Framework to achieve. The corresponding robot code can be directly generated according to the visual flow chart, and the robot code can be called to obtain the process robot. The user only needs to use the drag-and-drop method to reference the module and configure the input and output parameters to complete the process of developing a process robot without writing a lot of configuration or code. The present application solves the problem of low development efficiency caused by the complex process of developing process robots in the prior art.
[0041] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the process robot development method of the present application will be described in detail below in conjunction with specific embodiments.
[0042] In order to improve the degree of process automation, in an optional implementation, the above step S201 includes:
[0043] Step S2011, identifying the target task in the above target business scenario;
[0044] Step S2012, analyzing the logic flow and operation steps of the above target task;
[0045] Step S2013, using a structured requirements analysis method according to the above logic flow and the above operation steps, decompose the above target task into a plurality of different subtasks, and configure input parameters and output parameters of each of the above subtasks;
[0046] Step S2014: Generate the overall business process according to all the subtasks based on the logic flow and operation steps.
[0047] In the above embodiment, the target tasks that need to be automated in the business scenario are clearly defined, such as data collection, report generation, data synchronization between systems, etc., and each target task is described in detail, including the task name, purpose. Input and output. Draw a detailed logical flow chart for each target task, including the order and conditions of each operation, decompose each logical process into specific operation steps, such as logging into the system, filling in forms and obtaining data, etc., identify potential abnormalities or errors in the process, and plan corresponding processing strategies. Based on the operation steps, decompose the target task into multiple independently executable subtasks, such as logging into the system, filling in data and obtaining data, etc., determine the input parameters (such as login account, data source address) and output parameters (such as operation results) of each subtask. And record the type and format of these parameters, encapsulate each subtask into an independent module, which can be reused by other processes. Recombine all subtasks according to the logical process map to form a completed business process, ensure that the business process covers all key links of the business scenario, and improve the degree of process automation.
[0048] In order to speed up the development of the process robot, in an optional implementation, the above step S202 includes:
[0049] Step S2021, determining a process start node on the visualization canvas according to the business process, where the process start node is the starting point of the business process;
[0050] Step S2022, in response to the selection operation using the dragging method, displaying the selected function module or operation module on the visualization canvas;
[0051] Step S2023, connecting all functional modules or operation modules according to the direction of the data flow or control flow of the above business process to form the execution sequence of the above business process, and generating the above visual flowchart at the same time.
[0052] In the above embodiment, a new process design area is created on the visual canvas of the development environment to ensure that there is enough space to place and connect different modules. A start node module is selected from the pre-packaged module library. The module is the starting point of the entire business process and may contain the setting of initialization variables or parameters. By responding to the mouse operation, the start phase module is dragged to the specified position of the canvas, and the start node module is configured, such as setting the initial state, input parameters, etc., to ensure that the process can be started accurately. In the module library, a functional module or an operation module is selected by dragging, such as an automatic login module, a data acquisition module, and a condition judgment module. The selected module is dragged to the canvas and placed at the subsequent position of the start node or other placed modules to indicate the next operation of the process. The connection tool or automatic connection function on the canvas is used to connect the execution order of the module installation business process to form a logical data flow or control flow, and the input and output parameters of each placed module are configured to ensure that the data transfer and logical judgment between modules are accurate. The automatically generated visual flowchart not only serves as a reference for the development process, but also facilitates subsequent maintenance and improvement, allowing team members to quickly understand the entire process, and business personnel can also participate in process design, improving the matching degree between the process and business needs. The intuitive graphical interface reduces the need for manual coding and speeds up the development of process robots.
[0053] In order to significantly improve the development efficiency and execution stability of the process robot, in an optional implementation, after the above step S202, the method further includes:
[0054] Step S301, performing syntax check on the above visual flow chart;
[0055] Step S302: if the grammar check fails, correct the grammar errors in the visual flowchart.
[0056] In the above embodiment, a complete set of grammar checking rules is defined at the bottom layer of the development platform. These rules are based on the specifications of the flowchart and the execution logic of the process robot, such as the correctness of module connections, the rationality of parameter configuration, the integrity of loops and logical judgments, etc. After the flowchart design is completed or modified, the rule engine is automatically triggered to perform grammar checking. The rule engine will check each module and its connection in the flowchart one by one to ensure that they meet the predefined grammar rules. If a grammatical error is found, the rule engine can accurately locate the module or connection where the error is located and provide specific error information. Once an error is found during the inspection process, the development platform should immediately highlight the error module or connection in the interface, and provide detailed error information and suggested modification methods. By grammar checking and correcting errors in the flowchart, the development efficiency and execution stability of the process robot are significantly improved, and the reuse and sharing of the process robot are promoted.
[0057] In order to improve the efficiency of process robot generation, in an optional implementation, the above step S204 includes:
[0058] Step S2041, obtaining a process configuration file and an application entry file of the process robot from a template component library, wherein the process configuration file at least includes the visual flowchart;
[0059] Step S2042, calling a command line tool to compile and generate an executable file of the process robot according to the process robot code, the process configuration file and the application entry file, wherein the executable file also includes a configuration file, which is a configuration parameter information file of each component;
[0060] Step S2043, obtaining a dynamic link library file based on the dependency relationship, wherein the dependency relationship at least includes the dependency relationship between components at runtime;
[0061] Step S2044, packaging and generating the above-mentioned process robot according to the above-mentioned executable file and the above-mentioned dynamic link library file.
[0062] In the above embodiment, if Figure 3As shown, in the development environment or resource folder, a template component library is prepared in advance, which includes a basic process configuration file, an application entry file (such as the Program.cs file in a C# project), and basic framework and library files. When the development is completed and verified, the process configuration file is obtained from the template component library. The file describes the structure of the visual flowchart, including the location, connection method, and parameter configuration of each module. At the same time, the application entry file is obtained as the starting point for the execution of the process robot code. Usually, this file contains the main function of the process startup. The process robot code generated by the process configuration file is integrated with the application entry file to ensure the integrity and correctness of the code. During the compilation process, the parameter information in the process configuration file is embedded in the executable file. These configuration information include the configuration parameters of each component in the flowchart. The integrated code is compiled using command line tools such as MSBuild (.NET Framework's build tool) or the compiler of the corresponding language. After the compilation is completed, the executable file (.exe) of the process robot and the configuration file containing the configuration information are generated. The configuration file may be in XML or JSON format. During the compilation process, the components and libraries referenced in the process robot code are analyzed to determine the dependencies between them. Based on the dependencies, the necessary dynamic link files (Dll files) are obtained from the template component library or other resources. These files contain additional functions or resources required for the process robot to run. In the directory where the generated executable file is located, all necessary dynamic link library files are copied to ensure that the process robot can access all the libraries at run time. The compiled executable file, configuration file, and all necessary dynamic link library files are placed in a folder to form all the resources required for the process robot to run. All related files are packaged into a process robot, which realizes rapid deployment, reduces the complexity of manual configuration, can run stably in different environments, and improves the breadth and applicability of applications. Before packaging, the software robot will uniformly check all dependency conditions at run time, including dependencies in the development stage and all component dependencies at run time. Finally, the software robot directory is generated by programmatic means and using the .NET Framework packaging tool, which contains the corresponding dependent dll or dependent dll name records. When the software robot is started, the software robot running environment will load the corresponding dll.For example, the present invention has a template project generated in the resource\Template folder. When generating, the content of the Program.cs file in the original template is replaced with new parameters, and at the same time, the process configuration file is also replaced with a new one, and then the Microsoft.NET\Framework\v4.0.30319\MSBuild.exe file of the .net framework is called, and the litexe.csproj project in the compile template is generated to generate the robot software. Then, by calculating the dependency relationship, the related dll files (dynamic link library files) and other files are copied to the new folder, and a new complete independent robot software can be generated. Of course, those skilled in the art can adjust the files according to the actual development situation.
[0063] In order to improve the response speed of the business task, in an optional implementation manner, after the above step S204, the method further includes:
[0064] Step S401, configuring a planned task for the process robot, wherein the planned task at least includes the time, content and flow of executing the task, and the task flow is the flow corresponding to the visual flowchart;
[0065] Step S402, controlling the timer of the operation manager to calculate the running time of the process robot to execute all the planned tasks within the set historical time, the process robot and the operation manager communicate with each other through a high-performance remote procedure call protocol, and the operation manager manages multiple process robots;
[0066] Step S403, when the running time reaches the start time, controlling the timer to start the planned task at the current moment;
[0067] Step S404, controlling the operation manager to query the process configuration content of the planned task in the database to generate the startup parameters of the process robot;
[0068] Step S405, starting the process robot based on the startup parameters, and controlling the process robot to execute the planned tasks, and at the same time controlling the operation manager to record and store the operation log of the process robot, where the operation log is a log file generated by the process robot during operation.
[0069] In the above embodiment, if Figure 4As shown in the figure, on the interface of the operation manager, create a scheduled task for the process robot, which includes selecting the process to be executed, setting the execution time (such as execution at 3 am every day), defining the task content (such as data synchronization, report generation, etc.), and configuring the parameters required for the process robot to execute the task according to the task content, such as data source, target file path, account information, etc. Save the configured scheduled task to the database of the operation manager to ensure that the details and parameter information of the task are persistently stored. There is a timer in the operation manager, which will calculate the running time of all tasks in the last day according to the configuration, and then start the specified task when the judgment time is up. Timing / timing is implemented using the component quartz, and the timing is set through standardized quartz statements. The operation manager performs network synchronization regularly, and the software robot and the operation manager will synchronize periodically. When the task starts, the operation manager will query the database for relevant configurations, obtain the process configuration content, and then generate the robot startup parameters, pass the generated startup parameters to the process robot as its startup input, and then start the process runner litrobot.exe file through the command line. The process runner will connect to the websocket (i.e. the high-performance remote procedure call protocol mentioned above) service of the operation manager, and request the content of the process configuration file from the server. After requesting the task data, it will officially start running. At the same time, the runner will submit the log file generated during the operation to the operation manager, and the operation manager will display the data log on the interface. When a task is completed, the process runner will automatically close, and the operation manager will record the operation log to the database, and then continue to wait for the next task to run. Real-time monitoring of the execution of process robots is achieved, which improves the response speed of business tasks. It should be noted that the operation manager manages all process robots. Figure 4 The execution robot in the table represents the process robot that is currently starting execution.
[0070] It is also necessary to explain that the integrity and consistency of data are ensured through the cache design of the robot software. The software robot opens two caches. The first is the data cache of the receiving manager, which only receives but does not process, so as to ensure that data is not lost; the second is the processing cache, which copies the first cache and then processes it one by one. The two caches ensure data consistency and integrity through the lock machine.
[0071] In order to ensure the correctness of the process design and the stable operation of the process robot, in an optional implementation manner, the above step S405 includes:
[0072] Step S4051, checking the node configurations of all process components according to the visual flowchart, where the process components are components corresponding to the functional modules or the operation modules represented by the geometric figures in the visual flowchart;
[0073] Step S4052, when the node configurations of all the process components are incorrect, an error message is issued and the operation is terminated, wherein the error message is used to prompt that an error occurs in the code of the process component in the visual flowchart;
[0074] Step S4053, when the configurations of the above nodes of all the above process components are correct, the corresponding nodes are run in sequence according to the order of the above process components until all nodes in the above visual flowchart are completed, and one of the above process components corresponds to one of the above nodes.
[0075] In the above embodiment, if Figure 5 As shown in the figure, when the process robot is running, the inspection engine is automatically started, the corresponding configuration information in the visual flowchart is read and parsed, and the configuration of each process component node is checked. The entire process has a unique starting node. From the starting node, first check whether all node configurations are correct. If not, an error is reported to terminate the process robot operation, and the specific location and error type of the error node are immediately recorded. If correct, start looking for the first running node. After finding the node, run the current node, calculate the next node after the operation is completed, and execute the operation of the process component corresponding to the node. During the execution process, the system will track the execution status of each node and perform corresponding error handling when an exception occurs. After each node is executed, the system will determine whether the node has completed its scheduled task to ensure the integrity of the process and the accurate execution of the business logic. When all nodes are executed in sequence and completed, the process robot automatically ends the execution process and records the execution status and results of the complete process. There are many types of nodes, such as function nodes, judgment nodes, loop nodes, etc. Among them, the loop conditions in the code are one-to-one corresponding, that is, there is a start and end of the loop. The loop node in the diagram has an inverted graph, which indicates that it corresponds one-to-one with the upright loop (indicating the beginning of the loop), and the inverted loop graph indicates the end of the loop. There is also a reference process, which allows you to run another process within a process.
[0076] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0077] The embodiment of the present application also provides a development device for a process robot. It should be noted that the development device for the process robot of the embodiment of the present application can be used to execute the development method for the process robot provided in the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0078] The following is an introduction to the development device of the process robot provided in the embodiment of the present application.
[0079] Figure 6 is a structural block diagram of a process robot development device according to an embodiment of the present application. Figure 6 As shown, the device comprises:
[0080] The first generating unit 10 is used to analyze the business requirements of the target business scenario and generate a business process.
[0081] Specifically, collect and understand the specific requirements of the business scenario, including but not limited to the starting point, end point and all operational steps involved in the business process, convert the collected business requirements into a business process design, clarify the logic and data flow of each operation step, and ensure the integrity and logic of the process. Clear business requirements and process design can guide subsequent component configuration and code output, avoiding repetition and uncertainty in the development process.
[0082] The second generation unit 20 is used to configure components in response to the selection operation of the graphical interface according to the above-mentioned business process, and generate a visual flow chart. The above-mentioned selection operation is used to select pre-packaged functional modules and operation modules. The above-mentioned functional modules at least include an automatic login module, an automatic form filling module and an automatic data acquisition module. The above-mentioned operation modules at least include the system's operation modules for the browser, EXCEL and user interface. The above-mentioned visual flow chart is a visual diagram that displays the above-mentioned functional modules and the above-mentioned operation modules in the form of geometric graphics according to the above-mentioned business process. There is a mapping relationship between the above-mentioned geometric graphics and the actual code.
[0083] Specifically, in the graphical interface, according to the business process diagram, you can drag the pre-packaged functional modules to the canvas and then configure the parameters of these modules. Use arrows or connecting lines to connect these modules in the order of the business process to form a visual flow chart. Each geometric figure (rectangle, diamond, trapezoid, etc.) has a direct mapping relationship with the class or function of the actual code, ensuring that the graphical configuration can be directly converted into code. The graphical configuration interface allows non-IT personnel to participate in development and understand and build business processes through intuitive operations, greatly reducing the threshold of development technology.
[0084] The third generating unit 30 is used to automatically generate the process robot code according to the above-mentioned visual flowchart.
[0085] Specifically, it is mainly based on the workflow engine (WorkFlow) of the .NET Framework. The rectangle represents the workflow business, the diamond represents the conditional judgment, and the trapezoid represents the process storage. In the design phase, the process designer designs the business flow and saves it (represented by the trapezoid), and at runtime, the process server reads the records and executes them (represented by the rectangle and diamond). The flowchart design and actual code generation mainly rely on the reflection machine of the .NET Framework. The flowchart information is stored in the process configuration file (usually XML). The process designer reads the process DLL and configuration, loads the process DLL, uses the configuration rules for reflection, and generates source code according to the rules. The system reads and parses the visual flowchart, identifies each module and the connection relationship between them, and automatically generates the corresponding functional code based on the parsing results. These codes will follow the specifications and standards of .NET. Automatic code generation greatly reduces the need for manual coding, making the development process more efficient.
[0086] The calling compilation unit 40 is used to call and compile the above process robot code to obtain the process robot.
[0087] Specifically, by calling the compilation command (such as MSBuild.exe for C#), the generated process robot code is compiled, and all necessary dependency packages, such as dynamic link library (Dll) files, are automatically managed and introduced during the compilation process to ensure that the generated robot can run normally. After the compilation is completed, the generated executable file and related resources are deployed to the specified operating environment to obtain the final process robot.
[0088] In this embodiment, the first generation unit is used to analyze the business needs of the target business scenario and generate a business process; the second generation unit is used to configure components in response to the selection operation of the graphical interface according to the above business process to generate a visual flow chart, the above selection operation is used to select pre-packaged functional modules and operation modules, the above functional modules at least include an automatic login module, an automatic form filling module and an automatic data acquisition module, the above operation modules at least include the system's operation modules for the browser, EXCEL and user interface, the above visual flow chart is a visualization diagram that displays the above functional modules and the above operation modules in the form of geometric graphics according to the above business process, and there is a mapping relationship between the above geometric graphics and the actual code; the third generation unit is used to automatically generate a process robot code according to the above visual flow chart; the calling compilation unit is used to call and compile the above process robot code to obtain a process robot. The present application analyzes the business scenarios to be implemented, defines relevant processes according to the business scenario requirements, generates business processes, uses a variety of geometric shapes, displays a single functional module in a rectangular form under the diagram, displays the logical judgment process in a diamond form, displays the loop process in a trapezoidal form, uses an arrow to represent the process between multiple business logics, uses arrows of different colors to represent two branches of logical judgment, and other visual displays. The flow chart and actual code generation mainly rely on the reflection machine of the .NET Framework to achieve. The corresponding robot code can be directly generated according to the visual flow chart, and the robot code can be called to obtain the process robot. The user only needs to use the drag-and-drop method to reference the module and configure the input and output parameters to complete the process of developing a process robot without writing a lot of configuration or code. The present application solves the problem of low development efficiency caused by the complex process of developing process robots in the prior art.
[0089] In order to improve the degree of process automation, in an optional implementation manner, the first generating unit includes:
[0090] An identification module, used to identify target tasks in the above target business scenarios;
[0091] An analysis module is used to analyze the logical flow and operation steps of the above-mentioned target tasks;
[0092] A decomposition module is used to decompose the target task into a plurality of different subtasks according to the above logic flow and the above operation steps using a structured demand analysis method, and configure input parameters and output parameters of each of the above subtasks;
[0093] The first generating module is used to generate the overall business process according to all the subtasks, based on the logical process and operation steps.
[0094] In the above embodiment, the target tasks that need to be automated in the business scenario are clearly defined, such as data collection, report generation, data synchronization between systems, etc., and each target task is described in detail, including the task name, purpose. Input and output. Draw a detailed logical flow chart for each target task, including the order and conditions of each operation, decompose each logical process into specific operation steps, such as logging into the system, filling in forms and obtaining data, etc., identify potential abnormalities or errors in the process, and plan corresponding processing strategies. Based on the operation steps, decompose the target task into multiple independently executable subtasks, such as logging into the system, filling in data and obtaining data, etc., determine the input parameters (such as login account, data source address) and output parameters (such as operation results) of each subtask. And record the type and format of these parameters, encapsulate each subtask into an independent module, which can be reused by other processes. Recombine all subtasks according to the logical process map to form a completed business process, ensure that the business process covers all key links of the business scenario, and improve the degree of process automation.
[0095] In order to speed up the development of the process robot, in an optional implementation, the second generation unit includes:
[0096] A determination module, used to determine a process start node on a visualization canvas according to the business process, where the process start node is a starting point of the business process;
[0097] A response module, configured to display the selected function module or operation module on the visualization canvas in response to the selection operation in a dragging manner;
[0098] The second generation module is used to connect all functional modules or operation modules according to the direction of the data flow or control flow of the above business process to form the execution sequence of the above business process and generate the above visual flow chart.
[0099] In the above embodiment, a new process design area is created on the visual canvas of the development environment to ensure that there is enough space to place and connect different modules. A start node module is selected from the pre-packaged module library. The module is the starting point of the entire business process and may contain the setting of initialization variables or parameters. By responding to the mouse operation, the start phase module is dragged to the specified position of the canvas, and the start node module is configured, such as setting the initial state, input parameters, etc., to ensure that the process can be started accurately. In the module library, a functional module or an operation module is selected by dragging, such as an automatic login module, a data acquisition module, and a condition judgment module. The selected module is dragged to the canvas and placed at the subsequent position of the start node or other placed modules to indicate the next operation of the process. The connection tool or automatic connection function on the canvas is used to connect the execution order of the module installation business process to form a logical data flow or control flow, and the input and output parameters of each placed module are configured to ensure that the data transfer and logical judgment between modules are accurate. The automatically generated visual flowchart not only serves as a reference for the development process, but also facilitates subsequent maintenance and improvement, allowing team members to quickly understand the entire process, and business personnel can also participate in process design, improving the matching degree between the process and business needs. The intuitive graphical interface reduces the need for manual coding and speeds up the development of process robots.
[0100] In order to significantly improve the development efficiency and execution stability of the process robot, in an optional implementation, the device further includes:
[0101] A verification unit, configured to perform syntax verification on the visual flowchart after configuring components according to the business process in response to the selection operation of the graphical interface and generating the visual flowchart;
[0102] The correction unit is used to correct the grammatical errors in the above-mentioned visual flow chart when the above-mentioned grammatical check fails.
[0103] In the above embodiment, a complete set of grammar checking rules is defined at the bottom layer of the development platform. These rules are based on the specifications of the flowchart and the execution logic of the process robot, such as the correctness of module connections, the rationality of parameter configuration, the integrity of loops and logical judgments, etc. After the flowchart design is completed or modified, the rule engine is automatically triggered to perform grammar checking. The rule engine will check each module and its connection in the flowchart one by one to ensure that they meet the predefined grammar rules. If a grammatical error is found, the rule engine can accurately locate the module or connection where the error is located and provide specific error information. Once an error is found during the inspection process, the development platform should immediately highlight the error module or connection in the interface, and provide detailed error information and suggested modification methods. By grammar checking and correcting errors in the flowchart, the development efficiency and execution stability of the process robot are significantly improved, and the reuse and sharing of the process robot are promoted.
[0104] In order to improve the efficiency of process robot generation, in an optional implementation manner, the calling compilation unit includes:
[0105] A first acquisition module is used to acquire a process configuration file and an application entry file of the process robot from a template component library, wherein the process configuration file at least includes the visual flowchart;
[0106] A compilation module, used to call a command line tool to compile and generate an executable file of the process robot according to the process robot code, the process configuration file and the application entry file. The executable file also includes a configuration file, which is a configuration parameter information file of each component;
[0107] A second acquisition module is used to acquire a dynamic link library file based on dependency relationships, where the dependency relationships at least include dependency relationships between components at runtime;
[0108] The third generation module is used to package and generate the above-mentioned process robot according to the above-mentioned executable file and the above-mentioned dynamic link library file.
[0109] In the above embodiment, if Figure 3As shown, in the development environment or resource folder, a template component library is prepared in advance, which includes a basic process configuration file, an application entry file (such as the Program.cs file in a C# project), and basic framework and library files. When the development is completed and verified, the process configuration file is obtained from the template component library. The file describes the structure of the visual flowchart, including the location, connection method, and parameter configuration of each module. At the same time, the application entry file is obtained as the starting point for the execution of the process robot code. Usually, this file contains the main function of the process startup. The process robot code generated by the process configuration file is integrated with the application entry file to ensure the integrity and correctness of the code. During the compilation process, the parameter information in the process configuration file is embedded in the executable file. These configuration information include the configuration parameters of each component in the flowchart. The integrated code is compiled using command line tools such as MSBuild (.NET Framework's build tool) or the compiler of the corresponding language. After the compilation is completed, the executable file (.exe) of the process robot and the configuration file containing the configuration information are generated. The configuration file may be in XML or JSON format. During the compilation process, the components and libraries referenced in the process robot code are analyzed to determine the dependencies between them. Based on the dependencies, the necessary dynamic link files (Dll files) are obtained from the template component library or other resources. These files contain additional functions or resources required for the process robot to run. In the directory where the generated executable file is located, all necessary dynamic link library files are copied to ensure that the process robot can access all the libraries at run time. The compiled executable file, configuration file, and all necessary dynamic link library files are placed in a folder to form all the resources required for the process robot to run. All related files are packaged into a process robot, which realizes rapid deployment, reduces the complexity of manual configuration, can run stably in different environments, and improves the breadth and applicability of applications. Before packaging, the software robot will uniformly check all dependency conditions at run time, including dependencies in the development stage and all component dependencies at run time. Finally, the software robot directory is generated by programmatic means and using the .NET Framework packaging tool, which contains the corresponding dependent dll or dependent dll name records. When the software robot is started, the software robot running environment will load the corresponding dll.For example, the present invention has a template project generated in the resource\Template folder. When generating, the content of the Program.cs file in the original template is replaced with new parameters, and at the same time, the process configuration file is also replaced with a new one, and then the Microsoft.NET\Framework\v4.0.30319\MSBuild.exe file of the .net framework is called, and the litexe.csproj project in the compile template is generated to generate the robot software. Then, by calculating the dependency relationship, the related dll files (dynamic link library files) and other files are copied to the new folder, and a new complete independent robot software can be generated. Of course, those skilled in the art can adjust the files according to the actual development situation.
[0110] In order to improve the response speed of the business task, in an optional implementation manner, the device further includes:
[0111] A configuration unit, configured to configure a planned task for the process robot after calling and compiling the process robot code to generate the process robot, wherein the planned task at least includes the time of executing the task, the task content and the task flow, and the task flow is the flow corresponding to the visual flowchart;
[0112] A first control unit is used to control the timer of the operation manager to calculate the running time of the process robot to execute all the planned tasks within the set historical time, the process robot and the operation manager communicate through a high-performance remote procedure call protocol, and the operation manager manages multiple process robots;
[0113] A second control unit is used to control the timer to start the planned task at the current moment when the running time reaches the start time;
[0114] A third control unit is used to control the operation manager to query the process configuration content of the planned task in the database to generate the startup parameters of the process robot;
[0115] The fourth control unit is used to start the above-mentioned process robot based on the above-mentioned startup parameters, and control the above-mentioned process robot to execute the above-mentioned planned tasks, and at the same time control the above-mentioned operation manager to record and store the operation log of the above-mentioned process robot. The above-mentioned operation log is a log file generated by the above-mentioned process robot during operation.
[0116] In the above embodiment, if Figure 4As shown in the figure, on the interface of the operation manager, create a scheduled task for the process robot, which includes selecting the process to be executed, setting the execution time (such as execution at 3 am every day), defining the task content (such as data synchronization, report generation, etc.), and configuring the parameters required for the process robot to execute the task according to the task content, such as data source, target file path, account information, etc. Save the configured scheduled task to the database of the operation manager to ensure that the details and parameter information of the task are persistently stored. There is a timer in the operation manager, which will calculate the running time of all tasks in the last day according to the configuration, and then start the specified task when the judgment time is up. Timing / timing is implemented using the component quartz, and the timing is set through standardized quartz statements. The operation manager performs network synchronization regularly, and the software robot and the operation manager will synchronize periodically. When the task starts, the operation manager will query the database for relevant configurations, obtain the process configuration content, and then generate the robot startup parameters, pass the generated startup parameters to the process robot as its startup input, and then start the process runner litrobot.exe file through the command line. The process runner will connect to the websocket (i.e. the high-performance remote procedure call protocol mentioned above) service of the operation manager, and request the content of the process configuration file from the server. After requesting the task data, it will officially start running. At the same time, the runner will submit the log file generated during the operation to the operation manager, and the operation manager will display the data log on the interface. When a task is completed, the process runner will automatically close, and the operation manager will record the operation log to the database, and then continue to wait for the next task to run. Real-time monitoring of the execution of process robots is achieved, which improves the response speed of business tasks. It should be noted that the operation manager manages all process robots. Figure 4 The execution robot in the table represents the process robot that is currently starting execution.
[0117] It is also necessary to explain that the integrity and consistency of data are ensured through the cache design of the robot software. The software robot opens two caches. The first is the data cache of the receiving manager, which only receives but does not process, so as to ensure that data is not lost; the second is the processing cache, which copies the first cache and then processes it one by one. The two caches ensure data consistency and integrity through the lock machine.
[0118] In order to ensure the correctness of the process design and the stable operation of the process robot, in an optional implementation manner, the fourth control unit includes:
[0119] A verification module, used to verify the node configuration of all process components according to the visual flowchart, where the process components are components corresponding to the functional modules or the operation modules represented by the geometric figures in the visual flowchart;
[0120] An error reporting module is used to issue an error message and terminate the operation when the configuration of the nodes of all the process components is incorrect. The error message is used to prompt that there is an error in the code of the process component in the visual flowchart;
[0121] The execution module is used to run the corresponding nodes in sequence according to the order of the above process components until all nodes in the above visual flowchart are completed when the above node configurations of all the above process components are correct, and one of the above process components corresponds to one of the above nodes.
[0122] In the above embodiment, if Figure 5 As shown in the figure, when the process robot is running, the inspection engine is automatically started, the corresponding configuration information in the visual flowchart is read and parsed, and the configuration of each process component node is checked. The entire process has a unique starting node. From the starting node, first check whether all node configurations are correct. If not, an error is reported to terminate the process robot operation, and the specific location and error type of the error node are immediately recorded. If correct, start looking for the first running node. After finding the node, run the current node, calculate the next node after the operation is completed, and execute the operation of the process component corresponding to the node. During the execution process, the system will track the execution status of each node and perform corresponding error handling when an exception occurs. After each node is executed, the system will determine whether the node has completed its scheduled task to ensure the integrity of the process and the accurate execution of the business logic. When all nodes are executed in sequence and completed, the process robot automatically ends the execution process and records the execution status and results of the complete process. There are many types of nodes, such as function nodes, judgment nodes, loop nodes, etc. Among them, the loop conditions in the code are one-to-one corresponding, that is, there is a start and end of the loop. The loop node in the diagram has an inverted graph, which indicates that it corresponds one-to-one with the upright loop (indicating the beginning of the loop), and the inverted loop graph indicates the end of the loop. There is also a reference process, which allows you to run another process within a process.
[0123] The process robot development device includes a processor and a memory. The first generation unit, the second generation unit, and the third generation unit are stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions. The modules are all located in the same processor; or, the modules are located in different processors in any combination.
[0124] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the problem of low development efficiency caused by the complex process of developing process robots in the prior art can be solved by adjusting kernel parameters.
[0125] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0126] An embodiment of the present invention provides a computer-readable storage medium, which includes a stored program, wherein when the program is run, the device where the computer-readable storage medium is located is controlled to execute the process robot development method.
[0127] Specifically, the development methods of process robots include:
[0128] Step S201, analyzing the business requirements of the target business scenario and generating a business process;
[0129] Step S202, configuring components in response to the selection operation of the graphical interface according to the above business process, generating a visual flow chart, the above selection operation is used to select pre-packaged functional modules and operating modules, the above functional modules at least include an automatic login module, an automatic form filling module and an automatic data acquisition module, the above operating modules at least include system operation modules for browsers, EXCEL and user interfaces, the above visual flow chart is a visual diagram that displays the above functional modules and the above operating modules in the form of geometric figures according to the above business process, and there is a mapping relationship between the above geometric figures and the actual code;
[0130] Step S203, automatically generating a process robot code according to the above visual flowchart;
[0131] Step S204, calling and compiling the above process robot code to obtain the process robot.
[0132] An embodiment of the present invention provides a processor, which is used to run a program, wherein the program executes the process robot development method when running.
[0133] Specifically, the development methods of process robots include:
[0134] Step S201, analyzing the business requirements of the target business scenario and generating a business process;
[0135] Step S202, configuring components in response to the selection operation of the graphical interface according to the above business process, generating a visual flow chart, the above selection operation is used to select pre-packaged functional modules and operating modules, the above functional modules at least include an automatic login module, an automatic form filling module and an automatic data acquisition module, the above operating modules at least include system operation modules for browsers, EXCEL and user interfaces, the above visual flow chart is a visual diagram that displays the above functional modules and the above operating modules in the form of geometric figures according to the above business process, and there is a mapping relationship between the above geometric figures and the actual code;
[0136] Step S203, automatically generating a process robot code according to the above visual flowchart;
[0137] Step S204, calling and compiling the above process robot code to obtain the process robot.
[0138] An embodiment of the present invention provides a process robot development system, the process robot development system includes a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:
[0139] Step S201, analyzing the business requirements of the target business scenario and generating a business process;
[0140] Step S202, configuring components in response to the selection operation of the graphical interface according to the above business process, generating a visual flow chart, the above selection operation is used to select pre-packaged functional modules and operating modules, the above functional modules at least include an automatic login module, an automatic form filling module and an automatic data acquisition module, the above operating modules at least include system operation modules for browsers, EXCEL and user interfaces, the above visual flow chart is a visual diagram that displays the above functional modules and the above operating modules in the form of geometric figures according to the above business process, and there is a mapping relationship between the above geometric figures and the actual code;
[0141] Step S203, automatically generating a process robot code according to the above visual flowchart;
[0142] Step S204, calling and compiling the above process robot code to obtain the process robot.
[0143] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:
[0144] Step S201, analyzing the business requirements of the target business scenario and generating a business process;
[0145] Step S202, configuring components in response to the selection operation of the graphical interface according to the above business process, generating a visual flow chart, the above selection operation is used to select pre-packaged functional modules and operating modules, the above functional modules at least include an automatic login module, an automatic form filling module and an automatic data acquisition module, the above operating modules at least include system operation modules for browsers, EXCEL and user interfaces, the above visual flow chart is a visual diagram that displays the above functional modules and the above operating modules in the form of geometric figures according to the above business process, and there is a mapping relationship between the above geometric figures and the actual code;
[0146] Step S203, automatically generating a process robot code according to the above visual flowchart;
[0147] Step S204, calling and compiling the above process robot code to obtain the process robot.
[0148] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0149] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0150] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0151] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0152] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0153] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0154] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0155] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0156] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0157] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0158] 1) The development method of the process robot of the present application first analyzes the business requirements of the target business scenario and generates a business process; then, according to the above business process, components are configured in response to the selection operation of the graphical interface to generate a visual flow chart, the above selection operation is used to select pre-packaged functional modules and operation modules, the above functional modules at least include an automatic login module, an automatic form filling module and an automatic data acquisition module, the above operation modules at least include the system's operation modules for the browser, EXCEL and user interface, the above visual flow chart is a visual diagram that displays the above functional modules and the above operation modules in the form of geometric graphics according to the above business process, and there is a mapping relationship between the above geometric graphics and the actual code; thereafter, according to the above visual flow chart, the process robot code is automatically generated; finally, the above process robot code is called and compiled to obtain the process robot. The present application analyzes the business scenarios to be implemented, defines relevant processes according to the business scenario requirements, generates business processes, uses a variety of geometric shapes, displays a single functional module in a rectangular form under the diagram, displays the logical judgment process in a diamond form, displays the loop process in a trapezoidal form, uses an arrow to represent the process between multiple business logics, uses arrows of different colors to represent two branches of logical judgment, and other visual displays. The flow chart and actual code generation mainly rely on the reflection machine of the .NET Framework to achieve. The corresponding robot code can be directly generated according to the visual flow chart, and the robot code can be called to obtain the process robot. The user only needs to use the drag-and-drop method to reference the module and configure the input and output parameters to complete the process of developing a process robot without writing a lot of configuration or code. The present application solves the problem of low development efficiency caused by the complex process of developing process robots in the prior art.
[0159] 2) The development device of the process robot of the present application comprises a first generation unit for analyzing the business requirements of the target business scenario and generating a business process; a second generation unit for performing component configuration in response to the selection operation of the graphical interface according to the above business process to generate a visual flow chart, wherein the above selection operation is used to select pre-packaged functional modules and operation modules, wherein the above functional modules at least include an automatic login module, an automatic form filling module and an automatic data acquisition module, and the above operation modules at least include the system's operation modules for the browser, EXCEL and user interface, and the above visual flow chart is a visual diagram that displays the above functional modules and the above operation modules in the form of geometric graphics according to the above business process, and there is a mapping relationship between the above geometric graphics and the actual code; a third generation unit for automatically generating a process robot code according to the above visual flow chart; and a calling compilation unit for calling and compiling the above process robot code to obtain a process robot. The present application analyzes the business scenarios to be implemented, defines relevant processes according to the business scenario requirements, generates business processes, uses a variety of geometric shapes, displays a single functional module in a rectangular form under the diagram, displays the logical judgment process in a diamond form, displays the loop process in a trapezoidal form, uses an arrow to represent the process between multiple business logics, uses arrows of different colors to represent two branches of logical judgment, and other visual displays. The flow chart and actual code generation mainly rely on the reflection machine of the .NET Framework to achieve. The corresponding robot code can be directly generated according to the visual flow chart, and the robot code can be called to obtain the process robot. The user only needs to use the drag-and-drop method to reference the module and configure the input and output parameters to complete the process of developing a process robot without writing a lot of configuration or code. The present application solves the problem of low development efficiency caused by the complex process of developing process robots in the prior art.
[0160] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for developing a process robot, characterized in that: include: Analyze the business requirements of the target business scenario and generate business processes; According to the business process, component configuration is performed in response to a selection operation of a graphical interface to generate a visual flow chart, wherein the selection operation is used to select pre-packaged functional modules and operating modules, wherein the functional modules at least include an automatic login module, an automatic form filling module, and an automatic data acquisition module, and the operating modules at least include system operating modules for a browser, EXCEL, and a user interface, and the visual flow chart is a visual diagram that displays the functional modules and the operating modules in a geometrical form according to the business process, and there is a mapping relationship between the geometrical figure and the actual code; According to the visual flowchart, automatically generate process robot code; The process robot code is called and compiled to obtain the process robot.
2. The method according to claim 1, characterized in that Analyze the business requirements of the target business scenario and generate business processes, including: Identifying target tasks in the target business scenario; Analyze the logical flow and operation steps of the target task; Using a structured requirements analysis method according to the logic flow and the operation steps, the target task is decomposed into a plurality of different subtasks, and input parameters and output parameters of each subtask are configured; The overall business process is generated according to all the subtasks based on the logical process and operation steps.
3. The method according to claim 1, characterized in that Performing component configuration in response to a selection operation on a graphical interface according to the business process to generate a visual flow chart includes: Determine a process start node on a visualization canvas according to the business process, wherein the process start node is a starting point of the business process; In response to the selection operation using the dragging method, displaying the selected functional module or operation module on the visualization canvas; All functional modules or operation modules are connected according to the direction of the data flow or control flow of the business process to form the execution sequence of the business process and generate the visual flowchart at the same time.
4. The method according to claim 1, characterized in that: After configuring components according to the business process in response to the selection operation of the graphical interface and generating a visual flow chart, the method further includes: Performing grammar checking on the visual flow chart; When the grammar check fails, the grammar error in the visual flow chart is corrected.
5. The method according to claim 1, characterized in that The process robot code is called and compiled to obtain the process robot, including: Acquire a process configuration file and an application entry file of the process robot from a template component library, wherein the process configuration file at least includes the visual flowchart; The command line tool is called according to the process robot code, the process configuration file and the application entry file to compile and generate an executable file of the process robot, wherein the executable file also includes a configuration file, which is a configuration parameter information file of each component; Acquire a dynamic link library file based on dependency relationships, wherein the dependency relationships at least include dependency relationships between components at runtime; The process robot is generated by packaging the executable file and the dynamic link library file.
6. The method according to claim 1, characterized in that After calling and compiling the process robot code to generate the process robot, the method further includes: Configure a planned task for the process robot, wherein the planned task at least includes a time for executing the task, task content, and task flow, and the task flow is a flow corresponding to the visual flowchart; A timer controlling the operation manager calculates the running time of the process robot executing all the planned tasks within a set historical time, the process robot communicates with the operation manager via a high-performance remote procedure call protocol, and the operation manager manages a plurality of the process robots; When the running time reaches the starting time, controlling the timer to start the planned task at the current moment; Controlling the operation manager to query the process configuration content of the planned task in the database to generate the startup parameters of the process robot; The process robot is started based on the startup parameters, and the process robot is controlled to execute the planned task. Meanwhile, the operation manager is controlled to record and store the operation log of the process robot. The operation log is a log file generated by the process robot during operation.
7. The method according to claim 6, characterized in that Controlling the process robot to execute the planned task includes: Checking the node configurations of all process components according to the visual flowchart, wherein the process components are components corresponding to the functional modules or the operation modules represented by the geometric figures in the visual flowchart; In the case that the node configurations of all the process components are incorrect, an error message is issued and the operation is terminated, wherein the error message is used to prompt that an error occurs in the code of the process component in the visual flowchart; When the node configurations of all the process components are correct, the corresponding nodes are run in sequence according to the order of the process components until all the nodes in the visual flowchart are completed, and one process component corresponds to one node.
8. A process robot development device, characterized in that: The device comprises: A first generating unit, used to analyze the business requirements of the target business scenario and generate a business process; A second generating unit is used to configure components in response to a selection operation of a graphical interface according to the business process, and generate a visual flow chart, wherein the selection operation is used to select pre-packaged functional modules and operating modules, wherein the functional modules at least include an automatic login module, an automatic form filling module, and an automatic data acquisition module, and the operating modules at least include system operating modules for a browser, EXCEL, and a user interface, and the visual flow chart is a visual diagram that displays the functional modules and the operating modules in a geometrical form according to the business process, and there is a mapping relationship between the geometrical figure and the actual code; A third generating unit, configured to automatically generate a process robot code according to the visual flowchart; The calling compilation unit is used to call and compile the process robot code to obtain the process robot.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 7.
10. A computer program product comprising computer instructions, characterized in that When the computer instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Visual program generation method and device
CN104331294A
Method for achieving IVR business flow based on visual IVR flow editor
CN105739954A
Business process development method and system
CN105988815A
Method for generating codes based on visual page configuration
CN117289923A
RPA application generation method and device, equipment, medium and product
CN119003063A