WO2021012957A1 - Method and device for message aggregation - Google Patents

Method and device for message aggregation Download PDF

Info

Publication number
WO2021012957A1
WO2021012957A1 PCT/CN2020/100983 CN2020100983W WO2021012957A1 WO 2021012957 A1 WO2021012957 A1 WO 2021012957A1 CN 2020100983 W CN2020100983 W CN 2020100983W WO 2021012957 A1 WO2021012957 A1 WO 2021012957A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
monitoring
message
source page
monitoring data
Prior art date
Application number
PCT/CN2020/100983
Other languages
French (fr)
Chinese (zh)
Inventor
林震宇
陈文极
徐立宇
林晨
林智泓
陈艺辉
陶峥
Original Assignee
中国建设银行股份有限公司
建信金融科技有限责任公司
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 中国建设银行股份有限公司, 建信金融科技有限责任公司 filed Critical 中国建设银行股份有限公司
Publication of WO2021012957A1 publication Critical patent/WO2021012957A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Definitions

  • This application relates to the technical field of data interaction between systems, and specifically to a message aggregation method and device.
  • the main purpose of this application is to provide a message aggregation method and device to solve the technical problem that it is difficult for enterprise managers to efficiently obtain new messages from various systems.
  • a message aggregation method includes:
  • the change data between the current monitoring data and the monitoring data acquired last time is sent to the message push location corresponding to the monitoring area to perform message aggregation.
  • the message aggregation method further includes:
  • a message aggregation device which includes:
  • the monitoring data acquisition unit is used to acquire the current monitoring data of the monitoring area on the data source page;
  • a hash value comparison unit configured to compare the hash value of the monitoring data with the hash value of the monitoring data of the monitoring area acquired last time
  • the first pushing unit is configured to send the change data between the current monitoring data and the last acquired monitoring data to the message push location corresponding to the monitoring area when the comparison is inconsistent, for message aggregation.
  • the message aggregation device further includes:
  • the last modification date obtaining unit obtains the current last modification date of the data source page
  • the date comparison unit compares the last modification date with the last modification date obtained last time for consistency
  • the second pushing unit is configured to send the change data between the current data source page content and the last obtained data source page content to the message pushing location when the consistency comparison fails.
  • an electronic device including a memory, a central processing unit, and an application program stored in the memory and capable of running on the central processing unit.
  • the central processing unit executes the application program.
  • a computer-readable storage medium stores an application program that implements the above message aggregation method when the application program is executed in a computer processor.
  • the message source page is determined on the system, and the monitoring area is selected on the message source page according to the location of the message, and then it is determined whether the monitoring area has a message change by hash value comparison, and when the message changes The changed content is pushed to realize the beneficial effect of automatically acquiring new messages from each system.
  • Fig. 1 is a first flowchart of a message aggregation method according to an embodiment of the present application.
  • Fig. 2 is a second flowchart of a message aggregation method according to an embodiment of the present application.
  • Fig. 3 is a flowchart of collecting monitoring data of a monitoring area in an embodiment of the present application.
  • Fig. 4 is a first structural block diagram of a message aggregation apparatus according to an embodiment of the present application.
  • Fig. 5 is a second structural block diagram of a message aggregation apparatus according to an embodiment of the present application.
  • Fig. 6 is a third structural block diagram of a message aggregation apparatus according to an embodiment of the present application.
  • FIG. 7 is a schematic block diagram of the system configuration of an electronic device 600 according to an embodiment of the application.
  • RPA Robotic Process Automation
  • the message aggregation method of the embodiment of the present application may be implemented with the RPA system as the main body, and the RPA system may be connected to each system through the data interface of each system.
  • the RPA system can be a web page system, WEB server, cloud server, software, APP, background server, etc.
  • FIG. 1 is a first flowchart of a message aggregation method according to an embodiment of the present application. As shown in FIG. 1, in an embodiment of the present application, the message aggregation method of the present application includes steps S101 to S103.
  • Step S101 Obtain current monitoring data of the monitoring area on the data source page.
  • the message source page may be a browser page, a desktop application page, a mailbox page, etc.
  • the user first determines the system to monitor the message, then determines the message source page on the system, and then selects the monitoring area on the message source page according to the location of the message.
  • the monitoring area may also be the entire page of the message source page.
  • the monitoring data may be the content in the monitoring area, and the content may be text, image, or a combination of the two.
  • the RPA system includes a screen recording unit, and the present application may use the screen recording unit to set the monitoring area on the message source page.
  • the present application may use the screen recording unit to set the monitoring area on the message source page.
  • users need to open the message source page and move the mouse to the relevant element.
  • a bold frame will be formed.
  • the device will automatically be based on the message source page HTML Code rules, analyze ID, CLASS and other related elements to form a set of message acquisition rules (that is, monitoring data extraction rules).
  • the monitoring data of the set monitoring area can be collected through the data interface of the system according to the message acquisition rule.
  • the screen recording unit may first record the message source page every time it collects, and then extract the monitoring data corresponding to the monitored area from the recorded message source page according to the above message acquisition rules. In the embodiment of the present application, after the monitoring data is extracted, the screen recording unit may delete the recorded message source page.
  • Step S102 Compare the hash value of the monitoring data with the hash value of the monitoring data of the monitoring area acquired last time.
  • Hash256 may be used to perform a hash operation.
  • the RPA system stores the hash value of the monitoring data collected each time for comparison.
  • the content of the surface monitoring area that is, the monitoring data
  • Step S103 if the comparison is inconsistent, the change data between the current monitoring data and the last acquired monitoring data is sent to the message push location corresponding to the monitoring area to perform message aggregation.
  • the changed content is sent to the preset message push location.
  • the above-mentioned change data is the data change content obtained by comparing the monitoring data of the monitoring area collected this time with the stored monitoring data of the monitoring area last time, and then push the data change content to the preset position.
  • the change data may be the changed content of the current monitoring data on the basis of the previous monitoring data
  • the changed content may be new content, reduced content, and replaced content.
  • the newly added content may be a text, image or image part added on the basis of the previous monitoring data, or an element added to the image on the basis of the previous monitoring data.
  • the reduced content may be the text, image or image part reduced on the basis of the previous monitoring data, or the element reduced in the image on the basis of the previous monitoring data.
  • the replaced content may be the replaced text, image or image part, or an element replaced on the basis of the previous monitoring data.
  • the message push location when setting the monitoring area, is set at the same time, that is, to whom the new message will be pushed if there is a new message.
  • the message push location may be various systems within the enterprise, or may be a push location such as SMS, email, WeChat, and RSS reader.
  • the change data before sending the change data to the preset message push position, can also be processed according to the preset data processing template, and the change data is converted into the message push position readable
  • the changed data is converted into a text format and then pushed to WeChat.
  • the monitoring data of the monitoring area obtained in step S101 may be collected according to a preset collection rule.
  • the collection rule may be: a set collection frequency or a set collection time point.
  • step S101 to step S103 When a monitoring process (step S101 to step S103) ends, if it is found that the hash value of the monitoring data has not changed, the monitoring process will be initiated again in the next cycle.
  • the embodiment of this application first determines the system to monitor the message, determines the message source page on the system, selects the monitoring area on the message source page according to the location of the message, and then compares the hash value. Determine whether there is a message change in the monitoring area. In this way, when there are new messages in each system, the messages of each system are acquired and aggregated, and then the aggregated messages are pushed to other systems, which solves the problem that there is no direct interface to connect between various systems in the prior art, and messages cannot be shared. The problem.
  • Fig. 2 is a second flowchart of a message aggregation method according to an embodiment of the present application. As shown in Fig. 2, in another embodiment of the present invention, the message aggregation method of the present application further includes steps S201 to S203.
  • Step S201 Obtain the current last modification date of the data source page.
  • Step S202 comparing the last modification date with the last modification date acquired last time for consistency.
  • Step S203 If the consistency comparison fails, the change data between the current data source page content and the last acquired data source page content is sent to the message push location.
  • the monitoring area is the message detection area on the selected data source page, which is representative on the data source page.
  • the change of the data source page is usually the change of the monitoring data of the monitoring area.
  • the change of the data source page may also be a change in the part outside the monitoring area, because the selected monitoring area is representative, in the actual test, when the data source page changes, the probability of exceeding 90% is within the monitoring area. change.
  • this application combines the two methods of monitoring using the last modification date and monitoring using hash values to ensure that the monitoring accuracy is within the appropriate range. At the same time, the detection efficiency is accelerated.
  • these two monitoring methods can be performed asynchronously, and the start frequency of the monitoring method using the last modification date is set to be higher, so as to speed up the detection efficiency and reduce the data processing workload.
  • the last modification date obtained in step S201 may be collected according to a preset collection rule.
  • the collection rule may be: a set collection frequency or a set collection time point.
  • the monitoring data of the monitoring area collected in step S101 and the last modification date of the collection in step S201 can be started asynchronously, or can be started simultaneously according to a preset collection rule.
  • Fig. 3 is a flowchart of collecting monitoring data of a monitoring area in an embodiment of the present application. As shown in Fig. 3, in an optional embodiment of the present application, the method of collecting monitoring data of a monitoring area in the present application includes step S301 and step S302.
  • Step S301 Generate a monitoring data extraction rule for the monitoring area according to the location information of the monitoring area and the code rule of the data source page.
  • the code rule of the data source page may be an HTML code rule.
  • the code rule of the data source page may record the data acquisition location of the data displayed in each position on the data source page.
  • Step S302 Collect the monitoring data of the monitoring area through the data interface of the data source page according to the monitoring data extraction rule.
  • the message aggregation method of the embodiments of the present application at least achieves the following beneficial effects: no major changes are required to each system, short construction period, strong personalization, and saving time and economic costs of use; It is non-invasive to the original system and will not affect the original system.
  • an embodiment of the present application also provides a message aggregation device, which can be used to implement the message aggregation method described in the foregoing embodiment, as described in the following embodiment. Since the principle of the message aggregation device to solve the problem is similar to that of the message aggregation method, the embodiment of the message aggregation device can refer to the embodiment of the message aggregation method, and the repetition will not be repeated.
  • FIG. 4 is a first structural block diagram of a message aggregation apparatus according to an embodiment of the present application.
  • the message aggregation apparatus includes: a monitoring data acquisition unit 1, a hash value comparison unit 2, and a first pushing unit 3.
  • the monitoring data obtaining unit 1 is used to obtain the current monitoring data of the monitoring area on the data source page.
  • the hash value comparison unit 2 is configured to compare the hash value of the monitoring data with the hash value of the monitoring data of the monitoring area acquired last time.
  • the first push unit 3 is configured to send the change data between the current monitoring data and the last acquired monitoring data to the message push location corresponding to the monitoring area when the comparison is inconsistent, for message aggregation.
  • FIG. 5 is a second structural block diagram of the message aggregation apparatus according to the embodiment of the present application. As shown in FIG. 5, the message aggregation apparatus according to the embodiment of the present application further includes: a last modification date obtaining unit 4, a date comparison unit 5, and a second pushing unit 6.
  • the last modification date obtaining unit 4 is configured to obtain the current last modification date of the data source page.
  • the date comparison unit 5 is used to compare the last modification date with the last modification date obtained last time.
  • the second pushing unit 6 is configured to send the change data between the current data source page content and the last obtained data source page content to the message pushing location when the consistency comparison fails.
  • the monitoring data of the monitoring area and the last modification date of the data source page can be collected asynchronously according to respective collection rules.
  • the monitoring data of the monitoring area and the last modification date of the data source page can be collected at the same time according to a preset collection rule.
  • the collection rule may be a set collection frequency or a set collection time point.
  • FIG. 6 is a third structural block diagram of the message aggregation device according to the embodiment of the present application. As shown in FIG. 6, the message aggregation device according to the embodiment of the present application further includes: a monitoring data extraction rule generation unit 7 and a collection unit 8.
  • the monitoring data extraction rule generating unit 7 is configured to generate monitoring data extraction rules for the monitoring area according to the location information of the monitoring area and the code rules of the data source page.
  • the collection unit 8 is configured to obtain the monitoring data of the monitoring area through the data interface of the data source page according to the monitoring data extraction rule.
  • the electronic device may be a desktop computer, a tablet computer, a mobile terminal, etc., and this embodiment is not limited thereto.
  • the electronic device can refer to the implementation of the message aggregation method of the above-mentioned embodiment and the message aggregation apparatus of the above-mentioned embodiment, the content of which is merged here, and the repetition is not repeated here.
  • FIG. 7 is a schematic block diagram of the system configuration of an electronic device 600 according to an embodiment of the application.
  • the electronic device 600 may include a central processing unit 100 and a memory 140, and the memory 140 is coupled to the central processing unit 100. It is worth noting that this figure is exemplary, and other types of structures can also be used to supplement or replace this structure to implement telecommunication functions or other functions.
  • the message aggregation method of the embodiment of the present application may be integrated into the central processing unit 100.
  • the central processing unit 100 may be configured to perform the following control: obtain the current monitoring data of the monitoring area on the data source page; compare the hash value of the monitoring data with the last obtained monitoring data of the monitoring area. If the comparison is not consistent, the change data between the current monitoring data and the last acquired monitoring data is sent to the message push location corresponding to the monitoring area for message aggregation.
  • the central processing unit 100 may also be configured to perform the following control: obtain the current last modification date of the data source page; compare the last modification date with the last modification date obtained last time; if the consistency is compared No, the change data between the content of the current data source page and the content of the data source page obtained last time is sent to the message push location.
  • the electronic device 600 may further include: a communication module 110, an input unit 120, an audio processing unit 130, a display 160, and a power supply 170. It should be noted that the electronic device 600 does not necessarily include all the components shown in FIG. 7; in addition, the electronic device 600 may also include components not shown in FIG. 7, and the prior art can be referred to.
  • the central processing unit 100 is sometimes called a controller or operating control, and may include a microprocessor or other processor devices and/or logic devices.
  • the central processing unit 100 receives inputs and controls various components of the electronic equipment 600. Operation of components.
  • the memory 140 may be, for example, one or more of a cache, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory, or other suitable devices.
  • the above-mentioned information related to the failure can be stored, and the program for executing the related information can also be stored.
  • the central processing unit 100 can execute the program stored in the memory 140 to implement information storage or processing.
  • the input unit 120 provides input to the central processing unit 100.
  • the input unit 120 is, for example, a button or a touch input device.
  • the power supply 170 is used to provide power to the electronic device 600.
  • the display 160 is used for displaying display objects such as images and characters.
  • the display may be, for example, an LCD display, but it is not limited thereto.
  • the memory 140 may be a solid-state memory, for example, read only memory (ROM), random access memory (RAM), SIM card, etc. It may also be a memory that saves information even when the power is off, can be selectively erased and is provided with more data, and an example of this memory is sometimes called EPROM or the like.
  • the memory 140 may also be some other type of device.
  • the memory 140 includes a buffer memory 141 (sometimes referred to as a buffer).
  • the memory 140 may include an application/function storage unit 142, which is used to store application programs and function programs or to execute the operation flow of the electronic device 600 through the central processing unit 100.
  • the memory 140 may further include a data storage unit 143 for storing data, such as contacts, digital data, pictures, sounds, and/or any other data used by electronic devices.
  • the driver storage unit 144 of the memory 140 may include various drivers for the communication function of the electronic device and/or for executing other functions of the electronic device (such as a messaging application, an address book application, etc.).
  • the communication module 110 is a transmitter/receiver 110 that transmits and receives signals via the antenna 111.
  • the communication module (transmitter/receiver) 110 is coupled to the central processing unit 100 to provide input signals and receive output signals, which can be the same as that of a conventional mobile communication terminal.
  • multiple communication modules 110 may be provided in the same electronic device, such as a cellular network module, a Bluetooth module, and/or a wireless local area network module.
  • the communication module (transmitter/receiver) 110 is also coupled to the speaker 131 and the microphone 132 via the audio processor 130 to provide audio output via the speaker 131 and receive audio input from the microphone 132, thereby realizing general telecommunication functions.
  • the audio processor 130 may include any suitable buffers, decoders, amplifiers, etc.
  • the audio processor 130 is also coupled to the central processing unit 100, so that the microphone 132 can be used to record on the unit, and the speaker 131 can be used to play the sound stored on the unit.
  • Another aspect of the present application also provides a computer-readable storage medium for implementing the message aggregation method of the above-mentioned embodiments.
  • the computer-readable storage medium stores an application program that is implemented when executed in a computer processor. The following steps:
  • the change data between the current monitoring data and the monitoring data acquired last time is sent to the message push location corresponding to the monitoring area to perform message aggregation.

