Extension instruction updating method, device, electronic device and storage medium

By obtaining the latest expansion dependency information from the back-end server and automatically updating the local expansion instructions of the RPA application, the problem of manual update of dependencies in the existing technology is solved, and the update efficiency and convenience are improved.

CN117289965BActive Publication Date: 2024-08-30SHANGHAI DINGZAN INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311139533.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-05
Publication Date
2024-08-30
Estimated Expiration
2043-09-05

AI Technical Summary

Technical Problem

Existing RPA applications rely heavily on manual operations when updating expansion instructions, which results in inconvenient maintenance and lacks an automated update mechanism, affecting update efficiency.

Method used

By obtaining the latest expansion dependency information of the application from the back-end server, comparing and updating local expansion instructions, automatic updates are realized, avoiding manual updates, and improving update efficiency.

Benefits of technology

Automatic updating of local expansion instructions that applications rely on is realized, reducing manual intervention and improving update efficiency and convenience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117289965B
    Figure CN117289965B
Patent Text Reader

Abstract

The present invention discloses an extended instruction updating method, device, electronic device and storage medium, and relates to the field of computer technology. The method comprises: obtaining the latest extended dependency information corresponding to a local application from a back-end server; comparing the latest extended dependency information with the local extended dependency information of the local application to obtain extended instruction information to be updated; updating the local extended instructions that the local application depends on according to the extended instruction information to be updated; automatically obtaining the latest extended dependency information corresponding to the local application from the back-end server, and using the information to update the local extended instructions that the local application depends on, thereby avoiding manual updating and improving updating efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an extended instruction updating method, device, electronic device and storage medium. Background Art

[0002] To improve operational management efficiency, enterprises can introduce RPA (Robotic Process Automation) to automatically perform tasks with low repetitiveness and low added value. RPA can simulate manual operations through robot software, thereby achieving the purpose of automatically operating computers.

[0003] In the related art, in order to achieve process reuse, the RPA editor usually supports the extended instruction function, where the extended instruction is a combination of RPA instructions that can be used to implement a specific process. By using this function, an RPA application can rely on multiple extended instructions to reuse existing processes; each extended instruction can also be relied on by multiple RPA applications. At the same time, in order to update existing processes, the RPA editor also supports updating extended instructions. However, the existing RPA application maintenance method relies heavily on manual operations, which means that after a certain extended instruction is updated, the extended instruction needs to be further manually updated in each RPA application, which in turn brings inconvenience to the maintenance of the RPA application. Summary of the invention

[0004] The purpose of the present invention is to provide a method, device, computer equipment and medium for automatically upgrading extension instructions, which can automatically obtain the latest extension dependency information corresponding to the application from the back-end server, and use the information to automatically update the local extension instructions that the application depends on, thereby avoiding manual updates and improving update efficiency.

[0005] According to one aspect of the present invention, the present invention provides an extended instruction updating method, comprising:

[0006] Get the latest extension dependency information corresponding to the application from the backend server;

[0007] Compare the latest extension dependency information with the local extension dependency information of the application to obtain the extension instruction information to be updated;

[0008] The local extended instructions that the application depends on are updated according to the extended instruction information to be updated.

[0009] Optionally, comparing the latest extension dependency information with the local extension dependency information of the application to obtain the extension instruction information to be updated includes:

[0010] For each extension instruction in the latest extension dependency information, determining whether information of the extension instruction is recorded in the local extension dependency information;

[0011] If not, setting the information of the extended instruction in the latest extended dependency information as the extended instruction information to be updated;

[0012] If yes, determining whether the version number of the extension instruction in the latest extension dependency information is greater than the version number of the extension instruction in the local extension dependency information;

[0013] If it is greater, the information of the extended instruction in the latest extended dependency information is set as the extended instruction information to be updated.

[0014] Optionally, updating the local extended instruction that the application depends on according to the extended instruction information to be updated includes:

[0015] The local extended instructions are updated using the extended instructions corresponding to each of the extended instruction information to be updated obtained from the back-end server;

[0016] Obtain the latest Python package dependency information corresponding to each of the updated local extension instructions;

[0017] Compare the latest Python package dependency information with the local Python package dependency information of the application to obtain the Python package information to be updated;

[0018] The local Python package that the application depends on is updated according to the Python package information to be updated.

