CN114090082B - Method and system for calling external interface by integrating rule engine - Google Patents

Method and system for calling external interface by integrating rule engine Download PDF

Info

Publication number
CN114090082B
CN114090082B CN202111439057.8A CN202111439057A CN114090082B CN 114090082 B CN114090082 B CN 114090082B CN 202111439057 A CN202111439057 A CN 202111439057A CN 114090082 B CN114090082 B CN 114090082B
Authority
CN
China
Prior art keywords
request
information
return
interface
rule engine
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
CN202111439057.8A
Other languages
Chinese (zh)
Other versions
CN114090082A (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.)
Guangzhou Chenqi Travel Technology Co Ltd
Original Assignee
Guangzhou Chenqi Travel Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Chenqi Travel Technology Co Ltd filed Critical Guangzhou Chenqi Travel Technology Co Ltd
Priority to CN202111439057.8A priority Critical patent/CN114090082B/en
Publication of CN114090082A publication Critical patent/CN114090082A/en
Application granted granted Critical
Publication of CN114090082B publication Critical patent/CN114090082B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method and a system for calling an external interface of an integrated rule engine, wherein the method comprises the following steps: acquiring request information for calling an external interface; intercepting request information, and analyzing request parameters from the request information; transmitting the request parameters to a rule engine, and running script codes for unifying the request differences by the rule engine; the rule engine converts the request parameters based on the script code to obtain calling information; transmitting the calling information to an interface management platform; after the call request passes, a new external interface is successfully added. The invention converts the hard decoding work of the interface management platform into the soft decoding work running on the rule engine, so that the interface management platform can concentrate on the management work of the interface, thereby enabling the external interface to be invoked more quickly and with lower cost.

Description

