CN114090082A - Method and system for calling external interface of integration rule engine - Google Patents

Method and system for calling external interface of integration rule engine Download PDF

Info

Publication number
CN114090082A
CN114090082A CN202111439057.8A CN202111439057A CN114090082A CN 114090082 A CN114090082 A CN 114090082A CN 202111439057 A CN202111439057 A CN 202111439057A CN 114090082 A CN114090082 A CN 114090082A
Authority
CN
China
Prior art keywords
request
return
information
interface
calling
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.)
Pending
Application number
CN202111439057.8A
Other languages
Chinese (zh)
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/CN114090082A/en
Publication of CN114090082A publication Critical patent/CN114090082A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/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)

Abstract

The invention discloses a method and a system for calling an external interface of an integration 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 operating script codes with uniform request differences by the rule engine; the rule engine converts the request parameters based on the script codes to obtain calling information; transmitting the calling information to an interface management platform; and after the call request passes, successfully adding a new external interface. According to the invention, the hard decoding work of the interface management platform is converted 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, and the external interface can be called more quickly and the cost is lower.

Description

Method and system for calling external interface of integration rule engine
Technical Field
The invention relates to the technical field of external interface calling methods, in particular to a method and a system for calling an external interface of an integrated rule engine.
Background
In the field of computers and internet, during the process of work and development, various systems are required to complete various tasks in a company and to statistically store various company data, such as an oa system, an operation and maintenance system, a work order system, a demand management system and the like. Some systems may be company self-research, some may use an external open source framework, or use the services of an external company to perform statistics on the company's relevant data retention. When using external services, frequent interface read and write operations may be required.
After research and practice in the field, the inventor finds that, in the prior art, when an external interface is called, an interface management platform needs to perform hard-coded operation processing on the call of the external interface, so that each time a new interface is added, hard-coded operation needs to be performed on the interface management platform, and thus, when a new interface is added on the interface management platform, the cost is high and the speed is slow.
Disclosure of Invention
In order to overcome the technical defects of high calling cost and low calling speed of the conventional external interface, the invention provides a method and a system for calling the external interface, which can add the external interface quickly and at low cost 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 invention discloses a method for integrating external interfaces called by a rule engine, which 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 operating script codes with uniform request differences by the rule engine;
the rule engine converts the request parameters based on the script codes to obtain calling information;
transmitting the calling information to an interface management platform;
and after the call request passes, successfully adding a new external interface.
As a 1 st preferred implementation of the first aspect, the method further includes the steps of:
acquiring end information of calling end of an external interface;
intercepting the end information, and analyzing a return parameter from the end information;
transmitting the return parameters to a rule engine, and operating the uniform return script codes of the differences by the rule engine;
the rule engine converts the return parameters based on the script codes to obtain return information;
and transmitting the return information to the interface management platform to finish the calling of the external interface.
As a 2 nd preferred implementation of the first aspect, after obtaining the request information for invoking the external interface, the method further includes:
configuring a plurality of external url addresses related to calling the external interfaces for the interface management platform, wherein the external url addresses comprise jump addresses corresponding to various request conditions and return conditions.
As a preferred implementation of the third aspect, after configuring a plurality of external url addresses related to external interface calls for the interface management platform, the method further includes:
script code is written on the rules engine for the transformation of the unified parameters for each external interface.
As a 4 th preferred implementation of the first aspect, the script code includes a masked parameter conversion code, a uniform request difference code, a uniform return difference code, a uniform signature code, and a proxy call code.
In a second aspect, the present invention discloses a system for invoking an external interface of an integrated rule engine, which includes a request acquisition module, a request analysis module, a uniform request module, a first conversion module, an information transmission module, and an interface addition 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 uniform request module is used for transmitting the request parameters to the rule engine, and the rule engine runs script codes of uniform 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;
and the interface adding module is used for successfully adding a new external interface after the call request passes.
As a 1 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 end information of the calling end of the external interface;
the return analysis module is used for intercepting the end information and analyzing return parameters from the end information;
the uniform return module is used for transmitting the return parameters to the rule engine, and the rule engine runs script codes which uniformly return the difference;
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 a 2 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 external interfaces for the interface management platform, and 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 related to the conversion of the unified parameters of the external interfaces on the rule engine.
As a 4 th preferred implementation of the second aspect, the script code includes a masked parameter conversion code, a uniform request difference code, a uniform return difference code, a uniform signature code, and a 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 enables the rule engine to carry out soft decoding work through the corresponding script code, so that the rule engine realizes the unification of time difference of interface calling, thereby realizing the unification calling of different external interfaces, the interface management platform can concentrate on the work of processing interface management, such as the work of universal modules of interface error fusing, degradation, management and the like, thereby reducing the coupling of the interface management platform and the service rule, further improving the processing efficiency of the interface management platform, enabling the speed of the external interfaces to be faster when calling, relatively reducing the complexity of the interface management platform, and reducing the overall cost.
Drawings
Embodiments of the invention are described in further detail below with reference to the attached drawing figures, wherein:
FIG. 1 is a flow diagram of a method of the present invention for integrating rules engine to invoke an external interface;
FIG. 2 is a schematic diagram of the architecture of the system for invoking external interfaces of the integrated rules engine of the present invention.
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 shown 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 "include" and variations thereof as used herein is meant to be inclusive in an open-ended manner, i.e., "including but not limited to". Unless specifically stated otherwise, the term "or" means "and/or". 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 directly or indirectly connected 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 the server, such as a social application, a payment application, a game application, and the like. The server may be an application server that the target application provides a service, or may be a proxy server that distinguishes the application server corresponding to the target application. The server is used for identifying whether each access device belongs to the malicious device and intercepting the data message from the malicious device. When the server is a proxy server, the proxy server forwards the data message which does not belong to the malicious equipment to the application server. The terminal may specifically be a desktop terminal or a mobile terminal, and the mobile terminal may specifically be a smart phone, a tablet computer, a notebook computer, a desktop computer, an intelligent sound box, an intelligent watch, and the like, but is not limited thereto. The server and the server can be independent physical servers respectively, can also be a server cluster or distributed system formed by a plurality of physical servers, and can also be cloud servers for providing basic cloud computing services such as cloud service, a cloud database, cloud computing, cloud functions, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN (content delivery network) and big data and artificial intelligence platforms.
Example 1
In a first aspect, as shown in fig. 1, an embodiment of the present invention discloses a method for integrating external interfaces called by a rule engine, including the following steps:
step S1: request information for calling an external interface is acquired.
Specifically, when the external interface needs to be called, the 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, the method further comprises the following steps:
substep S1.1: configuring a plurality of external url addresses related to calling the external interfaces 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 the transformation of the unified parameters 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 a skipped external interface.
The script codes comprise shielding parameter conversion codes, uniform request difference codes, uniform return difference codes, uniform signature codes and proxy calling codes. Part of dangerous calls can be shielded, and the shielding is based on the rule after the shielding parameter is converted; the difference between the request information and the return information is processed uniformly through a uniform request difference code and a uniform return difference code respectively so as to eliminate the difference; when the front is required to be added, uniformly processing the uniform signature codes to eliminate the differentiation of signature requests among different external interface types; when the agent needs to be called, the rule engine calls the codes through the agent so as to realize the calling of different associated codes.
Step S2: and intercepting the request information, and analyzing the request parameters from the request information.
Specifically, the server intercepts request information, and analyzes specific request parameters from the request information, wherein the request parameters include the number and type of external interfaces and the use of the external interfaces, and the request parameters are generally not communicated due to different protocols between the external interfaces and cannot request the interface management platform, so that the request parameters need to be analyzed and then independently taken out, so that subsequent differentiated and unified processing is facilitated.
Step S3: the request parameters are transmitted to a rule engine, and the rule engine runs script codes for unifying request differences.
Specifically, the server independently extracts the request parameters and transmits the request parameters to the rule engine, and the rule engine runs corresponding script codes related to the uniform request differences.
Step S4: the rule engine converts the request parameters based on the script code to obtain invocation information.
Specifically, the rule engine performs adaptive conversion on the request parameters based on the uniform request differential script codes to obtain the universal calling information in a uniform format.
Step S5: and transmitting the calling information to the interface management platform.
Specifically, the rule engine transmits the call information directly to the interface management platform.
Step S6: and after the call request passes, successfully adding a new external interface.
Specifically, the interface management platform judges the security of the calling information based on the calling information, and if the calling content of the calling information is safe, a new external interface is added based on the calling information through the request, so that the new external interface can realize corresponding read-write operation.
Further comprising the steps of:
step S7: and acquiring ending information of the calling end of the external interface.
Specifically, after the external interface call is finished, the operator sends the corresponding information related to the end of the external interface call, that is, the end information, to the server.
Step S8: intercepting the end information, and analyzing the return parameters from the end information.
Specifically, the server intercepts the end information, and analyzes a return parameter from the end information, where the return parameter includes information related to the external interface that is called to end, such as the type and serial number of the specific external interface.
Step S9: and transmitting the return parameters to a rule engine, and running the uniform return difference script codes by the rule engine.
Specifically, the server transmits the return parameters obtained independently after analysis to the rule engine, so that the rule engine runs uniform return script codes with differences.
Step S10: the rule engine converts the return parameters based on the script code to obtain the return information.
Specifically, the rule engine unifies the differentiation of the return parameters based on the corresponding script codes, and the return parameters are converted into the return information common to the interface management platform in a unified format.
Step S11: and transmitting the return information to the interface management platform to finish the calling of the external interface.
Specifically, the rule engine directly transmits the return information to the interface management platform, and the interface management platform finishes calling of the external interface corresponding to the return information after acquiring the return information.
In summary, the present 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 the time difference of interface calling, thereby realizing the unification calling of different external interfaces, the interface management platform can concentrate on the work of processing interface management, such as the work of universal modules like interface error fusing, degradation, management, and the like, thereby reducing the coupling between the interface management platform and the service rules, further improving the processing efficiency of the interface management platform, making the speed of the external interface faster when calling, relatively reducing the complexity of the interface management platform, and reducing the overall cost.
Other steps of the method for invoking the external interface of the integrated rules engine described in this embodiment are described in the prior art.
Example 2
As shown in fig. 2, in a second aspect, the present invention discloses a system for integrating rules engine to call external interfaces, including a request obtaining module M1, a request analyzing module M2, a uniform request module M3, a first converting module M4, an information transmission module M5, and an interface adding module M6, wherein:
the request obtaining module M1 is configured to obtain request information for calling an external interface;
the request analysis module M2 is used for intercepting the request information and analyzing the request parameters from the request information;
the uniform request module M3 is used for transmitting the request parameters to the rule engine, and the rule engine runs the script codes of the uniform request difference;
the first conversion module M4 is used for making the rule engine convert the request parameter based on the script code to obtain the 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 used to add a new external interface successfully after the call request passes.
Also included are a return acquisition module M7, a return analysis module M8, a unified return module M9, a second translation module M10, and an interface removal module M11, wherein:
the return obtaining module M7 is used to obtain the end information of the external interface call end;
the return analysis module M8 is used for intercepting the end information and analyzing the return parameters from the end information;
the uniform return module M9 is used for transmitting the return parameters to the rule engine, and the rule engine runs script codes of uniform return differences;
the second conversion module M10 is used for making the rule engine convert the return parameters based on the script codes to obtain the return information;
the interface removal module M11 is used to transmit the return information to the interface management platform to end the external interface call.
As a preferred implementation, the method further comprises the following steps:
and the platform configuration module M12 is configured to configure a plurality of external url addresses related to calling the external interfaces for the interface management platform, where the external url addresses include jump addresses corresponding to each request condition and each return condition.
And the script writing module M13 is used for writing script codes of the unified parameter conversion of each external interface on the rule engine.
In summary, when the system for invoking the external interface of the integrated rules engine described in this embodiment runs, all the steps of the method for invoking the external interface of the integrated rules engine described in embodiment 1 can be implemented, so as to implement fast and low-cost invocation of the external interface.
Other structures of the system for invoking external interfaces of the integrated rules engine 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 communicatively connected 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 when the at least one processor executes the instructions, the following steps are specifically realized: 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 operating script codes with uniform request differences by the rule engine; the rule engine converts the request parameters based on the script codes to obtain calling information; transmitting the calling information to an interface management platform; after the call request passes, successfully adding a new external interface; acquiring end information of calling end of an external interface; intercepting the end information, and analyzing a return parameter from the end information; transmitting the return parameters to a rule engine, and operating the uniform return script codes of the differences by the rule engine; the rule engine converts the return parameters based on the script codes to obtain return information; and transmitting the return information to the interface management platform to finish the calling of the external interface.
Example 4
The invention also discloses a storage medium, which stores a computer program, and when the computer program is executed by a processor, the following steps are concretely realized: 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 operating script codes with uniform request differences by the rule engine; the rule engine converts the request parameters based on the script codes to obtain calling information; transmitting the calling information to an interface management platform; after the call request passes, successfully adding a new external interface; acquiring end information of calling end of an external interface; intercepting the end information, and analyzing a return parameter from the end information; transmitting the return parameters to a rule engine, and operating the uniform return script codes of the differences by the rule engine; the rule engine converts the return parameters based on the script codes to obtain return information; and transmitting the return information to the interface management platform to finish the calling 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 carrying out various aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory 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: 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), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical 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 via 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 transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter 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 carrying out operations of the present disclosure may be assembler 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" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the present disclosure by utilizing the state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
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 storing the instructions comprises 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 flowchart 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.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (10)

