Data acquisition method, device, equipment and storage medium based on RPA robot
RPA robots address the challenge of data extraction from clients without open interfaces by integrating with scheduling engines and executing operations on client interfaces, ensuring comprehensive data retrieval for business systems.
Patent Information
- Application Number
- CN202111531883.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-14
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2041-12-14
AI Technical Summary
Business systems cannot effectively obtain data from clients without an open interface, as clients like desktop applications often lack the necessary open endpoints.
A method utilizing RPA robots that integrate with a scheduling engine to receive data retrieval instructions, parse them, and execute operations on the client's interface through window handles, allowing data extraction even without external interfaces.
Enables data collection from clients without open interfaces, enhancing data accessibility and comprehensive data retrieval for business systems.
Smart Images

Figure CN114201629B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence, and in particular to a data acquisition method, device, equipment and storage medium based on an RPA robot. Background Art
[0002] In traditional technology, business systems can establish connections with third-party systems to transmit data. However, this method requires the third-party system to open interfaces and support calls. However, the prerequisite is that the third-party system needs to have an open structure. For some clients, such as desktop applications, there is no corresponding open interface, so the business system cannot obtain the client's data through traditional methods. Summary of the invention
[0003] The main purpose of the present invention is to provide a data acquisition method, device, equipment and storage medium based on an RPA robot, aiming to solve the problem that the business system cannot obtain client data through traditional methods.
[0004] The present invention provides a data acquisition method based on an RPA robot, comprising:
[0005] The RPA robot receives the client data acquisition instruction in the business system through the integrated scheduling engine; wherein the RPA robot pre-stores various programs for acquiring client data;
[0006] Parsing the client data acquisition instruction to obtain data parameters of the client data, and acquiring an execution operation of the client data from the program according to the data acquisition instruction;
[0007] Based on the client data acquisition instruction, the window handle of the system where the client is located is acquired through a preset selector, and the corresponding client is started through the window handle;
[0008] Inputting the data parameter in accordance with the execution operation in the interface of the client through the window handle;
[0009] The client data generated on the client interface based on the data parameters is obtained.
[0010] Furthermore, the step of parsing the client data acquisition instruction to obtain data parameters of the client data, and acquiring the execution operation of the client data from the program according to the data acquisition instruction includes:
[0011] Parsing the client data acquisition instruction to obtain data parameters of the client data to be acquired and unique identification information of the client;
[0012] Determine the corresponding client based on the unique identifier information;
[0013] According to a preset corresponding table, an execution operation on the client is obtained; wherein the corresponding table pre-stores various client data and corresponding execution operations.
[0014] Furthermore, before the steps of parsing the client data acquisition instruction to obtain data parameters of the client data and acquiring the execution operation of the client data from the program according to the data acquisition instruction, the method further includes:
[0015] Obtaining the priority of the client data acquisition instruction;
[0016] Pushing the client data acquisition instruction into the message queue according to the priority and time sequence;
[0017] Obtaining task information in the message queue that is arranged before the client data acquisition instruction;
[0018] Acquire, according to the task processing record set, a first duration required to execute the task information and a second duration required to execute the client data acquisition instruction;
[0019] The first duration and the second duration are fed back to the business system.
[0020] Furthermore, the step of obtaining the client data generated on the client interface based on the data parameters and uploading the client data to the business system includes:
[0021] Taking a screenshot of the client interface to obtain a first picture;
[0022] comparing the first picture with a second picture that fails a preset search;
[0023] If the comparison results are different, uploading the first picture as the client data to the business system;
[0024] If the comparison results are the same, the client data is re-entered until the obtained target image is different from the second image, and the target image is uploaded to the business system as the client data.
[0025] Furthermore, the step of parsing the client data acquisition instruction to obtain data parameters of the client data, and acquiring the execution operation of the client data from the program according to the data acquisition instruction includes:
[0026] Determine the client to which the client data acquisition instruction corresponds;
[0027] Acquire historical instructions for acquiring data from the client from the operation record;
[0028] Calculating the similarity between the data acquisition history instruction and the client data acquisition instruction by using a preset similarity algorithm;
[0029] Determining whether the similarity is greater than a similarity threshold;
[0030] If it is greater than the similarity threshold, the historical execution operation corresponding to the data acquisition history instruction is obtained, and the historical execution operation is used as the execution operation.
[0031] Furthermore, before the step of the RPA robot receiving the client data acquisition instruction in the business system through the integrated scheduling engine, the step further includes:
[0032] Acquire a training set of the client; wherein the training data in the training set includes historical instructions and historical operation steps corresponding to the historical instructions;
[0033] Clustering each training data in the training set according to a preset clustering method to obtain multiple sub-training sets;
[0034] Each sub-training set is input into different categories of the RPA initial robot for training to obtain the RPA robot.
[0035] Furthermore, before the step of obtaining the window handle of the system where the client is located through a preset selector based on the client data acquisition instruction and starting the corresponding client through the window handle, the method further includes:
[0036] Detecting data information of the data to be acquired corresponding to the client data acquisition instruction;
[0037] Determining whether the data to be acquired is within the scope of the acquisition authority based on the data information;
[0038] If so, the steps of obtaining the window handle of the system where the client is located based on the client data acquisition instruction and through a preset selector, and starting the corresponding client through the window handle are executed.
[0039] The present invention provides a data acquisition device based on an RPA robot, comprising:
[0040] A receiving module, used to receive a client data acquisition instruction in a business system through an integrated scheduling engine; wherein the RPA robot pre-stores various programs for acquiring client data;
[0041] A parsing module, used for parsing the client data acquisition instruction, obtaining data parameters of the client data, and acquiring an execution operation of the client data from the program according to the data acquisition instruction;
[0042] A startup module, used to obtain the window handle of the system where the client is located through a preset selector based on the client data acquisition instruction, and start the corresponding client through the window handle;
[0043] An input module, used for inputting the data parameter in accordance with the execution operation in the interface of the client through the window handle;
[0044] The acquisition module is used to acquire the client data generated on the client interface based on the data parameters.
[0045] The present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.
[0046] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods are implemented.
[0047] Beneficial effects of the present invention: The RPA robot receives the client data acquisition instruction in the business system, obtains the data parameters of the client data and performs operations, starts the corresponding client and inputs the data parameters, and obtains the client data generated based on the data parameters on the client interface. Thus, when the client has no external interface, it can also provide client data to the business system, thereby improving the comprehensiveness of data acquisition. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 This is a flow chart of a data acquisition method based on an RPA robot according to an embodiment of the present invention;
[0049] Figure 2 This is a schematic block diagram of the structure of a data acquisition device based on an RPA robot according to an embodiment of the present invention;
[0050] Figure 3 A schematic block diagram of the structure of a computer device according to an embodiment of the present application.
[0051] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0053] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly. The connection can be a direct connection or an indirect connection.
[0054] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, A and B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone.
[0055] In addition, in the present invention, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0056] Reference Figure 1 The present invention proposes a data acquisition method based on an RPA robot, comprising:
[0057] S1: The RPA robot receives a client data acquisition instruction in the business system through an integrated scheduling engine; wherein the RPA robot pre-stores various programs for acquiring client data;
[0058] S2: parsing the client data acquisition instruction to obtain data parameters of the client data, and acquiring an execution operation of the client data from the program according to the data acquisition instruction;
[0059] S3: Based on the client data acquisition instruction, the window handle of the system where the client is located is acquired through a preset selector, and the corresponding client is started through the window handle;
[0060] S4: inputting the data parameter in the interface of the client according to the execution operation through the window handle;
[0061] S5: Acquire the client data generated on the client interface based on the data parameters, and upload the client data to the business system.
[0062] As described in step S1 above, the RPA robot receives the client data acquisition instruction in the business system through the integrated scheduling engine. RPA robot (Robotic process automation) is an application that provides another way to replace the user's manual operation and automate the process by imitating the manual operation of the end user on the computer. Therefore, after it receives the client data acquisition instruction in the business system, it can execute the client acquisition instruction on behalf of the user. Among them, the integrated scheduling engine (RPA SERVER) is the server of the RPA robot, which can receive http request instructions or directly configured tasks, that is, the client data acquisition instruction is an http request instruction, or a task that the user has configured to send to the RPA robot. The business system is used to initiate HTTP requests, call RPA SERVER and receive return results.
[0063] As described in step S2 above, the client data acquisition instruction is parsed to obtain the data parameters of the client data, and the execution operation of the client data is obtained from the program according to the data acquisition instruction. It should be noted that the client data acquisition instruction contains the corresponding data parameters, so the data parameters can be directly obtained. As for the execution operation, it can be obtained according to the various execution operations pre-stored by the RPA robot. It is only necessary to analyze the data type of the client data corresponding to the client data acquisition instruction, and based on the data type, the execution operation corresponding to the data type can be obtained from the RPA robot. Furthermore, since the RPA robot is an automated execution method, the steps of opening the client and inputting parameters are pre-trained, so the trained execution operation can be directly obtained here. It is completed by RPA AGENT, which is the execution agent of RPA, deployed in the execution machine in the form of software, receives the instructions of RPASERVER and initiates the execution script task. By obtaining the window handle, the client is controlled to achieve automation.
[0064] As described in the above step S3, based on the client data acquisition instruction and through the preset selector, the window handle of the system where the client is located is obtained, and the corresponding client is started through the window handle. That is, the corresponding client is started. Since the initiator is a business system, and the client cannot be directly connected to the business system, that is, the client does not have a connectable interface provided to the client, so the client cannot be connected to the business system, and the instruction to start the client is stored in the RPA robot, so the corresponding client can be started based on the client data acquisition instruction. The window handle is a permission to perform operations on the window, that is, after obtaining the window handle, the app on the window can be operated. The selector is a selector set in the RPA robot, which is used to call the handles of various windows.
[0065] As described in step S4, the data parameters are inputted in the interface of the client through the window handle according to the execution operation. Wherein, the data parameters are inputted according to the execution operation, because the steps to be executed in the client have been determined in the execution step, it is only necessary to input the data parameters according to the execution operation.
[0066] As described in step S5 above, the client data generated based on the data parameters on the client interface is obtained, and the client data is uploaded to the business system. That is, after inputting data through the RPA robot, the corresponding client data can be obtained, wherein the client data can be obtained through screenshot software, or can be a file automatically generated based on the client, such as a word, PDF file, etc. Thus, when the client has no external interface, the client data can also be provided to the business system, thereby improving the comprehensiveness of data acquisition.
[0067] In one embodiment, the step S2 of parsing the client data acquisition instruction to obtain data parameters of the client data, and acquiring the execution operation of the client data from the program according to the data acquisition instruction includes:
[0068] S201: parsing the client data acquisition instruction to obtain data parameters of the client data to be acquired and unique identification information of the client;
[0069] S202: Determine a corresponding client based on the unique identifier information;
[0070] S203: Acquire the execution operation on the client according to a preset corresponding table; wherein the corresponding table pre-stores various client data and corresponding execution operations.
[0071] As described in the above steps S201-S203, the acquisition of execution operations and data parameters is realized. Since the client data acquisition instruction contains the corresponding data parameters and the corresponding data parameters of the client data to be acquired, the data parameters of the client data to be acquired and the unique identification information of the client can be obtained by parsing according to the protocol corresponding to the instruction. The unique identification information can determine the corresponding client, and then the execution operation of the client can be obtained according to the corresponding table of the client data and the corresponding execution operation. For the RPA robot, the corresponding execution operation for acquiring the client data will be pre-stored. If it is not pre-stored, the corresponding client data cannot be obtained.
[0072] In one embodiment, before the step S2 of parsing the client data acquisition instruction to obtain the data parameters of the client data and acquiring the execution operation of the client data from the program according to the data acquisition instruction, the step further includes:
[0073] S101: Obtaining the priority of the client data acquisition instruction;
[0074] S102: Pushing the client data acquisition instruction into the message queue according to the priority and time sequence;
[0075] S103: Acquire task information in the message queue that is arranged before the client data acquisition instruction;
[0076] S104: acquiring, according to the task processing record set, a first duration required to execute the task information and a second duration required to execute the client data acquisition instruction;
[0077] S105: Feedback the first duration and the second duration to the business system.
[0078] As described in the above steps S101-S105, feedback on the duration of client data acquisition is implemented. In some embodiments, since the acquired client data is relatively large, the time to acquire the client data is relatively long, and the user may come back to check after a period of time, and the user cannot be sure when the data can be acquired. Therefore, in order to facilitate knowing the acquisition duration, the first duration required for executing the task information and the second duration required for executing the client data acquisition instruction are acquired. The task information sorted before the client data acquisition instruction in the message queue is acquired. The first historical duration for acquiring the same data and the second historical duration for executing the same data required for the task information are acquired according to the task processing record set. If there are multiple first historical durations and / or second historical durations, the average value or median thereof can be calculated as the first duration and / or second duration. This allows the user to know the time when the data is acquired, so as to facilitate the arrangement of the next work.
[0079] In one embodiment, the step S5 of acquiring the client data generated on the client interface based on the data parameters and uploading the client data to the business system includes:
[0080] S501: Taking a screenshot of the client interface to obtain a first picture;
[0081] S502: Compare the first image with a preset second image that fails to be searched;
[0082] S503: If the comparison results are different, uploading the first picture as the client data to the business system;
[0083] S504: If the comparison results are the same, re-enter the client data until the obtained target image is different from the second image, and upload the target image as the client data to the business system.
[0084] As described in the above steps S501-S504, the judgment on whether the data is acquired correctly is realized. In the actual acquisition process, there may be some bugs, resulting in the failure to enter the correct parameters, so it can be detected. Specifically, the client interface can be screenshotted, and the first picture obtained can be compared with the second picture in which the preset search failed, wherein the comparison method can be to calculate whether the ratio of the same pixels of the two is greater than the preset value, if greater than, it can be considered that the first picture and the second picture are the same, if less than or equal to, it can be considered that the first picture and the second picture are different. And corresponding processing is performed according to the comparison result, that is, if the comparison results are different, the first picture is uploaded to the business system as the client data; if the comparison results are the same, the client data is re-entered until the target picture obtained is different from the second picture, and the target picture is uploaded to the business system as the client data.
[0085] In one embodiment, the step S2 of parsing the client data acquisition instruction to obtain data parameters of the client data, and acquiring the execution operation of the client data from the program according to the data acquisition instruction, the step of acquiring the execution operation includes:
[0086] S211: Determine the client corresponding to the client data acquisition instruction;
[0087] S212: Acquire historical instructions for acquiring data from the client from the operation record;
[0088] S213: Calculating the similarity between the data acquisition history instruction and the client data acquisition instruction by using a preset similarity algorithm;
[0089] S214: Determine whether the similarity is greater than a similarity threshold;
[0090] S215: If it is greater than the similarity threshold, obtaining the historical execution operation corresponding to the data acquisition history instruction, and using the historical execution operation as the execution operation.
[0091] As described in the above steps S211-S215, the acquisition of execution operations is realized. Since there are some historical execution operations when acquiring data before, the historical execution operations can be operated by the user himself or by the RPS robot, so they can be obtained from the operation record, which is the client record or the record pre-stored in the RPA robot, which records various data acquisition instructions and corresponding execution operations. Therefore, similar historical instructions can be obtained through the similarity algorithm, and the corresponding historical execution operations can be obtained as the execution operations of the client data acquisition instructions.
[0092] In one embodiment, before step S1 of the RPA robot receiving the client data acquisition instruction in the business system through the integrated scheduling engine, the step further includes:
[0093] S001: Acquire a training set of the client; wherein the training data in the training set includes historical instructions and historical operation steps corresponding to the historical instructions;
[0094] S002: clustering each training data in the training set according to a preset clustering method, so as to obtain multiple sub-training sets;
[0095] S003: Input each sub-training set into different categories of the RPA initial robot for training to obtain the RPA robot.
[0096] As described in the above steps S001-S003, the training of the RPA robot is realized. Among them, different categories of execution operations are set in RPA, so the data in the training set needs to be split according to categories, wherein the preset clustering method can be any one of K-Means (K-means) clustering, mean shift clustering, and density-based clustering method (DBSCAN). Then it is input into the RPA initial robot for training to obtain the RPA robot, wherein the training method is the same as the existing RPA training method, and only the training data is different here. Thus, the acquisition of the RPA robot is realized.
[0097] In one embodiment, before the step S2 of obtaining the window handle of the system where the client is located through a preset selector based on the client data acquisition instruction and starting the corresponding client through the window handle, the step further includes:
[0098] S111: Detecting data information of the data to be acquired corresponding to the client data acquisition instruction;
[0099] S112: judging whether the data to be acquired is within the acquisition authority range based on the data information;
[0100] S113: If yes, execute the step of obtaining the window handle of the system where the client is located based on the client data acquisition instruction and through a preset selector, and start the corresponding client through the window handle.
[0101] As described in the above steps S111-S113, the detection of the client data acquisition authority is realized to avoid the leakage of confidential data. Since the client data acquisition instruction contains the data information of the data to be acquired, it can be parsed through the protocol corresponding to the client data acquisition instruction, and then based on the data information, it is judged whether the data information is within the acquisition authority. The judgment rule can be based on a preset confidential database to judge whether the data to be acquired is in the confidential database. If so, the client acquisition cannot be started. If not, it is considered that it is within the acquisition authority and the corresponding client acquisition can be started.
[0102] Reference Figure 2 The present invention also provides a data acquisition device based on an RPA robot, comprising:
[0103] A receiving module 10 is used to receive a client data acquisition instruction in a business system through an integrated scheduling engine; wherein the RPA robot pre-stores various programs for acquiring client data;
[0104] The parsing module 20 is used to parse the client data acquisition instruction to obtain data parameters of the client data, and to obtain the execution operation of the client data from the program according to the data acquisition instruction;
[0105] The startup module 30 is used to obtain the window handle of the system where the client is located through a preset selector based on the client data acquisition instruction, and start the corresponding client through the window handle;
[0106] An input module 40, used to input the data parameter in accordance with the execution operation in the interface of the client through the window handle;
[0107] The acquisition module 50 is used to acquire the client data generated on the client interface based on the data parameters.
[0108] Beneficial effects of the present invention: The RPA robot receives the client data acquisition instruction in the business system, obtains the data parameters of the client data and performs operations, starts the corresponding client and inputs the data parameters, and obtains the client data generated based on the data parameters on the client interface. Thus, when the client has no external interface, it can also provide client data to the business system, thereby improving the comprehensiveness of data acquisition.
[0109] Reference Figure 3 In the embodiment of the present application, a computer device is also provided. The computer device may be a server, and its internal structure may be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store various client data, etc. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the data acquisition method based on the RPA robot described in any of the above embodiments can be implemented.
[0110] Those skilled in the art will understand that Figure 3 The structure shown in is merely a block diagram of a portion of the structure related to the present application solution and does not constitute a limitation on the computer device to which the present application solution is applied.
[0111] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the data acquisition method based on the RPA robot described in any of the above embodiments can be implemented.
[0112] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0113] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method 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, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, device, article or method including the element.
[0114] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0115] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0116] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention shall be included in the scope of the claims of the present invention.
Claims
1. A data acquisition method based on an RPA robot, characterized in that: include: The RPA robot receives the client data acquisition instruction in the business system through the integrated scheduling engine; wherein the RPA robot pre-stores various programs for acquiring client data; Parsing the client data acquisition instruction to obtain data parameters of the client data, and acquiring an execution operation of the client data from the program according to the data acquisition instruction; Based on the client data acquisition instruction, the window handle of the system where the client is located is acquired through a preset selector, and the corresponding client is started through the window handle; Inputting the data parameter in accordance with the execution operation in the interface of the client through the window handle; Acquire client data generated on the client interface based on the data parameters; The steps of parsing the client data acquisition instruction to obtain data parameters of the client data, and acquiring the execution operation of the client data from the program according to the data acquisition instruction include: Parse the client data acquisition instruction to obtain data parameters of the client data to be acquired and the unique identifier information of the client; determine the corresponding client based on the unique identifier information; obtain the execution operation on the client according to a preset corresponding table; wherein the corresponding table pre-stores various client data and corresponding execution operations; or, determine the client corresponding to the client data acquisition instruction; obtain the data acquisition history instruction for the client from the operation record; calculate the similarity between the data acquisition history instruction and the client data acquisition instruction by a preset similarity algorithm; determine whether the similarity is greater than a similarity threshold; if it is greater than the similarity threshold, obtain the historical execution operation corresponding to the data acquisition history instruction, and use the historical execution operation as the execution operation; Before the steps of parsing the client data acquisition instruction to obtain the data parameters of the client data and acquiring the execution operation of the client data from the program according to the data acquisition instruction, the step further includes: Obtaining the priority of the client data acquisition instruction; Pushing the client data acquisition instruction into the message queue according to the priority and time sequence; Obtaining task information in the message queue that is arranged before the client data acquisition instruction; Acquire, according to the task processing record set, a first duration required to execute the task information and a second duration required to execute the client data acquisition instruction; Feeding back the first duration and the second duration to the business system; The step of obtaining the client data generated on the client interface based on the data parameters and uploading the client data to the business system includes: Taking a screenshot of the client interface to obtain a first picture; comparing the first picture with a second picture that fails a preset search; If the comparison results are different, uploading the first picture as the client data to the business system; If the comparison results are the same, the client data is re-entered until the obtained target image is different from the second image, and the target image is uploaded to the business system as the client data.
2. The data acquisition method based on the RPA robot according to claim 1, characterized in that: Before the step of the RPA robot receiving the client data acquisition instruction in the business system through the integrated scheduling engine, the step further includes: Acquire a training set of the client; wherein the training data in the training set includes historical instructions and historical operation steps corresponding to the historical instructions; Clustering each training data in the training set according to a preset clustering method to obtain multiple sub-training sets; Each sub-training set is input into different categories of the RPA initial robot for training to obtain the RPA robot.
3. The data acquisition method based on the RPA robot according to claim 1, characterized in that: Before the step of obtaining the window handle of the system where the client is located through a preset selector based on the client data acquisition instruction and starting the corresponding client through the window handle, the method further includes: Detecting data information of the data to be acquired corresponding to the client data acquisition instruction; Determining whether the data to be acquired is within the scope of the acquisition authority based on the data information; If so, the steps of obtaining the window handle of the system where the client is located based on the client data acquisition instruction and through a preset selector, and starting the corresponding client through the window handle are executed.
4. A data acquisition device based on an RPA robot, used to implement the method according to any one of claims 1 to 3, characterized in that: include: A receiving module, used to receive a client data acquisition instruction in a business system through an integrated scheduling engine; wherein the RPA robot pre-stores various programs for acquiring client data; A parsing module, used for parsing the client data acquisition instruction, obtaining data parameters of the client data, and acquiring an execution operation of the client data from the program according to the data acquisition instruction; A startup module, used to obtain the window handle of the system where the client is located through a preset selector based on the client data acquisition instruction, and start the corresponding client through the window handle; An input module, used for inputting the data parameter in accordance with the execution operation in the interface of the client through the window handle; An acquisition module, used for acquiring client data generated on the client interface based on the data parameters; The step of parsing the client data acquisition instruction to obtain data parameters of the client data, and obtaining the execution operation of the client data from the program according to the data acquisition instruction, comprises: parsing the client data acquisition instruction to obtain data parameters of the client data to be obtained, and unique identification information of the client; determining the corresponding client based on the unique identification information; obtaining the execution operation on the client according to a preset corresponding table; wherein the corresponding table pre-stores various client data and corresponding execution operations; Before the steps of parsing the client data acquisition instruction, obtaining the data parameters of the client data, and acquiring the execution operation of the client data from the program according to the data acquisition instruction, the method further includes: obtaining the priority of the client data acquisition instruction; pushing the client data acquisition instruction into the message queue according to the priority and time sequence; obtaining the task information sorted before the client data acquisition instruction in the message queue; obtaining the first time required to execute the task information and the second time required to execute the client data acquisition instruction according to the task processing record set; and feeding back the first time and the second time to the business system; The step of obtaining the client data generated on the client interface based on the data parameters and uploading the client data to the business system includes: Taking a screenshot of the client interface to obtain a first picture; comparing the first picture with a second picture that fails a preset search; If the comparison results are different, uploading the first picture as the client data to the business system; If the comparison results are the same, the client data is re-entered until the obtained target image is different from the second image, and the target image is uploaded to the business system as the client data.
5. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Handle permission control method, device and system based on identification key
CN111917552A
Task scheduling method and device combining RPA and AI, client and server
CN113467902A