Method and system for calling external interface by integrating rule engine
Technical Field
The invention relates to the technical field of methods for calling external interfaces, in particular to a method and a system for calling external interfaces by integrating a rule engine.
Background
In the process of working and developing in the field of computers and the internet, various systems are required to be used for completing various tasks in a company and statistically storing various company data, such as oa systems, operation and maintenance systems, work order systems, demand management systems and the like. Some systems may be self-developed by companies, some may use external open source frameworks, or use external company services to keep statistics of relevant data of the company. When using external services, frequent interface read and write operations may be required.
The inventor finds out after research and practice in the field that when the external interface is called, the interface management platform needs to process the call of the external interface through hard coding operation in the prior art, so that every new interface is added, hard coding operation needs to be performed on the interface management platform, and when the new interface is added on the interface management platform, the cost is higher and the speed is slower.
Disclosure of Invention
In order to overcome the technical defects of high calling cost and low speed of the existing external interfaces, the invention provides a method and a system for calling the external interfaces, which can quickly and cheaply add the external interfaces and integrate a rule engine.
In order to solve the problems, the invention is realized according to the following technical scheme:
in a first aspect, the present invention discloses a method for integrating a rule engine to invoke an external interface, comprising the steps of:
acquiring request information for calling an external interface;
intercepting request information, and analyzing request parameters from the request information;
Transmitting the request parameters to a rule engine, and running script codes for unifying the request differences by the rule engine;
the rule engine converts the request parameters based on the script code to obtain calling information;
transmitting the calling information to an interface management platform;
after the call request passes, a new external interface is successfully added.
As a1 st preferred implementation of the first aspect, the method further includes the steps of:
acquiring ending information of the external interface call ending;
intercepting end information, and analyzing a return parameter from the end information;
Transmitting the return parameters to a rule engine, and running script codes for unifying the return differences by the rule engine;
The rule engine converts the return parameters based on the script code to obtain return information;
and transmitting the return information to the interface management platform to finish the call of the external interface.
As a2 nd preferred implementation of the first aspect, after the obtaining the request information for calling the external interface, the method further includes:
and configuring a plurality of external url addresses related to calling the external interface for the interface management platform, wherein the external url addresses comprise jump addresses corresponding to various request conditions and return conditions.
As a 3 rd preferred implementation of the first aspect, after configuring a plurality of external url addresses related to invoking an external interface for the interface management platform, the method further includes:
script code is written on the rules engine for unified parameter transformations for each external interface.
As a 4 th preferred implementation of the first aspect, the script code includes mask parameter translation code, unified request difference code, unified return difference code, unified signature code, and proxy call code.
In a second aspect, the invention discloses a system for integrating a call external interface of a rule engine, which comprises a request acquisition module, a request analysis module, a unified request module, a first conversion module, an information transmission module and an interface adding module, wherein:
the request acquisition module is used for acquiring request information for calling an external interface;
the request analysis module is used for intercepting request information and analyzing request parameters from the request information;
The unified request module is used for transmitting the request parameters to the rule engine, and the rule engine runs script codes of unified request differences;
The first conversion module is used for enabling the rule engine to convert the request parameters based on the script codes so as to obtain calling information;
The information transmission module is used for transmitting the calling information to the interface management platform;
The interface adding module is used for successfully adding a new external interface after the call request passes.
As a1 st preferred implementation of the second aspect, the system further includes a return acquisition module, a return analysis module, a unified return module, a second conversion module, and an interface removal module, where:
the return acquisition module is used for acquiring the ending information of the external interface call ending;
The return analysis module is used for intercepting the end information and analyzing return parameters from the end information;
The unified return module is used for transmitting the return parameters to the rule engine, and the rule engine runs script codes for unifying the return differences;
the second conversion module is used for enabling the rule engine to convert the return parameters based on the script codes so as to obtain return information;
the interface removing module is used for transmitting the return information to the interface management platform so as to finish the calling of the external interface.
As a2 nd preferred implementation of the second aspect, the method further includes:
The platform configuration module is used for configuring a plurality of external url addresses related to calling the external interface for the interface management platform, wherein the external url addresses comprise jump addresses corresponding to various request conditions and return conditions.
As a 3 rd preferred implementation of the second aspect, the method further includes:
And the script writing module is used for writing script codes of unified parameter conversion about each external interface on the rule engine.
As a 4 th preferred implementation of the second aspect, the script code includes mask parameter conversion code, unified request difference code, unified return difference code, unified signature code, and proxy call code.
Compared with the prior art, the invention has the beneficial effects that:
The invention separates the hard decoding work of the interface management platform, transfers the hard decoding work to the rule engine, and makes the rule engine perform soft decoding work through the corresponding script code, so that the rule engine realizes the unification of interface call time difference, thereby realizing the unification call of different external interfaces, the interface management platform can concentrate on the work of processing interface management, such as the work of general modules of interface error fusing, degradation, management and the like, thereby reducing the coupling of the interface management platform and business rules, further improving the processing efficiency of the interface management platform, enabling the external interface to have faster speed in call, relatively reducing the complexity of the interface management platform, and reducing the overall cost.
Drawings
The invention is described in further detail below with reference to the attached drawing figures, wherein:
FIG. 1 is a flow diagram of a method of invoking an external interface of an integrated rules engine of the present invention;
FIG. 2 is a schematic diagram of the architecture of the system of the present invention for integrating a rule engine to invoke an external interface.
Detailed Description
Preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the preferred embodiments of the present disclosure are illustrated in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The term "comprising" and variations thereof as used herein means open ended, i.e., "including but not limited to. The term "or" means "and/or" unless specifically stated otherwise. The term "based on" means "based at least in part on". The terms "one example embodiment" and "one embodiment" mean "at least one example embodiment. The term "another embodiment" means "at least one additional embodiment". The terms "first," "second," and the like, may refer to different or the same object. Other explicit and implicit definitions are also possible below.
The access device and the server may be connected directly or indirectly by wired or wireless communication. The access device may be a terminal or a server. The access device has a target application running thereon. The target application is an application program capable of initiating a data request to a server, such as a social application, a payment application, a gaming application, and the like. The server may be an application server for providing a service to the target application, or may be a proxy server for distinguishing the application server from the application server corresponding to the target application. The server is used for identifying whether each access device belongs to a malicious device or not, and intercepting data messages from the malicious device. When the server is a proxy server, the proxy server forwards data messages not belonging to the malicious device to the application server. The terminal may be a desktop terminal or a mobile terminal, and the mobile terminal may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, or the like, but is not limited thereto. The server and the server can be independent physical servers, can be a server cluster or a distributed system formed by a plurality of physical servers, and can also be cloud servers for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligent platforms.
Example 1
In a first aspect, as shown in fig. 1, an embodiment of the present invention discloses a method for integrating a rule engine to call an external interface, including the following steps:
Step S1: and acquiring request information for calling the external interface.
Specifically, when the external interface needs to be called, an operator sends request information for calling the external interface to the server, so that the server can acquire the request information.
As a preferred implementation, further comprising:
Substep S1.1: and configuring a plurality of external url addresses related to calling the external interface for the interface management platform, wherein the external url addresses comprise jump addresses corresponding to various request conditions and return conditions.
Substep S1.2: script code is written on the rules engine for unified parameter transformations for each external interface.
Specifically, the server pre-processes the interface management platform and the rule engine in advance, so that the interface management platform and the rule engine can realize soft decoding through the rule engine, and the interface management platform calls the external interface in a jumping mode.
The script code comprises mask parameter conversion code, unified request difference code, unified return difference code, unified signature code and proxy call code. Some dangerous calls are shielded, and the shielding is based on rules after the shielding parameters are converted; the difference between the request information and the return information is processed uniformly through uniform request difference codes and uniform return difference codes respectively, so that the difference is eliminated; when the former is needed to be added, unified signature codes are processed in a unified way so as to eliminate the differentiation of signature requests among different external interface types; when the proxy needs to be called, the rule engine calls codes through the proxy to realize the calling of different associated codes.
Step S2: the request information is intercepted, and request parameters are analyzed from the request information.
Specifically, the server intercepts request information, analyzes specific request parameters from the request information, wherein the request parameters comprise the number and the type of external interfaces and the purpose of the external interfaces, and the request parameters are generally not communicated and cannot be requested to an interface management platform due to different protocols among the external interfaces, so that the request parameters are independently taken out after being analyzed so as to facilitate the subsequent differentiated uniform processing.
Step S3: the request parameters are transmitted to a rules engine that runs script code that unifies the request differences.
Specifically, after the server independently takes out the request parameters, the request parameters are transmitted to a rule engine, and the rule engine operates corresponding script codes about unified request differences.
Step S4: the rule engine converts the request parameters based on the script code to obtain call information.
Specifically, the rule engine performs adaptive conversion on the request parameters based on the script code of the unified request difference to obtain universal call information in a unified format.
Step S5: and transmitting the call information to the interface management platform.
Specifically, the rule engine transmits the call information directly to the interface management platform.
Step S6: after the call request passes, a new external interface is successfully added.
Specifically, the interface management platform judges the safety of the call information based on the call information, and if the call content of the call information is safe, a new external interface is added based on the call information through the request, so that the new external interface can realize corresponding read-write operation.
The method also comprises the following steps:
step S7: and acquiring ending information of the external interface call ending.
Specifically, after the external interface call is finished, an operator sends corresponding information about the external interface call to the server, namely finishing information.
Step S8: intercepting end information, and analyzing a return parameter from the end information.
Specifically, the server intercepts the end information, analyzes the return parameters from the end information, and the return parameters include the type, serial number and other relevant information of the specific external interface pointing to the specific external interface of the call end.
Step S9: the return parameters are transmitted to the rules engine, which runs script code that unifies the return differences.
Specifically, the server transmits the return parameters obtained independently after analysis to the rule engine, so that the rule engine runs script codes for uniformly returning the differences.
Step S10: the rule engine converts the return parameters based on the script code to obtain return information.
Specifically, the rule engine unifies the differentiation of the return parameters based on the corresponding script code, and the return parameters are converted into the return information common to the interface management platform in the unified format.
Step S11: and transmitting the return information to the interface management platform to finish the call of the external interface.
Specifically, the rule engine directly transmits the return information to the interface management platform, and after the interface management platform acquires the return information, the call of the external interface corresponding to the return information is ended.
In summary, the hard decoding work of the interface management platform is separated and transferred to the rule engine, and the rule engine performs soft decoding work through the corresponding script code, so that the rule engine realizes unification of interface call time difference, thereby realizing unification call of different external interfaces, the interface management platform can concentrate on processing the work of interface management, such as general module work of interface error fusing, degradation, management and the like, thereby reducing the coupling of the interface management platform and business rules, further improving the processing efficiency of the interface management platform, enabling the external interface to have faster speed in call, relatively reducing the complexity of the interface management platform, and reducing the overall cost.
For other steps in the method for calling external interfaces for integrating a rule engine described in this embodiment, refer to the prior art.
Example 2
As shown in fig. 2, in a second aspect, the present invention discloses a system for integrating a call external interface of a rule engine, which includes a request acquisition module M1, a request analysis module M2, a unified request module M3, a first conversion module M4, an information transmission module M5, and an interface adding module M6, wherein:
the request acquisition module M1 is used for acquiring request information for calling an external interface;
the request analysis module M2 is used for intercepting request information and analyzing request parameters from the request information;
The unified request module M3 is used for transmitting the request parameters to a rule engine, and the rule engine runs script codes of unified request differences;
the first conversion module M4 is used for enabling the rule engine to convert the request parameters based on the script codes so as to obtain calling information;
The information transmission module M5 is used for transmitting the calling information to the interface management platform;
the interface adding module M6 is configured to successfully add a new external interface after the call request passes.
The system further comprises a return acquisition module M7, a return analysis module M8, a unified return module M9, a second conversion module M10 and an interface removal module M11, wherein:
the return acquisition module M7 is used for acquiring the ending information of the external interface call ending;
The return analysis module M8 is used for intercepting the end information and analyzing return parameters from the end information;
The unified return module M9 is used for transmitting the return parameters to the rule engine, and the rule engine runs script codes of unified return differences;
The second conversion module M10 is configured to cause the rule engine to convert the return parameter based on the script code to obtain return information;
the interface removing module M11 is configured to transmit the return information to the interface management platform to end the call of the external interface.
As a preferred implementation, further comprising:
The platform configuration module M12 is configured to configure a plurality of external url addresses related to calling the external interface for the interface management platform, where the external url addresses include jump addresses corresponding to each request condition and each return condition.
The script writing module M13 is configured to write script codes related to unified parameter conversion of each external interface on the rule engine.
In summary, when the system for calling the external interface of the integrated rule engine according to the embodiment is running, all the steps of the method for calling the external interface of the integrated rule engine according to embodiment 1 can be implemented, so as to implement quick and low-cost calling of the external interface.
Other structures of the system for calling external interfaces for integrating rule engines described in this embodiment are referred to in the prior art.
Example 3
The invention also discloses an electronic device, at least one processor and a memory in communication connection with the at least one processor, wherein the memory stores instructions executable by the at least one processor, the instructions are executed by the at least one processor, and the at least one processor executes the instructions, specifically realizes the following steps: acquiring request information for calling an external interface; intercepting request information, and analyzing request parameters from the request information; transmitting the request parameters to a rule engine, and running script codes for unifying the request differences by the rule engine; the rule engine converts the request parameters based on the script code to obtain calling information; transmitting the calling information to an interface management platform; after the call request passes, a new external interface is added successfully; acquiring ending information of the external interface call ending; intercepting end information, and analyzing a return parameter from the end information; transmitting the return parameters to a rule engine, and running script codes for unifying the return differences by the rule engine; the rule engine converts the return parameters based on the script code to obtain return information; and transmitting the return information to the interface management platform to finish the call of the external interface.
Example 4
The invention also discloses a storage medium storing a computer program which, when executed by a processor, realizes the following steps: acquiring request information for calling an external interface; intercepting request information, and analyzing request parameters from the request information; transmitting the request parameters to a rule engine, and running script codes for unifying the request differences by the rule engine; the rule engine converts the request parameters based on the script code to obtain calling information; transmitting the calling information to an interface management platform; after the call request passes, a new external interface is added successfully; acquiring ending information of the external interface call ending; intercepting end information, and analyzing a return parameter from the end information; transmitting the return parameters to a rule engine, and running script codes for unifying the return differences by the rule engine; the rule engine converts the return parameters based on the script code to obtain return information; and transmitting the return information to the interface management platform to finish the call of the external interface.
The present disclosure may be methods, apparatus, systems, and/or computer program products. The computer program product may include a computer readable storage medium having computer readable program instructions embodied thereon for performing aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: portable computer disks, hard disks, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static Random Access Memory (SRAM), portable compact disk read-only memory (CD-ROM), digital Versatile Disks (DVD), memory sticks, floppy disks, mechanical coding devices, punch cards or in-groove structures such as punch cards or grooves having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media, as used herein, are not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., optical pulses through fiber optic cables), or electrical signals transmitted through wires.
The computer readable program instructions described herein may be downloaded from a computer readable storage medium to a respective computing/processing device or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmissions, wireless transmissions, routers, firewalls, switches, gateway computers and/or edge servers. The network interface card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium in the respective computing/processing device.
The computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as SMALLTALK, C ++, java, or the like and conventional procedural programming languages, such as the "C" language or similar programming languages. The computer readable program instructions may be executed 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). In some embodiments, aspects of the present disclosure are implemented by personalizing electronic circuitry, such as programmable logic circuitry, field Programmable Gate Arrays (FPGAs), or Programmable Logic Arrays (PLAs), with state information of computer readable program instructions, which can execute the computer readable program instructions.
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer readable program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable medium having the instructions stored therein includes an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The embodiments of the present disclosure have been described above, the foregoing description is illustrative, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the improvement of technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (8)