Abstract

A method and device for message aggregation. The method comprises: acquiring current monitoring data of a monitoring area on a data source page (S101); comparing a hash value of the monitoring data with a hash value of previously acquired monitoring data of the monitoring area (S102); if inconsistency is found upon comparison, transmitting changed data between the current monitoring data and the previously acquired monitoring data to a message pushing position corresponding to the monitoring area to perform message aggregation (S103). The method allows the detection of whether a change in message has occurred in a monitoring area of a system, and the pushing of a changed content when a change in message has occurred, thus implementing the beneficial effect of automatically acquiring new messages of systems.

Description

消息聚合方法及装置Message aggregation method and device 技术领域Technical field
本申请涉及系统间数据交互技术领域,具体而言,涉及一种消息聚合方法及装置。This application relates to the technical field of data interaction between systems, and specifically to a message aggregation method and device.
背景技术Background technique
目前,在企业IT自动化过程中,企业往往采购多个完整独立的IT系统来满足日常工作需求,各个IT系统间并无直接接口进行连接,消息通知无法共享。比如A企业同时使用外购差旅系统、基础设施审批、OA平台、经费系统,各系统都独立附带了一个完整的审批流程,企业管理者均需要登陆到各个系统后才知道各系统是否有新的消息通知。针对现有的多系统的情况,企业管理者需要每天多次登录各个系统,根据各系统的消息通知提醒获知是否有新消息通知需要处理。这种方式获取各系统新消息通知的效率较低,需要每天多次登录各系统,而且无法实时获取各系统的新消息通知。At present, in the process of enterprise IT automation, companies often purchase multiple complete and independent IT systems to meet daily work needs. There is no direct interface between various IT systems to connect, and message notifications cannot be shared. For example, A company uses the outsourcing travel system, infrastructure approval, OA platform, and funding system at the same time. Each system is independently accompanied by a complete approval process. Enterprise managers need to log in to each system to know whether each system is new. News notification. In view of the existing multi-system situation, enterprise managers need to log in to each system multiple times a day, and learn whether there is a new message notification to be processed according to the message notification reminder of each system. The efficiency of obtaining new message notifications from various systems in this way is low, requiring multiple logins to each system every day, and it is impossible to obtain new message notifications from various systems in real time.
发明内容Summary of the invention
本申请的主要目的在于提供一种消息聚合方法及装置,以解决企业管理者难以高效的获取各系统新消息的技术问题。The main purpose of this application is to provide a message aggregation method and device to solve the technical problem that it is difficult for enterprise managers to efficiently obtain new messages from various systems.
本申请的一个方面,提供了一种消息聚合方法,该方法包括:In one aspect of the present application, a message aggregation method is provided. The method includes:
获取数据源页面上的监测区域的当前监测数据;Obtain the current monitoring data of the monitoring area on the data source page;
将所述监测数据的哈希值与上一次获取的所述监测区域的监测数据的哈希值进行对比;Comparing the hash value of the monitoring data with the hash value of the monitoring data of the monitoring area acquired last time;
若对比不一致,将当前监测数据与上一次获取的监测数据之间的变化数据发送给与所述监测区域对应的消息推送位置,以进行消息聚合。If the comparison is inconsistent, the change data between the current monitoring data and the monitoring data acquired last time is sent to the message push location corresponding to the monitoring area to perform message aggregation.
可选的,该消息聚合方法还包括:Optionally, the message aggregation method further includes:
获取所述数据源页面当前的最后修改日期;Obtaining the current last modification date of the data source page;
将所述最后修改日期与上一次获取的最后修改日期进行一致性对比;Compare the last modification date with the last modification date obtained last time for consistency;
若一致性对比不通过,将当前数据源页面内容与上一次获取的数据源页面内容之间的变化数据发送给所述消息推送位置。If the consistency comparison fails, the change data between the current data source page content and the last acquired data source page content is sent to the message push location.
本申请的另一方面,还提供了一种消息聚合装置,该装置包括:In another aspect of the present application, a message aggregation device is also provided, which includes:
监测数据获取单元,用于获取数据源页面上的监测区域的当前监测数据;The monitoring data acquisition unit is used to acquire the current monitoring data of the monitoring area on the data source page;
哈希值对比单元,用于将所述监测数据的哈希值与上一次获取的所述监测区域的监 测数据的哈希值进行对比;A hash value comparison unit, configured to compare the hash value of the monitoring data with the hash value of the monitoring data of the monitoring area acquired last time;
第一推送单元,用于对比不一致时,将将当前监测数据与上一次获取的监测数据之间的变化数据发送给与所述监测区域对应的消息推送位置,以进行消息聚合。The first pushing unit is configured to send the change data between the current monitoring data and the last acquired monitoring data to the message push location corresponding to the monitoring area when the comparison is inconsistent, for message aggregation.
可选的,该消息聚合装置还包括:Optionally, the message aggregation device further includes:
最后修改日期获取单元,获取所述数据源页面当前的最后修改日期;The last modification date obtaining unit obtains the current last modification date of the data source page;
日期对比单元,将所述最后修改日期与上一次获取的最后修改日期进行一致性对比;The date comparison unit compares the last modification date with the last modification date obtained last time for consistency;
第二推送单元,用于当一致性对比不通过时,将当前数据源页面内容与上一次获取的数据源页面内容之间的变化数据发送给所述消息推送位置。The second pushing unit is configured to send the change data between the current data source page content and the last obtained data source page content to the message pushing location when the consistency comparison fails.
本申请的另一方面,还提供了一种电子设备,包括存储器、中央处理器及存储在存储器上并可在中央处理器上运行的应用程序,所述中央处理器执行所述应用程序时实现上述消息聚合方法。In another aspect of the present application, there is also provided an electronic device, including a memory, a central processing unit, and an application program stored in the memory and capable of running on the central processing unit. The central processing unit executes the application program. The above message aggregation method.
本申请的另一方面,还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有应用程序,所述应用程序在计算机处理器中执行时实现上述消息聚合方法。In another aspect of the present application, a computer-readable storage medium is also provided. The computer-readable storage medium stores an application program that implements the above message aggregation method when the application program is executed in a computer processor.
本申请实施例通过在系统上确定消息源页面,在消息源页面上根据消息的位置选定监测区域,进而通过哈希值对比的方式判断监测区域是否发生消息变化,并在发生消息变化时将变化的内容进行推送,实现了自动获取各系统的新消息的有益效果。In this embodiment of the application, the message source page is determined on the system, and the monitoring area is selected on the message source page according to the location of the message, and then it is determined whether the monitoring area has a message change by hash value comparison, and when the message changes The changed content is pushed to realize the beneficial effect of automatically acquiring new messages from each system.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1是本申请实施例消息聚合方法的第一流程图。Fig. 1 is a first flowchart of a message aggregation method according to an embodiment of the present application.
图2是本申请实施例消息聚合方法的第二流程图。Fig. 2 is a second flowchart of a message aggregation method according to an embodiment of the present application.
图3是本申请实施例采集监测区域的监测数据的流程图。Fig. 3 is a flowchart of collecting monitoring data of a monitoring area in an embodiment of the present application.
图4是本申请实施例消息聚合装置的第一结构框图。Fig. 4 is a first structural block diagram of a message aggregation apparatus according to an embodiment of the present application.
图5是本申请实施例消息聚合装置的第二结构框图。Fig. 5 is a second structural block diagram of a message aggregation apparatus according to an embodiment of the present application.
图6是本申请实施例消息聚合装置的第三结构框图。Fig. 6 is a third structural block diagram of a message aggregation apparatus according to an embodiment of the present application.
图7为本申请实施例的电子设备600的系统构成的示意框图。FIG. 7 is a schematic block diagram of the system configuration of an electronic device 600 according to an embodiment of the application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
本申请实施例以机器人流程自动化技术(Robotic Process Automation,RPA)为基础,分别对各孤岛系统的消息进行监测,并对各孤岛系统的消息进行聚合及推送到对应系统或用户,解决了各孤岛系统间并无直接接口进行连接,消息通知无法共享的问题。RPA是一种可以模拟人在电脑上的不同系统之间操作行为,替代人在电脑前执行具有规律与重复性高的办公流程的方法。RPA擅长把工作流程中的重复繁琐的操作进行自动化。繁琐流程自动化是企业数字化转型的重要环节。RPA能够有效优化传统办公流程,提升协作效率,间接起到优化企业劳动资源配置,助力企业数字化升级。The embodiments of this application are based on Robotic Process Automation (RPA), which separately monitors the messages of each island system, aggregates and pushes the messages of each island system to the corresponding system or user, and solves each island There is no direct interface between the systems to connect, and the message informs the problem that it cannot be shared. RPA is a method that can simulate the operation behavior of people between different systems on the computer, and replace people to execute regular and repetitive office processes in front of the computer. RPA is good at automating repetitive and tedious operations in the workflow. The automation of tedious processes is an important part of the digital transformation of enterprises. RPA can effectively optimize traditional office processes, improve collaboration efficiency, and indirectly optimize the allocation of labor resources for enterprises and help enterprises to upgrade their digitalization.
本申请实施例的消息聚合方法可以是以RPA系统为主体来进行实施的,RPA系统可以通过各系统的数据接口与各系统连接。该RPA系统可以为网页系统、WEB服务器、云服务器、软件、APP、后台服务器等。The message aggregation method of the embodiment of the present application may be implemented with the RPA system as the main body, and the RPA system may be connected to each system through the data interface of each system. The RPA system can be a web page system, WEB server, cloud server, software, APP, background server, etc.
图1是本申请实施例消息聚合方法的第一流程图,如图1所示,在本申请一个实施例中,本申请的消息聚合方法包括步骤S101至步骤S103。FIG. 1 is a first flowchart of a message aggregation method according to an embodiment of the present application. As shown in FIG. 1, in an embodiment of the present application, the message aggregation method of the present application includes steps S101 to S103.
步骤S101,获取数据源页面上的监测区域的当前监测数据。Step S101: Obtain current monitoring data of the monitoring area on the data source page.
在本申请实施例中,由于各系统的类型不同,消息源页面可以为浏览器页面、桌面应用页面、邮箱页面等。本申请的方法在应用时,用户先确定欲监测消息的系统,进而在系统上确定消息源页面,进而在消息源页面上根据消息的位置选定监测区域。在本申请的可选实施例中,监测区域也可以为消息源页面的整个页面。In the embodiment of the present application, due to the different types of systems, the message source page may be a browser page, a desktop application page, a mailbox page, etc. When the method of this application is applied, the user first determines the system to monitor the message, then determines the message source page on the system, and then selects the monitoring area on the message source page according to the location of the message. In an optional embodiment of the present application, the monitoring area may also be the entire page of the message source page.
在本申请可选实施例中,监测数据可以为监测区域中的内容,该内容可以为文字、图像或其两者结合的形式。In an optional embodiment of the present application, the monitoring data may be the content in the monitoring area, and the content may be text, image, or a combination of the two.
在本申请一个可选实施例中,RPA系统包括录屏单元,本申请可以采用录屏单元来设定消息源页面上的监测区域。具体为,用户在使用时,需要打开消息源页面,将鼠标移动到相关元素上,此时会形成一个加粗的框线,选择正确需要获取的消息范围,该装置会自动基于消息源页面HTML代码规则,解析ID,CLASS等相关要素,形成一套消息获取规则(即监测数据提取规则)。进而后续在采集监测区域的监测数据时,可以根据该消息获取规则通过系统的数据接口采集设定的监测区域的监测数据。In an optional embodiment of the present application, the RPA system includes a screen recording unit, and the present application may use the screen recording unit to set the monitoring area on the message source page. Specifically, when users use it, they need to open the message source page and move the mouse to the relevant element. At this time, a bold frame will be formed. Select the correct range of messages to be obtained. The device will automatically be based on the message source page HTML Code rules, analyze ID, CLASS and other related elements to form a set of message acquisition rules (that is, monitoring data extraction rules). Furthermore, when the monitoring data of the monitoring area is subsequently collected, the monitoring data of the set monitoring area can be collected through the data interface of the system according to the message acquisition rule.
在本申请一个可选实施例中,录屏单元可以在每次采集时先录制一遍消息源页面, 进而根据上述消息获取规则从录制的消息源页面中提取出与监测区域对应的监测数据。在本申请的实施例中,在提取出监测数据后,录屏单元可以将录制的消息源页面删除。In an optional embodiment of the present application, the screen recording unit may first record the message source page every time it collects, and then extract the monitoring data corresponding to the monitored area from the recorded message source page according to the above message acquisition rules. In the embodiment of the present application, after the monitoring data is extracted, the screen recording unit may delete the recorded message source page.
步骤S102,将所述监测数据的哈希值与上一次获取的所述监测区域的监测数据的哈希值进行对比。Step S102: Compare the hash value of the monitoring data with the hash value of the monitoring data of the monitoring area acquired last time.
本申请通过对所述监测数据进行哈希运算,得到所述监测数据的哈希值。在本申请一个实施例中,可以采用Hash256进行哈希运算。This application obtains the hash value of the monitoring data by performing a hash operation on the monitoring data. In an embodiment of the present application, Hash256 may be used to perform a hash operation.
在本申请一个可选实施例中,RPA系统会储存每次采集的监测数据的哈希值,用于进行对比。当哈希值发生变化时,表面监测区域的内容(即监测数据)发生了变化。In an optional embodiment of the present application, the RPA system stores the hash value of the monitoring data collected each time for comparison. When the hash value changes, the content of the surface monitoring area (that is, the monitoring data) changes.
步骤S103,若对比不一致,将当前监测数据与上一次获取的监测数据之间的变化数据发送给与所述监测区域对应的消息推送位置,以进行消息聚合。Step S103, if the comparison is inconsistent, the change data between the current monitoring data and the last acquired monitoring data is sent to the message push location corresponding to the monitoring area to perform message aggregation.
在本申请一个实施例中,当监测区域的监测数据发生变化时,将发生变化的内容发送到预设的消息推送位置。上述变化数据为通过将本次采集的监测区域的监测数据与存储的上一次采集的监测区域的监测数据进行对比,得到的数据变化内容,进而在推送时将该数据变化内容推送到预设的位置。In an embodiment of the present application, when the monitoring data of the monitoring area changes, the changed content is sent to the preset message push location. The above-mentioned change data is the data change content obtained by comparing the monitoring data of the monitoring area collected this time with the stored monitoring data of the monitoring area last time, and then push the data change content to the preset position.
在本申请一个可选实施例中,变化数据可以为当前监测数据在上一次的监测数据的基础上的变化内容,该变化内容可以为新增的内容、减少的内容以及替换的内容。该新增的内容可以为上一次的监测数据的基础上新增的文字、图像或图像部分,或者为在上一次的监测数据的基础上图像中新增的元素。该减少的内容可以为上一次的监测数据的基础上减少的文字、图像或图像部分,或者为在上一次的监测数据的基础上图像中减少的元素。该替换的内容可以为替换后的文字、图像或图像部分,或者为在上一次的监测数据的基础上替换后的元素。In an optional embodiment of the present application, the change data may be the changed content of the current monitoring data on the basis of the previous monitoring data, and the changed content may be new content, reduced content, and replaced content. The newly added content may be a text, image or image part added on the basis of the previous monitoring data, or an element added to the image on the basis of the previous monitoring data. The reduced content may be the text, image or image part reduced on the basis of the previous monitoring data, or the element reduced in the image on the basis of the previous monitoring data. The replaced content may be the replaced text, image or image part, or an element replaced on the basis of the previous monitoring data.
在本申请实施例中,在设置监测区域时,同时设置消息推送位置,即若有新消息将新消息推送给谁。在本申请可选实施例中,消息推送位置可以为企业内部的各系统,也可以为短信,邮件,微信,RSS阅读器等推送位置。In the embodiment of the present application, when setting the monitoring area, the message push location is set at the same time, that is, to whom the new message will be pushed if there is a new message. In an optional embodiment of the present application, the message push location may be various systems within the enterprise, or may be a push location such as SMS, email, WeChat, and RSS reader.
在本申请一个可选实施例中,在将变化数据发送到预设的消息推送位置前,还可以根据预设的数据处理模板对变化数据进行处理,将变化数据转换成消息推送位置可读取的格式,例如将变化数据转换为文本格式进而推送到微信上。In an optional embodiment of the present application, before sending the change data to the preset message push position, the change data can also be processed according to the preset data processing template, and the change data is converted into the message push position readable For example, the changed data is converted into a text format and then pushed to WeChat.
在本申请实施例中,上述步骤S101获取的监测区域的监测数据可以为根据预设的采集规则采集得出。在本申请的实施例中,采集规则可以为:设定的采集频率或者设定的采集时间点。In the embodiment of the present application, the monitoring data of the monitoring area obtained in step S101 may be collected according to a preset collection rule. In the embodiment of the present application, the collection rule may be: a set collection frequency or a set collection time point.
当一个监控流程(步骤S101至步骤S103)结束时,若发现监测数据的哈希值没发生变化,则等待下个周期再次发起监控流程。When a monitoring process (step S101 to step S103) ends, if it is found that the hash value of the monitoring data has not changed, the monitoring process will be initiated again in the next cycle.
从以上描述可以看出,本申请实施例通过先确定欲监测消息的系统,在系统上确定消息源页面,在消息源页面上根据消息的位置选定监测区域,进而通过哈希值对比的方式判断监测区域是否发生消息变化。以此在各系统有新的消息时,对各系统的消息进行获取并聚合,进而将聚合的消息推送到其他系统中,解决了现有技术各个系统间并无直接接口进行连接,消息无法共享的问题。It can be seen from the above description that the embodiment of this application first determines the system to monitor the message, determines the message source page on the system, selects the monitoring area on the message source page according to the location of the message, and then compares the hash value. Determine whether there is a message change in the monitoring area. In this way, when there are new messages in each system, the messages of each system are acquired and aggregated, and then the aggregated messages are pushed to other systems, which solves the problem that there is no direct interface to connect between various systems in the prior art, and messages cannot be shared. The problem.
图2是本申请实施例消息聚合方法的第二流程图,如图2所示,在本发明另一个实施例中,本申请的消息聚合方法还包括步骤S201至步骤S203。Fig. 2 is a second flowchart of a message aggregation method according to an embodiment of the present application. As shown in Fig. 2, in another embodiment of the present invention, the message aggregation method of the present application further includes steps S201 to S203.
步骤S201,获取所述数据源页面当前的最后修改日期。Step S201: Obtain the current last modification date of the data source page.
步骤S202,将所述最后修改日期与上一次获取的最后修改日期进行一致性对比。Step S202, comparing the last modification date with the last modification date acquired last time for consistency.
步骤S203,若一致性对比不通过,将当前数据源页面内容与上一次获取的数据源页面内容之间的变化数据发送给所述消息推送位置。Step S203: If the consistency comparison fails, the change data between the current data source page content and the last acquired data source page content is sent to the message push location.
在本申请可选实施例中,也可以根据消息源页面的最后修改日期来确定消息源页面是否发生了改变。若采集的数据源页面的最后修改日期与存储的上一次采集的最后修改日期不同时,说明数据源页面发生了改变。进而将当前所述监测区域的监测数据与上一次采集的监测数据的变化数据发送给预设的消息推送位置。在本申请实施例中,在每次采集当前所述数据源页面的最后修改日期时同时采集并储存当前数据源页面内容。In an optional embodiment of the present application, it can also be determined whether the message source page has changed according to the last modification date of the message source page. If the last modification date of the collected data source page is different from the stored last modification date of the last collection, it means that the data source page has changed. Furthermore, the monitoring data of the current monitoring area and the change data of the monitoring data collected last time are sent to the preset message push location. In the embodiment of the present application, the content of the current data source page is simultaneously collected and stored every time the last modification date of the current data source page is collected.
根据最后修改日期来确定页面是否发生了改变与上述步骤的根据哈希值来确定监测区域的内容是否发生了改变相比,减少了数据提取以及计算哈希值的步骤,速度更快,减少了数据计算。Determine whether the page has changed according to the last modification date. Compared with the above steps to determine whether the content of the monitoring area has changed according to the hash value, the steps of data extraction and hash value calculation are reduced, and the speed is faster and less Data calculation.
监测区域为选定的数据源页面上的消息检测区域,在数据源页面上具有代表性,数据源页面的改变通常都为监测区域的监测数据的改变。虽然数据源页面的改变也有可能是监测区域外的部分发生的变化,由于选定的监测区域具有代表性,实际测试时当数据源页面的改变时超过百分之90的几率为监测区域内的改变。The monitoring area is the message detection area on the selected data source page, which is representative on the data source page. The change of the data source page is usually the change of the monitoring data of the monitoring area. Although the change of the data source page may also be a change in the part outside the monitoring area, because the selected monitoring area is representative, in the actual test, when the data source page changes, the probability of exceeding 90% is within the monitoring area. change.
由于根据最后修改日期来检测数据源页面变化的方式效率更高,本申请通过将采用最后修改日期来监测以及采用哈希值进行监测两种方式相结合,在保证监测准确率在合适范围内的同时加快了检测效率。在本申请实施例中,可以异步进行这两种监测方式,并将采用最后修改日期来监测的方式的启动的频率设置较高,以加快检测效率,并减少数据处理工作量。Since the method of detecting data source page changes based on the last modification date is more efficient, this application combines the two methods of monitoring using the last modification date and monitoring using hash values to ensure that the monitoring accuracy is within the appropriate range. At the same time, the detection efficiency is accelerated. In the embodiment of the present application, these two monitoring methods can be performed asynchronously, and the start frequency of the monitoring method using the last modification date is set to be higher, so as to speed up the detection efficiency and reduce the data processing workload.
在本申请可选实施例中,上述步骤S201获取的最后修改日期可以为根据预设的采集规则采集得到的。在本申请的实施例中,采集规则可以为:设定的采集频率或者设定的采集时间点。In an optional embodiment of the present application, the last modification date obtained in step S201 may be collected according to a preset collection rule. In the embodiment of the present application, the collection rule may be: a set collection frequency or a set collection time point.
在本申请的一可选实施例中,上述步骤S101的采集监测区域的监测数据和上述步骤S201的采集最后修改日期可以异步启动采集,也可以根据预设的采集规则同时启动采集。In an optional embodiment of the present application, the monitoring data of the monitoring area collected in step S101 and the last modification date of the collection in step S201 can be started asynchronously, or can be started simultaneously according to a preset collection rule.
图3是本申请实施例采集监测区域的监测数据的流程图,如图3所示,在本申请一个可选实施例中,本申请采集监测区域的监测数据方法包括步骤S301和步骤S302。Fig. 3 is a flowchart of collecting monitoring data of a monitoring area in an embodiment of the present application. As shown in Fig. 3, in an optional embodiment of the present application, the method of collecting monitoring data of a monitoring area in the present application includes step S301 and step S302.
步骤S301,根据所述监测区域的位置信息以及所述数据源页面的代码规则生成所述监测区域的监测数据提取规则。Step S301: Generate a monitoring data extraction rule for the monitoring area according to the location information of the monitoring area and the code rule of the data source page.
在本申请可选实施例中,数据源页面的代码规则可以为HTML代码规则。数据源页面的代码规则可以记载了数据源页面上各位置展示的数据的数据获取位置。In an optional embodiment of the present application, the code rule of the data source page may be an HTML code rule. The code rule of the data source page may record the data acquisition location of the data displayed in each position on the data source page.
步骤S302,根据所述监测数据提取规则通过所述数据源页面的数据接口采集所述监测区域的监测数据。Step S302: Collect the monitoring data of the monitoring area through the data interface of the data source page according to the monitoring data extraction rule.
从以上描述可以看出,本申请实施例的消息聚合方法至少实现了以下有益效果:不需要对各系统做出较大改动,建设周期短,个性化强,节省使用的时间成本和经济成本;对原来系统非侵入式,不会对原系统造成影响。It can be seen from the above description that the message aggregation method of the embodiments of the present application at least achieves the following beneficial effects: no major changes are required to each system, short construction period, strong personalization, and saving time and economic costs of use; It is non-invasive to the original system and will not affect the original system.
需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although the logical sequence is shown in the flowchart, in some cases, The steps shown or described can be performed in a different order than here.
基于同一申请构思,本申请实施例还提供了一种消息聚合装置,可以用于实现上述实施例所描述的消息聚合方法,如下面的实施例所述。由于消息聚合装置解决问题的原理与消息聚合方法相似,因此消息聚合装置的实施例可以参见消息聚合方法的实施例,重复之处不再赘述。Based on the same application concept, an embodiment of the present application also provides a message aggregation device, which can be used to implement the message aggregation method described in the foregoing embodiment, as described in the following embodiment. Since the principle of the message aggregation device to solve the problem is similar to that of the message aggregation method, the embodiment of the message aggregation device can refer to the embodiment of the message aggregation method, and the repetition will not be repeated.
图4是本申请实施例消息聚合装置的第一结构框图,如图4所示,本申请实施例消息聚合装置包括:监测数据获取单元1、哈希值对比单元2以及第一推送单元3。FIG. 4 is a first structural block diagram of a message aggregation apparatus according to an embodiment of the present application. As shown in FIG. 4, the message aggregation apparatus according to an embodiment of the present application includes: a monitoring data acquisition unit 1, a hash value comparison unit 2, and a first pushing unit 3.
监测数据获取单元1,用于获取数据源页面上的监测区域的当前监测数据。The monitoring data obtaining unit 1 is used to obtain the current monitoring data of the monitoring area on the data source page.
哈希值对比单元2,用于将所述监测数据的哈希值与上一次获取的所述监测区域的监测数据的哈希值进行对比。The hash value comparison unit 2 is configured to compare the hash value of the monitoring data with the hash value of the monitoring data of the monitoring area acquired last time.
第一推送单元3,用于对比不一致时,将将当前监测数据与上一次获取的监测数据 之间的变化数据发送给与所述监测区域对应的消息推送位置,以进行消息聚合。The first push unit 3 is configured to send the change data between the current monitoring data and the last acquired monitoring data to the message push location corresponding to the monitoring area when the comparison is inconsistent, for message aggregation.
图5是本申请实施例消息聚合装置的第二结构框图,如图5所示,本申请实施例消息聚合装置还包括:最后修改日期获取单元4、日期对比单元5和第二推送单元6。FIG. 5 is a second structural block diagram of the message aggregation apparatus according to the embodiment of the present application. As shown in FIG. 5, the message aggregation apparatus according to the embodiment of the present application further includes: a last modification date obtaining unit 4, a date comparison unit 5, and a second pushing unit 6.
最后修改日期获取单元4,用于获取所述数据源页面当前的最后修改日期。The last modification date obtaining unit 4 is configured to obtain the current last modification date of the data source page.
日期对比单元5,用于将所述最后修改日期与上一次获取的最后修改日期进行一致性对比。The date comparison unit 5 is used to compare the last modification date with the last modification date obtained last time.
第二推送单元6,用于当一致性对比不通过时,将当前数据源页面内容与上一次获取的数据源页面内容之间的变化数据发送给所述消息推送位置。The second pushing unit 6 is configured to send the change data between the current data source page content and the last obtained data source page content to the message pushing location when the consistency comparison fails.
在本申请的一实施例中,监测区域的监测数据和数据源页面的最后修改日期可以根据各自的采集规则异步启动采集。在本申请的另一实施例中,监测区域的监测数据和数据源页面的最后修改日期可以根据预设的采集规则同时启动采集。在本申请的实施例中,采集规则可以为设定的采集频率或者设定的采集时间点。In an embodiment of the present application, the monitoring data of the monitoring area and the last modification date of the data source page can be collected asynchronously according to respective collection rules. In another embodiment of the present application, the monitoring data of the monitoring area and the last modification date of the data source page can be collected at the same time according to a preset collection rule. In the embodiment of the present application, the collection rule may be a set collection frequency or a set collection time point.
图6是本申请实施例消息聚合装置的第三结构框图,如图6所示,本申请实施例消息聚合装置还包括:监测数据提取规则生成单元7和采集单元8。FIG. 6 is a third structural block diagram of the message aggregation device according to the embodiment of the present application. As shown in FIG. 6, the message aggregation device according to the embodiment of the present application further includes: a monitoring data extraction rule generation unit 7 and a collection unit 8.
监测数据提取规则生成单元7,用于根据所述监测区域的位置信息以及所述数据源页面的代码规则生成所述监测区域的监测数据提取规则。The monitoring data extraction rule generating unit 7 is configured to generate monitoring data extraction rules for the monitoring area according to the location information of the monitoring area and the code rules of the data source page.
采集单元8,用于根据所述监测数据提取规则通过所述数据源页面的数据接口获取所述监测区域的监测数据。The collection unit 8 is configured to obtain the monitoring data of the monitoring area through the data interface of the data source page according to the monitoring data extraction rule.
本申请另一方面还提供一种电子设备,用于实现上述实施例的消息聚合方法,该电子设备可以是台式计算机、平板电脑及移动终端等,本实施例不限于此。在本实施例中,该电子设备可以参照上述实施例的消息聚合方法的实施及上述实施例的消息聚合装置,其内容被合并于此,重复之处不再赘述。Another aspect of the present application also provides an electronic device for implementing the message aggregation method of the above-mentioned embodiment. The electronic device may be a desktop computer, a tablet computer, a mobile terminal, etc., and this embodiment is not limited thereto. In this embodiment, the electronic device can refer to the implementation of the message aggregation method of the above-mentioned embodiment and the message aggregation apparatus of the above-mentioned embodiment, the content of which is merged here, and the repetition is not repeated here.
图7为本申请实施例的电子设备600的系统构成的示意框图。如图7所示,该电子设备600可以包括中央处理器100和存储器140,存储器140耦合到中央处理器100。值得注意的是,该图是示例性的,还可以使用其他类型的结构,来补充或代替该结构,以实现电信功能或其他功能。FIG. 7 is a schematic block diagram of the system configuration of an electronic device 600 according to an embodiment of the application. As shown in FIG. 7, the electronic device 600 may include a central processing unit 100 and a memory 140, and the memory 140 is coupled to the central processing unit 100. It is worth noting that this figure is exemplary, and other types of structures can also be used to supplement or replace this structure to implement telecommunication functions or other functions.
一实施例中,本申请实施例的消息聚合方法可以被集成到中央处理器100中。其中,中央处理器100可以被配置为进行如下控制:获取数据源页面上的监测区域的当前监测数据;将所述监测数据的哈希值与上一次获取的所述监测区域的监测数据的哈希值进行对比;若对比不一致,将当前监测数据与上一次获取的监测数据之间的变化数据发 送给与所述监测区域对应的消息推送位置,以进行消息聚合。In an embodiment, the message aggregation method of the embodiment of the present application may be integrated into the central processing unit 100. Wherein, the central processing unit 100 may be configured to perform the following control: obtain the current monitoring data of the monitoring area on the data source page; compare the hash value of the monitoring data with the last obtained monitoring data of the monitoring area. If the comparison is not consistent, the change data between the current monitoring data and the last acquired monitoring data is sent to the message push location corresponding to the monitoring area for message aggregation.
其中,中央处理器100还可以被配置为进行如下控制:获取所述数据源页面当前的最后修改日期;将所述最后修改日期与上一次获取的最后修改日期进行一致性对比;若一致性对比不通过,将当前数据源页面内容与上一次获取的数据源页面内容之间的变化数据发送给所述消息推送位置。The central processing unit 100 may also be configured to perform the following control: obtain the current last modification date of the data source page; compare the last modification date with the last modification date obtained last time; if the consistency is compared No, the change data between the content of the current data source page and the content of the data source page obtained last time is sent to the message push location.
如图7所示,该电子设备600还可以包括:通信模块110、输入单元120、音频处理单元130、显示器160、电源170。值得注意的是,电子设备600也并不是必须要包括图7中所示的所有部件;此外,电子设备600还可以包括图7中没有示出的部件,可以参考现有技术。As shown in FIG. 7, the electronic device 600 may further include: a communication module 110, an input unit 120, an audio processing unit 130, a display 160, and a power supply 170. It should be noted that the electronic device 600 does not necessarily include all the components shown in FIG. 7; in addition, the electronic device 600 may also include components not shown in FIG. 7, and the prior art can be referred to.
如图7所示,中央处理器100有时也称为控制器或操作控件,可以包括微处理器或其他处理器装置和/或逻辑装置,该中央处理器100接收输入并控制电子设备600的各个部件的操作。As shown in FIG. 7, the central processing unit 100 is sometimes called a controller or operating control, and may include a microprocessor or other processor devices and/or logic devices. The central processing unit 100 receives inputs and controls various components of the electronic equipment 600. Operation of components.
其中,存储器140,例如可以是缓存器、闪存、硬驱、可移动介质、易失性存储器、非易失性存储器或其它合适装置中的一种或更多种。可储存上述与失败有关的信息,此外还可存储执行有关信息的程序。并且中央处理器100可执行该存储器140存储的该程序,以实现信息存储或处理等。Wherein, the memory 140 may be, for example, one or more of a cache, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory, or other suitable devices. The above-mentioned information related to the failure can be stored, and the program for executing the related information can also be stored. And the central processing unit 100 can execute the program stored in the memory 140 to implement information storage or processing.
输入单元120向中央处理器100提供输入。该输入单元120例如为按键或触摸输入装置。电源170用于向电子设备600提供电力。显示器160用于进行图像和文字等显示对象的显示。该显示器例如可为LCD显示器,但并不限于此。The input unit 120 provides input to the central processing unit 100. The input unit 120 is, for example, a button or a touch input device. The power supply 170 is used to provide power to the electronic device 600. The display 160 is used for displaying display objects such as images and characters. The display may be, for example, an LCD display, but it is not limited thereto.
该存储器140可以是固态存储器,例如,只读存储器(ROM)、随机存取存储器(RAM)、SIM卡等。还可以是这样的存储器,其即使在断电时也保存信息,可被选择性地擦除且设有更多数据,该存储器的示例有时被称为EPROM等。存储器140还可以是某种其它类型的装置。存储器140包括缓冲存储器141(有时被称为缓冲器)。存储器140可以包括应用/功能存储部142,该应用/功能存储部142用于存储应用程序和功能程序或用于通过中央处理器100执行电子设备600的操作的流程。The memory 140 may be a solid-state memory, for example, read only memory (ROM), random access memory (RAM), SIM card, etc. It may also be a memory that saves information even when the power is off, can be selectively erased and is provided with more data, and an example of this memory is sometimes called EPROM or the like. The memory 140 may also be some other type of device. The memory 140 includes a buffer memory 141 (sometimes referred to as a buffer). The memory 140 may include an application/function storage unit 142, which is used to store application programs and function programs or to execute the operation flow of the electronic device 600 through the central processing unit 100.
存储器140还可以包括数据存储部143,该数据存储部143用于存储数据,例如联系人、数字数据、图片、声音和/或任何其他由电子设备使用的数据。存储器140的驱动程序存储部144可以包括电子设备的用于通信功能和/或用于执行电子设备的其他功能(如消息传送应用、通讯录应用等)的各种驱动程序。The memory 140 may further include a data storage unit 143 for storing data, such as contacts, digital data, pictures, sounds, and/or any other data used by electronic devices. The driver storage unit 144 of the memory 140 may include various drivers for the communication function of the electronic device and/or for executing other functions of the electronic device (such as a messaging application, an address book application, etc.).
通信模块110即为经由天线111发送和接收信号的发送机/接收机110。通信模块(发送机/接收机)110耦合到中央处理器100,以提供输入信号和接收输出信号,这可以和常规移动通信终端的情况相同。The communication module 110 is a transmitter/receiver 110 that transmits and receives signals via the antenna 111. The communication module (transmitter/receiver) 110 is coupled to the central processing unit 100 to provide input signals and receive output signals, which can be the same as that of a conventional mobile communication terminal.
基于不同的通信技术,在同一电子设备中,可以设置有多个通信模块110,如蜂窝网络模块、蓝牙模块和/或无线局域网模块等。通信模块(发送机/接收机)110还经由音频处理器130耦合到扬声器131和麦克风132,以经由扬声器131提供音频输出,并接收来自麦克风132的音频输入,从而实现通常的电信功能。音频处理器130可以包括任何合适的缓冲器、解码器、放大器等。另外,音频处理器130还耦合到中央处理器100,从而使得可以通过麦克风132能够在本机上录音,且使得可以通过扬声器131来播放本机上存储的声音。Based on different communication technologies, multiple communication modules 110 may be provided in the same electronic device, such as a cellular network module, a Bluetooth module, and/or a wireless local area network module. The communication module (transmitter/receiver) 110 is also coupled to the speaker 131 and the microphone 132 via the audio processor 130 to provide audio output via the speaker 131 and receive audio input from the microphone 132, thereby realizing general telecommunication functions. The audio processor 130 may include any suitable buffers, decoders, amplifiers, etc. In addition, the audio processor 130 is also coupled to the central processing unit 100, so that the microphone 132 can be used to record on the unit, and the speaker 131 can be used to play the sound stored on the unit.
本申请另一方面还提供一种计算机可读存储介质,用于实现上述实施例的消息聚合方法,所述计算机可读存储介质存储有应用程序,所述应用程序在计算机处理器中执行时实现以下步骤:Another aspect of the present application also provides a computer-readable storage medium for implementing the message aggregation method of the above-mentioned embodiments. The computer-readable storage medium stores an application program that is implemented when executed in a computer processor. The following steps:
获取数据源页面上的监测区域的当前监测数据;Obtain the current monitoring data of the monitoring area on the data source page;
将所述监测数据的哈希值与上一次获取的所述监测区域的监测数据的哈希值进行对比;Comparing the hash value of the monitoring data with the hash value of the monitoring data of the monitoring area acquired last time;
若对比不一致,将当前监测数据与上一次获取的监测数据之间的变化数据发送给与所述监测区域对应的消息推送位置,以进行消息聚合。If the comparison is inconsistent, the change data between the current monitoring data and the monitoring data acquired last time is sent to the message push location corresponding to the monitoring area to perform message aggregation.
在另一实施例中,所述应用程序在计算机处理器中执行时还可以实现以下步骤:In another embodiment, when the application program is executed in the computer processor, the following steps may also be implemented:
获取所述数据源页面当前的最后修改日期;Obtaining the current last modification date of the data source page;
将所述最后修改日期与上一次获取的最后修改日期进行一致性对比;Compare the last modification date with the last modification date obtained last time for consistency;
若一致性对比不通过,将当前数据源页面内容与上一次获取的数据源页面内容之间的变化数据发送给所述消息推送位置。If the consistency comparison fails, the change data between the current data source page content and the last acquired data source page content is sent to the message push location.
以上参照附图描述了本申请的优选实施方式。这些实施方式的许多特征和优点根据该详细的说明书是清楚的,因此所附权利要求旨在覆盖这些实施方式的落入其真实精神和范围内的所有这些特征和优点。此外,由于本领域的技术人员容易想到很多修改和改变,因此不是要将本申请的实施方式限于所例示和描述的精确结构和操作,而是可以涵盖落入其范围内的所有合适修改和等同物。The preferred embodiments of the present application are described above with reference to the drawings. Many features and advantages of these embodiments are clear from the detailed description, and therefore the appended claims are intended to cover all these features and advantages of these embodiments that fall within their true spirit and scope. In addition, since those skilled in the art can easily think of many modifications and changes, the implementation of this application is not limited to the precise structure and operation illustrated and described, but can cover all suitable modifications and equivalents falling within its scope. Things.
本申请中应用了具体实施例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人 员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。In this application, specific examples are used to describe the principles and implementation of the application. The description of the above examples is only used to help understand the methods and core ideas of the application; at the same time, for those of ordinary skill in the art, according to this The idea of the application will change in the specific implementation and the scope of application. In summary, the content of this specification should not be construed as a limitation to this application.