[0019] Optionally, comparing the latest Python package dependency information with the local Python package dependency information of the application to obtain the Python package information to be updated includes:

[0020] For each Python package recorded in the latest Python package dependency information, determine whether the information of the Python package is recorded in the local Python package dependency information;

[0021] If not, setting the information of the Python package to be updated as the information of the Python package to be updated;

[0022] If so, determine whether the latest version number of the Python package in the latest Python package dependency information is greater than its version number in the local Python package dependency information;

[0023] If it is greater, the information of the Python package is set as the Python package information to be updated.

[0024] Optionally, after comparing the latest Python package dependency information with the local Python package dependency information of the application to obtain the Python package information to be updated, the method further includes:

[0025] The latest Python package dependency information is merged with the local Python package dependency information.

[0026] Optionally, after comparing the latest extension dependency information with the local extension dependency information of the application program to obtain the extension instruction information to be updated, the method further includes:

[0027] The latest extension dependency information is merged with the local extension dependency information.

[0028] Optionally, it also includes:

[0029] Generate extended instruction version information for the target extended instruction; the extended instruction version information includes the target extended instruction, the latest version number of the target extended instruction and an automatic upgrade field;

[0030] The extension instruction release information is sent to the back-end server, so that when the back-end server determines that the automatic upgrade field is a first preset value, it only saves the target extension instruction and its latest version number, or when the back-end server determines that the automatic upgrade field is a second preset value, it saves the target extension instruction and its latest version number, and uses the latest version number to update the extension dependency information of the application that depends on the target extension instruction in the back-end server.

[0031] The present invention also provides an extended instruction updating device, comprising:

[0032] The acquisition module is used to obtain the latest extension dependency information corresponding to the application from the backend server;

[0033] A comparison module, used to compare the latest extension dependency information with the local extension dependency information of the application program to obtain the extension instruction information to be updated;

[0034] An updating module is used to update the local extended instructions that the application depends on according to the extended instruction information to be updated.

[0035] The present invention also provides an electronic device, comprising:

[0036] Memory for storing computer programs;

[0037] A processor is used to implement the extended instruction updating method as described above when executing the computer program.

[0038] The present invention also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are loaded and executed by a processor, the steps of the extended instruction updating method as described above are implemented.

[0039] The present invention provides an extended instruction updating method, comprising: obtaining the latest extended dependency information corresponding to an application from a back-end server; comparing the latest extended dependency information with the local extended dependency information of the application to obtain extended instruction information to be updated; and updating the local extended instructions that the application depends on according to the extended instruction information to be updated.

[0040] It can be seen that the present invention can automatically obtain the latest extended dependency information corresponding to the application from the back-end server, and compare the latest extended dependency information with the local extended dependency information of the application to obtain the extended instruction information to be updated, and then the local extended instructions that the application depends on can be updated according to the extended instruction information to be updated, avoiding manual update of the local extended instructions that the application depends on, thereby effectively improving the update efficiency. The present application also provides an extended instruction update device, an electronic device, and a computer-readable storage medium, which have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0042] Figure 1 A structural block diagram of an extended instruction update system provided by an embodiment of the present invention;

[0043] Figure 2 A flow chart of an extended instruction updating method provided by an embodiment of the present invention;

[0044] Figure 3 A flowchart of another extended instruction updating method provided by an embodiment of the present invention;

[0045] Figure 4 A structural block diagram of an extended instruction updating device provided by an embodiment of the present invention;

[0046] Figure 5 The present invention provides a structural block diagram of an electronic device. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.

[0048] In the related art, in order to achieve process reuse, the RPA editor can usually support the extension instruction function, where the extension instruction is a combination of RPA instructions that can be used to implement a specific process. By using this function, an RPA application can rely on multiple extension instructions to reuse existing processes; each extension instruction can also be relied on by multiple RPA applications. At the same time, in order to update existing processes, the RPA editor also supports updating extension instructions. However, the existing RPA application maintenance method relies heavily on manual operation, which means that after a certain extension instruction is updated, the extension instruction needs to be further manually updated in each RPA application, which brings inconvenience to the maintenance of the RPA application. In view of this, the present invention can provide an extension instruction update method, which can automatically obtain the latest extension dependency information corresponding to the application from the back-end server, and can use this information to automatically update the local extension instructions that the application depends on, thereby avoiding manual updates and improving update efficiency.