1. A method for integrating a call to an external interface of a rules engine, comprising the steps of:
acquiring request information for calling an external interface;
intercepting request information, and analyzing request parameters from the request information;
Transmitting the request parameters to a rule engine, and running script codes for unifying the request differences by the rule engine;
the rule engine converts the request parameters based on the script code to obtain calling information;
transmitting the calling information to an interface management platform;
after the call request passes, a new external interface is added successfully;
acquiring ending information of the external interface call ending;
intercepting end information, and analyzing a return parameter from the end information;
Transmitting the return parameters to a rule engine, and running script codes for unifying the return differences by the rule engine;
The rule engine converts the return parameters based on the script code to obtain return information;
and transmitting the return information to the interface management platform to finish the call of the external interface.
2. The method for integrating a rule engine to call an external interface according to claim 1, further comprising, after obtaining the request information for calling the external interface:
and configuring a plurality of external url addresses related to calling the external interface for the interface management platform, wherein the external url addresses comprise jump addresses corresponding to various request conditions and return conditions.
3. The method for integrating rules engine for calling external interfaces according to claim 2, wherein after the configuring a plurality of external url addresses related to calling external interfaces for the interface management platform, further comprises:
script code is written on the rules engine for unified parameter transformations for each external interface.
4. A method of invoking an external interface for an integrated rules engine according to claim 3, wherein:
the script code includes mask parameter translation code, unified request difference code, unified return difference code, unified signature code, and proxy call code.
5. The system for calling the external interface of the integrated rule engine is characterized by comprising a request acquisition module, a request analysis module, a unified request module, a first conversion module, an information transmission module and an interface adding module, wherein:
the request acquisition module is used for acquiring request information for calling an external interface;
the request analysis module is used for intercepting request information and analyzing request parameters from the request information;
The unified request module is used for transmitting the request parameters to the rule engine, and the rule engine runs script codes of unified request differences;
The first conversion module is used for enabling the rule engine to convert the request parameters based on the script codes so as to obtain calling information;
The information transmission module is used for transmitting the calling information to the interface management platform;
the interface adding module is used for successfully adding a new external interface after the call request passes;
The system further comprises a return acquisition module, a return analysis module, a unified return module, a second conversion module and an interface removal module, wherein:
the return acquisition module is used for acquiring the ending information of the external interface call ending;
The return analysis module is used for intercepting the end information and analyzing return parameters from the end information;
The unified return module is used for transmitting the return parameters to the rule engine, and the rule engine runs script codes for unifying the return differences;
the second conversion module is used for enabling the rule engine to convert the return parameters based on the script codes so as to obtain return information;
the interface removing module is used for transmitting the return information to the interface management platform so as to finish the calling of the external interface.
6. The system for integrating the invocation of the external interface of the rules engine of claim 5, further comprising:
The platform configuration module is used for configuring a plurality of external url addresses related to calling the external interface for the interface management platform, wherein the external url addresses comprise jump addresses corresponding to various request conditions and return conditions.
7. The system for integrating the invocation of the external interface of the rules engine of claim 6, further comprising:
And the script writing module is used for writing script codes of unified parameter conversion about each external interface on the rule engine.
8. The system for integrating the call external interface of the rules engine of claim 7, wherein:
the script code includes mask parameter translation code, unified request difference code, unified return difference code, unified signature code, and proxy call code.
CN202111439057.8A 2021-11-29 2021-11-29 Method and system for calling external interface by integrating rule engine Active CN114090082B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111439057.8A CN114090082B (en) 2021-11-29 2021-11-29 Method and system for calling external interface by integrating rule engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111439057.8A CN114090082B (en) 2021-11-29 2021-11-29 Method and system for calling external interface by integrating rule engine

