CN113190367A - Cross-system data interaction method and device based on browser and electronic equipment - Google Patents

Cross-system data interaction method and device based on browser and electronic equipment Download PDF

Info

Publication number
CN113190367A
CN113190367A CN202110747839.1A CN202110747839A CN113190367A CN 113190367 A CN113190367 A CN 113190367A CN 202110747839 A CN202110747839 A CN 202110747839A CN 113190367 A CN113190367 A CN 113190367A
Authority
CN
China
Prior art keywords
data
software system
message
content
browser
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
CN202110747839.1A
Other languages
Chinese (zh)
Other versions
CN113190367B (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.)
Chengdu Business Big Data Technology Co Ltd
Original Assignee
Chengdu Business Big Data Technology 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 Chengdu Business Big Data Technology Co Ltd filed Critical Chengdu Business Big Data Technology Co Ltd
Priority to CN202110747839.1A priority Critical patent/CN113190367B/en
Publication of CN113190367A publication Critical patent/CN113190367A/en
Application granted granted Critical
Publication of CN113190367B publication Critical patent/CN113190367B/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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/541Interprogram communication via adapters, e.g. between incompatible applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (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 invention discloses a method and a device for realizing cross-system data interaction based on a browser and electronic equipment, wherein the system comprises a first software system and a second software system, access ports of the first software system and the second software system are the same, and the method comprises the following steps: when a first software system is started, initializing a database and a data table under a current access source path; the second software system monitors a message event in the initialized embedded container; the first software system acquires data from the cloud server, extracts data content from the data and writes the data content into a database, and then sends a message to an embedded container of the second software system; and the second software system acquires the message transmitted from the first software system in the embedded container, judges whether the message is the message content appointed in advance, and acquires the data content from the database of the browser if the message is the message content appointed in advance. The invention can realize data interaction among different software systems and can improve the interaction efficiency.

Description

Cross-system data interaction method and device based on browser and electronic equipment
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for realizing cross-system data interaction based on a browser and electronic equipment.
Background
With the emergence of SOA (service oriented technology architecture) in recent years, more and more application systems are beginning to be designed and deployed in a distributed manner. The system is changed from the original single technical architecture into a service-oriented multi-system architecture, and the original business process which can be completed in one system is realized through multiple interactions among multiple systems. When the traditional software system is used for data communication, data which needs to be shared and transmitted in the system A needs to be written into a database on a remote cloud server, then the remote cloud server issues a notification to tell the system B to update the data, the system B sends a network request to the remote cloud server again to obtain the data after receiving the update notification, and after the remote cloud server obtains the data, the data is issued to the system B, and the system B finishes data presentation. Such a data interaction mode has defects such as large network bandwidth pressure and slow speed.
Disclosure of Invention
The invention aims to overcome the defects in the prior art and provides a method and a device for realizing cross-system data interaction based on a browser and an electronic device.
In order to achieve the above purpose, the invention provides the following technical scheme:
in one aspect, this embodiment provides a cross-system data interaction method implemented based on a browser, where the system includes a first software system and a second software system, and access ports of the first software system and the second software system are the same, and the method includes the following steps:
step 1, when a first software system is started, initializing a database and a data table under a current access source path;
step 2, the second software system monitors a message event in the initialized embedded container;
step 3, the first software system acquires data from the cloud server, the data comprises a data format and data content, extracts the data content from the data and writes the data content into a database, and then sends a message to an embedded container of the second software system;
and 4, the second software system acquires the message transmitted from the first software system in the embedded container, judges whether the message is the message content agreed in advance, acquires the data content stored by the first software system from the database of the browser if the message is the agreed message content in advance, and does not perform any processing if the message is the agreed message content.
In the scheme, the database is created under the same access path, the appointed interactive data is stored in the database, the first software system stores the data in the server in the database, and the second software system can directly acquire the data from the database, so that the data interaction between the first software system and the second software system is realized, the interaction process between the second software system and the server is avoided, the data interaction efficiency is improved, and the processing pressure of the server is reduced.
After the first software system obtains the data from the cloud server and before the data content is extracted from the data, the method further comprises the following steps: processing the acquired data according to the data structure specification of the second software system, so that the processed data conforms to the data structure specification of the second software system;
the step of extracting data content from the data comprises: and extracting data content from the processed data.
In the scheme, before the data is stored, the data is processed into the data meeting the specification of the second software system through the first software system, and then the second software system can be avoided from processing, so that the second software system can be directly used, the workload of the second software system is reduced, and the processing time of the second software system is saved.
After the acquired data is processed and before the data content is extracted from the processed data, the method further comprises the following steps: caching the processed data into a memory of the user terminal;
the step of extracting data content from the processed data comprises: and the first software system acquires the processed data from the memory and extracts data content from the processed data.
In the above scheme, the processed data is firstly cached in the memory, and then the data is extracted from the memory and the data content is extracted from the memory, so that the data processing is performed in a step-by-step pipelining manner, and particularly when the data volume is large, the disorder of data processing can be avoided, and the efficiency is further improved.
The second software system comprises at least two different software systems; the step of processing the acquired data according to the data structure specification of the second software system so that the processed data conforms to the data structure specification of the second software system includes: and processing the acquired data according to the data structure specification of each software system, so that the processed data respectively conform to the data structure specification of each software system.
The first software system and the second software system defined herein refer to two parties of data interaction, and the software system interacting with the first software system is collectively referred to as the second software system by taking the first software system as a main reference object. When the second software system comprises a plurality of different software systems, the first software system processes according to the data structure specification of each software system, so that each software system can be prevented from processing respectively.
The processing includes filtering and/or structure transformation. The items involved in the processing differ according to the data structure specification.
The initialization operation of the embedded container of the second software system is performed by the first software system and is performed after the first software system initializes the database and the data table.
The initialization operation of the embedded container of the second software system can be performed by the second software system, but this easily causes system instability. The scheme can prevent the problems of performance and use in the access and use of the first software system caused by the direct initialization of the embedded container by the second software system.
On the other hand, this embodiment provides a cross-system data interaction device implemented based on a browser, where the system includes a first software system and a second software system, and access ports of the first software system and the second software system are the same, and the cross-system data interaction device implemented based on a browser includes:
the initialization module is used for initializing a database and a data table under the current access source path when the first software system is started;
the monitoring registration module is used for monitoring a message event in the initialized embedded container by the second software system;
the data storage module is used for acquiring data from the cloud server by the first software system, extracting the data content from the data and writing the data content into the database, and then sending a message to the embedded container of the second software system;
and the data interaction module is used for acquiring the message transmitted from the first software system in the embedded container by the second software system, judging whether the message is the predetermined message content, acquiring the data content stored in the first software system from the database of the browser if the message is the predetermined message content, and otherwise, not performing any processing.
The data logging module comprises:
the acquisition submodule is used for acquiring data from the cloud server;
the processing submodule is used for processing the acquired data according to the data structure specification of the second software system so that the processed data conforms to the data structure specification of the second software system;
the extraction submodule is used for extracting data content from the processed data;
and the storage submodule is used for writing the extracted data content into a database and then sending a message to the embedded container of the second software system.
The cache submodule is used for caching the data processed by the processing submodule in a memory of the user terminal; the extraction submodule is specifically configured to acquire the processed data from the memory, and extract data content from the processed data.
In still another aspect, the present invention also provides a computer-readable storage medium including computer-readable instructions, which, when executed, cause a processor to perform the operations of the method described in the present invention.
In another aspect, an embodiment of the present invention also provides an electronic device, including: a memory storing program instructions; and the processor is connected with the memory and executes the program instructions in the memory to realize the method in the embodiment of the invention.
Compared with the prior art, the remote cloud server does not need to be borrowed again when a plurality of systems are fused to serve as a bridge for data interaction and communication among the systems, the systems are fused from one side of a terminal man-machine interaction interface of the software system, and work content needing to be received by the remote cloud server originally is proxied through the terminal browser. By assembling data in the terminal browser and using the browser IndexEDDB as a bridge to exchange data of the AB system, a large amount of network bandwidth and server operation pressure in the data communication process of the traditional software system can be directly saved, and the timely response capability of a plurality of man-machine interaction interfaces among the systems of the terminal interface is improved.
Other advantages of the inventive technique are described in the corresponding description of the examples section.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a cross-system data interaction method implemented based on a browser according to an embodiment of the present invention.
Fig. 2 is a block diagram of a cross-system data interaction device implemented based on a browser according to an embodiment of the present invention.
FIG. 3 is a block diagram of a data logging module in a data interaction device.
Fig. 4 is a scene diagram of data interaction between software system a and software system B.
Fig. 5 is a block diagram showing the components of the electronic apparatus according to the embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a cross-system data interaction method based on a browser, which is realized based on the browser without using a remote server as a bridge for data interaction. However, it should be noted that the multiple software systems targeted by the method in this embodiment refer to multiple software systems of the same port under the same domain name on the access path, because based on the security policy restriction of the browser, it is necessary to ensure that the applications under the same network communication protocol, domain name, and port can perform cross-container data access, otherwise, the access will be blocked.
As shown in fig. 1, the cross-system data interaction method implemented based on a browser includes the following steps:
s101, when the software system A is started, a database (such as IndexDB) and a data table (such as Object Stores) are initialized under the current access source path.
When the software system A is started, the software system A executes indeedDB. open () api to try to open an indeedDB, if the indeedDB does not exist, the indeedDB is created, and a related Object store is initialized in the indeedDB, namely the initialization is carried out according to actual service requirements; if so, the relevant Object Stores is initialized directly in IndexedDB.
Through the step, the IndexEDDB is created when the software system A is initialized, the IndexEDDB is used as a data storage medium, the data in the IndexEDDB can be read when the software system B accesses the data, and error information of the software system B caused by the fact that the IndexEDDB cannot be read when the software system B is started can be prevented.
Here, IndexedDB is previously agreed, and data exchanged between the software system a and the software system B is stored in the IndexedDB. If other software systems exist, for example, a software system C performs data interaction with a software system A, and it can be agreed that interaction data is also stored in the IndexDB, the software system C does not need to perform initialization operation; the storage address can also be appointed, and at this time, the software system a needs to create another storage address when starting, so as to be used when interacting data with the software system C.
S102, after the software system A initializes IndexEDDB and Object Stores, the embedded container iframe of the software system B is initialized.
There are generally two methods for initializing iframes, one is to initialize the iframes by using the HTML specification defined by W3C, and the initialization method is as follows: < iframe src = 'software system BURL'/>. Another is initialization using the document createlement ("iframe") provided by ECMA 262. The specific selection of which way to initialize the embedded container is completely dependent on the selection of a developer of the software system a according to the requirements of the software system a, that is, if the software system a can directly pass through the iframe/> embedding, the first method is selected, otherwise, the second method is selected.
The initialization operation of the iframe of the embedded container of the software system B can be executed by the software system B, but after the initialization of the IndexDB is finished, the initialization operation of the embedded container of the software system B is asynchronously executed by the software system A, so that the problem of performance and use in the access and use of the software system A caused by directly initializing the embedded container of the B can be prevented. Because, if software system B directly initializes the inline container, two problems may arise: 1) if there is a large amount of program code in software system B that consumes the performance of the computer hardware, this may cause the initialization of software system a to be delayed or interrupted, thereby causing an error when software system B accesses the data storage intermediary. 2) If the initialization and data reading of the software system B are performed with the software system a first, the software system B may not read the data storage intermediary or may not directly find the data storage exchange intermediary. Therefore, from the viewpoint of program stability, it is necessary to initialize software system a first and then initialize the data storage exchange broker, and then execute the initialization operation of software system B after these prerequisites are all completed, so that the data storage and exchange broker can be directly identified when software system B performs initialization and data reading.
S103, when the software system B is started, the message event is monitored in the current embedded container by using the window.
After the software system B is started, the message event is monitored and the event is responded, so that the software system B can execute the response of the message after the message is sent by the software system A, and the message communication between the software system A and the software system B is realized.
And S104, the software system A acquires data from the cloud server (or cloud server for short), processes the acquired data according to the data structure specification of the software system B, so that the processed data conform to the data structure specification of the software system B, and caches the processed data in the memory of the user terminal.
The data acquired by the software system a from the cloud server may be directly stored in the memory or the database, but is preferably stored after being processed. In this step, by convention in advance, the software system a processes the data into the data structure specification conforming to the software system B before storing the data, so that the software system B can be prevented from processing alone, and the workload of the software system B is reduced. Similarly, when there are a plurality of software systems interacting with the software system a, it is more preferable that the software system a processes and stores the data based on a predetermined agreement or following an industry standard.
The processing may be simple filtering, simple structure conversion, or both. For example, the following are exemplified:
assuming that the software system A requests data on the remote cloud server, the returned result is as follows:
{
a: 111,
b: 222,
c: 333
}
assume that the data format required in software system B is:
{
A: 111,
C: 333
}
then software system a needs to convert and filter the acquired data to the data format specified for software system B when it is transferred to software system B. That is, the data item "b: 222" is filtered, then the data item "a: 111" is converted into "A: 111", and then the data item "C: 333" is converted into "C: 333".
The specific filtering and filtering modes may be various, for example, a keyword enumeration mapping may be used, and for example, a format required in the software system B may be used to perform contrast filtering on the data of the software system a.
In this step, the processed data is buffered in the memory, and then the processed data is obtained from the memory in the following step S105, so as to avoid data disorder. However, the method of the present invention does not exclude an implementation in which the processed data is directly stored in the database IndexedDB.
And S105, acquiring the data processed in the step S104 from the memory, acquiring a data format and data content from the data, and writing the data content into the IndexedDB.
S106, the software system A uses the cross-source communication API postMessage provided by the ECMA262 to directionally send a message to the embedded container of the software system B so as to inform the software system B that data is written into the IndexedDB, so that the software system B can obtain the data from the IndexedDB.
The software system A uses the cross-source communication API postMessage provided by the ECMA262 to directionally send a message to the embedded container of the software system B, namely, the message event embedded point code written in advance in the software system B is triggered, and the message transmission between the software system A and the software system B is completed.
S107, the software system B acquires the message transmitted from the software system A from the embedded container, judges whether the message is the message content agreed by the software system A and the software system B in advance, and acquires the data content entering from the browser through cross-system storage from the IndexDB if the message content is the agreed message content, so that the data exchange of the software system A and the software system B based on the browser storage is completed. If not, software system B does not do anything.
A scene diagram of data interaction between the software system a and the software system B is shown in fig. 4, arrows in fig. 4 indicate a data flow, the software system a acquires data before processing from the cloud server, writes the data into the indexedb after processing, and the software system B acquires data content written by the software system a from the indexedb. In the scenario shown in fig. 4, the software system a and the software system B operate on different terminals, respectively, but may operate on the same terminal if the software system a and the software system B belong to a host relationship.
It should be understood that, in this embodiment, only the software systems a and B are used as examples, but the solution of the present invention is not limited to data interaction between two software systems, and two or more software systems may also perform data interaction with the software system a.
It should be understood that the browser Storage technology is a technology of data persistent Storage based on a browser, different Storage modes can be selected according to different usage scenarios, for example, different Storage technologies such as Cookie, Storage, indexedDB, and the like can be used for data Storage, and the data exchange mode in the present solution is data Storage using the indexedDB technology, but other Storage modes may also be used in practical applications.
In the development process of modern software systems, a scenario is often encountered: a plurality of service lines exist in an enterprise, for example, some service lines are responsible for developing and managing systems which are responsible for processing and processing data and analyzing and processing the data; some departments are responsible for specially performing data presentation on the map and data analysis operation based on the map, and two software systems of two service lines can be independently operated and used.
After a large software system is bid in an enterprise, in the requirement of the large software system, the software system for data analysis and the software system for data presentation on a map need to be communicated and merged together, and service is provided for a first party in a centralized manner. By adopting the scheme of the invention, the data exchange of the two systems is carried out in a mode of taking IndexDB as data medium in the front-end interface, so that the fusion of the data of the two software systems can be easily realized under the condition of not changing the two software systems.
Compared with the data communication of the traditional software system, when a plurality of systems are fused, the method does not need to borrow the remote cloud server again as a bridge for data interaction and communication among the systems, but carries out the system fusion from one side of a terminal man-machine interaction interface of the software system, and proxies the work content which originally needs to be carried by the remote cloud server through the terminal browser.
The scheme saves a large amount of cost for modern enterprises on the side of data sharing and software system fusion among multiple systems from the aspects of enterprise operation, server resources and the like. According to the scheme, data are assembled in the terminal browser, and the browser IndexedDB is used as a bridge for data exchange between the software system A and the software system B, so that a large amount of network bandwidth and server operation pressure in the data communication process of the traditional software system can be directly saved, and the timely response capability of a plurality of inter-system human-computer interaction interfaces of a terminal interface is improved.
Referring to fig. 2, based on the same inventive concept, the present embodiment provides a cross-system data interaction apparatus implemented based on a browser, including:
the initialization module 21 is configured to initialize a database and a data table under a current access source path when the first software system is started;
the monitoring registration module 22 is used for monitoring a message event in the initialized embedded container by the second software system;
the data storage module 23 is used for the first software system to acquire data from the cloud server, extract data content from the data and write the data content into the database, and then send a message to the embedded container of the second software system;
and the data interaction module 24 is used for the second software system to acquire the message transmitted from the first software system in the embedded container, judge whether the message is the predetermined message content, and acquire the data content stored in the first software system from the database of the browser if the message is the predetermined message content.
In a more preferred embodiment, as shown in fig. 3, the data logging module 23 comprises:
the obtaining submodule 231 is configured to obtain data from the cloud server;
the processing submodule 232 is configured to process the acquired data according to the data structure specification of the second software system, so that the processed data conforms to the data structure specification of the second software system; the processing includes filtering and/or structure transformation.
An extraction submodule 234 for extracting data content from the processed data;
the logging submodule 235 is configured to write the extracted data content into the database, and then send a message to the embedded container of the second software system.
In a more preferred embodiment, the data storage module 23 further comprises a buffer submodule 233, configured to buffer the data processed by the processing submodule in the memory of the user terminal, at this time, the extraction submodule 234 obtains the processed data from the memory, and then extracts the data content from the processed data.
When the second software system includes at least two different software systems, the processing submodule 232 is specifically configured to: and processing the acquired data according to the data structure specification of each software system, so that the processed data respectively conform to the data structure specification of each software system.
In a more preferred solution, the initialization module 21 is further configured to initialize the embedded container of the second software system after initializing the database and the data table. That is, in this scheme, the initialization operation of the embedded container of the second software system is performed by the first software system after initializing the database and the data table.
As shown in fig. 5, the present embodiment also provides an electronic device, which may include a processor 51 and a memory 52, wherein the memory 52 is coupled to the processor 51. It is noted that this figure is exemplary and that other types of structures may be used in addition to or in place of this structure.
As shown in fig. 5, the electronic device may further include: an input unit 53, a display unit 54, and a power supply 55. It is to be noted that the electronic device does not necessarily have to comprise all the components shown in fig. 5. Furthermore, the electronic device may also comprise components not shown in fig. 5, reference being made to the prior art.
The processor 51, also sometimes referred to as a controller or operational control, may comprise a microprocessor or other processor device and/or logic device, the processor 51 receiving input and controlling operation of the various components of the electronic device.
The memory 52 may be, for example, one or more of a buffer, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory, or other suitable devices, and may store the configuration information of the processor 51 and the instructions executed by the processor 51. The processor 51 may execute a program stored in the memory 52 to realize information storage or processing, or the like. In one embodiment, a buffer memory, i.e., a buffer, is also included in the memory 52 to store the intermediate information.
The input unit 53 is for example used to provide data to the processor 51. The display unit 54 is used for displaying various results during the processing, and may be, for example, an LCD display, but the present invention is not limited thereto. The power supply 55 is used to provide power to the electronic device.
Embodiments of the present invention further provide a computer readable instruction, where when the instruction is executed in an electronic device, the program causes the electronic device to execute the operation steps included in the method of the present invention.
Embodiments of the present invention further provide a storage medium storing computer-readable instructions, where the computer-readable instructions cause an electronic device to execute the operation steps included in the method of the present invention.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that the various illustrative modules described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided in the present application, it should be understood that the disclosed system may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A cross-system data interaction method realized based on a browser is provided, the system comprises a first software system and a second software system, and access ports of the first software system and the second software system are the same, and the method is characterized by comprising the following steps:
step 1, when a first software system is started, initializing a database and a data table under a current access source path;
step 2, the second software system monitors a message event in the initialized embedded container;
step 3, the first software system acquires data from the cloud server, the data comprises a data format and data content, extracts the data content from the data and writes the data content into a database, and then sends a message to an embedded container of the second software system;
and 4, the second software system acquires the message transmitted from the first software system in the embedded container, judges whether the message is the message content agreed in advance, acquires the data content stored by the first software system from the database of the browser if the message is the agreed message content in advance, and does not perform any processing if the message is the agreed message content.
2. The method of claim 1, wherein after the first software system obtains the data from the cloud server and before the data content is extracted from the data, the method further comprises:
processing the acquired data according to the data structure specification of the second software system, so that the processed data conforms to the data structure specification of the second software system;
the step of extracting data content from the data comprises: and extracting data content from the processed data.
3. The browser-based cross-system data interaction method as claimed in claim 2, wherein after the acquired data is processed and before the data content is extracted from the processed data, the method further comprises the steps of: caching the processed data into a memory of the user terminal;
the step of extracting data content from the processed data comprises: and the first software system acquires the processed data from the memory and extracts data content from the processed data.
4. The browser-based cross-system data interaction method of claim 2, wherein the second software system comprises at least two different software systems; the step of processing the acquired data according to the data structure specification of the second software system so that the processed data conforms to the data structure specification of the second software system includes: and processing the acquired data according to the data structure specification of each software system, so that the processed data respectively conform to the data structure specification of each software system.
5. The browser-based cross-system data interaction method of claim 2, wherein the processing comprises filtering and/or structure transformation.
6. The browser-based cross-system data interaction method of claim 1, wherein the initialization operation of the embedded container of the second software system is performed by the first software system and is performed after the first software system initializes the database and the data table.
7. A cross-system data interaction device realized based on a browser is characterized in that the system comprises a first software system and a second software system, access ports of the first software system and the second software system are the same, and the cross-system data interaction device realized based on the browser comprises:
the initialization module is used for initializing a database and a data table under the current access source path when the first software system is started;
the monitoring registration module is used for monitoring a message event in the initialized embedded container by the second software system;
the data storage module is used for acquiring data from the cloud server by the first software system, extracting the data content from the data and writing the data content into the database, and then sending a message to the embedded container of the second software system;
and the data interaction module is used for acquiring the message transmitted from the first software system in the embedded container by the second software system, judging whether the message is the predetermined message content, acquiring the data content stored in the first software system from the database of the browser if the message is the predetermined message content, and otherwise, not performing any processing.
8. The device of claim 7, wherein the data logging module comprises:
the acquisition submodule is used for acquiring data from the cloud server;
the processing submodule is used for processing the acquired data according to the data structure specification of the second software system so that the processed data conforms to the data structure specification of the second software system;
the extraction submodule is used for extracting data content from the processed data;
and the storage submodule is used for writing the extracted data content into a database and then sending a message to the embedded container of the second software system.
9. The device for realizing cross-system data interaction based on browser of claim 8, further comprising a cache sub-module, configured to cache data processed by the processing sub-module in a memory of the user terminal; the extraction submodule is specifically configured to acquire the processed data from the memory, and extract data content from the processed data.
10. An electronic device, comprising:
a memory storing program instructions;
a processor coupled to the memory and executing the program instructions in the memory to implement the method of any of claims 1-6.
CN202110747839.1A 2021-07-02 2021-07-02 Cross-system data interaction method and device based on browser and electronic equipment Active CN113190367B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110747839.1A CN113190367B (en) 2021-07-02 2021-07-02 Cross-system data interaction method and device based on browser and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110747839.1A CN113190367B (en) 2021-07-02 2021-07-02 Cross-system data interaction method and device based on browser and electronic equipment