[0049] For easier understanding, please refer to Figure 1 , Figure 1The structural block diagram of an extended instruction update system provided by an embodiment of the present invention, the system may include a local device 10 and a back-end server 20. Among them, the local device 10 is at least used to run an application, and at least a program file of the application is deployed, and the program file contains the extended instructions on which the application depends and the extended dependency information between the application and the extended instructions. The back-end server 20 is used to save the latest extended instructions and the latest extended dependency information between each application and the latest extended instruction, and at least respond to the latest extended dependency information acquisition request and extended instruction acquisition request initiated by the local device 10. It should be pointed out that the extended dependency information is generally set in the application package management file (Package.json) of the application, which records the dependency relationship between the application and the extended instruction, and records the code and version number of each extended instruction. Among them, an extended instruction can be uniquely distinguished according to the code and version number of the extended instruction. In addition, the extended instructions in the local device 10 and the extended instructions in the back-end server 20 also record their corresponding version information. Further, for ease of understanding, the extended instructions on which the application in the local device 10 depends and the corresponding extended dependency information will be referred to as local extended instructions and local extended dependency information in the following text.

[0050] In actual applications, when the local device 10 operates an application (such as starting, running, or closing an application), it can obtain the latest extension dependency information corresponding to the application from the backend server 20, and compare the latest extension dependency information with the local extension dependency information of the application to obtain a comparison result, thereby determining whether the local extension instructions that the application depends on need to be updated based on the comparison result. When it is determined that an update is required, the local device 10 can update the above-mentioned local extension instructions based on the comparison result, thereby realizing automatic update of the local extension instructions that the application depends on.

[0051] Of course, in addition to automatically updating the local extension instructions that the application depends on, the local device 10 can also update the extension instructions, and can send the updated extension instructions to the back-end server 20, so that the back-end server 20 can update the corresponding extension instructions and extension dependency information. The updated extension instructions can be specifically encapsulated in the extension instruction release information, and the extension instruction release information should at least include the latest extension instruction code and its latest version number. In addition, the extension instruction release information can also include an automatic upgrade field, which can indicate whether the back-end server 20 updates the corresponding extension dependency information according to the latest version number in the extension instruction release information. It should be noted that the local device 10 can update the extension instructions using an editor or editor function that is separate from the application.

[0052] It should be noted that the embodiment of the present invention does not limit the specific type of the local device 10, which can be a personal computer, a server, etc., and can be set according to actual application requirements.

[0053] Based on the above description of the system structure, please refer to Figure 2 , Figure 2 A flowchart of an extended instruction updating method provided by an embodiment of the present invention, the method may include:

[0054] S100. Obtain the latest extension dependency information corresponding to the application from the backend server.

[0055] In order to automatically update the local extension instructions that the application depends on, the embodiment of the present invention particularly uses the backend server to save the latest extension instructions and the latest extension dependency information corresponding to each application. In this way, when the local device operates the application, it can obtain the latest extension dependency information corresponding to the application from the backend server to automatically update the application according to the latest extension dependency information.

[0056] It should be noted that the embodiment of the present invention does not limit the timing of executing step S100. For example, it can be executed when the application is opened, it can also be executed during the operation of the application, or it can be executed when the application is closed. Furthermore, if it is determined that the application needs to be updated, the effectiveness of the updated content will be related to the execution timing of step S100. For example, if step S100 is executed when the application is opened, the updated content will take effect after the application is started this time; if step S100 is executed during the operation of the application or when it is closed, the updated content will take effect the next time the application is started. In addition, if; if step S100 is executed during the operation of the application, and it is determined that the application needs to be updated, the application can be closed first and then the update can be performed, and the application can be restarted after the update is completed.

[0057] S200: Compare the latest extension dependency information with the local extension dependency information of the application program to obtain extension instruction information to be updated.

[0058] As described above, the embodiment of the present invention needs to compare the latest extended dependency information with the local extended dependency information to determine whether the local extended instructions that the application depends on need to be updated, and which local extended dependency information needs to be updated. Since the extended dependency information records the extended instructions that the application depends on and the version number of each extended instruction, the above comparison can be specifically divided into two steps: 1. For each extended instruction in the latest extended dependency information, determine whether it is recorded in the local extended dependency information. If so, proceed to the next step of judgment, otherwise, determine that the extended instruction needs to be updated; 2. For each extended instruction that passes the previous judgment, determine whether its version number in the latest extended dependency information is greater than its version number in the local extended dependency information. If so, determine that the extended instruction needs to be updated, otherwise, determine that the extended instruction does not need to be updated. After completing the above two-step comparison, the embodiment of the present invention can filter out which extended instructions need to be updated, so that the information of the extended instructions to be updated in the latest extended dependency information can be used as the extended instruction information to be updated, so as to be updated according to the extended instruction information to be updated.