Publications (2)

Publication Number Publication Date
CN114090082A CN114090082A (en) 2022-02-25
CN114090082B true CN114090082B (en) 2024-07-26

Family

ID=80305645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111439057.8A Active CN114090082B (en) 2021-11-29 2021-11-29 Method and system for calling external interface by integrating rule engine

Country Status (1)

Country Link
CN (1) CN114090082B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519254A (en) * 2019-08-21 2019-11-29 科大国创软件股份有限公司 A kind of interactive interfacing protocol fitting method and its system based on script

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808051B (en) * 2010-03-15 2013-06-12 天津威奕达科技有限责任公司 Application integration gateway and control method thereof
US9059939B2 (en) * 2012-02-23 2015-06-16 Infosys Limited End-to-end network service assurance solution
US10171560B2 (en) * 2015-01-05 2019-01-01 International Business Machines Corporation Modular framework to integrate service management systems and cloud orchestrators in a hybrid cloud environment
CN104866383B (en) * 2015-05-29 2018-11-23 北京金山安全软件有限公司 Interface calling method and device and terminal
CN106528185A (en) * 2015-09-09 2017-03-22 阿里巴巴集团控股有限公司 Application interface management method and apparatus
CN108021710B (en) * 2017-12-28 2020-03-24 蜂助手股份有限公司 Dynamic interface conversion method, device, terminal equipment and storage medium
CN110471664A (en) * 2019-06-21 2019-11-19 广州市途讯科技有限公司 A kind of heterogeneous software platform based on OSGi framework unifies interconnection method
CN112738216B (en) * 2020-12-28 2022-09-09 北京金山云网络技术有限公司 Equipment adaptation method, device, equipment and computer readable storage medium
CN112860308A (en) * 2021-01-14 2021-05-28 网宿科技股份有限公司 Configuration method of interface definition, service processing method, server and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519254A (en) * 2019-08-21 2019-11-29 科大国创软件股份有限公司 A kind of interactive interfacing protocol fitting method and its system based on script

