Information synchronization method, device, electronic device and storage medium
By deploying information synchronization methods in RPA robot clusters, the problem of high manual login verification cost when a large number of RPA robots are disconnected is solved, session sharing is realized, manual login cost is reduced and information synchronization is ensured.
Patent Information
- Application Number
- CN202311296439.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-08
- Publication Date
- 2025-04-08
AI Technical Summary
In the application scenario where a large number of RPA robots are running simultaneously, when there are many RPA robots that are disconnected, the cost of manual login verification is higher.
By deploying the information synchronization method in the RPA robot cluster, if the status of the login target system timed out, the cookie information to be synchronized in the cloud server is queried to determine whether the local cookie information is the latest version. If the latest, log in again and synchronize the cookie information to be synchronized to realize session sharing.
It effectively reduces the cost of manual login, ensures the accuracy and reliability of information synchronization, and ensures the reliability of sharing various RPA robot sessions.
Smart Images

Figure CN119788686A_ABST
Abstract
Description
Background Art
[0002] In processes such as manufacturer order recording, in order to reduce labor costs and time costs, RPA robots can be used to operate the manufacturer's system.
[0003] In related technologies, RPA (Robotic Process Automation) robots can automatically log in when logging into the manufacturer's system. At this time, mechanisms such as SMS verification and email verification that require manual verification will be triggered to ensure security. However, in application scenarios where a large number of RPA robots need to run simultaneously, if many RPA robots are offline, the cost of manual login verification is high.
[0004] Therefore, there is an urgent need for an information synchronization method to achieve session sharing, thereby avoiding the need for a large number of RPA robots to re-login and reducing the cost of manual login.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] The present disclosure provides an information synchronization method, device, electronic device and storage medium, which at least to a certain extent overcome the problem in the related art that a large number of RPA robots are offline, resulting in high cost of manual login verification.
[0007] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0008] According to one aspect of the present disclosure, an information synchronization method is provided, which is executed by any RPA robot deployed in a Robotic Process Automation (RPA) robot cluster, and includes: if the state of logging into the target system times out, querying the cookie (a type of data) information to be synchronized stored in the current cloud server; determining whether the local cookie information is the latest version through the cookie information to be synchronized; if the local cookie information is the latest version, re-logging into the target system, and synchronizing the cookie information to be synchronized through the local cookie information.
[0009] In some exemplary embodiments, if the local cookie information is the latest version, the target system is logged in again, including: if the local cookie information is the latest version, determining whether the current number of logins meets a preset number threshold; if it does not meet the preset number threshold, logging in again to the target system; if it meets the preset number threshold, sending a login request message, which is used to request manual login.
[0010] In some exemplary embodiments, re-logging into the target system and synchronizing the cookie information to be synchronized through the local cookie information includes: executing a login script to re-login into the target system; determining whether the re-login is successful by operating the target system; if the re-login to the target system is successful, synchronizing the cookie information to be synchronized through the local cookie information; if the re-login to the target system fails, executing the step of determining whether the current number of logins meets the preset number threshold.
[0011] In some exemplary embodiments, after querying the cookie information to be synchronized stored in the current cloud server, the information synchronization method provided by the embodiment of the present disclosure also includes: determining whether the cookie information to be synchronized is valid information; if the cookie information to be synchronized is valid information, determining whether the local cookie information is the latest version through the cookie information to be synchronized; if the cookie information on the cloud to be synchronized is not valid information, re-querying the cookie information to be synchronized.
[0012] In some exemplary embodiments, if the local cookie information is the latest version, the target system is logged in again, and the cookie information to be synchronized is synchronized through the local cookie information, including: if the local cookie information is the latest version, the cookie information to be synchronized is set to invalid information, and a login request information is sent, and the login request information is used to request manual login; when the manual login is successful, the cookie information to be synchronized is synchronized through the local cookie information, and the synchronized cookie information is set to valid information.
[0013] In some exemplary embodiments, if the local cookie information is the latest version, re-logging into the target system includes: if the local cookie information is the latest version, requesting a write lock; if the write lock request is successful, re-logging into the target system.
[0014] In some exemplary embodiments, after determining whether the local cookie information is the latest version through the cookie information to be synchronized, the information synchronization method provided by the embodiment of the present disclosure also includes: if the local cookie information is not the latest version, updating the local cookie information through the cookie information to be synchronized to obtain updated local cookie information.
[0015] In some exemplary embodiments, determining whether the local cookie information is the latest version through the cookie information to be synchronized includes: comparing the version number of the cookie information to be synchronized with the version number of the local cookie information; if the version number of the cookie information to be synchronized is not greater than the version number of the local cookie information, determining that the local cookie information is the latest version; if the version number of the cookie information to be synchronized is greater than the version number of the local cookie information, determining that the local cookie information is not the latest version.
[0016] In some exemplary embodiments, the information synchronization method provided by the embodiments of the present disclosure also includes: pulling the task queue stored in the cloud server at every preset time interval; if the task queue includes tasks to be executed, operating the target system to determine whether the status of logging into the target system has timed out.
[0017] According to another aspect of the present disclosure, an information synchronization device is also provided, which is applied to any RPA robot deployed in an RPA robot cluster, including: an information acquisition module, which is used to query the cookie information to be synchronized stored in the current cloud server if the state of logging into the target system times out; a version determination module, which is used to determine whether the local cookie information is the latest version through the cookie information to be synchronized; an information synchronization module, which is used to re-login to the target system if the local cookie information is the latest version, and synchronize the cookie information to be synchronized through the local cookie information, and the synchronized cookie information is used for session sharing among the RPA robots in the RPA robot cluster.
[0018] In some exemplary embodiments, the information synchronization module is used to determine whether the current number of logins meets a preset number threshold if the local cookie information is the latest version; if it does not meet the preset number threshold, re-login to the target system; if it meets the preset number threshold, send a login request information, and the login request information is used to request manual login.
[0019] In some exemplary embodiments, the information synchronization module is used to execute a login script to re-login to the target system; by operating the target system, determine whether the re-login is successful; if the re-login to the target system is successful, synchronize the cookie information to be synchronized through the local cookie information; if the re-login to the target system fails, execute the step of determining whether the current number of logins meets the preset number threshold.
[0020] In some exemplary embodiments, the information synchronization device provided by the embodiments of the present disclosure also includes: a valid information determination module, used to determine whether the cookie information to be synchronized is valid information; if the cookie information to be synchronized is valid information, executing the step of determining whether the local cookie information is the latest version through the cookie information to be synchronized; if the cookie information on the cloud to be synchronized is not valid information, re-querying the cookie information to be synchronized.
[0021] In some exemplary embodiments, the information synchronization module is used to set the cookie information to be synchronized as invalid information if the local cookie information is the latest version, and send login request information, where the login request information is used to request manual login; when the manual login is successful, the cookie information to be synchronized is synchronized through the local cookie information, and the synchronized cookie information is set as valid information.
[0022] In some exemplary embodiments, the information synchronization module is used to request a write lock if the local cookie information is the latest version; if the write lock request is successful, re-login to the target system.
[0023] In some exemplary embodiments, the information synchronization device provided by the embodiments of the present disclosure further includes: a local cookie information update module, which is used to update the local cookie information through the cookie information to be synchronized if the local cookie information is not the latest version, so as to obtain updated local cookie information.
[0024] In some exemplary embodiments, the version determination module is used to compare the version number of the cookie information to be synchronized with the version number of the local cookie information; if the version number of the cookie information to be synchronized is not greater than the version number of the local cookie information, it is determined that the local cookie information is the latest version; if the version number of the cookie information to be synchronized is greater than the version number of the local cookie information, it is determined that the local cookie information is not the latest version.
[0025] In some exemplary embodiments, the information synchronization device provided by the embodiments of the present disclosure further includes: a task queue pulling module, used to pull the task queue stored in the cloud server at every preset time interval; a login status judgment module, used to operate the target system to determine whether the login status of the target system has timed out if the task queue includes tasks to be executed.
[0026] According to another aspect of the present disclosure, an electronic device is also provided, which includes: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the above-mentioned information synchronization methods by executing the executable instructions.
[0027] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, any one of the above-mentioned information synchronization methods is implemented.
[0028] According to another aspect of the present disclosure, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the information synchronization method provided in various optional ways in any embodiment of the present disclosure.
[0029] The technical solution provided by the embodiment of the present disclosure can be implemented by deploying an RPA robot cluster and synchronizing the cookie information of each RPA robot therein, so that after an RPA robot successfully logs in, it can share the session with other RPA robots, avoiding manual login for each RPA robot separately, and effectively reducing the cost of manual login. In addition, by verifying whether the local cookie information is the latest version before login, the accuracy and reliability of information synchronization can be effectively ensured, thereby ensuring the reliability of session sharing of each RPA robot.
[0030] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0032] Figure 1 A schematic diagram showing a system structure in an embodiment of the present disclosure;
[0033] Figure 2 A schematic diagram showing cookie information synchronization in an embodiment of the present disclosure is shown;
[0034] Figure 3 A flow chart of an information synchronization method according to an embodiment of the present disclosure is shown;
[0035] Figure 4 Another information synchronization method flow chart according to an embodiment of the present disclosure is shown;
[0036] Figure 5 Another information synchronization method flow chart according to an embodiment of the present disclosure is shown;
[0037] Figure 6 A schematic diagram of an information synchronization device according to an embodiment of the present disclosure is shown;
[0038] Figure 7 A schematic diagram showing an electronic device in an embodiment of the present disclosure;
[0039] Figure 8 A schematic diagram of a computer-readable storage medium in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0040] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0041] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0042] The specific implementation of the embodiment of the present disclosure is described in detail below with reference to the accompanying drawings.
[0043] Figure 1 FIG. 1 is a schematic diagram showing a system architecture to which an information synchronization method according to an embodiment of the present disclosure can be applied. Figure 1As shown, the system architecture may include any RPA robot 101 in the RPA robot cluster, a network 102 and a cloud server 103.
[0044] Among them, the RPA robot 101 can query the cookie information to be synchronized stored in the current cloud server 103 when the state of logging into the target system times out. Then, the RPA robot 101 can determine whether the local cookie information is the latest version through the cookie information to be synchronized. If the local cookie information is the latest version, re-login to the target system and synchronize the cookie information to be synchronized through the local cookie information. In addition, the synchronized cookie information can be used for session sharing among the RPA robots in the RPA robot cluster.
[0045] The network 102 is used as a medium to provide a communication link between the RPA robot 101 and the cloud server 103, and can be a wired network or a wireless network.
[0046] Optionally, the wireless network or wired network described above uses standard communication technology and / or protocol. The network is usually the Internet, but it can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network or any combination of a virtual private network). In some embodiments, the data exchanged through the network is represented by technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPSec) can also be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above data communication technologies.
[0047] The RPA robot 101 can be deployed in various electronic devices, including but not limited to smartphones, tablet computers, laptop computers, desktop computers, smart speakers, smart watches, wearable devices, augmented reality devices, virtual reality devices and other terminal devices.
[0048] The cloud server 103 may be a server that provides various services, such as a background management server that provides support for the device operated by the user using the RPA robot 101. The background management server may analyze and process the received request and other data, and feed back the processing results to the terminal device.
[0049] Optionally, the cloud server 103 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.
[0050] Those skilled in the art will know that Figure 1 The number of RPA robots 101, networks 102, and cloud servers 103 is only illustrative, and any number of RPA robots 101, networks 102, and cloud servers 103 may be provided according to actual needs. This is not limited in the embodiments of the present disclosure.
[0051] Exemplarily, a schematic diagram of cookie information synchronization provided by an embodiment of the present disclosure may be as follows: Figure 2 As shown. Figure 2 In the example, the administrator can synchronize the cookie cloud through the management terminal. It should be noted that the management terminal can also be called the cluster master (administrator). Multiple RPA robots can be deployed in the RPA robot cluster, and each RPA robot can pull the cookie information contained in the cookie cloud to achieve session sharing. Under the above system architecture, an information synchronization method is provided in the embodiment of the present disclosure, which can be executed by any electronic device with computing processing capabilities.
[0052] In some embodiments, the information synchronization method provided in the embodiments of the present disclosure can be performed by the RPA robot of the above system architecture. In other embodiments, the information synchronization method provided in the embodiments of the present disclosure can be implemented by the RPA robot and the cloud server in the above system architecture through interaction.
[0053] Figure 3A flow chart of an information synchronization method in an embodiment of the present disclosure is shown, and the information synchronization method can be executed by an RPA robot. Figure 3 As shown, the information synchronization method provided in the embodiment of the present disclosure includes the following steps S302 to S306.
[0054] S302: If the state of logging into the target system times out, query the cookie information to be synchronized stored in the current cloud server.
[0055] The embodiments of the present disclosure do not limit the target system, and the target system can be determined according to the application scenario. For example, the embodiments of the present disclosure can be applied to the scenario of manufacturer recording orders in a maintenance center. In this case, the target system can be the manufacturer system of the maintenance center, and the target system can record orders through an RPA robot. Alternatively, the embodiments of the present disclosure can be applied to e-commerce system transaction scenarios. In this case, the target system can be the system of an e-commerce platform, and the target system can record transaction information through an RPA robot.
[0056] For example, the RPA robot may be configured with a pre-written script, and the RPA robot may log in to the target system and perform corresponding operations by executing the script. In addition, the embodiment of the present disclosure does not limit the number of RPA robots. For example, the number of RPA robots that can operate the target system may be 1, 100, or 500.
[0057] It should be noted that each RPA robot can interact with the target system, and the operations performed by different RPA robots on the target system can be the same or different. Moreover, in the related art, any RPA robot needs to log in again to establish a connection with the target system after being offline. Therefore, when the number of RPA robots is large or the manual verification steps are complex, the login cost is large. The disclosed embodiment can deploy each RPA robot in an RPA robot cluster, and realize session sharing of each RPA robot through information synchronization method, so that after an RPA robot logs in again, other RPA robots in the RPA robot cluster do not need to log in separately, thereby effectively reducing the cost of manual login.
[0058] Exemplarily, the cloud server can be used to store cookie information. In a possible implementation, the cloud server can be a cookie cloud. It should be noted that the RPA robot can query the cookie information in the cloud server when the state of logging into the target system has timed out or not, but the RPA robot can only synchronize the cookie information in the cloud server when the state of logging into the target system has not timed out.
[0059] In some embodiments, the information synchronization method provided by the embodiments of the present disclosure may also include: pulling the task queue stored in the cloud server at every preset time interval; if the task queue includes tasks to be executed, operating the target system to determine whether the status of logging into the target system has timed out.
[0060] Exemplarily, the task queue may include operations to be performed by each RPA robot on the target system, and the RPA robot cluster may pull the task queue at a preset time interval. If there is a task to be executed, the corresponding RPA robot executes the corresponding script to operate the target system. If the login status of the RPA robot has timed out at this time, it is necessary to log in again. At this time, the RPA robot can execute step S302. If the login status of the RPA robot has not timed out, the script can continue to be executed.
[0061] The disclosed embodiment enables the RPA robot to keep operating the target system as much as possible by pulling the task queue regularly, thereby reducing the probability of the RPA robot being offline. Therefore, the disclosed embodiment can reduce the frequency of repeated logins and reduce the cost of manual logins.
[0062] The embodiment of the present disclosure does not limit the length of the preset time interval. For example, the preset time interval may be 0.5 seconds, 1 second, or 1 minute.
[0063] It should be noted that due to different application scenarios, the complexity of RPA robot login verification may vary. In some embodiments, the RPA robot can log in through authentication mechanisms such as SMS verification code verification, email verification code verification, human-machine authentication, etc. At this time, a fixed login script can be used to achieve automatic login of the RPA robot. In other embodiments, login authentication is more complicated and cannot be achieved simply through a fixed login script. Manual processing is still required.
[0064] In some embodiments, for scenarios that still require manual processing, after querying the cookie information to be synchronized stored in the current cloud server, the information synchronization method provided by the disclosed embodiment may also include: determining whether the cookie information to be synchronized is valid information; if the cookie information to be synchronized is valid information, executing the step of determining whether the local cookie information is the latest version through the cookie information to be synchronized; if the cookie information on the cloud to be synchronized is not valid information, re-querying the cookie information to be synchronized.
[0065] In an exemplary embodiment, if the cookie to be synchronized is valid information, the target system can be operated, and the interface returns to normal. When the database saves the cookie information, a field can be generated to mark whether the cookie information is valid information.
[0066] S304: Determine whether the local cookie information is the latest version based on the cookie information to be synchronized.
[0067] In some embodiments, determining whether the local cookie information is the latest version is done through the cookie information to be synchronized, including: comparing the version number of the cookie information to be synchronized with the version number of the local cookie information; if the version number of the cookie information to be synchronized is not greater than the version number of the local cookie information, determining that the local cookie information is the latest version; if the version number of the cookie information to be synchronized is greater than the version number of the local cookie information, determining that the local cookie information is not the latest version.
[0068] In an exemplary embodiment, any version of cookie information corresponds to a version number, so whether the local cookie information is the latest version can be determined by comparing the version number of the cookie information to be synchronized with the version number of the local cookie information. The disclosed embodiment does not limit the representation of the version number, for example, it can be represented by an integer, or it can be represented by a decimal. Exemplarily, if the version number of the cookie information to be synchronized is 5.4, and the version number of the local cookie information is 5.5, then the version number of the local cookie information is greater than the version number of the cookie information to be synchronized, so the local cookie information is the current latest version.
[0069] In some embodiments, it may be determined whether the cookie information to be synchronized is valid information first, and after determining that the cookie information to be synchronized is priority information, the version number of the valid cookie information to be synchronized is compared with the version number of the local cookie information.
[0070] In the disclosed embodiment, the RPA robot can determine whether the local cookie information is the latest version before re-logging in, so as to avoid the cookie information in the cloud server being overwritten by the old version. Therefore, the disclosed embodiment can ensure the accuracy and reliability of information synchronization, thereby ensuring the reliability of each RPA robot session sharing.
[0071] In some embodiments, after determining whether the local cookie information is the latest version through the cookie information to be synchronized, the information synchronization method provided by the embodiment of the present disclosure may also include: if the local cookie information is not the latest version, updating the local cookie information through the cookie information to be synchronized to obtain updated local cookie information.
[0072] For example, when the local cookie information is not the latest version, the RPA robot can store the cookie information to be synchronized to update the local cookie information. And after updating the local cookie information, the target system can be re-operated and steps S302 to S304 can be performed again to re-determine whether the local cookie information is the latest version.
[0073] It should be noted that if the version number of the local cookie information is not greater than the version number of the cookie information to be synchronized, it means that other RPA robots may have synchronized the cookie information stored in the cloud server, and the synchronized cookie information has not been synchronized to the RPA robot to be logged in again. Therefore, the RPA robot to be logged in again needs to update the local cookie information first and then log in again.
[0074] S306: If the local cookie information is the latest version, log in to the target system again, and synchronize the cookie information to be synchronized through the local cookie information. The synchronized cookie information is used for session sharing among the RPA robots in the RPA robot cluster.
[0075] In some embodiments, if the local cookie information is the latest version, re-logging into the target system includes: if the local cookie information is the latest version, requesting a write lock; if the write lock request is successful, re-logging into the target system.
[0076] Exemplarily, the write lock can only be acquired by one RPA robot at a time, and the write lock can be a distributed lock, etc. The disclosed embodiment ensures that only one RPA robot can synchronize cookie information at the same time through the step of the RPA robot requesting the write lock, thereby avoiding frequent logins, reducing login costs, and avoiding restrictions or blacklisting due to frequent logins.
[0077] In some embodiments, in a scenario where a fixed login script can be used to implement automatic login of an RPA robot, the above-mentioned re-login to the target system if the local cookie information is the latest version may include: if the local cookie information is the latest version, determining whether the current number of logins meets a preset number threshold; if it does not meet the preset number threshold, re-login to the target system; if it meets the preset number threshold, sending a login request message, which is used to request manual login.
[0078] Exemplarily, the login request information can be determined according to the login verification method of the RPA robot in the application scenario. Exemplarily, the login request information can be sent via SMS, phone, email, etc. In addition, the embodiment of the present disclosure does not limit the preset number of times threshold, which can be determined based on experience or application scenarios. For example, the preset number of times threshold can be 5, 10, 20 or 50, etc.
[0079] For scenarios where a fixed login script can be used to implement automatic login of the RPA robot, the disclosed embodiment can set a preset number threshold so that the RPA robot can automatically log in without manual verification when the preset number threshold is not reached. When the preset number threshold is reached, manual verification is performed to ensure the security of the target system. Therefore, the disclosed embodiment can reduce the login cost while avoiding frequent automatic login of the RPA robot and ensuring the security of the target system.
[0080] In some embodiments, re-logging into the target system and synchronizing the cookie information to be synchronized through the local cookie information includes: executing a login script to re-login into the target system; determining whether the re-login is successful by operating the target system; if the re-login into the target system is successful, synchronizing the cookie information to be synchronized through the local cookie information; if the re-login into the target system fails, executing the step of determining whether the current number of logins meets the preset number threshold.
[0081] For example, if the target system can be operated, it proves that the re-login is successful. If the target system cannot be operated, it proves that the re-login failed. At this time, it can be re-determined whether the current number of logins meets the preset number threshold. If it does not meet the preset number threshold, the login script can be re-executed to log in again. If the preset number threshold is met at this time, it is necessary to send a login request message to request manual login, so as to avoid frequent automatic login of the RPA robot and ensure the security of the target system.
[0082] In some embodiments, for scenarios that still require manual processing, after querying the cookie information to be synchronized stored in the current cloud server, it is possible to determine whether the cookie information to be synchronized is valid information. In this case, if the local cookie information is the latest version, re-login to the target system and synchronize the cookie information to be synchronized through the local cookie information, including: if the local cookie information is the latest version, set the cookie information to be synchronized as invalid information and send a login request message, which is used to request manual login; when the manual login is successful, synchronize the cookie information to be synchronized through the local cookie information, and set the synchronized cookie information to be valid information.
[0083] In an exemplary embodiment, the sending method of the login request information may be the same as or different from the sending method in the RPA robot automatic login scenario. In addition, the login request information may also be used to instruct the corresponding administrator to update the corresponding version number.
[0084] In a possible implementation, the administrator can log in by operating a browser with a cookie cloud plug-in installed. After successful login, the plug-in can synchronize local cookie information to the cookie cloud. In addition, the RPA robot cluster can subsequently operate the target system after pulling the synchronized cookie information.
[0085] It should be noted that the plug-in in the browser is a script that can expand the functions of the browser, and it can expand the functions of the browser according to the actual scenario of the user.
[0086] In an exemplary embodiment, after the RPA robot successfully re-logins, the local cookie information can be synchronized to the cloud server and the corresponding version number can be updated. Afterwards, each RPA robot in the RPA robot cluster can pull the synchronized cookie information for synchronization. When any RPA robot needs to operate the target system, the synchronized cookie information can be used for session sharing, so that when the login status of any RPA robot in the RPA cluster has not expired, other RPA robots in the cluster can operate the target system based on session sharing, thereby avoiding the need for each RPA robot to re-login and effectively reducing the login cost.
[0087] In an exemplary embodiment, the acquired write lock may be released after the update is completed, so that other RPA robots can subsequently acquire the write lock when they need to synchronize cookie information.
[0088] The method provided by the embodiment of the present disclosure can realize session sharing with other RPA robots after a successful login of an RPA robot by deploying an RPA robot cluster and synchronizing cookie information of each RPA robot therein, thereby avoiding manual login of each RPA robot separately, and effectively reducing the cost of manual login. In addition, by verifying whether the local cookie information is the latest version before login, the accuracy and reliability of information synchronization can be effectively ensured, thereby ensuring the reliability of session sharing of each RPA robot.
[0089] For example, a flow chart of an information synchronization method provided by an embodiment of the present disclosure may be as follows: Figure 3 This information synchronization method corresponds to the scenario where the RPA robot automatically logs in by executing a fixed login script.
[0090] S402, start.
[0091] S404, operating the target system.
[0092] S406, determine whether the login state has timed out. If not, execute step S408. If timed out, execute step S410.
[0093] S408, continue executing the script.
[0094] S410, sending a query request to the cookie cloud to obtain the cookie information to be synchronized.
[0095] S412, determine whether the version number of the cookie information to be synchronized is greater than the version number of the local cookie information. If so, execute step S414. If not, execute step S416.
[0096] S414, update local cookie information.
[0097] S416, requesting a write lock for writing the cookie.
[0098] S418, determine whether the write lock is successfully acquired. If the write lock is not acquired, execute step S420. If the write lock is acquired, execute step S422.
[0099] S420, waiting for a period of time and re-acquiring the cookie information to be synchronized.
[0100] S422, determine whether the current number of logins meets the preset number threshold. If yes, execute step S424. If not, execute step S426.
[0101] S424, sending a login request message to the administrator via SMS, phone call or email.
[0102] S426, execute the login script to re-login.
[0103] S428, determine whether the re-login is successful. If failed, execute step S422. If successful, execute step S430.
[0104] S430, synchronize the local cookie information to the cookie cloud and update the version number.
[0105] S432, release the write lock.
[0106] S434, end.
[0107] It should be noted that Figure 4 The implementation method of steps S402 to S434 shown in the above can refer to the relevant descriptions in S302 to S306, which will not be repeated here.
[0108] For example, a flow chart of an information synchronization method provided by an embodiment of the present disclosure may be as follows: Figure 5 This information synchronization method corresponds to the scenario where the RPA robot login verification is more complicated and cannot be achieved by executing a fixed login script to achieve automatic login, and manual processing is still required.
[0109] S502, start.
[0110] S504, operating the target system.
[0111] S506, determine whether the login state has timed out. If not, execute step S508. If timed out, execute step S510.
[0112] S508, continue executing the script.
[0113] S510, sending a query request to the cookie cloud to obtain the cookie information to be synchronized
[0114] S512, determine whether the cookie information to be synchronized is valid. If not, execute step S514. If valid, execute step S516.
[0115] S514, wait for a while, and then execute step S510.
[0116] S516, determine whether the version number of the cookie information to be synchronized is greater than the version number of the local cookie information. If so, execute step S518. If not, execute step S520.
[0117] S518, update local cookie information.
[0118] S520, requesting a write lock for writing a cookie.
[0119] S522, determine whether the write lock is successfully acquired. If the write lock is not acquired, execute step S514. If the write lock is acquired, execute step S524.
[0120] S524, setting the cookie information to be synchronized as invalid information, and sending login request information.
[0121] S526: The administrator performs a login operation based on the login request information.
[0122] S528, synchronizing the cookie information to be synchronized through the local cookie information, setting the synchronized cookie information as valid information, and updating the version number.
[0123] S530, end.
[0124] It should be noted that Figure 5 The implementation method of steps S502 to S530 shown in the above can refer to the relevant descriptions in S302 to S306, which will not be repeated here.
[0125] Based on the same inventive concept, the present disclosure also provides an information synchronization device, as described in the following embodiments. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.
[0126] Figure 6 A schematic diagram of an information synchronization device in an embodiment of the present disclosure is shown. Figure 6 As shown, the device is applied to any RPA robot deployed in the RPA robot cluster, including: an information acquisition module 601, which is used to query the cookie information to be synchronized stored in the current cloud server if the state of logging into the target system times out; a version determination module 602, which is used to determine whether the local cookie information is the latest version through the cookie information to be synchronized; an information synchronization module 603, which is used to re-login to the target system if the local cookie information is the latest version, and synchronize the cookie information to be synchronized through the local cookie information. The synchronized cookie information is used for session sharing among the RPA robots in the RPA robot cluster.
[0127] In some exemplary embodiments, the information synchronization module 603 is used to determine whether the current number of logins meets a preset number threshold if the local cookie information is the latest version; if it does not meet the preset number threshold, re-login to the target system; if it meets the preset number threshold, send a login request information, and the login request information is used to request manual login.
[0128] In some exemplary embodiments, the information synchronization module 603 is used to execute a login script to re-login to the target system; by operating the target system, determine whether the re-login is successful; if the re-login to the target system is successful, synchronize the cookie information to be synchronized through the local cookie information; if the re-login to the target system fails, execute the step of determining whether the current number of logins meets the preset number threshold.
[0129] In some exemplary embodiments, the information synchronization device provided by the embodiments of the present disclosure also includes: a valid information determination module, used to determine whether the cookie information to be synchronized is valid information; if the cookie information to be synchronized is valid information, executing the step of determining whether the local cookie information is the latest version through the cookie information to be synchronized; if the cookie information on the cloud to be synchronized is not valid information, re-querying the cookie information to be synchronized.
[0130] In some exemplary embodiments, the information synchronization module 603 is used to set the cookie information to be synchronized as invalid information if the local cookie information is the latest version, and send login request information, where the login request information is used to request manual login; when the manual login is successful, the cookie information to be synchronized is synchronized through the local cookie information, and the synchronized cookie information is set as valid information.
[0131] In some exemplary embodiments, the information synchronization module 603 is used to request a write lock if the local cookie information is the latest version; if the write lock request is successful, re-login to the target system.
[0132] In some exemplary embodiments, the information synchronization device provided by the embodiments of the present disclosure further includes: a local cookie information update module, which is used to update the local cookie information through the cookie information to be synchronized if the local cookie information is not the latest version, so as to obtain updated local cookie information.
[0133] In some exemplary embodiments, the version determination module 602 is used to compare the version number of the cookie information to be synchronized with the version number of the local cookie information; if the version number of the cookie information to be synchronized is not greater than the version number of the local cookie information, it is determined that the local cookie information is the latest version; if the version number of the cookie information to be synchronized is greater than the version number of the local cookie information, it is determined that the local cookie information is not the latest version.
[0134] In some exemplary embodiments, the information synchronization device provided by the embodiments of the present disclosure further includes: a task queue pulling module, used to pull the task queue stored in the cloud server at every preset time interval; a login status judgment module, used to operate the target system to determine whether the login status of the target system has timed out if the task queue includes tasks to be executed.
[0135] It should be noted that the above-mentioned information acquisition module 601, version determination module 602 and information synchronization module 603 may correspond to S302 to S306 in the method embodiment, and the examples and application scenarios implemented by the above-mentioned modules and corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned method embodiment. It should be noted that the above-mentioned modules as part of the device can be executed in a computer system such as a set of computer executable instructions.
[0136] The device provided by the embodiment of the present disclosure can deploy an RPA robot cluster and synchronize cookie information for each RPA robot therein, so that after an RPA robot successfully logs in, it can share a session with other RPA robots, avoiding manual login for each RPA robot separately, and effectively reducing the cost of manual login. In addition, by verifying whether the local cookie information is the latest version before logging in, the accuracy and reliability of information synchronization can be effectively ensured, thereby ensuring the reliability of session sharing of each RPA robot.
[0137] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".
[0138] Refer to the following Figure 7 An electronic device 700 according to this embodiment of the present disclosure is described. Figure 7 The electronic device 700 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0139] like Figure 7 As shown, the electronic device 700 is in the form of a general computing device. The components of the electronic device 700 may include but are not limited to: at least one processing unit 710, at least one storage unit 720, and a bus 730 connecting different system components (including the storage unit 720 and the processing unit 710).
[0140] The storage unit stores a program code, which can be executed by the processing unit 710, so that the processing unit 710 executes the steps described in the "Exemplary Method" section of the specification according to various exemplary embodiments of the present disclosure. For example, the processing unit 710 can execute the following steps of the above method embodiment: if the state of logging into the target system times out, query the cookie information to be synchronized stored in the current cloud server; determine whether the local cookie information is the latest version through the cookie information to be synchronized; if the local cookie information is the latest version, re-login to the target system and synchronize the cookie information to be synchronized through the local cookie information.
[0141] The storage unit 720 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 7201 and / or a cache storage unit 7202 , and may further include a read-only storage unit (ROM) 7203 .
[0142] The storage unit 720 may also include a program / utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0143] Bus 730 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0144] The electronic device 700 may also communicate with one or more external devices 740 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 700, and / or communicate with any device that enables the electronic device 700 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 750. Furthermore, the electronic device 700 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 760. As shown, the network adapter 760 communicates with other modules of the electronic device 700 via a bus 730. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0145] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0146] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart may be implemented as a computer program product, which includes: a computer program, which implements the above information synchronization method when executed by a processor.
[0147] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is further provided, which may be a readable signal medium or a readable storage medium. Figure 8 A schematic diagram of a computer-readable storage medium in an embodiment of the present disclosure is shown. Figure 8 As shown, a program product capable of implementing the above method of the present disclosure is stored on the computer-readable storage medium 800. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary implementations of the present disclosure described in the above “Exemplary Method” section of this specification.
[0148] More specific examples of computer-readable storage media in the present disclosure may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0149] In the present disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0150] Alternatively, the program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0151] In a specific implementation, the program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0152] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0153] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0154] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0155] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
Claims
1. An information synchronization method, characterized in that: The method is executed by any RPA robot deployed in a Robotic Process Automation (RPA) robot cluster, and includes: If the state of logging into the target system times out, query the cookie information to be synchronized stored in the current cloud server; Determine whether the local cookie information is the latest version through the cookie information to be synchronized; If the local cookie information is the latest version, log in to the target system again, synchronize the cookie information to be synchronized through the local cookie information, and the synchronized cookie information is used for session sharing among the RPA robots in the RPA robot cluster.
2. The information synchronization method according to claim 1, characterized in that: If the local cookie information is the latest version, re-login to the target system, including: If the local cookie information is the latest version, determine whether the current number of logins meets the preset number threshold; If the preset number of times threshold is not met, the target system is logged in again; if the preset number of times threshold is met, a login request message is sent, and the login request message is used to request manual login.
3. The information synchronization method according to claim 2, characterized in that: Re-login to the target system and synchronize the cookie information to be synchronized through the local cookie information, including: Executing a login script to re-login the target system; By operating the target system, determining whether the re-login is successful; If the re-login to the target system is successful, the cookie information to be synchronized is synchronized through the local cookie information; if the re-login to the target system fails, the step of determining whether the current number of logins meets the preset number threshold is executed.
4. The information synchronization method according to claim 1, characterized in that: After querying the cookie information to be synchronized stored in the current cloud server, the method further includes: Determine whether the cookie information to be synchronized is valid information; If the cookie information to be synchronized is valid information, the step of determining whether the local cookie information is the latest version through the cookie information to be synchronized is executed; if the cookie information on the cloud to be synchronized is not valid information, the cookie information to be synchronized is re-queried.
5. The information synchronization method according to claim 1 or 4, characterized in that: If the local cookie information is the latest version, re-login to the target system and synchronize the cookie information to be synchronized through the local cookie information, including: If the local cookie information is the latest version, the cookie information to be synchronized is set to invalid information, and a login request information is sent, where the login request information is used to request manual login; When the manual login is successful, the cookie information to be synchronized is synchronized through the local cookie information, and the synchronized cookie information is set as valid information.
6. The information synchronization method according to claim 1, characterized in that: If the local cookie information is the latest version, re-login to the target system, including: If the local cookie information is the latest version, request a write lock; If the write lock request is successful, log in to the target system again.
7. The information synchronization method according to claim 6, characterized in that: After determining whether the local cookie information is the latest version through the cookie information to be synchronized, the method further includes: If the local cookie information is not the latest version, the local cookie information is updated using the cookie information to be synchronized to obtain updated local cookie information.
8. The information synchronization method according to claim 1 or 2, characterized in that: Determining whether the local cookie information is the latest version through the cookie information to be synchronized includes: Compare the version number of the cookie information to be synchronized with the version number of the local cookie information; If the version number of the cookie information to be synchronized is not greater than the version number of the local cookie information, it is determined that the local cookie information is the latest version; if the version number of the cookie information to be synchronized is greater than the version number of the local cookie information, it is determined that the local cookie information is not the latest version.
9. The information synchronization method according to claim 1 or 2, characterized in that: The method further comprises: At every preset time interval, pulling the task queue stored in the cloud server; If the task queue includes tasks to be executed, the target system is operated to determine whether the state of logging into the target system has timed out.
10. An information synchronization device, characterized in that: Applicable to any RPA robot deployed in the RPA robot cluster, including: The information acquisition module is used to query the cookie information to be synchronized stored in the current cloud server if the state of logging into the target system times out; A version determination module, used to determine whether the local cookie information is the latest version through the cookie information to be synchronized; The information synchronization module is used to re-login to the target system if the local cookie information is the latest version, and synchronize the cookie information to be synchronized through the local cookie information. The synchronized cookie information is used for session sharing among the RPA robots in the RPA robot cluster.
11. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the information synchronization method according to any one of claims 1 to 9 by executing the executable instructions.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the information synchronization method according to any one of claims 1 to 9 is implemented.
Citation Information
Cited By
RPA distributed system and concurrent execution method of RPA distributed system
CN122507487A