[0059] Specifically, comparing the latest extension dependency information with the local extension dependency information of the application program to obtain the extension instruction information to be updated may include:

[0060] S201. For each extension instruction in the latest extension dependency information, determine whether the local extension dependency information records the information of the extension instruction; if so, proceed to step S203; if not, proceed to step S202.

[0061] S202: Set the information of the extended instruction in the latest extended dependency information as the extended instruction information to be updated.

[0062] S203, determine whether the version number of the extension instruction in the latest extension dependency information is greater than the version number in the local extension dependency information; if greater, proceed to step S204; if not greater, proceed to step S205.

[0063] S204: Set the information of the extended instruction in the latest extended dependency information as the extended instruction information to be updated.

[0064] S205: Determine that the extended instruction does not need to be updated.

[0065] Furthermore, after comparing the latest extension dependency information with the local extension dependency information of the application to obtain the extension instruction information to be updated, the embodiment of the present invention can also merge the latest extension dependency information with the local extension dependency information to update the local extension dependency information. It should be particularly pointed out that the comparison and merging of the latest extension dependency information with the local extension dependency information can be performed one by one, for example, first compare the information of extension instruction 1 in the latest extension dependency information and the local extension dependency information, and after the comparison is completed, merge the information of extension instruction 1 in the latest extension dependency information and the local extension dependency information, and then enter the information comparison and information merging of extension instruction 2, and so on.

[0066] S300: Update the local extension instructions that the application depends on according to the extension instruction information to be updated.

[0067] It is understandable that the local device only needs to obtain the latest extension instructions from the back-end server according to the extension instruction information to be updated, and use the obtained extension instructions to supplement or replace the local extension instructions. However, since the extension instructions also rely on other objects, such as Python packages, in addition to updating the extension instructions, other objects (such as Python packages) on which the extension instructions depend need to be updated, where the Python package may contain several Python codes required for executing the extension. Specifically, the application can uniformly manage the Python packages on which each local extension instruction depends. In other words, the application is provided with local Python package dependency information, which can be set in the application package management file (Package.json) of the application, and may include the local Python package information on which each local extension instruction depends. At the same time, each extension instruction also records the Python package dependency information between it and the Python package. Therefore, after updating the local extension instructions, you can also obtain the latest Python package dependency information corresponding to each updated local extension instruction, and compare the latest Python package dependency information with the local Python package dependency information of the application to obtain the Python package information to be updated, so that the local Python package that the application depends on can also be updated according to the Python package information to be updated.

[0068] Specifically, updating the local extension instructions that the application depends on according to the extension instruction information to be updated may include:

[0069] S301: Update local extended instructions using extended instructions corresponding to each extended instruction information to be updated obtained from a backend server.

[0070] S302: Obtain the latest Python package dependency information corresponding to each updated local extension instruction.

[0071] S303: Compare the latest Python package dependency information with the local Python package dependency information of the application program to obtain the Python package information to be updated.

[0072] S304: Update the local Python package that the application depends on according to the information of the Python package to be updated.

[0073] It should be noted that since the latest Python package dependency information corresponding to each extended instruction may be different, for the convenience of comparison, the embodiment of the present invention can compare the union of the latest Python package dependency information of each extended instruction with the above-mentioned local Python package dependency information.

[0074] Further, similar to the comparison between the latest extension dependency information and the local extension dependency information, the comparison between the latest Python package dependency information and the local Python package dependency information is also divided into two steps: 1. For each Python package in the latest Python package dependency information, determine whether it is recorded in the local Python package dependency information. If so, proceed to the next step of determination. If not, determine that the Python package needs to be updated; 2. For each Python package that passes the previous determination, determine whether its version number in the latest Python package dependency information is greater than its version number in the local Python package dependency information. If so, determine that the Python package needs to be updated. If not, determine that the Python package does not need to be updated. After completing the above two-step comparison, the embodiment of the present invention can filter out which Python packages need to be updated.