Publications (2)

Publication Number Publication Date
CN113190367A true CN113190367A (en) 2021-07-30
CN113190367B CN113190367B (en) 2021-10-01

Family

ID=76976967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110747839.1A Active CN113190367B (en) 2021-07-02 2021-07-02 Cross-system data interaction method and device based on browser and electronic equipment

Country Status (1)

Country Link
CN (1) CN113190367B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170139722A1 (en) * 2013-11-26 2017-05-18 Tencent Technology (Shenzhen) Company Limited Media file playing method and device, medium and browser
CN107688570A (en) * 2016-08-03 2018-02-13 腾讯科技(深圳)有限公司 A kind of page info processing method and system
CN110187931A (en) * 2019-05-17 2019-08-30 北京百度网讯科技有限公司 The operation method and device of small routine
CN111079047A (en) * 2019-11-28 2020-04-28 蜂助手股份有限公司 Web-oriented page construction system
CN111881401A (en) * 2020-08-04 2020-11-03 浪潮云信息技术股份公司 Browser deep learning method and system based on WebAssembly
CN112612984A (en) * 2020-12-03 2021-04-06 北京道亨软件股份有限公司 Cross-domain forwarding proxy method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1577251B (en) * 2003-07-28 2012-07-18 国际商业机器公司 Long-distance cooperating method and system for small server program
CN109495308B (en) * 2018-11-27 2021-08-06 中国电子科技集团公司第二十八研究所 Automatic operation and maintenance system based on management information system
CN110995797B (en) * 2019-11-19 2022-03-15 湖北民族大学 Multilayer B/S and C/S mixed software system and asynchronous real-time communication method between layers
CN110909896A (en) * 2019-11-27 2020-03-24 北京搜狐新媒体信息技术有限公司 Visual operation and maintenance monitoring method and device
CN112131085A (en) * 2020-08-01 2020-12-25 青岛希望鸟科技有限公司 Method, system and device for recording and playing back Internet business process

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170139722A1 (en) * 2013-11-26 2017-05-18 Tencent Technology (Shenzhen) Company Limited Media file playing method and device, medium and browser
CN107688570A (en) * 2016-08-03 2018-02-13 腾讯科技(深圳)有限公司 A kind of page info processing method and system
CN110187931A (en) * 2019-05-17 2019-08-30 北京百度网讯科技有限公司 The operation method and device of small routine
CN111079047A (en) * 2019-11-28 2020-04-28 蜂助手股份有限公司 Web-oriented page construction system
CN111881401A (en) * 2020-08-04 2020-11-03 浪潮云信息技术股份公司 Browser deep learning method and system based on WebAssembly
CN112612984A (en) * 2020-12-03 2021-04-06 北京道亨软件股份有限公司 Cross-domain forwarding proxy method and device

