CN112364109A - Event service association method, system, device, electronic equipment and storage medium - Google Patents

Event service association method, system, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112364109A
CN112364109A CN202011272362.8A CN202011272362A CN112364109A CN 112364109 A CN112364109 A CN 112364109A CN 202011272362 A CN202011272362 A CN 202011272362A CN 112364109 A CN112364109 A CN 112364109A
Authority
CN
China
Prior art keywords
event
service
dynamic link
link library
information
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
CN202011272362.8A
Other languages
Chinese (zh)
Other versions
CN112364109B (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.)
Winning Health Technology Group Co Ltd
Original Assignee
Winning Health Technology Group 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 Winning Health Technology Group Co Ltd filed Critical Winning Health Technology Group Co Ltd
Priority to CN202011272362.8A priority Critical patent/CN112364109B/en
Publication of CN112364109A publication Critical patent/CN112364109A/en
Application granted granted Critical
Publication of CN112364109B publication Critical patent/CN112364109B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • 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/24Querying
    • G06F16/245Query processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method, a system, a device, electronic equipment and a storage medium for associating events with services. The method comprises the following steps: acquiring event information of each event, and acquiring dynamic link library information of at least one service stored in a client; based on the incidence relation between the events and the services, corresponding the event information of each event to the dynamic link library information of at least one service to generate an incidence data table, and storing the incidence data table to a database; inquiring each associated data table in a database based on the service identification, determining at least one event corresponding to each service identification, and generating configuration data of each service identification; the configuration data is sent to the client, so that when the client detects that any event is triggered, the client determines and executes the service corresponding to the triggered event based on the configuration data, the association between the user operation event and the hardware service is realized, the technical problem that the event on the webpage cannot interact with the hardware service is solved, and meanwhile, the flexibility of program management is improved.

Description