Also Published As

Publication number Publication date
CN114090082A (en) 2022-02-25

Similar Documents

Publication Publication Date Title
US11934287B2 (en) Method, electronic device and computer program product for processing data
CN110489310B (en) Method and device for recording user operation, storage medium and computer equipment
CN112351031A (en) Generation method and device of attack behavior portrait, electronic equipment and storage medium
CN112699034B (en) Virtual login user construction method, device, equipment and storage medium
CN114124929A (en) Cross-network data processing method and device
CN118394279B (en) Data processing method, device, storage medium and computer program product based on interceptor
CN115329170A (en) Webpage crawling method, device, equipment and storage medium
CN114579194B (en) Exception handling method and system based on Spring remote call
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
CN117041234A (en) Interaction method of web end and original end and terminal equipment
US20220245080A1 (en) Method for communication of a componentized application, computing device and computer storage medium
CN111158716B (en) Version upgrade calling method and device, computer system and readable storage medium
CN114090082B (en) Method and system for calling external interface by integrating rule engine
US11803786B2 (en) Enterprise integration platform
US11930019B2 (en) Methods and systems for fast-paced dynamic malware analysis
CN113434217B (en) Vulnerability scanning method, vulnerability scanning device, computer equipment and medium
CN115756696A (en) Information processing method, device, equipment and medium
EP2354941A1 (en) Mainframe injection component and method for manipulating data packets communicated between emulators and mainframes
CN111639936A (en) Transaction information acquisition method and device, electronic equipment and readable storage medium
CN112182083A (en) File generation method, device, equipment and storage medium
CN108288135B (en) System compatibility method and device, computer readable storage medium and electronic equipment
CN114978786B (en) Method and device for converting third party interface into system standard interface
CN115525362B (en) Parameter changing method and device based on kernel parameter adjusting platform of operating system
CN114553930B (en) System integration method, device, computer equipment and storage medium
CN116700703B (en) Service processing method, device, 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