Claims (10)

  1. 一种消息聚合方法,其特征在于,包括:A message aggregation method, characterized in that it comprises:
    获取数据源页面上的监测区域的当前监测数据;Obtain the current monitoring data of the monitoring area on the data source page;
    将所述监测数据的哈希值与上一次获取的所述监测区域的监测数据的哈希值进行对比;Comparing the hash value of the monitoring data with the hash value of the monitoring data of the monitoring area acquired last time;
    若对比不一致,将当前监测数据与上一次获取的监测数据之间的变化数据发送给与所述监测区域对应的消息推送位置,以进行消息聚合。If the comparison is inconsistent, the change data between the current monitoring data and the monitoring data acquired last time is sent to the message push location corresponding to the monitoring area to perform message aggregation.
  2. 根据权利要求1所述的消息聚合方法,其特征在于,还包括:The message aggregation method according to claim 1, further comprising:
    获取所述数据源页面当前的最后修改日期;Obtaining the current last modification date of the data source page;
    将所述最后修改日期与上一次获取的最后修改日期进行一致性对比;Compare the last modification date with the last modification date obtained last time for consistency;
    若一致性对比不通过,将当前数据源页面内容与上一次获取的数据源页面内容之间的变化数据发送给所述消息推送位置。If the consistency comparison fails, the change data between the current data source page content and the last acquired data source page content is sent to the message push location.
  3. 根据权利要求1所述的消息聚合方法,其特征在于,还包括:The message aggregation method according to claim 1, further comprising:
    根据所述监测区域的位置信息以及所述数据源页面的代码规则生成所述监测区域的监测数据提取规则;Generating the monitoring data extraction rules of the monitoring area according to the location information of the monitoring area and the code rules of the data source page;
    根据所述监测数据提取规则通过所述数据源页面的数据接口采集所述监测区域的监测数据。The monitoring data of the monitoring area is collected through the data interface of the data source page according to the monitoring data extraction rule.
  4. 根据权利要求2所述的消息聚合方法,其特征在于,还包括:The message aggregation method according to claim 2, characterized in that it further comprises:
    根据预设的采集规则同时采集所述监测区域的监测数据和所述数据源页面的最后修改日期。The monitoring data of the monitoring area and the last modification date of the data source page are simultaneously collected according to a preset collection rule.
  5. 一种消息聚合装置,其特征在于,包括:A message aggregation device is characterized in that it comprises:
    监测数据获取单元,用于获取数据源页面上的监测区域的当前监测数据;The monitoring data acquisition unit is used to acquire the current monitoring data of the monitoring area on the data source page;
    哈希值对比单元,用于将所述监测数据的哈希值与上一次获取的所述监测区域的监测数据的哈希值进行对比;A hash value comparison unit, configured to compare the hash value of the monitoring data with the hash value of the monitoring data of the monitoring area acquired last time;
    第一推送单元,用于对比不一致时,将将当前监测数据与上一次获取的监测数据之间的变化数据发送给与所述监测区域对应的消息推送位置,以进行消息聚合。The first pushing unit is configured to send the change data between the current monitoring data and the last acquired monitoring data to the message push location corresponding to the monitoring area when the comparison is inconsistent, for message aggregation.
  6. 根据权利要求5所述的消息聚合装置,其特征在于,还包括:The message aggregation device according to claim 5, further comprising:
    最后修改日期获取单元,获取所述数据源页面当前的最后修改日期;The last modification date obtaining unit obtains the current last modification date of the data source page;
    日期对比单元,将所述最后修改日期与上一次获取的最后修改日期进行一致性对比;The date comparison unit compares the last modification date with the last modification date obtained last time for consistency;
    第二推送单元,用于当一致性对比不通过时,将当前数据源页面内容与上一次获取的数据源页面内容之间的变化数据发送给所述消息推送位置。The second pushing unit is configured to send the change data between the current data source page content and the last obtained data source page content to the message pushing location when the consistency comparison fails.
  7. 根据权利要求5所述的消息聚合装置,其特征在于,还包括:The message aggregation device according to claim 5, further comprising:
    监测数据提取规则生成单元,用于根据所述监测区域的位置信息以及所述数据源页面的代码规则生成所述监测区域的监测数据提取规则;A monitoring data extraction rule generating unit, configured to generate monitoring data extraction rules for the monitoring area according to the location information of the monitoring area and the code rules of the data source page;
    采集单元,用于根据所述监测数据提取规则通过所述数据源页面的数据接口获取所述监测区域的监测数据。The collection unit is configured to obtain the monitoring data of the monitoring area through the data interface of the data source page according to the monitoring data extraction rule.
  8. 根据权利要求6所述的消息聚合装置,其特征在于,所述监测区域的监测数据和所述数据源页面的最后修改日期为根据预设的采集规则同时采集的。The message aggregation device according to claim 6, wherein the monitoring data of the monitoring area and the last modification date of the data source page are collected simultaneously according to a preset collection rule.
  9. 一种电子设备,包括存储器、中央处理器及存储在存储器上并可在中央处理器上运行的应用程序,其特征在于,所述中央处理器执行所述应用程序时实现权利要求1至4任一项的方法。An electronic device comprising a memory, a central processing unit, and an application program stored on the memory and running on the central processing unit, wherein the central processing unit implements any of claims 1 to 4 when the application program is executed One method.
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有应用程序,其特征在于,所述应用程序在计算机处理器中执行时实现如权利要求1至4任意一项的方法。A computer-readable storage medium storing an application program, wherein the application program implements the method according to any one of claims 1 to 4 when the application program is executed in a computer processor.
PCT/CN2020/100983 2019-07-19 2020-07-09 Method and device for message aggregation WO2021012957A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910655401.3A CN110428153A (en) 2019-07-19 2019-07-19 Message polymerization and device
CN201910655401.3 2019-07-19