[0075] Based on this, the latest Python package dependency information is compared with the local Python package dependency information of the application to obtain the Python package information to be updated, which may include:

[0076] S3031. For each Python package recorded in the latest Python package dependency information, determine whether the local Python package dependency information records the information of the Python package; if so, proceed to S3033; if not, proceed to S3032;

[0077] S3032, setting the information of the Python package in the latest Python package dependency information as the Python package information to be updated;

[0078] S3033, determine whether the latest version number of the Python package in the latest Python package dependency information is greater than its version number in the local Python package dependency information; if greater, proceed to S3034; if not greater, proceed to S3035;

[0079] S3034. Set the information of the Python package in the latest Python package dependency information as the Python package information to be updated.

[0080] S3035. It is determined that the Python package does not need to be updated.

[0081] Furthermore, after comparing the latest Python package dependency information with the local Python package dependency information of the application and determining the Python package information to be updated, the latest Python package dependency information and the local Python package dependency information can be merged to update the local Python package dependency information of the application. Similarly, similar to the comparison and merging method between the latest extension dependency information and the local extension dependency information, the comparison and merging of the latest Python package dependency information and the local Python package dependency information can be performed one by one.

[0082] Based on the above embodiments, the present invention can automatically obtain the latest extended dependency information corresponding to the application from the back-end server, and compare the latest extended dependency information with the local extended dependency information of the application to obtain the extended instruction information to be updated, and then update the local extended instructions that the application depends on according to the extended instruction information to be updated, thereby avoiding manual updating of the local extended instructions that the application depends on, thereby effectively improving the update efficiency.

[0083] Based on the above embodiment, the specific process of updating the extended instruction between the local device and the backend server is introduced below. In one possible case, the method may also include:

[0084] S401, generating extended instruction release information for a target extended instruction; the extended instruction release information includes the target extended instruction, the latest version number of the target extended instruction, and an automatic upgrade field.

[0085] In addition, the extended instruction version information may also include version description information for the convenience of user reference. In addition, a visualization window may also be provided so that the user can input the information required to generate the extended instruction version information through the window.

[0086] S402. Send the extension instruction release information to the back-end server, so that when the back-end server determines that the automatic upgrade field is the first preset value, it only saves the target extension instruction and its latest version number, or when the automatic upgrade field is determined to be the second preset value, it saves the target extension instruction and its latest version number, and uses the latest version number to update the extension dependency information of the application that depends on the target extension instruction in the back-end server.

[0087] As described above, the extended instruction release information may also include an automatic upgrade field, which may indicate whether the backend server updates the corresponding extended dependency information according to the latest version number in the extended instruction release information. For example, when the backend server determines that the automatic upgrade field is the first preset value, it only saves the target extended instruction and its latest version number, or when the automatic upgrade field is determined to be the second preset value, it saves the target extended instruction and its latest version number, and uses the latest version number to update the extended dependency information of the application program that depends on the target extended instruction in the backend server. It can be seen that the update of the extended instruction may not act on the extended dependency information.

[0088] In order to better manage the extension instructions and extension dependency information, the backend server can also record the release order of the extension instructions, so that the latest version of the extension instructions and the extension instruction version currently recorded in each extension dependency information can be determined according to this release order. For example, the release order of extension instruction a can be:

[0089] 1. a1→a2 (automatic upgrade)→a3;

[0090] 2. a1→a2→a3 (automatic upgrade);

[0091] 3. a1→a2 (automatic upgrade)→a3→a4 (automatic upgrade);

[0092] 4. a1→a2 (automatic upgrade)→a3 (automatic upgrade)→a4 (automatic upgrade).

[0093] For sequence 1, the latest version of extension instruction a is a3, and the extension dependency information that depends on extension instruction a can be automatically upgraded from version a1 to version a2, but can only be manually upgraded to version a3; for sequence 2, the latest version of extension instruction a is a3, and since version a2 needs to be manually updated, the extension dependency information that depends on extension instruction a can only be manually updated from version a1 to version a2 and a3; for sequence 3, the latest version of extension instruction a is a4, and the extension dependency information that depends on extension instruction a can be automatically updated from version a1 to version a2, but since version a3 needs to be manually updated, the extension dependency information that depends on extension instruction a can only be manually updated from version a1 to version a3 and a4; for sequence 4, the latest version of extension instruction a is a4, and the extension dependency information that depends on extension instruction a can be automatically upgraded from version a1 to version a4.