Event service association method, system, device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of program design and coding, in particular to a method, a system, a device, electronic equipment and a storage medium for associating events with services.
Background
With the development of internet technology, more and more hospital informatization systems are developed using browser/server architecture. However, in some usage scenarios, such as registration, charging and other events operated by the user on the page, cannot be associated with the services requiring interaction with hardware, such as card swiping, printing and the like, and the browser is not distracting. The user operates all elements on the webpage, the elements are written by HTML codes and are rendered into a window interface by a browser, and the operation events of the user are completely taken over by the browser. Therefore, a browser is required to provide an interface to manage these user events that require interaction with the hardware.
For these specific situations, ActiveX control technology is the mainstream practice in the industry. However, the ActiveX control technology can only use the old IE browser and needs to be downloaded and installed before use, and the password card and the U shield of the previous bank both use the technology, and if the technology needs to be run on a webpage, the IE browser needs to be used, which is more limited.
Disclosure of Invention
The invention provides a service association method, a system, a device, electronic equipment and a storage medium of events, which are used for realizing the association between user webpage operation events and hardware services, solving the technical problem that the user events on a webpage can not interact with the hardware services and simultaneously improving the flexibility of program management.
In a first aspect, an embodiment of the present invention provides a method for associating events with services, which is applied to an interface management platform, and includes:
acquiring event information of each event;
acquiring dynamic link library information of at least one service stored in a client;
based on the incidence relation between events and services, corresponding event information of each event to dynamic link library information of at least one service to generate an incidence data table, and storing the incidence data table to a database;
inquiring each associated data table in the database based on the service identification, determining at least one event corresponding to each service identification, and generating configuration data of each service identification;
and sending the configuration data to a client so that the client determines and executes the service corresponding to the triggered event based on the configuration data when detecting that any event is triggered.
In a second aspect, an embodiment of the present invention further provides a system for associating events with services, including:
the interface management platform is used for acquiring event information of each event; acquiring dynamic link library information of at least one service stored in a client; based on the incidence relation between events and services, corresponding event information of each event to dynamic link library information of at least one service to generate an incidence data table, and storing the incidence data table to a database; inquiring each associated data table in the database based on the service identification, determining at least one event corresponding to each service identification, generating configuration data of each service identification, and sending the configuration data to a client;
the client is used for receiving the configuration data corresponding to each service sent by the interface management platform; when the event is detected to be triggered, determining the associated service of the triggered event based on the event information of the triggered event and the configuration data corresponding to each service, and mounting a dynamic link library of the associated service to execute the associated service.
In a third aspect, an embodiment of the present invention further provides a device for associating events with a service, where the device is configured on an interface management platform, and the device includes:
the event acquisition module is used for acquiring event information of each event;
the dynamic link library acquisition module is used for acquiring dynamic link library information of at least one service stored in the client;
the system comprises an association data table generation module, a database and a service management module, wherein the association data table generation module is used for generating an association data table by corresponding event information of each event and dynamic link library information of at least one service based on the association relation between the events and the services, and storing the association data table into the database;
the configuration data generation module is used for inquiring each associated data table in the database based on the service identification, determining at least one event corresponding to each service identification and generating configuration data of each service identification;
and the configuration data sending module is used for sending the configuration data to a client so that the client determines and executes the service corresponding to the triggered event based on the configuration data when detecting that any event is triggered.
In a fourth aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the service association method for events provided by the embodiment of the present invention.
In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the service association method for events provided in the embodiment of the present invention.
The embodiment of the invention has the following advantages or beneficial effects:
acquiring event information of each event and acquiring dynamic link library information of at least one service stored in a client; based on the incidence relation between the events and the services, corresponding the event information of each event to the dynamic link library information of at least one service to generate an incidence data table, and storing the incidence data table to a database; inquiring each associated data table in a database based on the service identification, determining at least one event corresponding to each service identification, and generating configuration data of each service identification; the configuration data is sent to the client, so that when the client detects that any event is triggered, the client determines and executes the service corresponding to the triggered event based on the configuration data, the association between the user webpage operation event and the hardware service is realized, the technical problem that the user event on the webpage cannot interact with the hardware service is solved, and meanwhile, the flexibility of program management is improved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a schematic flowchart of a method for associating events with services according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a service association system for events according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a client executing a service according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a service association apparatus for events according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic flow diagram of a service association method for an event according to an embodiment of the present invention, where this embodiment is applicable to a situation where a user web page operation event needs to be associated with a hardware service, so that the user executes a corresponding service when triggering the event on a web page, and the method is applied to an interface management platform, where the method may be executed by a service association device for the event, the device may be implemented by hardware and/or software, and the device is configured on the interface management platform, and the method specifically includes the following steps:
and S110, acquiring event information of each event.
The event refers to an action which is preset by the client and can be identified and responded, such as registration, charging, medical order inquiry, medical image report inquiry or diagnosis report inquiry, and the like, and the client refers to an application program which can run or call the embedded browser. The event information at least includes an event name or an event identifier, etc. to distinguish different kinds of events. The event information of each event can be local data preset by a target user or data stored in a client, and if the local data is preset by the target user, the event information of each event is called; and if the data stored in the client preset by the target user is the data, receiving event information sent by the client.
And S120, acquiring the dynamic link library information of at least one service stored in the client.
The service refers to a service that needs to interact with hardware equipment to complete a corresponding action, such as printing or swiping a card. The dynamic link library information refers to that an operating system in a client links a function call in a module and an actual function in a library module together in a link process, so that the operating system calls a function which does not belong to an executable code of the operating system according to the dynamic link library information, and the purpose of realizing services through hardware equipment is achieved. Dynamically linked library information contains one or more functions that have been compiled, linked, and stored separately from the process in which they are used. Each service has corresponding dynamic link library information, which may be a ". dll" file, and illustratively, the dynamic link library information corresponding to the printing service may be a "print. The dynamic link library information can be packaged in advance by using a C # code and stored in the client, so that the interface management platform acquires the dynamic link library information of the service stored in the client when associating the event with the service. In this embodiment, for the encapsulation of the dynamic link library information, the client may implement execution of the service corresponding to the triggered event based on a chroma kernel encapsulation technology. The chrome kernel encapsulation technology uses modern chrome browsers and is also in constant upgrade maintenance. Specifically, the dynamic link library information is encapsulated by using the Chromium kernel encapsulation technology NET platform component library CEFSharp, which is located in CefSharp.
Optionally, the event information includes an event identifier, an event name, whether the event is executed asynchronously, and whether the event is disabled, and the dynamic link library information of the at least one service includes a service name, a dynamic link library identifier, a dynamic link library name, a function name entry, and a storage path.
The event identifier is used for identifying different events, and is exemplarily shown in the figure, the event identifier corresponding to the registration event is 990001, the event identifier corresponding to the query diagnosis report is 990002, the time corresponding to the query medical order is 990003, and the event identifier corresponding to the query medical image report is 990004. Whether the event is executed asynchronously refers to whether execution of other events is allowed or not after the event is executed and a feedback result of the event is not obtained yet, specifically, if the event is executed asynchronously, it indicates that the other events can be executed in parallel when the event is executed, and if the event is not executed asynchronously, it indicates that the execution of the other events needs to be allowed after the feedback result of the event is obtained. Whether an event is disabled refers to whether execution of the event is prevented. The business name, the dynamic link library identifier, or the dynamic link library name is used to identify different dynamic link library information. The function name entry refers to the name of an external function called by the dynamic link library, and the storage path refers to the entry address for storing the external function.
In this embodiment, the specific event and the service information are acquired by acquiring the event identifier, the event name, whether the event is executed asynchronously or not and whether the event is disabled or not, and the service name, the dynamic link library identifier, the dynamic link library name, the function name entry and the storage path of the dynamic link library of the service, so that the event and the service are accurately associated.
S130, based on the incidence relation between the events and the services, generating an incidence data table by corresponding the event information of each event and the dynamic link library information of at least one service, and storing the incidence data table to a database.
The association relationship between the event and the service refers to a corresponding service that needs to be executed when the client detects that the event occurs. For example, if a print service needs to be executed after a query diagnosis report event, the query diagnosis report event and the print service are associated with each other, if a print service needs to be executed after a registration event, the registration event and the print service are associated with each other, and if a card swiping service needs to be executed after a charging event, the charging event and the card swiping service are associated with each other. It should be noted that one service may have an association relationship with multiple events at the same time, for example, if the registration event and the charging event both need to execute the printing service, the printing service has an association relationship with the registration event and the charging event at the same time. The event information and the service information corresponding to each association relationship are stored in an association data table, that is, a plurality of association relationship data are stored in the association data table.
Optionally, based on the association relationship between the event and the service, generating an association data table by corresponding the event information of each event to the dynamic link library information of at least one service, where the association data table includes: according to the incidence relation between the event and the service, forming an incidence data table by the event information of the event with the incidence relation and the dynamic link library information of the service, wherein the incidence data table comprises an event information table and a dynamic link library information table, the dynamic link library information table comprises an event identifier of the event, a dynamic link library name of the incidence service, a function name inlet and a storage path, and the event information table comprises the event name, whether the event is executed asynchronously and whether the event is forbidden.
The dynamic link library information table is used for storing event identification of the associated event and dynamic link library information of the service, and the event information table is used for storing event information of the event corresponding to each dynamic link library information table. Each associated event and service can generate a dynamic link library information table, the dynamic link library information table comprises an event identification field of the event, a dynamic link library name field of the associated service, a function name entry field and a storage path field, and corresponding data are stored in the fields. The description of the field is shown in table 1, where the code represents a corresponding number of each dynamic link library information table, the event ID represents an event identifier, the DLL name represents a dynamic link library name, and the field type refers to a data type of data stored in the field.
TABLE 1
Name of field Meaning of a field Type of field
ID Encoding smallint
EVENT_ID Event ID smallint
DLL_NAME DLL name varchar(64)
FUNCATION_NAME DLL function name entry varchar(32)
DLL_PATH DLL deposit path varchar(64)
The event information of each event may generate a corresponding event information table, which includes an event name field, a field of whether the event is executed asynchronously, and a field of whether the event is disabled, as shown in table 2. In table 2, the codes indicate the corresponding numbers of each event information table, and it should be noted that the codes in the event information table of each event should be consistent with the codes in the dynamic link library information tables containing the same event, so that when a certain dynamic link library information table is queried in the database, the event information table of the event can be queried according to the codes in the dynamic link library information table.
TABLE 2
Name of field Meaning of a field Type of field
ID Encoding smallint
EVENT_NAME Event name varchar(64)
ASYNC_FLAG Whether to execute asynchronously smallint
IS_DEL Whether or not to disable smallint
In the embodiment, the event information of the event with the association relation and the dynamic link library information of the service form the association data table, so that the connection between the event and the service is realized, the service is mapped to the event, and the flexibility of program management is improved.
S140, inquiring each associated data table in the database based on the service identification, determining at least one event corresponding to each service identification, and generating configuration data of each service identification.
The service identifier is used for determining dynamic link library information of a corresponding service, and inquiring each associated data table according to the dynamic link library information of the service to obtain at least one associated data table comprising the dynamic link library information of the service, so as to obtain at least one event associated with the service. Illustratively, the database stores a data table relating printing services and registration events and a data table relating printing services and charging events, and then the corresponding events are inquired as registration events and charging events according to the service identifiers of the printing services. The configuration data refers to the data which is generated based on the determined associated event of the service and contains the dynamic link library information of the service and the event information of the associated event. The configuration data may be in a JSON (JSON Object notification, JS Object Notation) format, so that the client can mount the corresponding service when detecting the event trigger according to the configuration data. Through the configuration data, one service can be mounted in a plurality of events, and the flexibility of the system is increased.
Optionally, the configuration data includes a name of a dynamic link library, a function name entry, a storage path, an event identifier of the corresponding at least one event, an event name, whether the event is executed asynchronously, whether the event is disabled, a service name, and a dynamic link library identifier.
Illustratively, the registration event and the charging event are both associated with a print service, a DLL (Dynamic Link Library) of the print service is named as "win.
Figure BDA0002778124830000091
Figure BDA0002778124830000101
The dynamic link library information of the service and the event information of the associated at least one event are obtained through the formation of the configuration data, and the mapping of the event and the dynamic link library of the service is realized, so that a user can use the function of the corresponding service when generating the at least one event.
And S150, sending the configuration data to the client so that the client determines and executes the service corresponding to the triggered event based on the configuration data when detecting that any event is triggered.
The configuration data comprises associated event information and dynamic link library information of the service, when a client detects that a certain event is triggered, the client searches and extracts the event information of the event in each configuration data to obtain the dynamic link library information corresponding to the event, and therefore the corresponding service is executed according to the dynamic link library information. Illustratively, the client dynamically loads and executes the services corresponding to the events, such as:
var assembly=Assembly.LoadFile(dllFileName);
var t=assembly.GetType(dll.NameSpace+dll.ClassName);
var objtmp=assembly.CreateInstance(t.ToString());
var iType=objtmp.GetType();
MethodInfo methodInfo=iType.GetMethod(dll.functionName);
object[]inputs=new object[]{iInPut,iOutPut};
var isSuccess=methodInfo.Invoke(objtmp,inputs);
wherein the Assembly object is located in mscorlib.dll, and the name space is: reflection. The LoadFile method is used for loading the content of the C # dynamic link library file on a specified path, the MethodInfo object is located in mscorlib. Reflection. Invoke methods are used to reflect the execution of the methods specified in the C # dynamically linked library.
According to the technical scheme of the embodiment, event information of each event is obtained, and dynamic link library information of at least one service stored in a client is obtained; based on the incidence relation between the events and the services, corresponding the event information of each event to the dynamic link library information of at least one service to generate an incidence data table, and storing the incidence data table to a database; inquiring each associated data table in a database based on the service identification, determining at least one event corresponding to each service identification, and generating configuration data of each service identification; the configuration data is sent to the client, so that when the client detects that any event is triggered, the client determines and executes the service corresponding to the triggered event based on the configuration data, the association between the user webpage operation event and the hardware service is realized, the technical problem that the user event on the webpage cannot interact with the hardware service is solved, and meanwhile, the flexibility of program management is improved.
Example two
Fig. 2 is a schematic structural diagram of an event service association system according to a second embodiment of the present invention, where this embodiment is applicable to a situation where a user web page operation event needs to be associated with a hardware service and a corresponding associated service is executed when a user triggers an event, and the system includes: an interface management platform 210 and a client 220.
The interface management platform 210 is configured to obtain event information of each event; acquiring dynamic link library information of at least one service stored in a client; based on the incidence relation between the events and the services, corresponding the event information of each event to the dynamic link library information of at least one service to generate an incidence data table, and storing the incidence data table to a database; querying each associated data table in the database based on the service identifier, determining at least one event corresponding to each service identifier, generating configuration data of each service identifier, and sending the configuration data to the client 220;
the client 220 is configured to receive configuration data corresponding to each service sent by the interface management platform 210; when the event is detected to be triggered, determining the associated service of the triggered event based on the event information of the triggered event and the configuration data corresponding to each service, and mounting a dynamic link library of the associated service to execute the associated service.
The configuration data corresponding to each service includes event information of an event associated with each service, the event information of the triggered event is compared with the event information of an associated event in the configuration data corresponding to each service to determine an associated service of the triggered event, and the dynamic link library is mounted according to a function name entry and a storage path of the dynamic link library in the configuration data of the associated service to execute the associated service, as shown in fig. 3, a client loads a DLL corresponding to the event triggered by a user through time and configuration data of the service sent by an interface management platform to execute a service action. Illustratively, a client embeds a web browser provided by a CEFSharp-type library in a windows window, and registers a web page interaction script in the windows window: register asyncjsobject ("winning", _ winningJSObject); events are distributed in the foreground web page using the registered C # object.
According to the technical scheme of the embodiment, the configuration data of each service identifier is generated through the interface management platform, the configuration data is sent to the client, the client determines the associated service of the triggered event according to the received configuration data corresponding to each service, and when the event is detected to be triggered, the dynamic link library of the associated service is mounted on the basis of the event information of the triggered event and the configuration data corresponding to each service, so as to execute the associated service.
Optionally, the client is further configured to register an event listener based on each event identifier in the configuration data, where the event listener is configured to mount a dynamic link library of an associated service corresponding to the event identifier; correspondingly, the client determines the corresponding event listener according to the event information of the triggered event, and executes the associated service of the event information of the triggered event based on the corresponding event listener.
Each event identifier corresponds to a unique event listener, and the event listener is used for combining an event with a dynamic link library of the event-related service and mounting the associated service according to the event identifier of the event. The method for the event listener oneevenfire can be understood as an event listening mechanism when the event listener executes the associated service of the event information of the triggered event, specifically, when the client detects that a certain event is triggered, the client triggers the method in the event listener oneevenfire according to the event listener corresponding to the triggered event, and mounts the dynamic link library of the service associated with the triggered event, thereby executing the associated service.
Optionally, the client is further configured to register an event listener based on each event identifier in the configuration data, and store the event identifier and the event listener in the dictionary table correspondingly; correspondingly, the client queries the corresponding event listener from the dictionary table based on the event identifier of the current event.
The dictionary table can be understood as a data table with a specific format for storing the event identifier and the event listener correspondingly. When the client detects that a certain event is triggered, the client compares the event identifier of the current triggered event with each event identifier in the dictionary table, so as to determine the event listener corresponding to the current triggered event. The event identifiers and the event listeners are correspondingly stored in the dictionary table, so that the client determines the corresponding event listeners from the dictionary table according to the event identifiers of the triggered events, and accurate query of the event listeners is realized.
EXAMPLE III
Fig. 4 is a schematic structural diagram of an event service association apparatus according to a third embodiment of the present invention, where this embodiment is applicable to a situation that a user needs to associate a web page operation event with a hardware service, so that the user executes a corresponding service when triggering the event on a web page, where the apparatus is configured on an interface management platform, and specifically includes: the event acquisition module 410, the dynamic link library acquisition module 420, the association data table generation module 430, the configuration data generation module 440, and the configuration data transmission module 450.
An event obtaining module 410, configured to obtain event information of each event;
a dynamic link library obtaining module 420, configured to obtain dynamic link library information of at least one service stored in the client;
the association data table generating module 430 is configured to generate an association data table by corresponding event information of each event to dynamic link library information of at least one service based on an association relationship between the event and the service, and store the association data table in a database;
a configuration data generating module 440, configured to query each associated data table in the database based on a service identifier, determine at least one event corresponding to each service identifier, and generate configuration data of each service identifier;
a configuration data sending module 450, configured to send the configuration data to a client, so that when detecting that any event is triggered, the client determines and executes a service corresponding to the triggered event based on the configuration data.
In this embodiment, event information of each event is acquired by an event acquisition module, and dynamic link library information of at least one service stored in a client is acquired based on a dynamic link library acquisition module; generating an association data table by the association data table generation module according to the association relation between the events and the services, wherein the event information of each event corresponds to the dynamic link library information of at least one service to generate the association data table, and the association data table is stored in a database; inquiring each associated data table in a database through a configuration data generation module based on the service identification, determining at least one event corresponding to each service identification, and generating configuration data of each service identification; the configuration data is sent to the client based on the configuration data sending module, so that when the client detects that any event is triggered, the service corresponding to the triggered event is determined and executed based on the configuration data, the association between the user webpage operation event and the hardware service is realized, the technical problem that the user event on the webpage cannot interact with the hardware service is solved, and meanwhile, the flexibility of program management is improved.
On the basis of the above device, optionally, the event information includes an event identifier, an event name, whether the event is executed asynchronously, and whether the event is disabled, and the dynamic link library information of the at least one service includes a service name, a dynamic link library identifier, a dynamic link library name, a function name entry, and a storage path.
Optionally, the association data table generating module is specifically configured to form an association data table according to an association relationship between an event and a service, where the association data table includes an event information table and a dynamic link library information table, the dynamic link library information table includes an event identifier of the event, a dynamic link library name of the associated service, a function name entry, and a storage path, and the event information table includes the event identifier, the event name, whether the event is executed asynchronously, and whether the event is disabled.
Optionally, the configuration data includes a name of a dynamic link library, a function name entry, a storage path, an event identifier of the corresponding at least one event, an event name, whether the event is executed asynchronously, whether the event is disabled, a service name, and a dynamic link library identifier.
The event business association device provided by the embodiment of the invention can execute the event business association method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the system are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
Example four
Fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 5 illustrates a block diagram of an exemplary electronic device 50 suitable for use in implementing embodiments of the present invention. The electronic device 50 shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 5, electronic device 50 is embodied in the form of a general purpose computing device. The components of the electronic device 50 may include, but are not limited to: one or more processors or processing units 501, a system memory 502, and a bus 503 that couples the various system components (including the system memory 502 and the processing unit 501).
Bus 503 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 50 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 50 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 502 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)504 and/or cache memory 505. The electronic device 50 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 506 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 503 by one or more data media interfaces. Memory 502 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 508 having a set (at least one) of program modules 507 may be stored, for instance, in memory 502, such program modules 507 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 507 generally perform the functions and/or methodologies of embodiments of the invention as described herein.
The electronic device 50 may also communicate with one or more external devices 509 (e.g., keyboard, pointing device, display 510, etc.), with one or more devices that enable a user to interact with the electronic device 50, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 50 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 511. Also, the electronic device 50 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 512. As shown, the network adapter 512 communicates with the other modules of the electronic device 50 over the bus 503. It should be appreciated that although not shown in FIG. 5, other hardware and/or software modules may be used in conjunction with electronic device 50, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 501 executes various functional applications and data processing by running programs stored in the system memory 502, for example, implementing the steps of the service association method for an event provided by the embodiment of the present invention, the method includes:
acquiring event information of each event;
acquiring dynamic link library information of at least one service stored in a client;
based on the incidence relation between the events and the services, corresponding the event information of each event to the dynamic link library information of at least one service to generate an incidence data table, and storing the incidence data table to a database;
inquiring each associated data table in a database based on the service identification, determining at least one event corresponding to each service identification, and generating configuration data of each service identification;
and sending the configuration data to the client so that the client determines and executes the business corresponding to the triggered event based on the configuration data when detecting that any event is triggered.
Of course, those skilled in the art can understand that the processor may also implement the technical solution of the event service association method provided in any embodiment of the present invention.
EXAMPLE five
The present embodiment provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the method steps of the service correlation method for events as provided in any of the embodiments of the present invention, the method comprising:
acquiring event information of each event;
acquiring dynamic link library information of at least one service stored in a client;
based on the incidence relation between the events and the services, corresponding the event information of each event to the dynamic link library information of at least one service to generate an incidence data table, and storing the incidence data table to a database;
inquiring each associated data table in a database based on the service identification, determining at least one event corresponding to each service identification, and generating configuration data of each service identification;
and sending the configuration data to the client so that the client determines and executes the business corresponding to the triggered event based on the configuration data when detecting that any event is triggered.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A service correlation method of events is applied to an interface management platform, and is characterized by comprising the following steps:
acquiring event information of each event;
acquiring dynamic link library information of at least one service stored in a client;
based on the incidence relation between events and services, corresponding event information of each event to dynamic link library information of at least one service to generate an incidence data table, and storing the incidence data table to a database;
inquiring each associated data table in the database based on the service identification, determining at least one event corresponding to each service identification, and generating configuration data of each service identification;
and sending the configuration data to a client so that the client determines and executes the service corresponding to the triggered event based on the configuration data when detecting that any event is triggered.
2. The method of claim 1, wherein the event information comprises an event identifier, an event name, whether the event is executed asynchronously, and whether the event is disabled, and wherein the dynamic link library information of the at least one service comprises a service name, a dynamic link library identifier, a dynamic link library name, a function name entry, and a deposit path.
3. The method according to claim 2, wherein the generating of the association data table by corresponding the event information of each event to the dynamic link library information of at least one service based on the association relationship between the event and the service comprises:
according to the incidence relation between the event and the service, forming an incidence data table by the event information of the event with the incidence relation and the dynamic link library information of the service, wherein the incidence data table comprises an event information table and a dynamic link library information table, the dynamic link library information table comprises an event identifier of the event, a dynamic link library name of the incidence service, a function name inlet and a storage path, and the event information table comprises the event name, whether the event is executed asynchronously and whether the event is forbidden.
4. The method of claim 3, wherein the configuration data comprises a dynamic link library name, a function name entry, a deposit path, an event identifier of the corresponding at least one event, an event name, whether an event is executed asynchronously, whether an event is disabled, a business name, and a dynamic link library identifier.
5. A system for business association of events, comprising:
the interface management platform is used for acquiring event information of each event; acquiring dynamic link library information of at least one service stored in a client; based on the incidence relation between events and services, corresponding event information of each event to dynamic link library information of at least one service to generate an incidence data table, and storing the incidence data table to a database; inquiring each associated data table in the database based on the service identification, determining at least one event corresponding to each service identification, generating configuration data of each service identification, and sending the configuration data to a client;
the client is used for receiving the configuration data corresponding to each service sent by the interface management platform; when the event is detected to be triggered, determining the associated service of the triggered event based on the event information of the triggered event and the configuration data corresponding to each service, and mounting a dynamic link library of the associated service to execute the associated service.
6. The system according to claim 5, wherein the client is further configured to register an event listener based on each event identifier in the configuration data, wherein the event listener is configured to mount a dynamically linked library of associated services corresponding to the event identifier;
correspondingly, the client determines the corresponding event listener according to the event information of the triggered event, and executes the associated service of the event information of the triggered event based on the corresponding event listener.
7. The system according to claim 6, wherein the client is further configured to register an event listener based on each event identifier in the configuration data, and store the event identifier and the event listener in a dictionary table in correspondence;
correspondingly, the client queries the corresponding event listener from the dictionary table based on the event identifier of the current event.
8. An event service association apparatus configured on an interface management platform, comprising:
the event acquisition module is used for acquiring event information of each event;
the dynamic link library acquisition module is used for acquiring dynamic link library information of at least one service stored in the client;
the system comprises an association data table generation module, a database and a service management module, wherein the association data table generation module is used for generating an association data table by corresponding event information of each event and dynamic link library information of at least one service based on the association relation between the events and the services, and storing the association data table into the database;
the configuration data generation module is used for inquiring each associated data table in the database based on the service identification, determining at least one event corresponding to each service identification and generating configuration data of each service identification;
and the configuration data sending module is used for sending the configuration data to a client so that the client determines and executes the service corresponding to the triggered event based on the configuration data when detecting that any event is triggered.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of service association of events as recited in claims 1-4.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out a method of service correlation of events as claimed in claims 1-4.
CN202011272362.8A 2020-11-13 2020-11-13 Event business association method, system, device, electronic equipment and storage medium Active CN112364109B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011272362.8A CN112364109B (en) 2020-11-13 2020-11-13 Event business association method, system, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011272362.8A CN112364109B (en) 2020-11-13 2020-11-13 Event business association method, system, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112364109A true CN112364109A (en) 2021-02-12
CN112364109B CN112364109B (en) 2024-02-27