Publications (1)

Publication Number Publication Date
WO2021012957A1 true WO2021012957A1 (en) 2021-01-28

Family

ID=68411173

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/100983 WO2021012957A1 (en) 2019-07-19 2020-07-09 Method and device for message aggregation

Country Status (3)

Country Link
CN (1) CN110428153A (en)
TW (1) TW202105191A (en)
WO (1) WO2021012957A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110428153A (en) * 2019-07-19 2019-11-08 中国建设银行股份有限公司 Message polymerization and device
CN111371672B (en) * 2020-02-14 2022-04-08 贝壳技术有限公司 Message pushing method and device
CN112231663A (en) * 2020-03-31 2021-01-15 北京来也网络科技有限公司 Data acquisition method, device, equipment and storage medium combining RPA and AI
CN112241330A (en) * 2020-03-31 2021-01-19 北京来也网络科技有限公司 Flow processing method, device, equipment and storage medium combining RPA and AI

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425093A (en) * 2008-12-05 2009-05-06 腾讯科技(深圳)有限公司 Contact dynamic content polymerization process and system based on social network relationship chain
CN102447723A (en) * 2010-10-12 2012-05-09 运软网络科技(上海)有限公司 Client-side virtualization framework
CN105264516A (en) * 2013-03-14 2016-01-20 微软技术许可有限责任公司 Document collaboration and notification of changes
CN107229718A (en) * 2017-05-31 2017-10-03 北京京东尚科信息技术有限公司 The method and apparatus for handling report data
US20180081717A1 (en) * 2016-09-12 2018-03-22 Seven Bridges Genomics, Inc. Hashing data-processing steps in workflow environments
CN109862069A (en) * 2018-12-13 2019-06-07 百度在线网络技术(北京)有限公司 Message treatment method and device
CN110428153A (en) * 2019-07-19 2019-11-08 中国建设银行股份有限公司 Message polymerization and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184128B (en) * 2011-05-26 2013-04-10 成都易我科技开发有限责任公司 Fast disc incremental backup method
CN104142987A (en) * 2014-07-24 2014-11-12 腾讯科技(深圳)有限公司 Page content management method and device and terminal device
CN108664520B (en) * 2017-04-01 2021-02-26 北京京东尚科信息技术有限公司 Method and device for maintaining data consistency, electronic equipment and readable storage medium
CN107239546B (en) * 2017-06-05 2021-07-06 成都知道创宇信息技术有限公司 Method for tracking and reminding local content of webpage

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425093A (en) * 2008-12-05 2009-05-06 腾讯科技(深圳)有限公司 Contact dynamic content polymerization process and system based on social network relationship chain
CN102447723A (en) * 2010-10-12 2012-05-09 运软网络科技(上海)有限公司 Client-side virtualization framework
CN105264516A (en) * 2013-03-14 2016-01-20 微软技术许可有限责任公司 Document collaboration and notification of changes
US20180081717A1 (en) * 2016-09-12 2018-03-22 Seven Bridges Genomics, Inc. Hashing data-processing steps in workflow environments
CN107229718A (en) * 2017-05-31 2017-10-03 北京京东尚科信息技术有限公司 The method and apparatus for handling report data
CN109862069A (en) * 2018-12-13 2019-06-07 百度在线网络技术(北京)有限公司 Message treatment method and device
CN110428153A (en) * 2019-07-19 2019-11-08 中国建设银行股份有限公司 Message polymerization and device

