CN116126426A - Automatic component decoupling method and system based on Web service system - Google Patents

Automatic component decoupling method and system based on Web service system Download PDF

Info

Publication number
CN116126426A
CN116126426A CN202310368933.5A CN202310368933A CN116126426A CN 116126426 A CN116126426 A CN 116126426A CN 202310368933 A CN202310368933 A CN 202310368933A CN 116126426 A CN116126426 A CN 116126426A
Authority
CN
China
Prior art keywords
target
information
node
webpage
web page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310368933.5A
Other languages
Chinese (zh)
Other versions
CN116126426B (en
Inventor
许峰
刘飞燕
吴林强
李晓辉
赵明生
詹智
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou City Big Data Operation Co ltd
Original Assignee
Hangzhou Zhongyun Data Technology Co ltd
Huzhou Big Data Operation Co ltd
Hangzhou City Big Data Operation Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Zhongyun Data Technology Co ltd, Huzhou Big Data Operation Co ltd, Hangzhou City Big Data Operation Co ltd filed Critical Hangzhou Zhongyun Data Technology Co ltd
Priority to CN202310368933.5A priority Critical patent/CN116126426B/en
Publication of CN116126426A publication Critical patent/CN116126426A/en
Application granted granted Critical
Publication of CN116126426B publication Critical patent/CN116126426B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses an automatic component decoupling method and system based on a Web service system. Analyzing the target webpage to obtain node element information in the target webpage by acquiring and loading the target webpage; acquiring initial prior information of an input target business process, and matching corresponding target node element information in node element information according to the initial prior information of the target business process; analyzing the target webpage step by step in sequence in a recursion mode in a preset webpage depth range by taking all target node element information as an entry so as to obtain process node information required by a target business process and webpage node information conforming to prior information of termination of the target business process; and establishing a mapping relation between a target node corresponding to the initial priori information, a process node and a webpage node corresponding to the termination priori information so as to generate a functional component of the target service. The problems of excessive dependence on service experts, time consumption and the like in the deployment and implementation process of the conventional RPA technology are solved, and the reutilization of the existing system is realized.

Description

基于Web服务系统的自动化组件解耦方法及系统Decoupling method and system for automation components based on Web service system

技术领域technical field

本申请属于计算机技术领域,具体而言,涉及一种基于Web服务系统的自动化组件解耦方法及系统。The present application belongs to the field of computer technology, and in particular relates to a method and system for decoupling automation components based on a Web service system.

背景技术Background technique

随着面向服务的架构(Service-Oriented Architecture,SOA)及相关技术的快速发展,大量的Web服务系统被创建出来用以支撑不断涌现的业务场景需求,Web服务又经常面临大量机械重复而又繁琐的操作。With the rapid development of service-oriented architecture (Service-Oriented Architecture, SOA) and related technologies, a large number of Web service systems have been created to support the emerging business scenario needs, and Web services often face a large number of mechanical repetition and cumbersome operation.

相关技术中,现有流行的做法是借助RPA(机器人流程自动化技术)来替代上述操作,但这会面临如下的问题:In related technologies, the existing popular practice is to use RPA (robotic process automation technology) to replace the above operations, but this will face the following problems:

RPA的部署需要首先梳理和分析现有的工作流程,寻找什么地方可以用RPA来改造,实现自动化。而现实情况往往是所依赖的Web系统是在发展的不同阶段,由不同开发人员,秉持不同开发理念,借助不同开发平台,应用不同开发技术开发而成,随着相关人员的离场和资料的缺失,相关流程梳理和分析愈发困难。The deployment of RPA needs to sort out and analyze the existing workflow first, and find out where RPA can be used to transform and realize automation. The reality is that the web systems we rely on are often developed at different stages of development by different developers, with different development concepts, with the help of different development platforms, and with the application of different development technologies. If it is missing, it becomes more and more difficult to sort out and analyze related processes.

针对相关技术中现有的组件解耦方法较难,难以实现自动化的技术问题,尚未提出有效的解决方案。Aiming at the technical problems that existing component decoupling methods in related technologies are difficult and difficult to realize automation, no effective solution has been proposed yet.

发明内容Contents of the invention

因此,本申请实施例在于提供一种基于Web服务系统的自动化组件解耦方法及系统、电子设备及存储介质,旨在解决上述现有技术存在的至少一个问题。Therefore, the embodiment of the present application is to provide a method and system for decoupling automation components based on a Web service system, an electronic device, and a storage medium, aiming to solve at least one problem existing in the above-mentioned prior art.

为实现上述目的,第一方面,本申请提供了一种基于Web服务系统的自动化组件解耦方法,包括:In order to achieve the above purpose, in the first aspect, the present application provides a method for decoupling automation components based on a Web service system, including:

步骤1:获取并加载目标网页,解析所述目标网页得到目标网页中的节点元素信息;Step 1: Acquiring and loading the target webpage, parsing the target webpage to obtain node element information in the target webpage;

步骤2:获取输入的目标业务流程的起始先验信息,根据所述目标业务流程起始先验信息在所述节点元素信息中匹配对应的目标节点元素信息;Step 2: Obtain the initial prior information of the input target business process, and match the corresponding target node element information in the node element information according to the initial prior information of the target business process;

步骤3:以所有所述目标节点元素信息为入口,在预设网页深度范围内,采用递归方式逐级按顺序解析所述目标网页,以获得目标业务流程所需的过程节点信息以及符合目标业务流程终止先验信息的网页节点信息;Step 3: Taking all the target node element information as the entry, within the preset webpage depth range, recursively analyze the target webpage step by step in order to obtain the process node information required by the target business process and the target business Web page node information of process termination prior information;

步骤4:若匹配到所述终止先验信息对应的网页节点信息,建立从所述起始先验信息对应的目标节点、过程节点和终止先验信息对应的网页节点的映射关系,根据所述映射关系生成所述目标业务的功能组件。Step 4: If the web page node information corresponding to the termination prior information is matched, a mapping relationship is established from the target node corresponding to the start prior information, the process node and the web page node corresponding to the termination prior information, according to the The mapping relationship generates the functional components of the target service.

在一个实施例中,若步骤4中未匹配到所述终止先验信息对应的网页节点信息,则基于预设的网页解析深度参数,以步骤3中获取到的目标网页下所有可交互的节点元素信息为入口,逐级按顺序解析所述目标网页的下探网页,直至匹配到所有符合目标业务流程终止先验信息的网页节点信息,并存储每个步骤生成的过程节点信息。In one embodiment, if the web page node information corresponding to the termination prior information is not matched in step 4, then all interactive nodes under the target web page obtained in step 3 are used based on the preset web page analysis depth parameter The element information is an entry, and the drop-down webpages of the target webpage are analyzed step by step and in sequence until all webpage node information matching the target business process termination prior information is matched, and the process node information generated by each step is stored.

在一个实施例中,所述根据所述目标业务流程起始先验信息在所述节点元素信息中匹配对应的目标节点元素信息,包括:根据所述目标业务流程起始先验信息基于节点元素的操作类型在所述节点元素信息中匹配对应的目标节点元素信息。In one embodiment, the matching the corresponding target node element information in the node element information according to the target business process start prior information includes: based on the target business process start prior information based on the node element The operation type of matches the corresponding target node element information in the node element information.

在一个实施例中,在获取目标网页之前,还包括:执行句柄程序,以获取目标网页。In one embodiment, before acquiring the target webpage, it further includes: executing a handler program to acquire the target webpage.

在一个实施例中,所述目标网页中的节点元素信息包括:不同的程序框架体系下的每个节点元素基于目标网页的Xpath路径信息、目标网页的窗口句柄、URL、元素类型、前向节点依赖的内容信息。In one embodiment, the node element information in the target web page includes: each node element under different program framework systems is based on the XPath path information of the target web page, the window handle of the target web page, URL, element type, forward node Dependent content information.

在一个实施例中,还包括:接收对所述目标业务的功能组件的拼接指令,利用RPA技术,将每个目标业务的功能组件根据所述拼接指令基于预设的业务逻辑进行串联或并联。In one embodiment, it further includes: receiving a splicing instruction for the functional components of the target business, and using RPA technology to connect the functional components of each target business in series or in parallel according to the splicing instruction based on preset business logic.

第二方面,本申请还提供了一种基于Web服务系统的自动化组件解耦系统,包括:In the second aspect, the present application also provides an automation component decoupling system based on a Web service system, including:

第一组件元素捕捉模块,用于获取并加载目标网页,解析所述目标网页得到目标网页中的节点元素信息;The element capturing module of the first component is used to obtain and load the target webpage, and analyze the target webpage to obtain node element information in the target webpage;

第二组件元素捕捉模块,用于获取输入的目标业务流程的起始先验信息,根据所述目标业务流程起始先验信息在所述节点元素信息中匹配对应的目标节点元素信息;The second component element capture module is used to acquire the initial prior information of the input target business process, and match the corresponding target node element information in the node element information according to the initial prior information of the target business process;

第一自动化组件生成模块,用于以所有所述目标节点元素信息为入口,在预设网页深度范围内,采用递归方式逐级按顺序解析所述目标网页,以获得目标业务流程所需的过程节点信息以及符合目标业务流程终止先验信息的网页节点信息;The first automation component generation module is used to take all the target node element information as an entry, and use a recursive method to analyze the target web page step by step and sequentially within the preset web page depth range, so as to obtain the process required by the target business process Node information and web page node information conforming to the prior information of the target business process termination;

第二自动化组件生成模块,用于若匹配到所述终止先验信息对应的网页节点信息,建立从所述起始先验信息对应的目标节点、过程节点和终止先验信息对应的网页节点的映射关系,根据所述映射关系生成所述目标业务的功能组件。The second automatic component generation module is used to establish the target node, process node and termination prior information corresponding to the web page node information corresponding to the start prior information if matching the termination prior information A mapping relationship, generating the functional components of the target service according to the mapping relationship.

在一个实施例中,所述第二自动化组件生成模块,还用于若步骤4中未匹配到所述终止先验信息对应的网页节点信息,则基于预设的网页解析深度参数,以步骤3中获取到的目标网页下所有可交互的节点元素信息为入口,逐级按顺序解析所述目标网页的下探网页,直至匹配到所有符合目标业务流程终止先验信息的网页节点信息,并存储每个步骤生成的过程节点信息。In one embodiment, the second automation component generation module is further configured to, if the webpage node information corresponding to the termination prior information is not matched in step 4, then based on the preset webpage analysis depth parameter, step 3 All the interactive node element information under the target webpage obtained in the entry is used as the entry, and the drop-down webpages of the target webpage are analyzed step by step and in order until all the webpage node information that meets the prior information of the target business process termination is matched, and stored Process node information generated by each step.

第三方面,本申请还提供了一种电子设备,包括存储器和处理器,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行所述基于Web服务系统的自动化组件解耦方法的步骤。In a third aspect, the present application also provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the The steps of the automated component decoupling method of the Web service system.

第四方面,本申请还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行所述基于Web服务系统的自动化组件解耦方法的步骤。In a fourth aspect, the present application also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the processor executes the Web-based Steps in a method for decoupling automation components of a service system.

本申请实施例提供的一种基于Web服务系统的自动化组件解耦方法及系统、电子设备和存储介质,首先获取并加载目标网页,即Web服务系统的载体,解析所述目标网页得到目标网页中的节点元素信息;其次获取输入的目标业务流程的起始先验信息,根据业务流程起始先验信息在节点元素信息中匹配和筛选对应的目标节点元素信息;之后以筛选到的目标节点元素信息为入口,在预设网页深度范围内,采用递归方式逐级地、按顺序解析目标网页,从而获得业务流程所需的过程节点信息,以及符合业务流程终止先验信息的网页节点信息;最终若匹配到符合业务终止先验信息的节点,回溯性地建立从所述业务起始先验信息节点、过程节点信息和业务终止先验信息节点之间的流程顺序映射关系,根据上述流程关系,以RPA技术为基础,快速映射生成满足所述目标业务的功能组件。本发明所提出的方法,仅需少量的关于系统的知识便可快速地、自动化地对Web服务进行分析和梳理,进而快速批量地解耦原有系统,形成符合系统间对接要求的业务功能组件,解决了目前RPA类技术部署实施过程中过度依赖业务专家、耗时等问题,从而实现对已有系统的再利用,提高软件开发的效率,形成更好的软件产品、服务。The embodiment of the present application provides a web service system-based automation component decoupling method and system, electronic equipment, and storage media. First, obtain and load the target web page, which is the carrier of the Web service system, and analyze the target web page to obtain the target web page. secondly, obtain the initial prior information of the input target business process, match and filter the corresponding target node element information in the node element information according to the initial prior information of the business process; and then use the filtered target node element Information is the entrance, and within the preset depth of the webpage, the target webpage is analyzed step by step and in sequence in a recursive manner, so as to obtain the process node information required by the business process and the web page node information that conforms to the prior information of the business process termination; finally If a node matching the service termination prior information is matched, retrospectively establish a process sequence mapping relationship between the service start prior information node, process node information and service termination prior information node, according to the above process relationship, Based on RPA technology, rapid mapping generates functional components that meet the target business. The method proposed by the present invention can quickly and automatically analyze and sort out Web services with only a small amount of knowledge about the system, and then quickly decouple the original system in batches to form business function components that meet the requirements for docking between systems , to solve the problems of excessive reliance on business experts and time-consuming in the current RPA technology deployment and implementation process, so as to realize the reuse of existing systems, improve the efficiency of software development, and form better software products and services.

附图说明Description of drawings

构成本申请的一部分的附图用来提供对本申请的进一步理解,使得本申请的其它特征、目的和优点变得更明显。本申请的示意性实施例附图及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The accompanying drawings, which constitute a part of this application, are included to provide a further understanding of the application and make other features, objects and advantages of the application apparent. The drawings and descriptions of the schematic embodiments of the application are used to explain the application, and do not constitute an improper limitation to the application. In the attached picture:

图1为本申请实施例提供的基于Web服务系统的自动化组件解耦方法的实现流程;Fig. 1 is the implementation flow of the automation component decoupling method based on the Web service system provided by the embodiment of the present application;

图2为本申请实施例提供的基于Web服务系统的自动化组件解耦方法的整体框架图;FIG. 2 is an overall framework diagram of a method for decoupling automation components based on a Web service system provided by an embodiment of the present application;

图3为本申请实施例提供的基于Web服务系统的自动化组件解耦方法的组件元素的捕捉流程示意图;FIG. 3 is a schematic diagram of the capturing process of component elements in the automated component decoupling method based on the Web service system provided by the embodiment of the present application;

图4为本申请实施例提供的基于Web服务系统的自动化组件解耦方法的自动化组件生成流程示意图;FIG. 4 is a schematic diagram of the automation component generation process of the automation component decoupling method based on the Web service system provided by the embodiment of the present application;

图5为本申请实施例提供的基于Web服务系统的自动化组件解耦系统的主要模块示意图;FIG. 5 is a schematic diagram of main modules of the automation component decoupling system based on the Web service system provided by the embodiment of the present application;

图6为本申请实施例提供的可以应用于其中的示例性系统架构图;FIG. 6 is an exemplary system architecture diagram that can be applied thereto provided by the embodiment of the present application;

图7为适于用来实现本申请实施例的终端设备或服务器的计算机系统的结构示意图。FIG. 7 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server according to an embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is only It is an embodiment of a part of the application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.

需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法及系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。在本申请中,术语“上”、“下”、“左”、“右”、“前”、“后”、“顶”、“底”、“内”、“外”、“中”、“竖直”、“水平”、“横向”、“纵向”等指示的方位或位置关系为基于附图所示的方位或位置关系。这些术语主要是为了更好地描述本申请及其实施例,并非用于限定所指示的装置、元件或组成部分必须具有特定方位,或以特定方位进行构造和操作。It should be noted that the terms "first" and "second" in the description and claims of the present application and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It should be understood that the data so used may be interchanged under appropriate circumstances for the embodiments of the application described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method and system, product or device comprising a sequence of steps or units is not necessarily limited to the explicitly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus. In this application, the terms "upper", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outer", "middle", The orientations or positional relationships indicated by "vertical", "horizontal", "horizontal", and "longitudinal" are based on the orientations or positional relationships shown in the drawings. These terms are mainly used to better describe the present application and its embodiments, and are not used to limit that the indicated device, element or component must have a specific orientation, or be constructed and operated in a specific orientation.

并且,上述部分术语除了可以用于表示方位或位置关系以外,还可能用于表示其他含义,例如术语“上”在某些情况下也可能用于表示某种依附关系或连接关系。对于本领域普通技术人员而言,可以根据具体情况理解这些术语在本申请中的具体含义。Moreover, some of the above terms may be used to indicate other meanings besides orientation or positional relationship, for example, the term "upper" may also be used to indicate a certain attachment relationship or connection relationship in some cases. Those skilled in the art can understand the specific meanings of these terms in this application according to specific situations.

另外,术语“多个”的含义应为两个以及两个以上。In addition, the term "plurality" shall mean two or more than two.

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

图1示出了本申请实施例提供的基于Web服务系统的自动化组件解耦方法的实现流程,图2示出了本申请实施例提供的基于Web服务系统的自动化组件解耦方法的整体框架图,图3示出了本申请实施例提供的基于Web服务系统的自动化组件解耦方法的组件元素的捕捉流程示意图,图4示出了本申请实施例提供的基于Web服务系统的自动化组件解耦方法的自动化组件生成流程示意图。为了便于说明,仅示出与本申请实施例相关的部分,详述如下:Figure 1 shows the implementation process of the method for decoupling automation components based on the Web service system provided by the embodiment of the application, and Figure 2 shows the overall framework of the method for decoupling the automation components based on the Web service system provided by the embodiment of the application , FIG. 3 shows a schematic diagram of the capture process of component elements in the method for decoupling automation components based on the Web service system provided by the embodiment of the present application, and FIG. 4 shows the decoupling of the automation components based on the Web service system provided by the embodiment of the present application. The automated components of the method generate a flow diagram. For ease of description, only the parts relevant to the embodiments of the present application are shown, and the details are as follows:

一种基于Web服务系统的自动化组件解耦方法,包括以下步骤:A method for decoupling automation components based on a Web service system, comprising the following steps:

S101:获取并加载目标网页,解析所述目标网页得到目标网页中的节点元素信息;S101: Obtain and load a target webpage, and parse the target webpage to obtain node element information in the target webpage;

S102:获取输入的目标业务流程的起始先验信息,根据所述目标业务流程起始先验信息在所述节点元素信息中匹配对应的目标节点元素信息;S102: Obtain the initial prior information of the input target business process, and match the corresponding target node element information in the node element information according to the initial prior information of the target business process;

S103:以所有所述目标节点元素信息为入口,在预设网页深度范围内,采用递归方式逐级按顺序解析所述目标网页,以获得目标业务流程所需的过程节点信息以及符合目标业务流程终止先验信息的网页节点信息;S103: Using all the target node element information as an entry, within the preset depth range of the web page, recursively analyze the target web page step by step and in order, so as to obtain the process node information required by the target business process and conform to the target business process Terminate the web page node information of the prior information;

S104:若匹配到所述终止先验信息对应的网页节点信息,建立从所述起始先验信息对应的目标节点、过程节点和终止先验信息对应的网页节点的映射关系,根据所述映射关系生成所述目标业务的功能组件。S104: If the web page node information corresponding to the termination prior information is matched, establish a mapping relationship from the target node, the process node corresponding to the start prior information, and the web page node corresponding to the termination prior information, according to the mapping Relationships generate functional components of the target business.

由此,本申请提出的一种基于Web服务系统的自动化组件解耦方法,首先获取并加载目标网页,即Web服务系统的载体,解析所述目标网页得到目标网页中的节点元素信息;其次获取输入的目标业务流程的起始先验信息,根据业务流程起始先验信息在节点元素信息中匹配和筛选对应的目标节点元素信息;之后以筛选到的目标节点元素信息为入口,在预设网页深度范围内,采用递归方式逐级地、按顺序解析目标网页,从而获得业务流程所需的过程节点信息,以及符合业务流程终止先验信息的网页节点信息;最终若匹配到符合业务终止先验信息的节点,回溯性地建立从所述业务起始先验信息节点、过程节点信息和业务终止先验信息节点之间的流程顺序映射关系,根据上述流程关系,以RPA技术为基础,快速映射生成满足所述目标业务的功能组件。本发明所提出的方法,仅需少量的关于系统的知识便可快速地、自动化地对Web服务进行分析和梳理,进而快速批量地解耦原有系统,形成符合系统间对接要求的业务功能组件,解决了目前RPA类技术部署实施过程中过度依赖业务专家、耗时等问题,从而实现对已有系统的再利用,提高软件开发的效率,形成更好的软件产品、服务。Therefore, a method for decoupling automation components based on a Web service system proposed by this application first obtains and loads the target web page, which is the carrier of the Web service system, and parses the target web page to obtain node element information in the target web page; secondly, obtains According to the initial prior information of the input target business process, match and filter the corresponding target node element information in the node element information according to the business process initial prior information; then use the filtered target node element information as the entry, in the preset Within the depth of the webpage, the target webpage is parsed step by step and in sequence in a recursive manner, so as to obtain the process node information required by the business process and the webpage node information that meets the prior information of the business process termination; Nodes with prior information, retrospectively establish the process sequence mapping relationship between the business start prior information node, process node information and service termination prior information node, according to the above process relationship, based on RPA technology, quickly Mapping generates functional components that satisfy the target business. The method proposed by the present invention can quickly and automatically analyze and sort out Web services with only a small amount of knowledge about the system, and then quickly decouple the original system in batches to form business function components that meet the requirements for docking between systems , to solve the problems of excessive reliance on business experts and time-consuming in the current RPA technology deployment and implementation process, so as to realize the reuse of existing systems, improve the efficiency of software development, and form better software products and services.

在步骤S101中:获取并加载目标网页,解析所述目标网页得到目标网页中的节点元素信息。In step S101: acquiring and loading a target webpage, parsing the target webpage to obtain node element information in the target webpage.

在一个实施例中,在获取目标网页之前,还包括:执行句柄程序,以获取目标网页。由此,通过句柄程序的执行,获取目标窗口的目标网页。In one embodiment, before acquiring the target webpage, it further includes: executing a handler program to acquire the target webpage. Thus, through the execution of the handler program, the target web page of the target window is acquired.

在这里,在浏览网页的时候,点击一个链接或者按钮,有时会弹出一个新的窗口,这类窗口的标识也被称之为句柄。句柄是一个浏览器窗口的唯一标识符,通过句柄实现不同浏览器窗口之间的切换,在手动控制浏览器的时候,产生新的句柄时浏览器会自动的跳转到最新的句柄处,但在自动化的代码程序执行中,并不会默认自动的跳转到最新的句柄处,因此需要执行句柄程序去切换句柄,即定位到目标浏览器窗口,即定位到目标网页。Here, when browsing a web page, clicking a link or a button sometimes pops up a new window, and the identifier of such a window is also called a handle. The handle is the unique identifier of a browser window. Switching between different browser windows is realized through the handle. When the browser is manually controlled, the browser will automatically jump to the latest handle when a new handle is generated. In the automatic code program execution, it will not automatically jump to the latest handle by default, so it is necessary to execute the handle program to switch the handle, that is, to locate the target browser window, that is, to locate the target webpage.

在一个实施例中,预设的节点元素信息组包括不同的程序框架体系下的每个节点元素基于目标网页的Xpath路径信息、目标网页的窗口句柄、URL、元素类型、前向节点依赖的内容信息。由此在解析目标网页的网页结构时,可以基于预先定义的节点元素信息组进行解析网页结构,便于后续的组件解耦。本实施例中,为了实现组件的运行功能,预先自定义了节点元素信息组,自定义的节点元素信息组不仅包含元素基于当前网页的Xpath路径信息,也包含当前网页的窗口句柄、URL、元素类型、前向节点依赖等内容信息。考虑到不同的程序框架(如Python体系下的Selenium和lxml架包)对网页的解析结果有差异,本申请所提出的方法整合不同的网页解析框架下的结果信息,从而整合形成的更完整的元素信息档案。In one embodiment, the preset node element information group includes each node element under different program framework systems based on the XPath path information of the target web page, the window handle of the target web page, the URL, the element type, and the content that the forward node depends on information. Therefore, when parsing the webpage structure of the target webpage, the webpage structure can be parsed based on the predefined node element information group, which facilitates decoupling of subsequent components. In this embodiment, in order to realize the operating function of the component, the node element information group is customized in advance, and the self-defined node element information group not only includes the XPath path information based on the current webpage, but also includes the window handle, URL, element Content information such as type and forward node dependency. Considering that different program frameworks (such as Selenium and lxml framework packages under the Python system) have different analysis results for web pages, the method proposed in this application integrates the result information under different web page analysis frameworks to form a more complete Element information file.

在步骤S102中:获取输入的目标业务流程的起始先验信息,根据所述目标业务流程起始先验信息在所述节点元素信息中匹配对应的目标节点元素信息。将目标网页解析为节点元素信息后,获取输入的目标业务的业务起始先验信息。这里,目标业务是指系统中用于完成一个任务的完整业务闭环系统流程,例如报销系统中的报销流程为一个报销业务;业务起始先验信息是指,基于系统操作手册或者系统建设方所提供的说明材料,总结出来的一些比较公知的业务用词,例如医保、在线办理等。业务起始先验信息是通过前端用户界面进行输入的,输入业务起始先验信息后,将根据所述业务起始先验信息在所述节点元素信息中匹配对应的目标节点元素信息,目标节点元素信息是指业务起始先验信息对应的节点元素信息组。在一个实施例中,所述根据所述业务起始先验信息在所述节点元素信息中匹配对应的目标节点元素信息,包括:根据所述业务起始先验信息基于节点元素的操作类型在所述节点元素信息中匹配对应的目标节点元素信息。即,在网页结构解析的基础上,并结合元素的操作类型,如按钮、输入框、下拉框等类型进行匹配节点元素信息。In step S102: Acquiring the initial prior information of the input target business process, and matching the corresponding target node element information in the node element information according to the initial prior information of the target business process. After the target webpage is parsed into node element information, the input prior information of the service start of the target service is obtained. Here, the target business refers to the complete business closed-loop system process used to complete a task in the system. For example, the reimbursement process in the reimbursement system is a reimbursement business; the prior information of the business start refers to the system based on the system operation manual or the system builder. The provided explanatory materials summarize some of the more well-known business terms, such as medical insurance, online processing, etc. The service start prior information is input through the front-end user interface. After the service start prior information is input, the corresponding target node element information will be matched in the node element information according to the service start prior information. The node element information refers to the node element information group corresponding to the service initiation prior information. In an embodiment, the matching the corresponding target node element information in the node element information according to the service initiation prior information includes: based on the operation type of the node element according to the service initiation prior information, The corresponding target node element information is matched in the node element information. That is, on the basis of analyzing the structure of the webpage, and combining the operation types of the elements, such as buttons, input boxes, drop-down boxes, etc., the node element information is matched.

需要说明的是,本步骤输入的业务起始先验信息(先验知识)不是“过泛”的知识,是贴合系统自身,来源来自系统操作手册或者系统建设方所提供的说明材料,利用输入的先验信息,可以快速的缩小待解耦的范围,加快解析效率。It should be noted that the business initiation prior information (prior knowledge) input in this step is not “excessive” knowledge, but fits the system itself. The source comes from the system operation manual or the explanatory materials provided by the system builder. The input prior information can quickly narrow the scope of decoupling and speed up the analysis efficiency.

在步骤S103中:以所有所述目标节点元素信息为入口,在预设网页深度范围内,采用递归方式逐级按顺序解析所述目标网页,以获得目标业务流程所需的过程节点信息以及符合目标业务流程终止先验信息的网页节点信息。In step S103: using all the target node element information as an entry, within the preset depth range of the web page, recursively analyze the target web page step by step in order to obtain the process node information required by the target business process and the corresponding The web page node information of the target business process termination prior information.

需要说明的是,业务终止先验信息对应于业务起始先验信息,也是基于系统操作手册或者系统建设方所提供的说明材料,总结出来的一些比较公知的业务用词,例如可以是医保、在线办理等起始先验信息对应的业务流程的终止流程所对应的词,例如报销结算。It should be noted that the business termination prior information corresponds to the business start prior information, and is also based on the system operation manual or the explanatory materials provided by the system builder. Some relatively well-known business terms are summarized, such as medical insurance, Words corresponding to the termination process of the business process corresponding to the initial prior information such as online processing, such as reimbursement settlement.

在步骤S104中:若匹配到所述终止先验信息对应的网页节点信息,建立从所述起始先验信息对应的目标节点、过程节点和终止先验信息对应的网页节点的映射关系,根据所述映射关系生成所述目标业务的功能组件。In step S104: if the web page node information corresponding to the termination prior information is matched, a mapping relationship is established from the target node corresponding to the start prior information, the process node and the web page node corresponding to the termination prior information, according to The mapping relationship generates the functional components of the target service.

在一个实施例中,若步骤4中未匹配到所述终止先验信息对应的网页节点信息,则基于预设的网页解析深度参数,以步骤3中获取到的目标网页下所有可交互的节点元素信息为入口,逐级按顺序解析所述目标网页的下探网页,直至匹配到所有符合目标业务流程终止先验信息的网页节点信息,并存储每个步骤生成的过程节点信息。在这里,若匹配到所述业务终止先验信息,则直接进行下一步骤;若未匹配到所述业务终止先验信息,则基于预设的网页解析深度参数,以所述目标网页下所有可交互的节点元素信息为入口采用递归方式解析所述目标网页匹配所述业务起始先验信息对应的业务终止先验信息,直至匹配到所述业务终止先验信息为止,并存储每个步骤生成的过程节点元素信息。In one embodiment, if the web page node information corresponding to the termination prior information is not matched in step 4, then all interactive nodes under the target web page obtained in step 3 are used based on the preset web page analysis depth parameter The element information is an entry, and the drop-down webpages of the target webpage are analyzed step by step and in sequence until all webpage node information matching the target business process termination prior information is matched, and the process node information generated by each step is stored. Here, if the service termination prior information is matched, proceed directly to the next step; if the service termination prior information is not matched, then based on the preset web page analysis depth parameters, all The interactive node element information is that the entry adopts a recursive method to parse the target webpage to match the service termination prior information corresponding to the service initiation prior information until the service termination prior information is matched, and store each step Generated process node element information.

在一个示例中,若未匹配到所述业务终止先验信息,则基于预设的网页解析深度参数,以所述目标网页下所有可交互的节点元素信息为入口采用递归方式解析所述目标网页,匹配所述业务起始先验信息对应的业务终止先验信息,直至匹配到所述业务终止先验信息,并存储每个步骤生成的网页元素信息组;建立所述业务起始先验信息、过程节点元素信息和业务终止先验信息的映射关系,根据所述映射关系生成所述目标业务的功能组件。In one example, if the service termination prior information is not matched, the target web page is recursively parsed based on the preset web page parsing depth parameter, using all interactive node element information under the target web page as an entry , matching the service termination prior information corresponding to the service initiation prior information until the service termination prior information is matched, and storing the webpage element information group generated in each step; establishing the service initiation prior information . A mapping relationship between process node element information and service termination prior information, and generating functional components of the target service according to the mapping relationship.

由此,通过整合节点信息组,映射产出目标业务的功能组件。在本实施例中,将上述解耦过程中的包含有Xpath路径、浏览器句柄等节点信息组进行整合和串联,映射成为实现特定功能(目标业务)的组件,功能组件是一些命令串信息,可供后续与其它组件整合。Thus, by integrating the node information group, the functional components of the output target business are mapped. In this embodiment, the node information groups including XPath paths, browser handles, etc. in the above decoupling process are integrated and concatenated, and mapped into components that realize specific functions (target services). The functional components are some command string information, Available for subsequent integration with other components.

进一步的,本方法还包括:接收对所述目标业务的功能组件的拼接指令,利用RPA技术,将每个目标业务的功能组件根据所述拼接指令基于预设的业务逻辑进行串联或并联。由此通过借助RPA技术,将前述步骤中得到的功能组件与其他已形成的功能组件通过业务逻辑或串联、或并联,形成具备提供特定完整业务功能服务的组件,即业务功能组件。Further, the method further includes: receiving a splicing instruction for the functional components of the target business, and using RPA technology to connect the functional components of each target business in series or in parallel according to the splicing instruction based on preset business logic. Thus, with the help of RPA technology, the functional components obtained in the preceding steps are connected in series or in parallel with other formed functional components through business logic to form components capable of providing specific and complete business function services, that is, business function components.

具体的,如图2所示,本实施例所提出的自动化组件解耦方法整体包括两个模块,即组件元素捕捉模块和自动化组件生成模块,组件元素捕获模块将解耦获得的节点信息组输出给组件自动化生成模块,从而形成适配下游的组件,进一步的,不同功能组件间依据业务逻辑整合成为业务功能组件。如图3和图4所示,其中组件元素捕捉模块以网页信息为输入,结合先验的人工“起始”和“终止”信息知识,逐步的筛选得到匹配先验知识的目标信息,过程中生成并保存包含Xpath等的节点信息组;之后自动化组件生成模块利用上述的节点信息组,进行元素的定位、操作,校验等,形成功能组件,之后不同的功能组件通过业务逻辑进行整合,形成业务功能组件,供自身或者共享给其它系统使用。Specifically, as shown in Figure 2, the automated component decoupling method proposed in this embodiment includes two modules as a whole, namely, a component element capture module and an automated component generation module, and the component element capture module outputs the node information group obtained by decoupling Automatically generate modules for components to form downstream components. Further, different functional components are integrated into business functional components based on business logic. As shown in Figure 3 and Figure 4, the component element capture module takes webpage information as input, combines the prior artificial "start" and "termination" information knowledge, and gradually screens to obtain the target information that matches the prior knowledge. Generate and save the node information group including XPath, etc.; then the automated component generation module uses the above node information group to locate, operate, and verify elements to form functional components, and then integrate different functional components through business logic to form Business function components, used by itself or shared with other systems.

例如,在某个项目建设过程中,需要对接和整合10余个Web系统,且由于存在数据安全、知识产权、系统资料缺失等方面的各种风险问题,即使借助RPA技术,相关流程的梳理也需要耗费大量的时间和精力。而基于本实施例所提出的Web服务系统的自动化组件解耦方法,对所对接系统进行再认识,快速、批量的将Web系统所承载的业务操作,自动化的映射为功能组件,之后依赖功能组件间业务逻辑,对基于已有Web系统群形成的功能组件进行整合,借助RPA技术,形成符合对接要求的功能组件接口。从而实现在无需提供系统深层次代码,并遵循在原有系统的交互模式的基础上,仅需很短时间5天左右便可实现上线相关项目系统,与用传统的接口对接(约30天)、RPA结合人工梳理编排(20天)相比,加快了软件实施效果,降低人力开发成本,有效支撑了数字经济的场景建设。For example, in the construction process of a certain project, more than 10 web systems need to be connected and integrated, and due to various risks such as data security, intellectual property rights, and lack of system data, even with the help of RPA technology, it is difficult to sort out the relevant processes. It takes a lot of time and effort. Based on the automated component decoupling method of the Web service system proposed in this embodiment, re-understand the docked system, quickly and batch-automatically map the business operations carried by the Web system into functional components, and then rely on the functional components It integrates the functional components formed based on the existing Web system group, and forms a functional component interface that meets the docking requirements with the help of RPA technology. In this way, on the basis of not needing to provide deep-level code of the system and following the interactive mode of the original system, it only takes about 5 days to realize the launch of the relevant project system, which is compatible with traditional interface docking (about 30 days), Compared with RPA combined with manual sorting and arrangement (20 days), the software implementation effect is accelerated, the cost of human development is reduced, and the scene construction of the digital economy is effectively supported.

由此,本申请实施例提供的一种基于Web服务系统的自动化组件解耦方法,首先获取并加载目标网页,即Web服务系统的载体,解析所述目标网页得到目标网页中的节点元素信息;其次获取输入的目标业务流程的起始先验信息,根据业务流程起始先验信息在节点元素信息中匹配和筛选对应的目标节点元素信息;之后以筛选到的目标节点元素信息为入口,在预设网页深度范围内,采用递归方式逐级地、按顺序解析目标网页,从而获得业务流程所需的过程节点信息,以及符合业务流程终止先验信息的网页节点信息;最终若匹配到符合业务终止先验信息的节点,回溯性地建立从所述业务起始先验信息节点、过程节点信息和业务终止先验信息节点之间的流程顺序映射关系,根据上述流程关系,以RPA类技术为基础,快速映射生成满足所述目标业务的功能组件。本发明所提出的方法,仅需少量的关于系统的知识便可快速地、自动化地对Web服务进行分析和梳理,进而快速批量地解耦原有系统,形成符合系统间对接要求的业务功能组件,解决了目前RPA类技术部署实施过程中过度依赖业务专家、耗时等问题,从而实现对已有系统的再利用,提高软件开发的效率,形成更好的软件产品、服务。Therefore, in the method for decoupling automation components based on the Web service system provided by the embodiment of the present application, firstly, the target web page is acquired and loaded, that is, the carrier of the Web service system, and the target web page is analyzed to obtain node element information in the target web page; Secondly, obtain the initial prior information of the input target business process, match and filter the corresponding target node element information in the node element information according to the initial prior information of the business process; then use the screened target node element information as the entry, in Within the preset webpage depth range, the target webpage is parsed step by step and in sequence in a recursive manner, so as to obtain the process node information required by the business process and the webpage node information that meets the prior information of the business process termination; Terminate the prior information node, retrospectively establish the process sequence mapping relationship between the business start prior information node, process node information and service termination prior information node, according to the above process relationship, use RPA technology as the Based on Quick Mapping, generate functional components that meet the target business. The method proposed by the present invention can quickly and automatically analyze and sort out Web services with only a small amount of knowledge about the system, and then quickly decouple the original system in batches to form business function components that meet the requirements for docking between systems , to solve the problems of excessive reliance on business experts and time-consuming in the current RPA technology deployment and implementation process, so as to realize the reuse of existing systems, improve the efficiency of software development, and form better software products and services.

图5示出了本申请实施例提供的基于Web服务系统的自动化组件解耦系统的主要模块示意图,为了便于说明,仅示出与本申请实施例相关的部分,详述如下:Figure 5 shows a schematic diagram of the main modules of the automation component decoupling system based on the Web service system provided by the embodiment of the present application. For the convenience of description, only the parts related to the embodiment of the present application are shown, and the details are as follows:

一种基于Web服务系统的自动化组件解耦系统200,包括:An automated component decoupling system 200 based on a Web service system, comprising:

第一组件元素捕捉模块201,用于获取并加载目标网页,解析所述目标网页得到目标网页中的节点元素信息;The first component element capture module 201 is used to obtain and load the target webpage, and analyze the target webpage to obtain node element information in the target webpage;

第二组件元素捕捉模块202,用于获取输入的目标业务流程的起始先验信息,根据所述目标业务流程起始先验信息在所述节点元素信息中匹配对应的目标节点元素信息;The second component element capture module 202 is configured to acquire the initial prior information of the input target business process, and match the corresponding target node element information in the node element information according to the initial prior information of the target business process;

第一自动化组件生成模块203,用于以所有所述目标节点元素信息为入口,在预设网页深度范围内,采用递归方式逐级按顺序解析所述目标网页,以获得目标业务流程所需的过程节点信息以及符合目标业务流程终止先验信息的网页节点信息;The first automation component generation module 203 is configured to take all the target node element information as an entry, and use a recursive method to parse the target web page step by step and in sequence within the preset web page depth, so as to obtain the information required by the target business process. Process node information and web page node information conforming to the prior information of the target business process termination;

第二自动化组件生成模块204,用于若匹配到所述终止先验信息对应的网页节点信息,建立从所述起始先验信息对应的目标节点、过程节点和终止先验信息对应的网页节点的映射关系,根据所述映射关系生成所述目标业务的功能组件。The second automation component generating module 204 is used to establish a target node, a process node, and a web page node corresponding to the termination prior information from the start prior information if the web page node information corresponding to the termination prior information is matched. The mapping relationship of the target service is generated according to the mapping relationship.

在一个实施例中,所述第二自动化组件生成模块,还用于若步骤4中未匹配到所述终止先验信息对应的网页节点信息,则基于预设的网页解析深度参数,以步骤3中获取到的目标网页下所有可交互的节点元素信息为入口,逐级按顺序解析所述目标网页的下探网页,直至匹配到所有符合目标业务流程终止先验信息的网页节点信息,并存储每个步骤生成的过程节点信息。In one embodiment, the second automation component generation module is further configured to, if the webpage node information corresponding to the termination prior information is not matched in step 4, then based on the preset webpage analysis depth parameter, step 3 All the interactive node element information under the target webpage obtained in the entry is used as the entry, and the drop-down webpages of the target webpage are analyzed step by step and in order until all the webpage node information that meets the prior information of the target business process termination is matched, and stored Process node information generated by each step.

需要说明的是,本申请实施例的基于Web服务系统的自动化组件解耦系统为对应于本申请实施例的基于Web服务系统的自动化组件解耦方法进行配置,基于Web服务系统的自动化组件解耦系统的其它实施例对应于基于Web服务系统的自动化组件解耦方法的所有实施例,这里不再赘述。It should be noted that the decoupling system for automated components based on the Web service system in the embodiment of the present application is configured to correspond to the method for decoupling the automated components based on the Web service system in the embodiment of the present application. The decoupling of automated components based on the Web service system Other embodiments of the system correspond to all embodiments of the method for decoupling automation components based on the Web service system, and will not be repeated here.

由此,本申请实施例提供的基于Web服务系统的自动化组件解耦系统,仅需少量的关于系统的知识便可快速地、自动化地对Web服务进行分析和梳理,进而快速批量地解耦原有系统,形成符合系统间对接要求的业务功能组件,解决了目前RPA技术部署实施过程中过度依赖业务专家、耗时等问题,从而实现对已有系统的再利用,提高软件开发的效率,形成更好的软件产品、服务。Therefore, the automated component decoupling system based on the Web service system provided by the embodiment of the present application can quickly and automatically analyze and sort out Web services with only a small amount of knowledge about the system, and then quickly decouple the original components in batches. There is a system to form business function components that meet the requirements of inter-system docking, which solves the problems of over-reliance on business experts and time-consuming problems in the current RPA technology deployment and implementation process, so as to realize the reuse of existing systems, improve the efficiency of software development, and form Better software products and services.

本申请实施例还提供一种电子设备,包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现本申请实施例的基于Web服务系统的自动化组件解耦方法。The embodiment of the present application also provides an electronic device, including: one or more processors; a storage device for storing one or more programs, when one or more programs are executed by one or more processors, so that one or more Multiple processors implement the method for decoupling automation components based on the Web service system in the embodiment of the present application.

本申请实施例还提供一种计算机可读介质,其上存储有计算机程序,程序被处理器执行时实现本申请实施例的基于Web服务系统的自动化组件解耦方法。The embodiment of the present application also provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the method for decoupling automation components based on a Web service system in the embodiment of the present application is implemented.

图6示出了可以应用本申请实施例的基于Web服务系统的自动化组件解耦方法的示例性系统架构300。FIG. 6 shows an exemplary system architecture 300 to which the method for decoupling automation components based on a Web service system according to an embodiment of the present application can be applied.

如图6所示,系统架构300可以包括终端设备301、302、303,网络304和服务器305。网络304用以在终端设备301、302、303和服务器305之间提供通信链路的介质。网络304可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 6 , the system architecture 300 may include terminal devices 301 , 302 , and 303 , a network 304 and a server 305 . The network 304 is used as a medium for providing communication links between the terminal devices 301 , 302 , 303 and the server 305 . Network 304 may include various connection types, such as wires, wireless communication links, or fiber optic cables, among others.

用户可以使用终端设备301、302、303通过网络304与服务器305交互,以接收或发送消息等。终端设备301、302、303上可以安装有各种通讯客户端应用,例如购物类应用、网页浏览器应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等。Users can use terminal devices 301 , 302 , 303 to interact with server 305 via network 304 to receive or send messages and the like. Various communication client applications can be installed on the terminal devices 301, 302, 303, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, and the like.

终端设备301、302、303可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。The terminal devices 301, 302, 303 may be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers and the like.

服务器305可以是提供各种服务的服务器,例如对用户利用终端设备301、302、303所发送的往来消息提供支持的后台管理服务器。后台管理服务器可以在接收到终端设备请求后进行分析等处理,并将处理结果反馈给终端设备。The server 305 may be a server that provides various services, such as a background management server that provides support for incoming and outgoing messages sent by users using the terminal devices 301 , 302 , and 303 . The background management server can perform analysis and other processing after receiving the request from the terminal device, and feed back the processing result to the terminal device.

需要说明的是,本申请实施例所提供的基于Web服务系统的自动化组件解耦方法一般由终端设备301、302、303或服务器305执行,相应地,基于Web服务系统的自动化组件解耦系统一般设置于终端设备301、302、303或服务器305中。It should be noted that the method for decoupling automation components based on the Web service system provided by the embodiment of the present application is generally executed by the terminal device 301, 302, 303 or the server 305. Correspondingly, the automation component decoupling system based on the Web service system is generally Set in terminal devices 301, 302, 303 or server 305.

应该理解,图6中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in FIG. 6 are only illustrative. According to the implementation needs, there can be any number of terminal devices, networks and servers.

下面参考图7,其示出了适于用来实现本申请实施例的终端设备或服务器的计算机系统400的结构示意图。图7示出的计算机系统仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Referring now to FIG. 7 , it shows a schematic structural diagram of a computer system 400 suitable for implementing a terminal device or a server according to an embodiment of the present application. The computer system shown in FIG. 7 is only an example, and should not limit the functions and scope of use of the embodiments of the present application.

如图7所示,计算机系统400包括中央处理单元(CPU)401,其可以根据存储在只读存储器(ROM)402中的程序或者从存储部分408加载到随机访问存储器(RAM)403中的程序而执行各种适当的动作和处理。在RAM 403中,还存储有系统400操作所需的各种程序和数据。CPU 401、ROM 402以及RAM 403通过总线404彼此相连。输入/输出(I/O)接口405也连接至总线404。As shown in FIG. 7 , a computer system 400 includes a central processing unit (CPU) 401 that can execute programs according to programs stored in a read-only memory (ROM) 402 or loaded from a storage section 408 into a random-access memory (RAM) 403 Instead, various appropriate actions and processes are performed. In the RAM 403, various programs and data required for the operation of the system 400 are also stored. The CPU 401, ROM 402, and RAM 403 are connected to each other through a bus 404. An input/output (I/O) interface 405 is also connected to bus 404 .

以下部件连接至I/O接口405:包括键盘、鼠标等的输入部分406;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分407;包括硬盘等的存储部分408;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分409。通信部分409经由诸如因特网的网络执行通信处理。驱动器410也根据需要连接至I/O接口405。可拆卸介质411,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器410上,以便于从其上读出的计算机程序根据需要被安装入存储部分408。The following components are connected to the I/O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 408 including a hard disk, etc. and a communication section 409 including a network interface card such as a LAN card, a modem, or the like. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I/O interface 405 as needed. A removable medium 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is mounted on the drive 410 as necessary so that a computer program read therefrom is installed into the storage section 408 as necessary.

特别地,根据本申请公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本申请公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分409从网络上被下载和安装,和/或从可拆卸介质411被安装。在该计算机程序被中央处理单元(CPU)401执行时,执行本申请的系统中限定的上述功能。In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in this application include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communication portion 409 and/or installed from removable media 411 . When the computer program is executed by the central processing unit (CPU) 401 , the above-mentioned functions defined in the system of the present application are executed.

需要说明的是,本申请所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in this application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this application, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, in which computer-readable program codes are carried. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. . Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that includes one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block in the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a A combination of dedicated hardware and computer instructions.

描述于本申请实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的模块也可以设置在处理器中,例如,可以描述为:一种处理器包括确定模块、提取模块、训练模块和筛选模块 。其中,这些模块的名称在某种情况下并不构成对该模块本身的限定,例如,确定模块还可以被描述为“确定候选用户集的模块”。The modules involved in the embodiments described in the present application may be implemented by means of software or hardware. The described modules can also be set in a processor, for example, it can be described as: a processor includes a determination module, an extraction module, a training module and a screening module. Wherein, the names of these modules do not constitute a limitation on the module itself under certain circumstances, for example, the determination module may also be described as a "module for determining the candidate user set".

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the scope of protection of the patent application should be based on the appended claims.

以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, there may be various modifications and changes in the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included within the protection scope of this application.

Claims (10)

1. An automated component decoupling method based on a Web service system, comprising:
step 1: acquiring and loading a target webpage, and analyzing the target webpage to obtain node element information in the target webpage;
step 2: acquiring initial prior information of an input target business process, and matching corresponding target node element information in the node element information according to the initial prior information of the target business process;
step 3: analyzing the target webpage step by step in sequence in a recursion mode by taking all the target node element information as an entry within a preset webpage depth range so as to obtain process node information required by a target business process and webpage node information conforming to prior information of termination of the target business process;
step 4: if the web page node information corresponding to the termination priori information is matched, a mapping relation between a target node corresponding to the starting priori information, a process node and a web page node corresponding to the termination priori information is established, and a functional component of the target service is generated according to the mapping relation.
2. The method for decoupling an automation component based on a Web service system according to claim 1, wherein if the Web page node information corresponding to the termination priori information is not matched in the step 4, analyzing the lower search Web page of the target Web page step by step in sequence by taking all the interactable node element information under the target Web page acquired in the step 3 as an entry based on a preset Web page analysis depth parameter until all the Web page node information conforming to the termination priori information of the target business process is matched, and storing the process node information generated in each step.
3. The method for decoupling an automation component based on a Web service system according to claim 2, wherein the matching the corresponding target node element information in the node element information according to the target business process initiation priori information comprises: and matching corresponding target node element information in the node element information based on the operation type of the node element according to the target business process starting priori information.
4. The Web service system-based automation component decoupling method of claim 1, further comprising, prior to obtaining the target Web page: and executing a handle program to acquire the target webpage.
5. The Web service system-based automation component decoupling method of claim 1, wherein the node element information in the target Web page comprises: each node element under different program framework systems is based on the Xpath path information of the target web page, the window handle of the target web page, the URL, the element type, and the content information on which the forward node depends.
6. The Web service system-based automation component decoupling method of claim 1, further comprising: and receiving a splicing instruction of the functional components of the target service, and connecting the functional components of each target service in series or in parallel based on preset service logic according to the splicing instruction by utilizing an RPA technology.
7. An automated component decoupling system based on a Web service system, comprising:
the first component element capturing module is used for acquiring and loading a target webpage and analyzing the target webpage to obtain node element information in the target webpage;
the second component element capturing module is used for acquiring initial prior information of an input target business process and matching corresponding target node element information in the node element information according to the initial prior information of the target business process;
the first automation component generating module is used for analyzing the target webpage step by step in sequence in a recursion mode in a preset webpage depth range by taking all the target node element information as an entrance so as to obtain process node information required by a target business process and webpage node information conforming to the prior information of termination of the target business process;
and the second automation component generating module is used for establishing a mapping relation among the target node corresponding to the initial prior information, the process node and the webpage node corresponding to the termination prior information if the webpage node information corresponding to the termination prior information is matched, and generating the functional component of the target service according to the mapping relation.
8. The system for decoupling an automation component based on a Web service system according to claim 7, wherein the second automation component generating module is further configured to, if the Web page node information corresponding to the termination priori information is not matched in step 4, parse the downlink Web page of the target Web page step by step in sequence with all the interactable node element information under the target Web page obtained in step 3 as an entry based on a preset Web page parsing depth parameter until all the Web page node information conforming to the termination priori information of the target business process is matched, and store the process node information generated in each step.
9. An electronic device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to perform the steps of the Web service system based automation component decoupling method of any one of claims 1 to 6.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, causes the processor to perform the steps of the Web service system based automation component decoupling method of any one of claims 1 to 6.
CN202310368933.5A 2023-04-10 2023-04-10 Decoupling method and system for automation components based on Web service system Active CN116126426B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310368933.5A CN116126426B (en) 2023-04-10 2023-04-10 Decoupling method and system for automation components based on Web service system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310368933.5A CN116126426B (en) 2023-04-10 2023-04-10 Decoupling method and system for automation components based on Web service system

Publications (2)

Publication Number Publication Date
CN116126426A true CN116126426A (en) 2023-05-16
CN116126426B CN116126426B (en) 2023-08-29

Family

ID=86308451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310368933.5A Active CN116126426B (en) 2023-04-10 2023-04-10 Decoupling method and system for automation components based on Web service system

Country Status (1)

Country Link
CN (1) CN116126426B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8069435B1 (en) * 2003-08-18 2011-11-29 Oracle America, Inc. System and method for integration of web services
US20120158416A1 (en) * 2010-12-21 2012-06-21 Sap Ag Web-service based generation of business objects
CN103309954A (en) * 2013-05-27 2013-09-18 复旦大学 Html webpage based data extracting system
CN106326314A (en) * 2015-07-07 2017-01-11 腾讯科技(深圳)有限公司 Web page information extraction method and device
CN111079057A (en) * 2019-12-05 2020-04-28 中国科学技术大学智慧城市研究院(芜湖) Data mapping and interoperation system and method based on WEB information
CN113391871A (en) * 2021-08-17 2021-09-14 杭州实在智能科技有限公司 RPA element intelligent fusion picking method and system
CN113553268A (en) * 2021-07-27 2021-10-26 苏州市龙测智能科技有限公司 AI intelligent software testing method
CN114240358A (en) * 2021-12-15 2022-03-25 平安证券股份有限公司 Method, device, equipment and medium for realizing user-defined business process
CN115062206A (en) * 2022-05-30 2022-09-16 上海弘玑信息技术有限公司 Webpage element searching method and electronic equipment
CN115903694A (en) * 2022-11-04 2023-04-04 北京镁伽机器人科技有限公司 Test process analysis method, device, electronic equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8069435B1 (en) * 2003-08-18 2011-11-29 Oracle America, Inc. System and method for integration of web services
US20120158416A1 (en) * 2010-12-21 2012-06-21 Sap Ag Web-service based generation of business objects
CN103309954A (en) * 2013-05-27 2013-09-18 复旦大学 Html webpage based data extracting system
CN106326314A (en) * 2015-07-07 2017-01-11 腾讯科技(深圳)有限公司 Web page information extraction method and device
CN111079057A (en) * 2019-12-05 2020-04-28 中国科学技术大学智慧城市研究院(芜湖) Data mapping and interoperation system and method based on WEB information
CN113553268A (en) * 2021-07-27 2021-10-26 苏州市龙测智能科技有限公司 AI intelligent software testing method
CN113391871A (en) * 2021-08-17 2021-09-14 杭州实在智能科技有限公司 RPA element intelligent fusion picking method and system
CN114240358A (en) * 2021-12-15 2022-03-25 平安证券股份有限公司 Method, device, equipment and medium for realizing user-defined business process
CN115062206A (en) * 2022-05-30 2022-09-16 上海弘玑信息技术有限公司 Webpage element searching method and electronic equipment
CN115903694A (en) * 2022-11-04 2023-04-04 北京镁伽机器人科技有限公司 Test process analysis method, device, electronic equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
HUAXI (YULIN) ZHANG: "A three-level component model in component based software development", 《PROCEEDINGS OF THE 11TH INTERNATIONAL CONFERENCE ON GENERATIVE PROGRAMMING AND COMPONENT ENGINEERING》, pages 70 - 79 *
王燕;陈明;王智广;: "基于工作流的构件和Web Services混合组装", 微电子学与计算机, no. 02 *
陈志宇: "基于优化NFA正则匹配的Web信息抽取技术及应用研究", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 *

Also Published As

Publication number Publication date
CN116126426B (en) 2023-08-29

Similar Documents

Publication Publication Date Title
CN110858172B (en) A method and device for generating automatic test code
CN110543297B (en) Method and apparatus for generating source code
CN113536748B (en) A method and device for generating chart data
CN111090423B (en) Webhook framework system and method for realizing active calling and event triggering
CN111427701A (en) Workflow engine system and business processing method
CN113139660A (en) Model reasoning method and device, electronic equipment and storage medium
CN113076153B (en) Interface calling method and device
CN110134427A (en) A method and device for generating code files
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
CN113761588A (en) Data verification method and device, terminal equipment and storage medium
CN113760276A (en) Method and device for generating page code
CN116126426B (en) Decoupling method and system for automation components based on Web service system
CN113326060B (en) Service request processing method, device and system, and service configuration method and device
CN110825622A (en) Software testing method, device, equipment and computer readable medium
WO2023169193A1 (en) Method and device for generating smart contract
CN113779018B (en) A data processing method and device
CN115291928A (en) Task automatic integration method and device of multiple technology stacks and electronic equipment
CN116048517A (en) API (application program interface) generating method, system and device based on B/S (browser/Server) architecture application system
CN113448679B (en) Method and device for processing call request
CN113283991A (en) Processing method and device for transaction data on block chain
CN112099841A (en) Method and system for generating configuration file
CN112799797A (en) Task management method and device
CN113449228A (en) Page rendering method and device
CN112882741A (en) Application management system and method
CN115499402B (en) Instant messaging information processing method, terminal and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Room 1166, No. 108, Qingyin Street, Xiaoying Street, Shangcheng District, Hangzhou, Zhejiang 310003

Patentee after: Hangzhou City Big Data Operation Co.,Ltd.

Country or region after: China

Patentee after: Zhejiang Shuzhi Operation Technology Co.,Ltd.

Patentee after: Hangzhou zhongyun Data Technology Co.,Ltd.

Address before: Room 1166, No. 108, Qingyin Street, Xiaoying Street, Shangcheng District, Hangzhou, Zhejiang 310003

Patentee before: Hangzhou City Big Data Operation Co.,Ltd.

Country or region before: China

Patentee before: Huzhou big data operation Co.,Ltd.

Patentee before: Hangzhou zhongyun Data Technology Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20241105

Address after: Room 1166, No. 108, Qingyin Street, Xiaoying Street, Shangcheng District, Hangzhou, Zhejiang 310003

Patentee after: Hangzhou City Big Data Operation Co.,Ltd.

Country or region after: China

Address before: Room 1166, No. 108, Qingyin Street, Xiaoying Street, Shangcheng District, Hangzhou, Zhejiang 310003

Patentee before: Hangzhou City Big Data Operation Co.,Ltd.

Country or region before: China

Patentee before: Zhejiang Shuzhi Operation Technology Co.,Ltd.

Patentee before: Hangzhou zhongyun Data Technology Co.,Ltd.