[0094] The following is a specific example to illustrate the above process, please refer to Figure 3 , Figure 3 A flowchart of another extended instruction update method provided by an embodiment of the present invention is applied to a local device, and the specific process is as follows:

[0095] Step 1: Use the designer to open the application corresponding to the instruction.

[0096] Step 2: Determine whether the application has been released. If not, it means that there is no update for the application. Then determine whether there is an application file corresponding to the application in the local computer. If it exists, enter the editing interface of the application. If not, an error message will be given. If it has been released, it means that the application needs to be updated. Then, based on the application, call the download interface to send a request to the back-end service and obtain the latest extension dependency information corresponding to the application in the server, where the latest extension dependency information contains the latest extension instruction encoding and version number. After obtaining the latest extension dependency information, determine whether there is an application file corresponding to the application in the local computer. If it exists, execute step 3 and subsequent steps. If it does not exist, obtain the corresponding application file from the server.

[0097] Step 3: Read the local extension dependency information of the application; wherein the local extension dependency information includes the encoding and version number of the local extension instruction.

[0098] Step 4: Determine whether the local extension instruction needs to be updated based on the local extension dependency information and the online extension dependency information. If it needs to be updated, execute steps 5 and 7 and subsequent steps. If it does not need to be updated, execute step 6.

[0099] Step 5: If an update is required, re-download the extension instructions that need to be updated, read the Python package dependencies of the new version of the extension instructions, and proceed to step 7.

[0100] Step 6: If no update is required, obtain the corresponding extension instruction dependency and Python package dependency based on the local extension instruction.

[0101] Step 7: Determine whether the union of the Python package dependencies of the new version of the extension instruction is the same as the Python package dependencies of the local extension instruction. If they are the same, execute step 8; if they are not the same, execute step 9.

[0102] Step 8: Do not update the application's local Python package dependencies.

[0103] Step 9: Update the application's local Python package dependencies and update the extended dependency information in the application package management file.

[0104] An embodiment of the present invention provides a method for automatically upgrading extended instructions. Compared with a method of manually modifying the dependency information of associated applications each time a version is released during iterative development of an RPA application, this method uses the extended dependency information provided in the server to automatically update the extended instructions in the local computer, thereby saving modification time, avoiding duplication of work, and improving labor efficiency.

[0105] An extended instruction update device, electronic device and computer-readable storage medium provided in an embodiment of the present invention are introduced below. The extended instruction update device, electronic device and computer-readable storage medium described below can correspond to the extended instruction automatic upgrade method described above.

[0106] Please refer to Figure 4 , Figure 4 A structural block diagram of an extended instruction updating device provided by an embodiment of the present invention, the device may include:

[0107] The acquisition module 401 is used to acquire the latest extension dependency information corresponding to the application from the backend server;

[0108] Comparison module 402, used to compare the latest extension dependency information with the local extension dependency information of the application program to obtain the extension instruction information to be updated;

[0109] The updating module 403 is used to update the local extended instructions that the application depends on according to the extended instruction information to be updated.

[0110] Optionally, the comparison module 402 may include:

[0111] The first judgment submodule is used to judge, for each extension instruction in the latest extension dependency information, whether the local extension dependency information records the information of the extension instruction; if not, set the information of the extension instruction in the latest extension dependency information as the extension instruction information to be updated; if so, call the second judgment submodule;

[0112] The second judgment submodule is used to judge whether the version number of the extended instruction in the latest extended dependency information is greater than the version number in the local extended dependency information; if greater, the information of the extended instruction in the latest extended dependency information is set as the extended instruction information to be updated.

[0113] Optionally, the updating module 403 may include:

[0114] The extended instruction update submodule is used to update the local extended instructions using the extended instructions corresponding to each extended instruction information to be updated obtained from the backend server;

[0115] The Python package dependency information acquisition submodule is used to obtain the latest Python package dependency information corresponding to each updated local extension instruction;

[0116] The Python package dependency information comparison submodule is used to compare the latest Python package dependency information with the local Python package dependency information of the application to obtain the Python package information to be updated;

[0117] The Python package update submodule is used to update the local Python packages that the application depends on according to the information of the Python packages to be updated.