Family

ID=74515635

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011272362.8A Active CN112364109B (en) 2020-11-13 2020-11-13 Event business association method, system, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112364109B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782214A (en) * 2020-07-03 2020-10-16 携程商旅信息服务(上海)有限公司 Client system, operation method, electronic device and storage medium
CN114995816A (en) * 2022-06-24 2022-09-02 中电金信软件有限公司 Business process configuration method and device, electronic equipment and readable storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080133589A1 (en) * 2006-12-01 2008-06-05 Sockeye Solutions, Inc. Management of an operations chain through customizable applications and components
CN104423968A (en) * 2013-08-23 2015-03-18 乐金信世股份有限公司 Method of designing business logic, server performing the same and storage medium storing the same
CN105022615A (en) * 2014-04-21 2015-11-04 大唐软件技术股份有限公司 Interface generating method and system
CN107688325A (en) * 2016-08-05 2018-02-13 中国科学院软件研究所 A kind of industrial autoknowledge processing method towards real-time sensing environment
US20180182006A1 (en) * 2005-06-30 2018-06-28 Ebay Inc. Business event processing
US20180366221A1 (en) * 2017-06-13 2018-12-20 Radicalogic Technologies Inc. Dba Rl Solutions Platform for context based syndromic surveillance
CN109669807A (en) * 2017-10-13 2019-04-23 阿里巴巴集团控股有限公司 The method of calibration and device of business event, processor, storage medium
CN109684047A (en) * 2018-08-21 2019-04-26 平安普惠企业管理有限公司 Event-handling method, device, equipment and computer storage medium
CN110020002A (en) * 2018-08-21 2019-07-16 平安普惠企业管理有限公司 Querying method, device, equipment and the computer storage medium of event handling scheme
CN110597651A (en) * 2019-09-18 2019-12-20 深圳前海微众银行股份有限公司 Method, device and equipment for troubleshooting business anomaly and computer readable storage medium
US20200089805A1 (en) * 2018-09-19 2020-03-19 Salesforce.Com, Inc. Voice-Activated Events Management System
CN110968438A (en) * 2019-11-29 2020-04-07 江苏满运软件科技有限公司 Asynchronous notification method and device of event message, electronic equipment and storage medium
CN111061817A (en) * 2019-12-16 2020-04-24 华云数据有限公司 Adaptive service construction system, method and computer readable medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180182006A1 (en) * 2005-06-30 2018-06-28 Ebay Inc. Business event processing
US20080133589A1 (en) * 2006-12-01 2008-06-05 Sockeye Solutions, Inc. Management of an operations chain through customizable applications and components
CN104423968A (en) * 2013-08-23 2015-03-18 乐金信世股份有限公司 Method of designing business logic, server performing the same and storage medium storing the same
CN105022615A (en) * 2014-04-21 2015-11-04 大唐软件技术股份有限公司 Interface generating method and system
CN107688325A (en) * 2016-08-05 2018-02-13 中国科学院软件研究所 A kind of industrial autoknowledge processing method towards real-time sensing environment
US20180366221A1 (en) * 2017-06-13 2018-12-20 Radicalogic Technologies Inc. Dba Rl Solutions Platform for context based syndromic surveillance
CN109669807A (en) * 2017-10-13 2019-04-23 阿里巴巴集团控股有限公司 The method of calibration and device of business event, processor, storage medium
CN109684047A (en) * 2018-08-21 2019-04-26 平安普惠企业管理有限公司 Event-handling method, device, equipment and computer storage medium
CN110020002A (en) * 2018-08-21 2019-07-16 平安普惠企业管理有限公司 Querying method, device, equipment and the computer storage medium of event handling scheme
US20200089805A1 (en) * 2018-09-19 2020-03-19 Salesforce.Com, Inc. Voice-Activated Events Management System
CN110597651A (en) * 2019-09-18 2019-12-20 深圳前海微众银行股份有限公司 Method, device and equipment for troubleshooting business anomaly and computer readable storage medium
CN110968438A (en) * 2019-11-29 2020-04-07 江苏满运软件科技有限公司 Asynchronous notification method and device of event message, electronic equipment and storage medium
CN111061817A (en) * 2019-12-16 2020-04-24 华云数据有限公司 Adaptive service construction system, method and computer readable medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
YUYING WANG: ""Study on Complex Event Processing for CPS: An Event Model Perspective"", 《IEEE INTERNATIONAL CONFERENCE ON UBIQUITOUS INTELLIGENCE AND COMPUTING/INTERNATIONAL CONFERENCE ON AUTONOMIC AND TRUSTED COMPUTING/INTERNATIONAL CONFERENCE ON SCALABLE COMPUTING AND COMMUNICATIONS AND ITS ASSOCIATED WORKSHOPS 978-1-4799-7646-1/14 $3, pages 305 - 310 *
袁言 等: ""基于信息系统平台的线上工作流定制的设计与实现"", 《土木建筑工程信息技术》, pages 119 - 122 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782214A (en) * 2020-07-03 2020-10-16 携程商旅信息服务(上海)有限公司 Client system, operation method, electronic device and storage medium
CN114995816A (en) * 2022-06-24 2022-09-02 中电金信软件有限公司 Business process configuration method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN112364109B (en) 2024-02-27