Also Published As

Publication number Publication date
CN113190367B (en) 2021-10-01

Similar Documents

Publication Publication Date Title
CN110166432B (en) Method for accessing intranet target service and method for providing intranet target service
US8886571B2 (en) System and method for service virtualization in a service governance framework
US8572023B2 (en) Data services framework workflow processing
US20190370263A1 (en) Crowdsourcing data into a data lake
US20060190948A1 (en) Connection manager, method, system and program product for centrally managing computer applications
US20070047439A1 (en) Method and apparatus of supporting business performance management with active shared data spaces
CN103973741A (en) Method and device for performing remote debugging in cloud system
CN109597640B (en) Account management method, device, equipment and medium for application program
CN114925084B (en) Distributed transaction processing method, system, equipment and readable storage medium
CN109451014A (en) A kind of WebService agency plant and its transparent proxy method
US20100115075A1 (en) Directional optimization for policy evaluation
US9128886B2 (en) Computer implemented method, computer system, electronic interface, mobile computing device and computer readable medium
CN116340024A (en) Data sharing method, computer equipment and medium between simulation model component processes
CN113190367B (en) Cross-system data interaction method and device based on browser and electronic equipment
CN110008261B (en) External change detection
US10289978B2 (en) Method and apparatus for integrating health care payers and provider systems with health care transaction systems using a single HIPAA EDI response generation component
CN111447273A (en) Cloud processing system and data processing method based on cloud processing system
US11023479B2 (en) Managing asynchronous analytics operation based on communication exchange
CN113204459A (en) U shield testing method, device, equipment and medium
WO2023230797A1 (en) Cross-system test method and apparatus
US8453166B2 (en) Data services framework visibility component
JP4667299B2 (en) Interprocess communication method
CN110602162A (en) Terminal evidence obtaining method, device, equipment and storage medium
WO2023000705A1 (en) Application program virtualization method and system, and electronic device and storage medium
CN102880825A (en) Method and system for efficiently calling hardware encryption equipment in UNIX/LINUX environment

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