[0118] Optionally, Python package dependency information comparison submodules can include:

[0119] The first judgment unit is used to judge, for each Python package recorded in the latest Python package dependency information, whether the local Python package dependency information records the information of the Python package; if not, set the information of the Python package as the Python package information to be updated; if so, call the second judgment unit;

[0120] The second judgment unit is used to judge whether the latest version number of the Python package in the latest Python package dependency information is greater than the version number of the Python package in the local Python package dependency information; if greater, the information of the Python package is set as the Python package information to be updated.

[0121] Optionally, the updating module 403 may further include:

[0122] The Python package dependency information merging submodule is used to merge the latest Python package dependency information with the local Python package dependency information.

[0123] Optionally, the updating module 403 may further include:

[0124] The extension dependency information merging submodule is used to merge the latest extension dependency information with the local extension dependency information.

[0125] Optionally, the device may further include:

[0126] An extension instruction version information generation module is used to generate extension instruction version information for a target extension instruction; the extension instruction version information includes the target extension instruction, the latest version number of the target extension instruction and an automatic upgrade field;

[0127] The extension instruction release information sending module is used to send the extension instruction release information to the back-end server, so that when the back-end server determines that the automatic upgrade field is the first preset value, it only saves the target extension instruction and its latest version number, or when the automatic upgrade field is determined to be the second preset value, it saves the target extension instruction and its latest version number, and uses the latest version number to update the extension dependency information of the application that depends on the target extension instruction in the back-end server.

[0128] Please refer to Figure 5 , Figure 5 This is a structural block diagram of an electronic device provided by an embodiment of the present invention, the device comprising:

[0129] A memory 10, used for storing computer programs;

[0130] The processor 20 is used to implement the above-mentioned extended instruction updating method when executing the computer program.

[0131] like Figure 5 , which is a schematic diagram of the structure of an electronic device, may include: a memory 10 , a processor 20 , a communication interface 31 , an input / output interface 32 , and a communication bus 33 .

[0132] In the embodiment of the present invention, the memory 10 is used to store one or more programs, and the program may include program code, and the program code includes computer operation instructions. In the embodiment of the present application, the memory 10 may store programs for implementing the following functions:

[0133] Get the latest extension dependency information corresponding to the application from the backend server;

[0134] Compare the latest extension dependency information with the local extension dependency information of the application to obtain the extension instruction information to be updated;

[0135] Update the local extension instructions that the application depends on according to the extension instruction information to be updated.

[0136] In a possible implementation, the memory 10 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function, etc.; the data storage area may store data created during use.

[0137] In addition, the memory 10 may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include an NVRAM. The memory stores an operating system and operating instructions, executable modules or data structures, or a subset thereof, or an extended set thereof, wherein the operating instructions may include various operating instructions for implementing various operations. The operating system may include various system programs for implementing various basic tasks and processing hardware-based tasks.

[0138] The processor 20 may be a central processing unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic device, a microprocessor or any conventional processor, etc. The processor 20 may call a program stored in the memory 10 .

[0139] The communication interface 31 may be an interface for connecting to other devices or systems.

[0140] The input / output interface 32 may be an interface for acquiring external input data or outputting data to the outside world.

[0141] Of course, it should be noted that Figure 5 The structure shown does not constitute a limitation on the electronic device in the embodiment of the present application. In actual applications, the electronic device may include Figure 5 More or fewer components than shown, or combinations of certain components.

[0142] Compared with the method of manually modifying the associated application dependency information each time a version is released during the iterative development of the RPA application, the embodiment of the present invention uses the extended dependency information provided by the server to automatically update the extended instructions in the local computer, thereby saving modification time, avoiding duplication of work, and improving labor efficiency.

[0143] The embodiment of the present invention also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are loaded and executed by the processor, the latest extension dependency information corresponding to the application is obtained from the backend server; the latest extension dependency information is compared with the local extension dependency information of the application to obtain the extension instruction information to be updated; and the local extension instruction that the application depends on is updated according to the extension instruction information to be updated. . Compared with the method of manually modifying the associated application dependency information each time a version is released during the iterative development of the RPA application, the embodiment of the present invention uses the extension dependency information provided in the server to automatically update the extension instructions in the local computer, which saves modification time, avoids duplication of work, and improves labor efficiency.

