Disclosure of Invention
The embodiment of the invention provides a processing method and device for interface calling abnormity based on an information integration platform, and aims to solve the problem that in the prior art, when the interface of a service system is called abnormally, system maintenance personnel cannot find the abnormal condition in time.
In order to achieve the above object, the embodiments of the present invention provide the following technical solutions:
in a first aspect, a method for handling an exception for an interface call based on an information integration platform includes:
starting a service interaction process based on the information integration platform, and reading configuration information called by an interface into a memory by an engine instance;
when a corresponding message triggers the service interaction flow, the engine instance executes a processing flow according to the configuration information called by the interface;
if the target interface is executed and the interface calling is abnormal, the engine instance reads preset calling abnormal processing configuration information and calls the mail engine to send corresponding preset notification content to the corresponding platform group object.
Further, the condition of the abnormal interface call comprises the overtime of the interface call; the preset calling exception handling configuration information comprises a configuration item for sending overtime notification content;
and for the condition that the interface call is overtime, reading preset call exception handling configuration information by the engine instance, selecting and sending an overtime notification content item from the call exception handling configuration information by the call mail engine, and sending the overtime notification content item to the corresponding platform group object.
Further, the condition that the interface call is abnormal also comprises that the interface can be normally called but the return value of the interface does not accord with the expected value; the preset calling exception handling configuration information also comprises an interface return value exception handling item;
and for the condition that the interface can be normally called but the interface return value is not accordant with the expected value, the engine instance reads preset calling exception processing configuration information, reads and judges a conditional expression according to the configuration of the interface return value exception processing item, replaces a variable value with the return value of the interface to perform expression satisfaction judgment, and calls the mail engine to send the notification content of the configuration to the corresponding platform group object when the conditional expression is not satisfied.
Further, for the condition that the interface can be normally called but the interface return value is not in line with the expected value, when the mail engine is called to send the configured notification content to the corresponding platform group object, the message record is added to the established abnormal interaction log, and the message presents an alarm style on the monitoring page of the information integration platform.
Further, the alarm pattern adopts a red field display pattern and/or a flashing pattern.
Further, the information integration platform generates a graphical interface; the access to the service system interface in the service interaction process is realized through graphical interface operation.
In a second aspect, an apparatus for handling an exception for an interface call based on an information integration platform includes:
the interface calling starting module is used for starting a service interaction process based on the information integration platform, and the engine instance reads the configuration information called by the interface into the memory;
the interface calls the executive module, when there is correspondent news that triggers the said business interaction flow, the engine example carries out the processing flow according to the configuration information that the said interface calls;
and the interface call exception handling module reads preset call exception handling configuration information and calls a mail engine to send corresponding preconfigured notification content to a corresponding platform group object if the target interface is executed and the interface call is abnormal.
In a third aspect, an information integration platform monitoring server is characterized by comprising:
the interface calling exception handling configuration module is used for setting a processing mode when the interface calling in the service interaction process is abnormal by an administrator, so that when the situation that the target interface is executed and the interface calling is abnormal occurs, the engine instance reads preset calling exception handling configuration information and calls a mail engine to send corresponding preset notification content to a corresponding platform group object;
and the abnormal alarm display module is used for receiving the message sent by the service system and presenting the message in an alarm mode when the interface can be normally called but the return value of the interface is not accordant with the expected value.
In a fourth aspect, a service system terminal includes a memory and a processor, where the memory stores a computer program, and is characterized in that the processor implements the steps of the above method when executing the computer program.
In a fifth aspect, a computer-readable storage medium, on which a computer program is stored, is characterized in that the computer program realizes the steps of the above-mentioned method when being executed by a processor.
The invention has at least the following beneficial effects:
when a corresponding message triggers the service interaction flow, the engine instance executes a processing flow according to the configuration information called by the interface; if the target interface is executed and the interface calling is abnormal, the engine instance reads preset calling abnormal processing configuration information and calls a mail engine to send corresponding notification content configured in advance to a corresponding platform group object; therefore, managers or technicians are automatically informed to know in time to adjust, the operation and maintenance capacity is greatly improved, and the influence on the service is reduced.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The processing method for the interface call exception based on the information integration platform can be applied to the application environment shown in fig. 1.
The service system is only butted with the integrated platform as an end point, the integrated platform completes the butt joint process with other service systems, the decoupling and interaction configurability of the interaction between the service systems are realized, and the tracking monitoring and alarming of the interaction process between the service systems are realized. The access to the business system interface is realized through an integrated platform of a graphical interface.
In an embodiment, as shown in fig. 2, a method for handling an interface call exception based on an information integration platform is provided, which is described by taking an example that the method is applied to a service system terminal in fig. 1, and includes the following steps:
s1: starting a service interaction process based on the information integration platform, and reading configuration information called by an interface into a memory by an engine instance;
s2: when a corresponding message triggers the service interaction flow, the engine instance executes a processing flow according to the configuration information called by the interface;
s3: if the target interface is executed and the interface calling is abnormal, the engine instance reads preset calling abnormal processing configuration information and calls the mail engine to send corresponding preset notification content to the corresponding platform group object.
Therefore, if the target interface is executed and the interface calling is abnormal, the management personnel or the technical personnel can be automatically informed, so that the management personnel or the technical personnel can know and adjust in time, the operation and maintenance capability is greatly improved, and the influence on the service is reduced.
The abnormal situations of the interface are divided into two types, one is interface calling failure, such as calling overtime, the other is that although the interface can be successfully called, the return result of the interface is not in an expected range, and the interface is considered to be caused incompletely when the interface program is developed, so that the logic error can be notified to a manager or a technician.
Therefore, if the target interface is executed and the interface call is abnormal as described in the above method, the following processes are respectively processed according to different abnormal types:
the preset calling exception handling configuration information comprises a configuration item for sending overtime notification content; and for the condition that the interface call is overtime, reading preset call exception handling configuration information by the engine instance, selecting and sending an overtime notification content item from the call exception handling configuration information by the call mail engine, and sending the overtime notification content item to the corresponding platform group object.
The preset calling exception handling configuration information also comprises an interface return value exception handling item; and for the condition that the interface can be normally called but the interface return value is not accordant with the expected value, the engine instance reads preset calling exception processing configuration information, reads and judges a conditional expression according to the configuration of the interface return value exception processing item, replaces a variable value with the return value of the interface to perform expression satisfaction judgment, and calls the mail engine to send the notification content of the configuration to the corresponding platform group object when the conditional expression is not satisfied. Further, the message record is added in the established abnormal interaction log, and the message presents an alarm style on a monitoring page of the information integration platform. The alarm mode can adopt a red field display mode, or make the field flash, or flash the red field.
In one embodiment, there is further provided an apparatus for handling an exception to an interface call based on an information integration platform, including the following program modules:
the interface calling starting module is used for starting a service interaction process based on the information integration platform, and the engine instance reads the configuration information called by the interface into the memory;
the interface calls the executive module, when there is correspondent news that triggers the said business interaction flow, the engine example carries out the processing flow according to the configuration information that the said interface calls;
and the interface call exception handling module reads preset call exception handling configuration information and calls a mail engine to send corresponding preconfigured notification content to a corresponding platform group object if the target interface is executed and the interface call is abnormal.
For specific limitations of the above apparatus, reference may be made to the above limitations of the method for handling an exception for an interface call based on an information integration platform, and details are not described here again. The various modules in the above-described apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be stored in a memory of a computer device in a software form, so that a processor can call and execute the corresponding operations of the modules.
In one embodiment, there is also provided an information integration platform monitoring server, including the following program modules:
the interface calling exception handling configuration module is used for setting a processing mode when the interface calling in the service interaction process is abnormal by an administrator, so that when the situation that the target interface is executed and the interface calling is abnormal occurs, the engine instance reads preset calling exception handling configuration information and calls a mail engine to send corresponding preset notification content to a corresponding platform group object;
and the abnormal alarm display module is used for receiving the message sent by the service system and presenting the message in an alarm mode when the interface can be normally called but the return value of the interface is not accordant with the expected value.
Taking a business interaction flow in the hospital information management system as an example (specifically taking a writing flow of transfusion cost as an example), a certain interface of the hospital doctor workstation is called. The configuration of the interface of the hospital doctor workstation is shown in fig. 3, the interface of the exception handling configuration window is shown in fig. 4, the interface which is set to send the mail to the personnel in the platform group when the interface calls overtime or failure is shown in fig. 5, and the interface which is set to send the mail to the personnel in the platform group when the interface calls overtime or failure or the interface return value is not within the judgment condition range is shown in fig. 6.
After the interactive process is started, the engine instance reads the configuration information called by the interface into the memory.
When a corresponding message triggers the blood transfusion billing flow, the engine instance performs execution processing according to the flow configuration process:
when the interface is executed and the interface calls timeout, the engine instance reads the calling exception processing configuration information, and calls the mail engine to send the configured notification content to the corresponding platform group object when the configuration of sending the timeout notification is found.
When the interface is executed and can be normally called, the engine instance reads and calls the abnormal processing configuration information, when the interface call is found but the interface return value is not in accordance with the configuration of the expected value, the judgment condition expression is read, the return value of the interface replaces the variable value to make expression satisfaction judgment, and when the interface call is not in accordance with the configuration of the expected value, the mail engine is called to send the notification content of the configuration to the corresponding platform group object. And the message is made to present a red alarm pattern on the monitoring page by setting the message as an abnormal interaction log, so that the number of abnormal records is increased to draw the attention of the manager.
By the embodiment, the operation and maintenance cost can be effectively reduced, the timeliness of problem handling is improved, and the operation condition of the service system interface is mastered.
In one embodiment, a business system terminal is further provided, which includes a memory and a processor, where the memory stores a computer program, and relates to all or part of the processes in the method of the above embodiment.
In one embodiment, a computer-readable storage medium having a computer program stored thereon is provided, which relates to all or part of the processes of the method of the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.