Power grid task execution method, device and system
Through a unified task allocation terminal and multiple RPA execution machines, the problems of high RPA deployment and maintenance costs and low efficiency in power grid technology are solved, and more efficient task execution and resource allocation are achieved.
Patent Information
- Application Number
- CN202410700931.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-10-08
AI Technical Summary
In existing power grid technology, the deployment and maintenance costs of Robotic Process Automation (RPA) at different terminals are high, and RPA at different terminals cannot cooperate with each other, resulting in low task execution efficiency.
By uniformly setting up the task allocation terminal and multiple RPA execution machines, the task allocation terminal determines the tasks that meet the delivery conditions from the preset task model list, and allocates task resources according to the task parameters of the RPA execution machines, so that the RPA execution machines cooperate with each other. , improve work efficiency.
It reduces the deployment and maintenance costs of RPA, improves task execution efficiency, and enables multiple RPA execution machines to cooperate with each other on one or more terminals to achieve more efficient task processing.
Smart Images

Figure CN118747583A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power grid technology, and in particular to a power grid task execution method, device and system. Background Art
[0002] With the rapid development of power grid technology, the number of power supply units and power users has increased dramatically, generating a massive amount of power consumption information. In order to monitor the operating status of the power supply system, it is necessary to collect, calculate, process, summarize, and update the complex power consumption information to summarize and organize various types of power consumption information, so that power grid staff can intuitively grasp the operating status of the power supply system based on the summarized and organized power consumption information.
[0003] In related technologies, Robotic Process Automation (RPA) is usually deployed on different terminals to replace manual operations. By changing the execution program inside RPA, RPA can be made to perform different tasks to summarize and organize various types of electricity consumption information. However, deploying RPA on different terminals separately leads to high deployment and maintenance costs, and RPAs on different terminals receive user instructions separately and cannot cooperate with each other, resulting in low task execution efficiency. Summary of the invention
[0004] The embodiments of the present invention provide a method, device and system for executing power grid tasks to reduce deployment and maintenance costs and improve task execution efficiency.
[0005] In a first aspect, an embodiment of the present invention provides a power grid task execution method, which is applied to a task allocation terminal, where the task allocation terminal communicates with multiple RPA executors; the multiple RPA executors run on one or more terminals; the method includes:
[0006] Receive task parameters reported by each RPA execution machine;
[0007] Detecting the task status of each task in a preset task model list, and determining tasks that meet the conditions for issuing; wherein the preset task model list includes: the task status of multiple tasks and the task resources of each task;
[0008] Based on the task parameters reported by each RPA executor, determine the task resources corresponding to the tasks assigned to each RPA executor from the tasks that meet the delivery conditions, and deliver the task resources to each RPA executor accordingly, so that each RPA executor executes the task according to the received task resources, and feeds back the task execution results to the task allocation terminal;
[0009] Receive the task execution results fed back by each RPA executor, and based on the task execution results, update the task status of the corresponding task in the task model list.
[0010] In a possible implementation, the task parameters include: a task name and a task batch;
[0011] Based on the task parameters reported by each RPA executor, the task resources corresponding to the tasks assigned to each RPA executor are determined from the tasks that meet the delivery conditions, including:
[0012] For each RPA executor, based on the task name of the RPA executor, determine the tasks assigned to the RPA executor from the tasks that meet the dispatching conditions, as well as the corresponding data source;
[0013] Based on the task batch, corresponding task resources are determined from the data source, and the task resources are sent to the RPA executor.
[0014] In a possible implementation, the task parameter further includes the number of tasks; the preset task model list further includes: the maximum execution number of each task;
[0015] For each RPA executor, based on the task batch, a corresponding task resource is determined from the data source, including:
[0016] For each RPA executor, if the number of tasks reported by the RPA executor is less than the maximum execution amount of the tasks corresponding to the RPA executor, then based on the number of tasks reported by the RPA executor, determine the corresponding number of task resources from the task resources corresponding to the task batch;
[0017] If the number of tasks reported by the RPA executor is greater than or equal to the maximum number of tasks corresponding to the RPA executor, a corresponding number of task resources are determined from the task resources corresponding to the task batch based on the maximum number of tasks.
[0018] In a possible implementation, before sending the task resources to each RPA execution machine, the following steps are also included:
[0019] For each RPA executor, the task resources corresponding to the RPA executor are packaged and encoded, and the encoded data is converted into a data stream;
[0020] Sequentially splitting the data stream into multiple data segments, and fixing the position of any data segment in the multiple data segments;
[0021] Swapping the positions of all data segments before the data segment with a fixed position with all data segments after the data segment with a fixed position to obtain encrypted data;
[0022] Send task resources to each RPA execution machine, including:
[0023] The encrypted data is sent to the RPA execution machine respectively.
[0024] In a possible implementation, the step of swapping the positions of all data segments before the data segment with the positions of all data segments after the data segment to obtain encrypted data includes:
[0025] Swap the positions of all data segments before the data segment with a fixed position with all data segments after the data segment with a fixed position, to obtain a data stream after the position is swapped;
[0026] An inversion operation is performed on the preset data segment in the data stream after the position exchange to obtain encrypted data.
[0027] In a possible implementation, performing a negation operation on the preset data segment in the position-swapped data stream to obtain encrypted data includes:
[0028] Performing a negation operation on the preset data segment in the position-swapped data stream to obtain a negated data stream;
[0029] Interference data is added at a preset position in the inverted data stream to obtain encrypted data.
[0030] In a possible implementation, detecting the task status of each task in the preset task model list and determining the tasks that meet the delivery conditions includes:
[0031] Obtain the task status of each task in the task model list; the task status includes: pending execution status, execution status and completion status;
[0032] Respectively obtaining the task execution time of each task in the execution state and the task execution result of each task in the completion state; the task execution result includes: task execution failure;
[0033] For each task in the execution state, the tasks whose execution time is greater than the preset time are determined as tasks that meet the conditions for issuance;
[0034] For each task in the completed state, the tasks that failed to execute are determined as tasks that meet the conditions for dispatching;
[0035] The tasks in the pending state are identified as tasks that meet the conditions for issuance.
[0036] In a possible implementation, after the task resources are sent to each RPA execution machine, the following steps are further included:
[0037] For each task sent to the RPA executor, a task process list is constructed; the task process list includes: task process ID, task name, data source ID corresponding to the task, task batch, IP address of the RPA executor, process creation time, task feedback time and task feedback status.
[0038] In a second aspect, an embodiment of the present invention provides a power grid task execution device, including:
[0039] The receiving module is used to receive the task parameters reported by each RPA execution machine;
[0040] The issuing module is used to detect the task status of each task in the preset task model list and determine the tasks that meet the issuing conditions; wherein the preset task model list includes: the task status of multiple tasks and the task resources of each task;
[0041] The issuing module is further used to determine the task resources corresponding to the tasks assigned to each RPA executor from the tasks that meet the issuing conditions based on the task parameters reported by each RPA executor, and to issue the task resources to each RPA executor accordingly, so that each RPA executor executes the task according to the received task resources, and feeds back the task execution result to the task allocation terminal;
[0042] The updating module is used to receive the task execution results fed back by each RPA execution machine, and based on the task execution results, update the task status of the corresponding task in the task model list.
[0043] In a third aspect, an embodiment of the present invention provides a power grid task execution system, comprising: an RPA executor running on one or more terminals, and a task allocation terminal for executing any of the methods described in the first aspect above.
[0044] The embodiment of the present invention provides a power grid task execution method, device and system, which uniformly sets a task allocation terminal and multiple RPA executors, wherein the multiple RPA executors run on one or more terminals. The RPA executors report their respective task parameters to the task allocation terminal, and the task allocation terminal determines the tasks that meet the conditions for issuance from the preset task model list, and determines the task resources corresponding to the tasks assigned to each RPA executor from the tasks that meet the conditions for issuance according to the task parameters reported by each RPA executor, so that each RPA executor performs the corresponding task. On this basis, the task allocation terminal also updates the task status of the corresponding task according to the task execution result of the RPA executor, so as to perform the next task allocation. Among them, multiple RPA executors are uniformly deployed on one or more terminals, which can greatly reduce the deployment cost and maintenance cost, and the task allocation terminal uniformly allocates tasks to multiple RPA executors according to the task status of each task, so that each RPA executor can cooperate with each other and improve work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0046] Figure 1 is a system schematic diagram of a power grid task execution system provided by an embodiment of the present invention;
[0047] Figure 2 is a flow chart of an implementation method of a power grid task execution method provided by an embodiment of the present invention;
[0048] Figure 3 is a schematic diagram of a preset task model list provided by an embodiment of the present invention;
[0049] Figure 4 is a schematic diagram of a task process list provided by an embodiment of the present invention;
[0050] Figure 5 is a comparative schematic diagram of data before and after encryption provided by an embodiment of the present invention;
[0051] Figure 6 is a comparison diagram before and after data encryption provided by another embodiment of the present invention;
[0052] Figure 7 is a comparison diagram before and after data encryption provided by another embodiment of the present invention;
[0053] Figure 8It is a structural diagram of a power grid task execution device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0054] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.
[0055] In the related art, when collecting, calculating, processing, summarizing, updating, and other operations on massive amounts of electricity consumption information, each user usually deploys RPA on their own user terminal to perform the above-mentioned collection, calculation, processing, summarizing, updating, and other tasks. Users can adjust the execution program of the RPA in the user terminal according to their own task requirements, and send task instructions to use RPA to perform the above-mentioned collection, calculation, processing, summarizing, updating, and other tasks. However, deploying RPA on different user terminals one by one leads to high deployment and maintenance costs, and the RPAs on different user terminals each receive corresponding user instructions and cannot cooperate with each other, resulting in low task execution efficiency.
[0056] In order to reduce the deployment and maintenance costs of RPA and improve the efficiency of task execution, a task allocation terminal and multiple RPA executors are uniformly set in the embodiment of the present invention, wherein multiple RPA executors can run on one or more terminals. The task allocation terminal determines the tasks that meet the conditions for issuance from the preset task model list, and determines the task resources corresponding to the tasks assigned to each RPA executor from the tasks that meet the conditions for issuance according to the task parameters reported by each RPA executor, so that each RPA executor can execute the corresponding task. In this technology, the task allocation terminal also updates the task status of the corresponding task according to the task execution result of the RPA executor, so as to perform the next task allocation. Among them, multiple RPA executors are uniformly deployed on one or more terminals, which can greatly reduce the deployment cost and maintenance cost, and the task allocation terminal uniformly allocates tasks to multiple RPA executors according to the task status of each task, so that each RPA executor can cooperate with each other and improve work efficiency.
[0057] In order to make the purpose, technical solutions and advantages of the present invention more clear, specific embodiments will be described below in conjunction with the accompanying drawings.
[0058] Figure 1 A schematic diagram of a power grid task execution system provided by an embodiment of the present invention. Figure 1As shown, the power grid task system includes: a task allocation terminal and multiple RPA executors. Among them, multiple RPA executors can run on one or more terminals. For each terminal, if an RPA executor runs on the terminal, the RPA executor can run directly on the terminal; if multiple RPA executors run on the terminal, the multiple RPA executors run on the terminal in the form of virtual machines. The task allocation terminal communicates with each RPA executor to perform task allocation.
[0059] Figure 2 The implementation flow chart of the power grid task execution method provided in the embodiment of the present invention is as follows:
[0060] Step 201: receiving task parameters reported by each RPA executor.
[0061] In the embodiment of the present invention, the RPA executor may report its own task parameters to the task allocation terminal to request the task terminal to allocate tasks to it.
[0062] Here, the task parameters may include: IP address, task name, task batch, task quantity and other parameters.
[0063] The IP address refers to the IP address of the RPA execution machine, which can be used as the identity identifier of the RPA execution machine to clarify the identity information of the RPA execution machine.
[0064] The task name is used to specify the task performed by the RPA executor. Here, the task performed by the RPA executor is determined by the execution program inside the RPA executor. The execution program is pre-set in the RPA executor in advance, and the task performed by the RPA executor is also determined accordingly. For example, if the execution program pre-set in the RPA executor is used to calculate the terminal collection completeness rate, the RPA executor is used to perform the task of "calculating the terminal collection completeness rate", and the task name of the RPA executor is "calculating the terminal collection completeness rate".
[0065] Task batches can be understood as different batches of subtasks under the same task name. It is understandable that electricity consumption information is constantly changing over time. This means that even under the same task name, different batches of subtasks will be generated. In an embodiment of the present invention, time can be used to distinguish different task batches. For example, a task batch may be XX / XX / XXXX. That is, for the electricity consumption information on XX / XX / XXXX, the task referred to by the above task name is executed. Exemplarily, the task name may be "Calculate terminal acquisition completeness rate", and the task batch may be March 6, 2024. That is, for the electricity consumption information on March 6, 2024, the task of "Calculate terminal acquisition completeness rate" is executed.
[0066] The number of tasks refers to the number of tasks requested by the RPA executor. When the task allocation terminal allocates tasks to the RPA executor, it can refer to the number of tasks reported by the RPA executor to determine the number of tasks finally allocated to the RPA executor.
[0067] When reporting task parameters, the RPA executor can use the exe mode or web page mode. In the exe mode, the RPA executor reports task parameters by calling the parameter passing mode of the exe program. In the web page mode, the RPA executor reports task parameters by calling the browser Uniform Resource Locator (URL) parameter passing mode.
[0068] Step 202 , detecting the task status of each task in the preset task model list, and determining the tasks that meet the conditions for issuance.
[0069] The task allocation terminal has a preset task model list built in. The preset task model list includes: task states of multiple tasks and task resources of each task.
[0070] The task status is used to characterize the execution status of the task. The task allocation terminal determines the tasks that meet the dispatching conditions according to the execution status of each task.
[0071] Here, unexecuted tasks, tasks that are in execution but have not received feedback for a long time, and tasks that have received feedback but failed can all be determined as tasks that meet the delivery conditions and delivered to the RPA executor.
[0072] In some embodiments, see Figure 3 The preset task model list can store the task ID, task name, data source, maximum execution quantity, write-back field, delivery condition and delivery field content corresponding to each task.
[0073] For each task, the task ID is used as a globally unique identifier of the task to clearly refer to the task. The task name is used to determine the purpose or function of the task. For example, the task ID can be 1, and the task name can be "calculate terminal acquisition completeness rate".
[0074] The data source refers to the source of all data information for the task, which includes the task resources required to execute the task and the task status of the task. For example, the data source corresponding to the task "Calculate terminal collection completeness rate" is the terminal collection completeness rate table, which records all relevant information of the task "Calculate terminal collection completeness rate".
[0075] The same task name contains subtasks from different task batches, and each task batch contains subtasks from different task objects. It can be understood that when the task allocation terminal issues tasks, it issues the subtasks corresponding to each task object under each task batch as one task. On this basis, the maximum execution quantity refers to the maximum number of tasks issued when issuing tasks.
[0076] Taking the task of "calculating the terminal collection completeness rate" as an example, when calculating the terminal collection completeness rate, it is necessary to calculate the collection completeness rate of each area at different times. Therefore, the task contains different task batches, and each task batch contains different task objects. Here, the task batch is used to refer to the time, and the task object is used to refer to the area number. For example, when issuing a task, "calculate the collection completeness rate of Area No. 1 on March 7, 2024" can be issued as a task.
[0077] After the task is executed, the task assignment terminal needs to write back the corresponding content in the data source of the task to update the task status of the task. The write-back field is used to define the specific write-back content. Exemplarily, the write-back field can be "success" or "failure". That is, after the RPA execution machine completes the execution, the task assignment terminal writes back the corresponding content in the data source based on the task execution result to update the task status of the task.
[0078] The sending condition is used to determine whether to send the task. For example, the sending condition may be that the write-back field is "failed". The task allocation terminal determines whether the task meets the sending condition by searching the write-back content corresponding to the task in the data source.
[0079] The sent field content contains keywords corresponding to the task resources required to perform the task. By sending the field content, the task resources corresponding to the task can be quickly located from the data source and sent to the RPA executor. Exemplarily, the sent field content may include key content such as task batches and task objects, so as to accurately locate the task resources required for the RPA executor to perform the task in the data source based on the task batches, task objects and other contents. For example, for the task of "calculating the terminal collection completeness rate", the "station number" and "station name" and other contents can be used as the sent field content to accurately locate the task resources in the data source.
[0080] In addition, the preset task model list also has an activation time, a deactivation time, and whether to enable. Among them, the activation time refers to the effective time of the preset task model list, and the deactivation time refers to the expiration time of the preset task model list. Whether to enable is used to mark whether the preset task model list is effective. It can be understood that only when the current time is within the effective period of the preset task model list, can tasks be assigned according to the preset task model list.
[0081] Step 203, based on the task parameters reported by each RPA executor, determine the task resources corresponding to the tasks assigned to each RPA executor from the tasks that meet the distribution conditions, and distribute the task resources to each RPA executor accordingly, so that each RPA executor executes the task according to the received task resources, and feeds back the task execution results to the task distribution terminal.
[0082] According to the task name, task batch and task quantity reported by the RPA executor, the task resources with the corresponding task name, task batch and task quantity can be determined from the tasks that meet the delivery conditions and delivered to the RPA executor.
[0083] When the task allocation terminal sends the task resources to the RPA execution machine, it can use the exe mode or the web page mode. In the exe mode, the task allocation terminal sends the task resources to the exe program in the RPA execution machine, and the exe program converts the task resources into a preset file format so that the RPA execution machine can read and execute the corresponding task. The preset file format here can be determined according to the execution program inside the RPA execution machine, and the preset file format is a format that can be successfully read by the execution program inside the RPA execution machine. Exemplarily, the preset file format can be Excel format, txt format or csv format.
[0084] In the web page mode, the task allocation terminal generates a web page based on the task resources. The web page content is in the data table format. The RPA execution machine obtains the web page by accessing the Uniform Resource Locator (URL) and parses the data table content.
[0085] Step 204: Receive the task execution results fed back by each RPA executor, and update the task status of the corresponding task in the task model list based on the task execution results.
[0086] After completing the corresponding task, the RPA execution machine feeds back the task execution result to the task allocation terminal. The task allocation terminal writes back the corresponding content in the data source based on the task execution result to update the task status of the corresponding task to facilitate the next task allocation.
[0087] Each time the RPA executor executes a task, it marks the completion status, that is, success or failure. After all tasks are completed, a task completion status list is formed. The RPA executor can use the exe mode or web page mode to feedback the task execution results to the task allocation terminal. In the exe mode, the RPA executor packages the IP address, task name, task batch, and task completion status list and uploads them to the task allocation terminal. The task allocation terminal receives the packaged data, parses it, and updates the task status of each task based on the completion status of each task.
[0088] In web mode, the RPA executor calls the URL and submits the task completion status list to the web page. The task allocation terminal obtains the task completion status of each task by parsing the web page data stream and updates the task status of each task accordingly.
[0089] Compared with the prior art, the embodiment of the present invention uniformly sets a task allocation terminal and multiple RPA executors, wherein multiple RPA executors run on one or more terminals. The RPA executors report their respective task parameters to the task allocation terminal, which determines the tasks that meet the conditions for issuing from the preset task model list, and determines the task resources corresponding to the tasks assigned to each RPA executor from the tasks that meet the conditions for issuing according to the task parameters reported by each RPA executor, so that each RPA executor can execute the corresponding task. On this basis, the task allocation terminal also updates the task status of the corresponding task according to the task execution result of the RPA executor, so as to perform the next task allocation. Among them, multiple RPA executors are uniformly deployed on one or more terminals, which can greatly reduce the deployment cost and maintenance cost, and the task allocation terminal uniformly allocates tasks to multiple RPA executors according to the task status of each task, so that each RPA executor can cooperate with each other and improve work efficiency.
[0090] In some embodiments, according to the above, the task parameters include: task name and task batch. On this basis, when determining the task resources corresponding to the tasks assigned to each RPA execution machine, the specific process is as follows:
[0091] For each RPA executor, first, based on the task name of the RPA executor, determine the tasks assigned to the RPA executor and the corresponding data source from the tasks that meet the distribution conditions; then, based on the task batch, determine the corresponding task resources from the data source and distribute the task resources to the RPA executor.
[0092] Here, according to the task name reported by the RPA executor, the task with the corresponding task name and the corresponding data source can be determined from the preset task model list. The data source contains all task resources of different task batches under the task name.
[0093] Furthermore, according to the task batch reported by the RPA execution machine, the task resources corresponding to the corresponding task batch can be determined from the data source, and the task resources are sent to the RPA execution machine.
[0094] In some embodiments, the task parameters include the number of tasks. The preset task model list includes: the maximum number of executions of each task. On this basis, when determining the corresponding task resources from the data source, the specific process is as follows:
[0095] For each RPA executor, if the number of tasks reported by the RPA executor is less than the maximum execution amount of the tasks corresponding to the RPA executor, the corresponding number of task resources is determined from the task resources corresponding to the task batch based on the number of tasks reported by the RPA executor.
[0096] If the number of tasks reported by the RPA executor is greater than or equal to the maximum number of tasks corresponding to the RPA executor, then based on the maximum number of tasks, the corresponding number of task resources are determined from the task resources corresponding to the task batch.
[0097] That is to say, when the number of tasks reported by the RPA executor is less than the corresponding maximum execution quantity, the corresponding number of task resources is determined based on the number of tasks reported by the RPA executor to maximize the efficiency of task allocation. When the number of tasks reported by the RPA executor is greater than or equal to the corresponding maximum execution quantity, the corresponding number of task resources is determined based on the maximum execution quantity to avoid the RPA executor taking on too many tasks and reducing the efficiency of task execution.
[0098] In an embodiment of the present invention, when issuing tasks, the task allocation terminal issues the subtasks corresponding to each task object under each task batch as one task. According to the task name and task batch reported by the RPA execution machine, the task allocation terminal can determine the subtasks corresponding to all task objects under the corresponding task name and the corresponding task batch. Then, according to the number of tasks, the corresponding number of subtasks is determined from the subtasks corresponding to all task objects, and the task resources of the corresponding number of subtasks are issued to the RPA execution machine.
[0099] For example, if the task name reported by the RPA execution machine is "calculate terminal collection completeness rate", the task batch is: March 7, 2024. The number of tasks is 6. Then the task allocation terminal searches for the data source corresponding to "calculate terminal collection completeness rate" from the preset task model list. And the maximum number of executions corresponding to "calculate terminal collection completeness rate". For example, the maximum number of executions can be 5.
[0100] The task resources corresponding to March 7, 2024 are further found from the above data sources. Among them, the task resources corresponding to March 7, 2024 include the task resources corresponding to different task objects on March 7, 2024, that is, the task resources corresponding to different station numbers on March 7, 2024. Considering that the number of tasks is less than the maximum execution number, the task allocation terminal extracts 5 task resources that meet the distribution conditions from the task resources corresponding to March 7, 2024 and distributes them to the RPA execution machine so that the RPA execution machine can execute the corresponding tasks.
[0101] After the task allocation terminal determines the corresponding task resources based on the task parameters and sends them to the RPA executor, it can also build a task process list for each task sent to grasp the execution progress of each task in real time.
[0102] In some embodiments, after the task allocation terminal sends the task resources to each RPA execution machine, it can also build a task process list for each task sent to the RPA execution machine. Figure 4 The task process list may include: task process ID, task name, data source ID corresponding to the task, task batch, IP address of the RPA execution machine, process creation time, task feedback time, and task feedback status.
[0103] For each task sent to the RPA executor, the task process ID is used as the globally unique identifier of the task process to clearly refer to the task process of the task. The data source ID corresponding to the task is used as the identifier of the data source corresponding to the task to refer to the data source corresponding to the task.
[0104] The process creation time can be determined according to the time when the task resources are sent. In an embodiment of the present invention, the time when the task allocation terminal sends the task resources to the RPA execution machine can be determined as the process creation time.
[0105] Task feedback time refers to the time when the task assignment terminal receives the task execution result feedback from the RPA executor.
[0106] The task feedback status includes two types: feedback received and no feedback received. It can be understood that the task allocation terminal determines the task feedback status of the corresponding task according to whether the task execution result of the RPA execution machine is received.
[0107] The task distribution terminal can grasp the task execution progress of each task sent to the RPA executor in real time based on the task progress list.
[0108] After receiving the task execution result from the RPA execution machine, the task allocation terminal updates the task feedback time and task feedback status in the task process list accordingly. On the other hand, it updates the write-back field in the data source corresponding to the task to update the task status.
[0109] In some embodiments, when determining tasks that meet the conditions for issuance, the task status of each task in the task model list can be obtained first; wherein the task status includes: pending execution status, execution status and completion status; then the task execution time of each task in the execution status and the task execution result of each task in the completion status are obtained respectively; wherein the task execution results include: task execution failure.
[0110] In an embodiment of the present invention, for each task in the execution state, the task whose execution time is greater than the preset time is determined as a task that meets the conditions for issuance; for each task in the completion state, the task that failed to execute is determined as a task that meets the conditions for issuance; and the task in the pending execution state is determined as a task that meets the conditions for issuance.
[0111] Here, the task status of each task can be determined based on the write-back field in the data source corresponding to each task. Among them, the task whose write-back field is not empty is in a completed state. When the write-back field is not empty, illustratively, the write-back field can be "success" or "failure". According to the specific content of the write-back field, the task that failed to execute can be determined and determined as a task that meets the conditions for issuing.
[0112] Tasks with an empty writeback field are in the pending state or the execution state. According to the task process list, the tasks in the execution state can be determined, and according to the process creation time in the task process list, the task execution time of the tasks in the execution state can be determined, so as to filter out tasks with a task execution time greater than the preset time and determine them as tasks that meet the conditions for sending. At the same time, the remaining tasks in the pending state are determined as tasks that meet the conditions for sending.
[0113] In the embodiment of the present invention, in order to ensure the data communication security between the RPA executor and the task allocation terminal, the communication data between the RPA executor and the task allocation terminal is encrypted. The following takes the task allocation terminal sending task resources to the RPA executor as an example to specifically introduce the data encryption process:
[0114] In some embodiments, before sending the task resources to each RPA execution machine, for each RPA execution machine, the task resources corresponding to the RPA execution machine are packaged and encoded, and then the encoded data is converted into a data stream; then, see Figure 5, split the data stream into multiple data segments in sequence, and fix the position of any data segment in the multiple data segments; then, swap the positions of all data segments before the data segment with the fixed position with all data segments after the data segment with the fixed position to obtain encrypted data; finally, send the encrypted data to the RPA executor.
[0115] In some embodiments, the above-mentioned swapping the positions of all data segments before the fixed-position data segment with all data segments after the fixed-position data segment to obtain encrypted data may include:
[0116] All data segments before the fixed-position data segment are swapped with all data segments after the fixed-position data segment to obtain a data stream after the position swap; and a reverse operation is performed on the preset data segments in the data stream after the position swap to obtain encrypted data.
[0117] See also Figure 6 On the basis of the above position exchange, the preset data segment in the data stream after the position exchange can be further binary inverted to achieve data encryption and obtain encrypted data. The preset data segment here can be determined according to actual conditions. Exemplarily, the preset data segment can be any at least one data segment in the data stream.
[0118] In some embodiments, performing the inversion operation on the preset data segment in the position-swapped data stream to obtain the encrypted data may include:
[0119] An inversion operation is performed on a preset data segment in the position-swapped data stream to obtain an inverted data stream; and interference data is added at a preset position in the inverted data stream to obtain encrypted data.
[0120] See also Figure 7 After the negation operation, interference data is added to the preset position in the negated data stream to achieve data encryption, and the encrypted data is obtained. The preset position here is determined according to the actual situation. Exemplarily, the preset position can be between any two adjacent data segments.
[0121] Accordingly, after receiving the encrypted data, the RPA executor decrypts the message to obtain the task resources and executes the corresponding task based on the task resources.
[0122] When performing data transmission, the embodiment of the present invention encrypts data by adopting methods such as position exchange, inversion, and adding interference data, which can effectively ensure the security of data transmission between the task allocation terminal and the RPA executor.
[0123] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0124] The following is an embodiment of the device of the present invention. For details not described in detail therein, reference may be made to the corresponding method embodiment described above.
[0125] Figure 8 The following is a schematic diagram showing the structure of a power grid task execution device provided by an embodiment of the present invention. For ease of explanation, only the parts related to the embodiment of the present invention are shown, which are described in detail as follows:
[0126] like Figure 8 As shown, the power grid task execution device 8 includes: a receiving module 81 , a sending module 82 and an updating module 83 .
[0127] The receiving module 81 is used to receive the task parameters reported by each RPA execution machine;
[0128] The issuing module 82 is used to detect the task status of each task in the preset task model list and determine the tasks that meet the issuing conditions; wherein the preset task model list includes: the task status of multiple tasks and the task resources of each task;
[0129] The sending module 82 is further used to determine the task resources corresponding to the tasks assigned to each RPA executor from the tasks that meet the sending conditions based on the task parameters reported by each RPA executor, and send the task resources to each RPA executor accordingly, so that each RPA executor executes the task according to the received task resources, and feeds back the task execution results to the task allocation terminal;
[0130] The updating module 83 is used to receive the task execution results fed back by each RPA execution machine, and based on the task execution results, update the task status of the corresponding task in the task model list.
[0131] Optionally, task parameters include: task name and task batch;
[0132] The sending module 82 is specifically used for:
[0133] For each RPA executor, based on the task name of the RPA executor, determine the tasks assigned to the RPA executor from the tasks that meet the dispatching conditions, as well as the corresponding data source;
[0134] Based on the task batch, the corresponding task resources are determined from the data source and sent to the RPA executor.
[0135] Optionally, the task parameters also include the number of tasks; the preset task model list also includes: the maximum number of executions of each task;
[0136] The sending module 82 is specifically used for:
[0137] For each RPA executor, if the number of tasks reported by the RPA executor is less than the maximum execution amount of the tasks corresponding to the RPA executor, then based on the number of tasks reported by the RPA executor, determine the corresponding number of task resources from the task resources corresponding to the task batch;
[0138] If the number of tasks reported by the RPA executor is greater than or equal to the maximum number of tasks corresponding to the RPA executor, then based on the maximum number of tasks, the corresponding number of task resources are determined from the task resources corresponding to the task batch.
[0139] Optionally, the sending module 82 is further used for:
[0140] For each RPA executor, the task resources corresponding to the RPA executor are packaged and encoded, and the encoded data is converted into a data stream;
[0141] The data stream is sequentially divided into multiple data segments, and the position of any data segment in the multiple data segments is fixed;
[0142] Swap the positions of all data segments before the data segment with a fixed position with all data segments after the data segment with a fixed position to obtain encrypted data;
[0143] Send task resources to each RPA execution machine, including:
[0144] The encrypted data is sent to the RPA execution machine respectively.
[0145] Optionally, the sending module 82 is specifically used for:
[0146] Swap the positions of all data segments before the data segment with a fixed position with all data segments after the data segment with a fixed position, to obtain a data stream after the position swap;
[0147] An inversion operation is performed on the preset data segment in the data stream after the position exchange to obtain encrypted data.
[0148] Optionally, the sending module 82 is specifically used for:
[0149] Performing a negation operation on the preset data segment in the data stream after the position exchange, to obtain a negated data stream;
[0150] Interference data is added at a preset position in the inverted data stream to obtain encrypted data.
[0151] Optionally, the sending module 82 is specifically used for:
[0152] Get the task status of each task in the task model list; the task status includes: pending status, execution status and completion status;
[0153] The task execution time of each task in the execution state and the task execution result of each task in the completion state are obtained respectively; the task execution results include: task execution failure;
[0154] For each task in the execution state, the tasks whose execution time is greater than the preset time are determined as tasks that meet the conditions for issuance;
[0155] For each task in the completed state, the tasks that failed to execute are determined as tasks that meet the conditions for dispatching;
[0156] The tasks in the pending state are identified as tasks that meet the conditions for issuance.
[0157] Optionally, the update module 83 is also used to
[0158] For each task sent to the RPA executor, a task process list is constructed; the task process list includes: task process ID, task name, data source ID corresponding to the task, task batch, IP address of the RPA executor, process creation time, task feedback time, and task feedback status.
[0159] The embodiment of the present invention uniformly sets a task allocation terminal and multiple RPA execution machines, wherein multiple RPA execution machines run on one or more terminals. The RPA execution machines report their respective task parameters to the task allocation terminal, and the issuing module 82 in the task allocation terminal determines the tasks that meet the issuing conditions from the preset task model list, and determines the task resources corresponding to the tasks assigned to each RPA execution machine from the tasks that meet the issuing conditions according to the task parameters reported by each RPA execution machine, so that each RPA execution machine performs the corresponding task. On this basis, the update module 83 in the task allocation terminal also updates the task status of the corresponding task according to the task execution result of the RPA execution machine, so as to perform the next task allocation. Among them, multiple RPA execution machines are uniformly deployed on one or more terminals, which can greatly reduce the deployment cost and maintenance cost, and the issuing module 82 uniformly allocates tasks to multiple RPA execution machines according to the task status of each task, so that each RPA execution machine can cooperate with each other and improve work efficiency.
[0160] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0161] Those of ordinary skill in the art will appreciate that the templates, units, and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0162] If the module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, it can implement the steps of the above-mentioned various power grid task execution method embodiments. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electrical carrier signal, telecommunication signal and software distribution medium.
[0163] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A method for executing a power grid task, characterized in that: Applied to the task allocation terminal, which communicates with multiple RPA executors; Multiple RPA execution machines run on one or more terminals; The method comprises: Receive task parameters reported by each RPA execution machine; Detecting the task status of each task in a preset task model list, and determining tasks that meet the conditions for issuing; wherein the preset task model list includes: the task status of multiple tasks and the task resources of each task; Based on the task parameters reported by each RPA executor, determine the task resources corresponding to the tasks assigned to each RPA executor from the tasks that meet the delivery conditions, and deliver the task resources to each RPA executor accordingly, so that each RPA executor executes the task according to the received task resources, and feeds back the task execution results to the task allocation terminal; Receive the task execution results fed back by each RPA executor, and based on the task execution results, update the task status of the corresponding task in the task model list.
2. The power grid task execution method according to claim 1, characterized in that: The task parameters include: task name and task batch; Based on the task parameters reported by each RPA executor, the task resources corresponding to the tasks assigned to each RPA executor are determined from the tasks that meet the delivery conditions, including: For each RPA executor, based on the task name of the RPA executor, determine the tasks assigned to the RPA executor from the tasks that meet the dispatching conditions, as well as the corresponding data source; Based on the task batch, corresponding task resources are determined from the data source, and the task resources are sent to the RPA executor.
3. The power grid task execution method according to claim 2, characterized in that: The task parameters also include the number of tasks; the preset task model list also includes: the maximum number of executions of each task; For each RPA executor, based on the task batch, a corresponding task resource is determined from the data source, including: For each RPA executor, if the number of tasks reported by the RPA executor is less than the maximum execution amount of the tasks corresponding to the RPA executor, then based on the number of tasks reported by the RPA executor, determine the corresponding number of task resources from the task resources corresponding to the task batch; If the number of tasks reported by the RPA executor is greater than or equal to the maximum number of tasks corresponding to the RPA executor, a corresponding number of task resources are determined from the task resources corresponding to the task batch based on the maximum number of tasks.
4. The power grid task execution method according to any one of claims 1 to 3, characterized in that: Before sending the task resources to each RPA execution machine, the following steps are also required: For each RPA executor, the task resources corresponding to the RPA executor are packaged and encoded, and the encoded data is converted into a data stream; Sequentially splitting the data stream into multiple data segments, and fixing the position of any data segment in the multiple data segments; Swapping the positions of all data segments before the data segment with a fixed position with all data segments after the data segment with a fixed position to obtain encrypted data; Send task resources to each RPA execution machine, including: The encrypted data is sent to the RPA execution machine respectively.
5. The power grid task execution method according to claim 4, characterized in that: The step of swapping the positions of all data segments before the data segment with the positions of all data segments after the data segment with the positions of the data segment to obtain encrypted data includes: Swap the positions of all data segments before the data segment with a fixed position with all data segments after the data segment with a fixed position, to obtain a data stream after the position is swapped; An inversion operation is performed on the preset data segment in the data stream after the position exchange to obtain encrypted data.
6. The power grid task execution method according to claim 5, characterized in that: Performing a negation operation on the preset data segment in the data stream after the position exchange to obtain encrypted data includes: Performing a negation operation on the preset data segment in the position-swapped data stream to obtain a negated data stream; Interference data is added at a preset position in the inverted data stream to obtain encrypted data.
7. The power grid task execution method according to any one of claims 1 to 3, characterized in that: The detecting the task status of each task in the preset task model list and determining the tasks that meet the conditions for issuing include: Obtain the task status of each task in the task model list; the task status includes: pending execution status, execution status and completion status; Respectively obtaining the task execution time of each task in the execution state and the task execution result of each task in the completion state; the task execution result includes: task execution failure; For each task in the execution state, the tasks whose execution time is greater than the preset time are determined as tasks that meet the conditions for issuance; For each task in the completed state, the tasks that failed to execute are determined as tasks that meet the conditions for dispatching; The tasks in the pending state are identified as tasks that meet the conditions for issuance.
8. The power grid task execution method according to any one of claims 1 to 3, characterized in that: After the task resources are sent to each RPA execution machine, the following steps are also performed: For each task sent to the RPA executor, a task process list is constructed; the task process list includes: task process ID, task name, data source ID corresponding to the task, task batch, IP address of the RPA executor, process creation time, task feedback time and task feedback status.
9. A power grid task execution device, characterized in that: The receiving module is used to receive the task parameters reported by each RPA execution machine; The issuing module is used to detect the task status of each task in the preset task model list and determine the tasks that meet the issuing conditions; wherein the preset task model list includes: the task status of multiple tasks and the task resources of each task; The issuing module is further used to determine the task resources corresponding to the tasks assigned to each RPA executor from the tasks that meet the issuing conditions based on the task parameters reported by each RPA executor, and to issue the task resources to each RPA executor accordingly, so that each RPA executor executes the task according to the received task resources, and feeds back the task execution result to the task allocation terminal; The updating module is used to receive the task execution results fed back by each RPA execution machine, and based on the task execution results, update the task status of the corresponding task in the task model list.
10. A power grid task execution system, characterized in that: include: An RPA executor running on one or more terminals, and a task allocation terminal for executing the method described in any one of claims 1 to 8.