[0144] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0145] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0146] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0147] The above is a detailed introduction to an extended instruction update method, device, electronic device and computer-readable storage medium provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A method for updating an extended instruction, It is characterized in that include: Get the latest extension dependency information corresponding to the application from the backend server; Compare the latest extension dependency information with the local extension dependency information of the application to obtain the extension instruction information to be updated; Updating the local extension instructions that the application depends on according to the extension instruction information to be updated; Generate extended instruction version information for the target extended instruction; the extended instruction version information includes the target extended instruction, the latest version number of the target extended instruction and an automatic upgrade field; The extension instruction release information is sent to the back-end server, so that when the back-end server determines that the automatic upgrade field is a first preset value, it only saves the target extension instruction and its latest version number; when the back-end server determines that the automatic upgrade field is a second preset value, it saves the target extension instruction and its latest version number, and uses the latest version number to update the extension dependency information of the application that depends on the target extension instruction in the back-end server.

2. The extended instruction updating method according to claim 1, It is characterized in that The comparing the latest extension dependency information with the local extension dependency information of the application to obtain the extension instruction information to be updated includes: For each extension instruction in the latest extension dependency information, determining whether information of the extension instruction is recorded in the local extension dependency information; If not, setting the information of the extended instruction in the latest extended dependency information as the extended instruction information to be updated; If yes, determining whether the version number of the extension instruction in the latest extension dependency information is greater than the version number of the extension instruction in the local extension dependency information; If it is greater, the information of the extended instruction in the latest extended dependency information is set as the extended instruction information to be updated.

3. The extended instruction updating method according to claim 1, It is characterized in that The updating of the local extension instruction that the application depends on according to the extension instruction information to be updated includes: The local extended instructions are updated using the extended instructions corresponding to each of the extended instruction information to be updated obtained from the back-end server; Obtain the latest Python package dependency information corresponding to each of the updated local extension instructions; Compare the latest Python package dependency information with the local Python package dependency information of the application to obtain the Python package information to be updated; The local Python package that the application depends on is updated according to the Python package information to be updated.

4. The extended instruction updating method according to claim 3, It is characterized in that The comparing the latest Python package dependency information with the local Python package dependency information of the application to obtain the Python package information to be updated includes: For each Python package recorded in the latest Python package dependency information, determine whether the information of the Python package is recorded in the local Python package dependency information; If not, setting the information of the Python package in the latest Python package dependency information as the Python package information to be updated; If so, determine whether the latest version number of the Python package in the latest Python package dependency information is greater than its version number in the local Python package dependency information; If it is greater, the information of the Python package in the latest Python package dependency information is set as the Python package information to be updated.

5. The extended instruction updating method according to claim 4, It is characterized in that After comparing the latest Python package dependency information with the local Python package dependency information of the application to obtain the Python package information to be updated, the method further includes: The latest Python package dependency information is merged with the local Python package dependency information.

6. The extended instruction updating method according to claim 1, It is characterized in that After comparing the latest extension dependency information with the local extension dependency information of the application program to obtain the extension instruction information to be updated, the method further includes: The latest extension dependency information is merged with the local extension dependency information.

7. An extended instruction updating device, It is characterized in that include: The acquisition module is used to obtain the latest extension dependency information corresponding to the application from the backend server; A comparison module, used to compare the latest extension dependency information with the local extension dependency information of the application program to obtain the extension instruction information to be updated; An updating module, used for updating the local extended instructions that the application depends on according to the extended instruction information to be updated; An extended instruction version information generation module is used to generate extended instruction version information for a target extended instruction; the extended instruction version information includes the target extended instruction, the latest version number of the target extended instruction and an automatic upgrade field; The module for sending the extended instruction version information is used to send the extended instruction version information to the back-end server, so that when the back-end server determines that the automatic upgrade field is a first preset value, it only saves the target extended instruction and its latest version number; when the back-end server determines that the automatic upgrade field is a second preset value, it saves the target extended instruction and its latest version number, and uses the latest version number to update the extended dependency information of the application that depends on the target extended instruction in the back-end server.

8. An electronic device, It is characterized in that include: Memory for storing computer programs; A processor, configured to implement the extended instruction updating method according to any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are loaded and executed by the processor, the steps of the extended instruction updating method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Dependent package version management method and device, equipment and storage medium

    CN111522577A

  • Project environment building method, electronic equipment and computer readable storage medium

    CN115543429A