1. A method of integrating rules engine calls to 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 operating script codes with uniform request differences by the rule engine;
the rule engine converts the request parameters based on the script codes to obtain calling information;
transmitting the calling information to an interface management platform;
and after the call request passes, successfully adding a new external interface.
2. The method of claim 1 for integrating rules engine calls to external interfaces, further comprising the steps of:
acquiring end information of calling end of an external interface;
intercepting the end information, and analyzing a return parameter from the end information;
transmitting the return parameters to a rule engine, and operating the uniform return script codes of the differences by the rule engine;
the rule engine converts the return parameters based on the script codes to obtain return information;
and transmitting the return information to the interface management platform to finish the calling of the external interface.
3. The method for invoking external interface of the integrated rules engine of claim 2, wherein after obtaining the request information for invoking external interface, further comprising:
configuring a plurality of external url addresses related to calling the external interfaces for the interface management platform, wherein the external url addresses comprise jump addresses corresponding to various request conditions and return conditions.
4. The method for integrating external interfaces of a rules engine as claimed in claim 3, wherein the step of configuring the interface management platform with a plurality of external url addresses associated with the external interfaces further comprises:
script code is written on the rules engine for the transformation of the unified parameters for each external interface.
5. The method of claim 4 for integrating rules engine calls to external interfaces, wherein:
the script code comprises a shielding parameter conversion code, a uniform request difference code, a uniform return difference code, a uniform signature code and an agent calling code.
6. The utility model provides a system for integration rule engine's external interface of calling which characterized in that, includes request acquisition module, request analysis module, unifies request module, first conversion module, information transmission module and interface and adds the 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 uniform request module is used for transmitting the request parameters to the rule engine, and the rule engine runs script codes of uniform 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;
and the interface adding module is used for successfully adding a new external interface after the call request passes.
7. The system for integrating rules engine calls external interface of claim 6 further comprising 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 end information of the calling end of the external interface;
the return analysis module is used for intercepting the end information and analyzing return parameters from the end information;
the uniform return module is used for transmitting the return parameters to the rule engine, and the rule engine runs script codes which uniformly return the difference;
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.
8. The system for integrating rules engine calls external interface of claim 7 further comprising:
the platform configuration module is used for configuring a plurality of external url addresses related to calling external interfaces for the interface management platform, and the external url addresses comprise jump addresses corresponding to various request conditions and return conditions.
9. The system for integrating rules engine calls external interface of claim 8 further comprising:
and the script writing module is used for writing script codes related to the conversion of the unified parameters of the external interfaces on the rule engine.
10. The system for integrating rules engine calls external interfaces of claim 9 wherein:
the script code comprises a shielding parameter conversion code, a uniform request difference code, a uniform return difference code, a uniform signature code and an agent calling code.
CN202111439057.8A 2021-11-29 2021-11-29 Method and system for calling external interface of integration rule engine Pending CN114090082A (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (1)

Publication Number Publication Date
CN114090082A true CN114090082A (en) 2022-02-25

Family

ID=80305645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111439057.8A Pending CN114090082A (en) 2021-11-29 2021-11-29 Method and system for calling external interface of integration rule engine

Country Status (1)

Country Link
CN (1) CN114090082A (en)

Similar Documents

Publication Publication Date Title
CN110324169B (en) Interface management method and device
US10824537B2 (en) Method, device, and computer readable medium for tracing computing system
CN108377232B (en) Multi-protocol communication method and device, electronic equipment and readable storage medium
CN112351031A (en) Generation method and device of attack behavior portrait, electronic equipment and storage medium
US11934287B2 (en) Method, electronic device and computer program product for processing data
CN110147397B (en) System docking method, device, management system, terminal equipment and storage medium
CN110245029A (en) A kind of data processing method, device, storage medium and server
CN115329170A (en) Webpage crawling method, device, equipment and storage medium
CN114579194A (en) Spring remote call-based exception handling method and system
CN112883088B (en) Data processing method, device, equipment and storage medium
CN113760242A (en) Data processing method, device, server and medium
CN114090082A (en) Method and system for calling external interface of integration rule engine
US10831590B2 (en) Error handling
CN115604343A (en) Data transmission method, system, electronic equipment and storage medium
US20150294241A1 (en) Enterprise integration platform
CN115063123A (en) Intelligent manufacturing method and system and electronic equipment
CN114021133A (en) Code processing method and device, electronic equipment and storage medium
CN110471708B (en) Method and device for acquiring configuration items based on reusable components
CN114219643A (en) Transaction calling method, device, equipment and storage medium
CN114490718A (en) Data output method, data output device, electronic equipment and computer readable medium
CN113032341A (en) Log processing method based on visual configuration
CN108288135B (en) System compatibility method and device, computer readable storage medium and electronic equipment
CN113779018A (en) Data processing method and device
CN114978786B (en) Method and device for converting third party interface into system standard interface
US10516767B2 (en) Unifying realtime and static data for presenting over a web service

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