Similar Documents

Publication Publication Date Title
CN110297689B (en) Intelligent contract execution method, device, equipment and medium
US7165170B2 (en) System and method for firmware to export pre-boot data into the operating system runtime environment
CN112364109B (en) Event business association method, system, device, electronic equipment and storage medium
CN112596932A (en) Service registration and interception method and device, electronic equipment and readable storage medium
CN112055064A (en) Data synchronization method, device, equipment and storage medium
US8327324B1 (en) Message logging system
CN114398179B (en) Method and device for acquiring tracking identifier, server and storage medium
CN110704325B (en) Data processing method and device, computer storage medium and electronic equipment
CN111414263A (en) Information processing method, device, server and storage medium
US7171650B2 (en) System and method for integrating resources in a network
CN113641354A (en) Service data processing method and device, electronic equipment and storage medium
CN112799760A (en) Form rendering method and device
CN113625998A (en) Request processing method and device
US20200379874A1 (en) Deframeworking for static program analysis
CN114205156A (en) Message detection method and device for tangent plane technology, electronic equipment and medium
CN114238391A (en) Data paging query method and device, electronic equipment and storage medium
CN112261072A (en) Service calling method, device, equipment and storage medium
CN112364268A (en) Resource acquisition method and device, electronic equipment and storage medium
CN112000491A (en) Application program interface calling method, device, equipment and storage medium
CN111741046A (en) Data reporting method, data acquisition method, device, equipment and medium
CN111930478A (en) Service calling method and device based on dynamic bytecode
US10102109B2 (en) Exception resolution in a software development session
CN113032169B (en) Resource calling method, equipment and storage medium of cross-language software system
CN112596838B (en) Method, device, equipment and storage medium for displaying universal Web page
CN109376023B (en) Method and equipment for generating calling information and issuing return code group

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