CN112364109B - Event business association method, system, device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN112364109B
CN112364109B CN202011272362.8A CN202011272362A CN112364109B CN 112364109 B CN112364109 B CN 112364109B CN 202011272362 A CN202011272362 A CN 202011272362A CN 112364109 B CN112364109 B CN 112364109B
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.)
Active
Application number
CN202011272362.8A
Other languages
Chinese (zh)
Other versions
CN112364109A (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

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

Abstract

The invention discloses a business association method, a business association system, a business association device, electronic equipment and a storage medium of an event. 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 association relation between the events and the services, generating an association data table by corresponding the event information of each event with the dynamic link library information of at least one service, and storing the association data table into a database; inquiring each associated data table in a database based on the service identifiers, determining at least one event corresponding to each service identifier, and generating configuration data of each service identifier; the configuration data is sent to the client, 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 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 business association method, system, device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of programming and coding, in particular to a business association method, a system, a device, electronic equipment and a storage medium of an event.
Background
With the development of internet technology, more and more hospital information systems are developed using browser/server architecture. However, in some usage scenarios, such as registering, charging, etc., the event that the user operates on the page cannot be associated with the business that needs to interact with the hardware, such as card swiping, printing, etc., the browser is frustrating. All the user operations are elements on the webpage, written in HTML codes, rendered into a window interface by a browser, and the user operation events are completely taken over by the browser. Thus, a browser is required to provide an interface to manage these user events that require interaction with hardware.
For these specific applications, the mainstream practice in the industry is to use ActiveX control technology. 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 U shield of the previous bank use the technology, if the technology needs to run on the webpage, the IE browser needs to be used, and the limitation is more.
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 of user webpage operation events and hardware services, solving the technical problem that the user events on a webpage cannot interact with the hardware services, and improving the flexibility of program management.
In a first aspect, an embodiment of the present invention provides a service association method for an event, which is applied to an interface management platform, including:
acquiring event information of each event;
acquiring dynamic link library information of at least one service stored in a client;
based on the association relation between the events and the services, generating an association data table by corresponding the event information of each event with the dynamic link library information of at least one service, and storing the association data table into a database;
inquiring each associated data table based on service identifiers in the database, determining at least one event corresponding to each service identifier, and generating configuration data of each service identifier;
and 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.
In a second aspect, an embodiment of the present invention further provides a service association system for an event, 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 association relation between the events and the services, generating an association data table by corresponding the event information of each event with the dynamic link library information of at least one service, and storing the association data table into a database; inquiring each associated data table in the database based on service identifiers, determining at least one event corresponding to each service identifier, generating configuration data of each service identifier, 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 an event is detected to be triggered, based on event information of the triggered event and configuration data corresponding to each service, determining an associated service of the triggered event, 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 service association device for an event, configured on an interface management platform, including:
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 generation module 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 with dynamic link library information of at least one service based on the association relation between the event and the service, 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 identifiers, determining at least one event corresponding to each service identifier and generating configuration data of each service identifier;
and the configuration data sending module is used for sending the configuration data to the client so that the client can determine and execute 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, including:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a method for traffic association of events as provided by embodiments of the present invention.
In a fifth aspect, the embodiment of the present invention further provides a computer readable storage medium, on which a computer program is stored, where the program when executed by a processor implements a service association method of an event as provided by the embodiment of the present invention.
The embodiments of the above invention have the following advantages or benefits:
acquiring event information of each event and acquiring dynamic link library information of at least one service stored in a client; based on the association relation between the events and the services, generating an association data table by corresponding the event information of each event with the dynamic link library information of at least one service, and storing the association data table into a database; inquiring each associated data table in a database based on the service identifiers, determining at least one event corresponding to each service identifier, and generating configuration data of each service identifier; the configuration data is sent to the client, 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.
Drawings
In order to more clearly illustrate the technical solution of the exemplary embodiments of the present invention, a brief description is given below of the drawings required for describing the embodiments. It is obvious that the drawings presented are only drawings of some of the embodiments of the invention to be described, and not all the drawings, and that other drawings can be made according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a method for associating services with an event according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a service association system for an event according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a client executing service according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a service association device for an event 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 invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flow chart of a service association method of an event, which is provided in an embodiment of the present invention, and the embodiment is applicable to a situation where a user needs to associate a user 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 method is applied to an interface management platform, and the method may be executed by a service association device of the event, where the device may be implemented by hardware and/or software, and where the device is configured on the interface management platform, and the method specifically includes the following steps:
s110, acquiring event information of each event.
Wherein, the event refers to actions preset by the client and capable of being identified and responded, such as registering, charging, inquiring medical advice, inquiring medical image report or inquiring diagnosis report, and the client refers to an application program capable of running or calling an embedded browser. The event information includes at least an event name or an event identification, etc. to facilitate distinguishing between 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 event information is the local data preset by the target user, the event information of each event is called; and if the event information is the data stored in the client preset by the target user, receiving the event information sent by the client.
S120, obtaining dynamic link library information of at least one service stored in the client.
Where a service refers to a service that requires interaction with a hardware device to accomplish 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 function calls in a module and actual functions in a library module together in a link process, so that the operating system calls functions which do not belong to executable codes of the operating system according to the dynamic link library information, and the purpose of realizing service through hardware equipment is achieved. The dynamic link 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 exemplary, the dynamic link library information corresponding to the print service may be a "print. Dll" file, and the dynamic link library information corresponding to the card swiping service may be a "swipe. Dll" file. 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 can acquire the dynamic link library information of the business stored in the client when correlating the event with the business. In this embodiment, for the encapsulation of the dynamic link library information, the client may implement the execution of the service corresponding to the triggered event based on the chromoum kernel encapsulation technology. The chromoum kernel encapsulation technology uses modern chrome browsers and is also in constant upgrade maintenance. Specifically, the package of dynamic link library information uses the Chromium kernel package technique the NET platform component library CEFSharp, located at CefSharp.
Optionally, the event information includes an event identifier, an event name, whether the event is asynchronously executed 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 deposit path.
The event identifier is used for identifying different events, the event identifier corresponding to the registered event is 990001, the event identifier corresponding to the query diagnosis report is 990002, the time corresponding to the query doctor's advice is 990003, and the event identifier corresponding to the query medical image report is 990004. Whether the event is asynchronously executed refers to whether the execution of other events is allowed after the event is executed and when the feedback result of the event is not obtained yet, specifically, if the event is asynchronously executed, it indicates that other events can be executed in parallel when the event is executed, and if the event is not asynchronously executed, it indicates that when the event is executed, the execution of other events is allowed after waiting for the feedback result of the event. Whether an event is disabled refers to whether execution of the event is blocked. The service name, dynamic link library identification, or dynamic link library name is used to identify different dynamic link library information. The function name entry refers to the name of the external function called by the dynamic link library, and the deposit path refers to the entry address for storing the external function.
In this embodiment, by acquiring the event identifier, the event name, whether the event is asynchronously executed and whether the event is disabled, 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, the specific event and the service information are acquired, so that the accurate association of the event and the service is realized.
S130, based on the association relation between the events and the services, generating an association data table by corresponding the event information of each event and the dynamic link library information of at least one service, and storing the association data table into a database.
The association relation between the event and the service refers to the corresponding service to be executed when the client detects the occurrence of the event. For example, if the print service needs to be executed after the diagnostic report event is queried, the relationship between the diagnostic report event and the print service is queried, if the print service needs to be executed after the registration event, the relationship between the registration event and the print service is queried, and if the card swiping service needs to be executed after the charging event, the relationship between the charging event and the card swiping service is queried. It should be noted that, one service may have an association relationship with a plurality of events at the same time, for example, if a registration event and a charging event both need to execute a print service, then the print service has an association relationship with the registration event and the charging event at the same time. Event information and business information corresponding to each association relation are stored in an association data table, namely a plurality of association relation data are stored in the association data table.
Optionally, based on the association relation between the events and the services, generating an association data table by corresponding the event information of each event with the dynamic link library information of at least one service includes: according to the incidence relation between the event and the service, forming an incidence data table by event information of the event with the incidence relation and 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 event identification of the event, dynamic link library names of the incidence service, function name entries and storage paths, and the event information table comprises event names, whether the event is asynchronously executed and whether the event is forbidden.
The dynamic link library information table is used for storing the event identification of the associated event and the dynamic link library information of the service, and the event information table is used for storing the 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, wherein 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 is stored in the fields. The description of the fields is shown in table 1, wherein the codes represent the corresponding numbers of each dynamic link library information table, the event ID represents the event identification, the DLL name represents the dynamic link library name, and the field type refers to the data type of the data stored in the field.
TABLE 1
Field name Meaning of field Field type
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 storage path varchar(64)
The event information of each event may generate a corresponding event information table including an event name field, an event asynchronous execution field, and an event disable field, as shown in table 2. In table 2, the codes represent 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 of 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 of the dynamic link information table.
TABLE 2
Field name Meaning of field Field type
ID Encoding smallint
EVENT_NAME Event name varchar(64)
ASYNC_FLAG Whether or not to execute asynchronously smallint
IS_DEL Whether to disable or not 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 identifiers, determining at least one event corresponding to each service identifier, and generating configuration data of each service identifier.
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. For example, the database stores a data table associated with the printing service and the registration event and a data table associated with the printing service and the charging event, and the corresponding event is queried according to the service identifier of the printing service to be the registration event and the charging event. The configuration data refers to the data which is generated based on the association event determined by the service and contains the dynamic link library information of the service and the event information of the association event. The format of the configuration data may be JSON (JavaScript Object Notation, JS object numbered musical notation) format, so that the client may enable the installation of the corresponding service when the event trigger is detected according to the configuration data. Through configuration data, one service can be mounted to a plurality of events, and flexibility of the system is improved.
Optionally, the configuration data includes a dynamic link library name, a function name entry, a deposit path, an event identification of the corresponding at least one event, an event name, whether the event is asynchronously executed, whether the event is disabled, a service name, and a dynamic link library identification.
Illustratively, both the registration event and the charging event are associated with a print service, the DLL (Dynamic Link Library ) name of the print service is "wind.interface.Account.YB001.dll", and the function name entry is invoke, i.e., invoke the invoke method of the service DLL, the configuration data is as follows, where the event identification of the registration event is "991309" and the event identification of the charging event is "991310":
the dynamic link library information of the service and the event information of at least one associated event are obtained through the formation of the configuration data, so that the mapping of the event and the dynamic link library of the service is realized, and the user can use the function of the corresponding service when generating at least one event.
And S150, sending the configuration data to the client so that when the client detects that any event is triggered, determining and executing the service corresponding to the triggered event based on the configuration data.
The configuration data comprises associated event information and dynamic link library information of a service, and when a client detects that a certain event is triggered, the client searches and extracts the event information of the event from each configuration data to obtain the dynamic link library information corresponding to the event, so that the corresponding service is executed according to the dynamic link library information. The client dynamically loads and executes the service corresponding to the event by the reflection technology of the NET platform according to the path and the method of the C# dynamic link library of the service provided in the configuration data, 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 Assembley object is located in mscorlib. Dll, and the name space is: system. Reflection. The LoadFile method is used for loading the content of the C# dynamic link library file on the appointed path, the method info object is positioned in the mscorlib. Dll, and the name space is as follows: system. Reflection. The Invoke method is used to reflect the method specified in the executing C# dynamic link library.
According to the technical scheme, 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 association relation between the events and the services, generating an association data table by corresponding the event information of each event with the dynamic link library information of at least one service, and storing the association data table into a database; inquiring each associated data table in a database based on the service identifiers, determining at least one event corresponding to each service identifier, and generating configuration data of each service identifier; the configuration data is sent to the client, 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.
Example two
Fig. 2 is a schematic structural diagram of a service association system for an event according to a second embodiment of the present invention, where the present embodiment is applicable to a situation where a user web operation event needs to be associated with a hardware service, and a corresponding association service is executed when the user triggers the event, where 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 association relation between the events and the services, generating an association data table by corresponding the event information of each event with the dynamic link library information of at least one service, and storing the association data table into a database; inquiring each associated data table in a database based on the service identifiers, 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;
a client 220, configured to receive configuration data corresponding to each service sent by the interface management platform 210; when the event is detected to be triggered, based on the event information of the triggered event and the configuration data corresponding to each service, determining the associated service of the triggered event, 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 associated event in the configuration data corresponding to each service is compared based on the event information of the triggered event, so as to determine an associated service of the triggered event, 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, so as to execute the associated service, and as shown in fig. 3, a client loads a corresponding DLL of the event triggered by a user through time sent by an interface management platform and the configuration data of the service, and executes a service action. Illustratively, the client embeds a web browser provided by the CEFSharp class library in the windows window, and registers a web interaction script in the windows window: a browser, register asyncjsobject ("winning", _winningjsobject); the event is distributed in the foreground web page using the registered c# object.
According to the technical scheme of the embodiment, configuration data of each service identifier is generated through the interface management platform and is sent to the client, when an event is detected to be triggered according to the received configuration data corresponding to each service, the client determines 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 mounts a dynamic link library of the associated service so as to execute the associated service, so that the association of an operation event and a service action is managed through the interface management platform, the execution of the associated service of the operation event is realized through the client, the service code use efficiency is improved, and the configurable manageability of the system is improved.
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 the associated service corresponding to the event identifier; correspondingly, the client determines a corresponding event monitor 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 monitor.
Each event identifier corresponds to a unique event monitor, and the event monitor is used for combining the event with a dynamic link library of the event-associated service, and mounting the associated service according to the event identifier of the event. The method for triggering the event monitor OnEvenFire according to the event monitor corresponding to the triggered event can be understood as an event monitoring mechanism, specifically, when the client detects that a certain event is triggered, a dynamic link library of the service associated with the triggered event is mounted, so that the associated service is executed.
Optionally, the client is further configured to register an event monitor based on each event identifier in the configuration data, and store the event identifier and the event monitor in the dictionary table correspondingly; accordingly, the client queries the corresponding event listener from the dictionary table based on the event identification of the current event.
The dictionary table is understood as a data table in a specific format, and is used for correspondingly storing event identifications and event listeners. When the client detects that a certain event is triggered, the event identification of the current triggered event is compared with each event identification in the dictionary table, so that an event monitor corresponding to the current triggered event is determined. By storing the event identification and the event monitor in the dictionary table correspondingly, so that the client determines the corresponding event monitor from the dictionary table according to the event identification of the triggered event, and accurate query of the event monitor is realized.
Example III
Fig. 4 is a schematic structural diagram of a service association device for an event according to a third embodiment of the present invention, where the present embodiment is applicable to a situation where 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 device is configured on an interface management platform, and specifically includes: an event acquisition module 410, a dynamic link library acquisition module 420, an association data table generation module 430, a configuration data generation module 440, and a configuration data transmission module 450.
An event acquisition module 410, configured to acquire event information of each event;
A dynamic link library acquisition module 420, configured to acquire 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 associating event information of each event with 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;
and the configuration data sending module 450 is configured to send the configuration data to the client, 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.
In this embodiment, event information of each event is acquired through 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 associated 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 event and the service through an associated data table generation module, and storing the associated data table into a database; inquiring each associated data table in a database based on the service identifiers through a configuration data generation module, determining at least one event corresponding to each service identifier, and generating configuration data of each service identifier; 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.
Optionally, the event information includes an event identifier, an event name, whether the event is asynchronously executed 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 depositing path.
Optionally, the association data table generating module is specifically configured to form an association data table from event information of an event having an association relationship and dynamic link library information of a service according to the association relationship of the event and the 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 association service, a function name entry and a storage path, and the event information table includes an event identifier, an event name, whether the event is executed asynchronously and whether the event is disabled.
Optionally, the configuration data includes a dynamic link library name, a function name entry, a deposit path, an event identification of the corresponding at least one event, an event name, whether the event is asynchronously executed, whether the event is disabled, a service name, and a dynamic link library identification.
The service association device for the event provided by the embodiment of the invention can execute the service association method for the event 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 above system are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the embodiments of the present invention.
Example IV
Fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. Fig. 5 shows a block diagram of an exemplary electronic device 50 suitable for use in implementing the embodiments of the present invention. The electronic device 50 shown in fig. 5 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 5, the electronic device 50 is embodied in the form of a general purpose computing device. Components of 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 connects the various system components (including the system memory 502 and processing units 501).
Bus 503 represents one or more 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, and not limitation, such architectures include 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 can 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. 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 or write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard disk drive"). Although not shown in fig. 5, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 503 through one or more data medium interfaces. Memory 502 may include at least one program product having a set (e.g., at least one) of program modules 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 example, 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 or some combination of which may include an implementation of a network environment. Program modules 507 typically perform the functions and/or methods of the described embodiments of the invention.
The electronic device 50 may also communicate with one or more external devices 509 (e.g., keyboard, pointing device, display 510, etc.), one or more devices that enable a user to interact with the electronic device 50, and/or any device (e.g., network card, modem, etc.) that enables the electronic device 50 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 511. Also, the electronic device 50 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through a network adapter 512. As shown, the network adapter 512 communicates with 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 connection with electronic device 50, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 501 executes various functional applications and data processing by running a program stored in the system memory 502, for example, implementing the steps of a service association method of an event provided in the present embodiment, and 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 association relation between the events and the services, generating an association data table by corresponding the event information of each event with the dynamic link library information of at least one service, and storing the association data table into a database;
inquiring each associated data table in a database based on the service identifiers, determining at least one event corresponding to each service identifier, and generating configuration data of each service identifier;
and sending the configuration data to the client 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.
Of course, it will be understood by those skilled in the art 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 having stored thereon a computer program which, when executed by a processor, performs the steps of a method for traffic association of events as provided by 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 association relation between the events and the services, generating an association data table by corresponding the event information of each event with the dynamic link library information of at least one service, and storing the association data table into a database;
inquiring each associated data table in a database based on the service identifiers, determining at least one event corresponding to each service identifier, and generating configuration data of each service identifier;
and sending the configuration data to the client 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 computer storage media of embodiments of the invention may take the form of 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. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 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.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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 ++ 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 kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. 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, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (8)

1. A business association method of events, applied to an interface management platform, 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 association relation between the events and the services, generating an association data table by corresponding the event information of each event with the dynamic link library information of at least one service, and storing the association data table into a database;
inquiring each associated data table based on service identifiers in the database, determining at least one event corresponding to each service identifier, and generating configuration data of each service identifier;
The configuration data is sent to a client, 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 event information comprises an event identifier, an event name, whether the event is asynchronously executed or not and whether the event is disabled or not, and 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 storage path;
the generating the association data table by corresponding the event information of each event and the dynamic link library information of at least one service based on the association relation between the event and the service comprises the following steps:
according to the incidence relation between the event and the service, forming an incidence data table by event information of the event with the incidence relation and 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 event identification of the event, dynamic link library name of the incidence service, function name entry and storage path, and the event information table comprises event name, whether the event is asynchronously executed and whether the event is forbidden.
2. The method of claim 1, wherein the configuration data comprises a dynamic link library name, a function name entry, a deposit path, an event identification of the corresponding at least one event, an event name, whether the event is asynchronously executed, whether the event is disabled, a service name, a dynamic link library identification.
3. A business association system for an event, 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 association relation between the events and the services, generating an association data table by corresponding the event information of each event with the dynamic link library information of at least one service, and storing the association data table into a database; inquiring each associated data table in the database based on service identifiers, determining at least one event corresponding to each service identifier, generating configuration data of each service identifier, 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 an 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 event information comprises an event identifier, an event name, whether the event is asynchronously executed or not and whether the event is disabled or not, and 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 storage path;
the generating the association data table by corresponding the event information of each event and the dynamic link library information of at least one service based on the association relation between the event and the service comprises the following steps:
according to the incidence relation between the event and the service, forming an incidence data table by event information of the event with the incidence relation and 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 event identification of the event, dynamic link library name of the incidence service, function name entry and storage path, and the event information table comprises event name, whether the event is asynchronously executed and whether the event is forbidden.
4. The system of claim 3, 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 dynamic link library of associated services corresponding to the event identifier;
Correspondingly, the client determines a corresponding event monitor 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 monitor.
5. The system of claim 4, wherein the client is further configured to register an event listener based on each event identification in the configuration data, and store the event identifications and event listeners in correspondence to the dictionary table;
correspondingly, the client queries a corresponding event listener from the dictionary table based on the event identification of the current event.
6. A service association device for events, 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 generation module 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 with dynamic link library information of at least one service based on the association relation between the event and the service, 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 identifiers, determining at least one event corresponding to each service identifier and generating configuration data of each service identifier;
The configuration data sending module is used for sending the configuration data to the client so that the client can determine and execute the service corresponding to the triggered event based on the configuration data when detecting that any event is triggered;
the associated data table generation module is specifically configured to:
the event information comprises an event identifier, an event name, whether the event is asynchronously executed or not and whether the event is disabled or not, and 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 storage path;
the associated data table generation module is specifically configured to:
according to the incidence relation between the event and the service, forming an incidence data table by event information of the event with the incidence relation and 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 event identification of the event, dynamic link library name of the incidence service, function name entry and storage path, and the event information table comprises event identification, event name, whether the event is asynchronously executed and whether the event is forbidden.
7. An electronic device, the electronic device comprising:
One or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of traffic association of events as recited in claims 1-2.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a service association method for events as claimed in claims 1-2.
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 CN112364109A (en) 2021-02-12
CN112364109B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114995816A (en) * 2022-06-24 2022-09-02 中电金信软件有限公司 Business process configuration method and device, electronic equipment and readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7779421B2 (en) * 2005-06-30 2010-08-17 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
US20180366221A1 (en) * 2017-06-13 2018-12-20 Radicalogic Technologies Inc. Dba Rl Solutions Platform for context based syndromic surveillance
US10885079B2 (en) * 2018-09-19 2021-01-05 Salesforce.Com, Inc. Voice-activated events management system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
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
"Study on Complex Event Processing for CPS: An Event Model Perspective";Yuying Wang;《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 $31.00 © 2014 IEEE DOI 10.1109/UIC-ATC-ScalCom.2014.132 301 2014 IEEE 11th Intl Conf on Ubiquitous Intelligence & Computing and 2014 IEEE 11th Intl Conf on Autonomic & Trusted Computing and 2014 IEEE 14th Intl Conf on Scalable Computing and Communications and Its Associated Workshops 304 305 Computing and 2014 IEEE 14th Intl Conf on Scalable Computing and Communications and Associated Symposia/Workshops》;第305-310页 *
"基于信息系统平台的线上工作流定制的设计与实现";袁言 等;《土木建筑工程信息技术》;第119-122页 *

Also Published As

Publication number Publication date
CN112364109A (en) 2021-02-12

Similar Documents

Publication Publication Date Title
CN110096338B (en) Intelligent contract execution method, device, equipment and medium
CN110062043B (en) Service management method, service management device, storage medium, and electronic device
US11550599B2 (en) Method and apparatus for running applet
CN109194606B (en) Attack detection system, method, computer device and storage medium
CN110704325B (en) Data processing method and device, computer storage medium and electronic equipment
CN112364109B (en) Event business association method, system, device, electronic equipment and storage medium
CN111241180A (en) Information processing method, device, equipment and storage medium
CN113641354A (en) Service data processing method and device, electronic equipment and storage medium
CN109165372A (en) A kind of webpage loading method, device, equipment and storage medium
CN112799760A (en) Form rendering method and device
CN109299124A (en) Method and apparatus for more new model
CN113079064A (en) Pressure detection method and device and electronic equipment
CN110045952B (en) Code calling method and device
CN112579632A (en) Data verification method, device, equipment and medium
CN112039975A (en) Method, device, equipment and storage medium for processing message field
CN111414263A (en) Information processing method, device, server and storage medium
CN112261072B (en) Service calling method, device, equipment and storage medium
CN113238815B (en) Interface access control method, device, equipment and storage medium
CN114205156A (en) Message detection method and device for tangent plane technology, electronic equipment and medium
CN111741046B (en) Data reporting method, data acquisition method, device, equipment and medium
CN114490266A (en) Data acquisition method, device, equipment and storage medium
CN113919310A (en) Short message content determination method and device, electronic equipment and storage medium
CN108363598A (en) Management method/system, medium and the electronic equipment of virtual long desktop access
CN114219643A (en) Transaction calling method, device, equipment and storage medium
CN112596824A (en) Information interaction method and device, electronic equipment and storage medium

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