Also Published As

Publication number Publication date
CN110428153A (en) 2019-11-08
TW202105191A (en) 2021-02-01

Similar Documents

Publication Publication Date Title
WO2021012957A1 (en) Method and device for message aggregation
US10546052B2 (en) Structured touch screen interface for mobile forms generation for customer relationship management (CRM)
US10530716B2 (en) Voice chat mode self-adapting method and apparatus
US10114602B2 (en) Dynamic server-side image sizing for fidelity improvements
WO2013091550A1 (en) Method and device for posting microblog message
CN103927178A (en) Picture capturing method and picture capturing device
CN109947821B (en) Report information generation method, display method, device, equipment and storage medium
US10277546B2 (en) Information processing system, information processing apparatus, and storage medium
CN110278141B (en) Instant messaging information processing method and device and storage medium
US10102239B2 (en) Application event bridge
CN107509051A (en) Long-range control method, device, terminal and computer-readable recording medium
US20150095802A1 (en) Mechanism for compacting shared content in collaborative computing sessions
WO2018148926A1 (en) Card-based information management method and system
JP2017534959A (en) Method, apparatus, storage medium, and device for providing screenshot service in terminal device
JP2017107529A (en) Information processing system, terminal equipment, and program
WO2017041681A1 (en) Method and terminal for acquiring and presenting information
CN113285866A (en) Information sending method and device and electronic equipment
CN111815292A (en) Business approval method and device and computer readable storage medium
CN113760611B (en) System site switching method and device, electronic equipment and storage medium
CN107368407B (en) Information processing method and device
US20200014651A1 (en) Providing social insight in email
CN106161188B (en) Message sending method, message display method and device
US10372436B2 (en) Systems and methods for maintaining operating consistency for multiple users during firmware updates
CN110858175A (en) Test control method, master control equipment, controlled equipment and test system
CN109492388B (en) Fission propagation method, fission propagation device, and computer-readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20844068

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20844068

Country of ref document: EP

Kind code of ref document: A1