CN113419877A - Implementation method and device of decision service interface, electronic equipment and storage medium - Google Patents

Implementation method and device of decision service interface, electronic equipment and storage medium Download PDF

Info

Publication number
CN113419877A
CN113419877A CN202110744510.XA CN202110744510A CN113419877A CN 113419877 A CN113419877 A CN 113419877A CN 202110744510 A CN202110744510 A CN 202110744510A CN 113419877 A CN113419877 A CN 113419877A
Authority
CN
China
Prior art keywords
decision
service interface
risk
service
index
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
CN202110744510.XA
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.)
Jingdong Technology Holding Co Ltd
Original Assignee
Jingdong Technology Holding 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 Jingdong Technology Holding Co Ltd filed Critical Jingdong Technology Holding Co Ltd
Priority to CN202110744510.XA priority Critical patent/CN113419877A/en
Publication of CN113419877A publication Critical patent/CN113419877A/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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0635Risk analysis of enterprise or organisation activities

Abstract

The invention provides a method and a device for realizing a decision service interface, electronic equipment and a storage medium, wherein the method for realizing the decision service interface comprises the following steps: acquiring the external service flow of the wind control platform; and inputting the service flow into a pre-configured risk decision service interface of the wind control platform to obtain first risk decision data, wherein the risk decision service interface is configured according to a configuration template file and a preset data dictionary, and the configuration template file is realized according to a decision engine intermediate file of a decision engine. The technical scheme of the invention can quickly complete decision operation iteration without manual configuration.

Description

Implementation method and device of decision service interface, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for implementing a decision service interface, an electronic device, and a non-transitory computer-readable storage medium.
Background
The decision engine is widely applied to the fields of financial wind control, anti-fraud, compliance management and the like, and not only helps enterprises to remarkably improve decision efficiency, but also can reduce labor cost, accelerate iteration of a decision model and greatly shorten the online period of products.
Based on the function and positioning of the decision engine, it can be seen that the decision engine mainly provides management of a life cycle of a business decision, mining and development of the business decision, test simulation of decision logic, deployment and on-line of a model, and the like.
Currently, daily business operations of enterprises require efficient and rapid iteration of business operation decisions, and the technical dependence and learning cost of business operators on wind control platforms of the business operators need to be reduced continuously.
The wind control platform is used as a container for the operation of the decision engine, so that very high requirements are placed on stability, safety and usability, and most of the existing access parameters depending on the decision engine are placed in a system data index variable pool after platform derivation, cleaning and processing for business personnel to select. With the continuous increase of the complexity of business decision logic, the derived variable pool of the system is larger and larger, the situation of repeated processing caused by understanding of different business lines based on different angles can occur, the maintenance cost of the platform is greatly increased, a large number of people are put into the maintenance work of the platform to support the daily operation of the business, and the efficiency is not ideal.
In the related technology, in order to promote efficient and rapid iteration of business operation decisions and improve the deployment efficiency of decision configuration, a set of standard data indexes, namely a data dictionary, is provided on the basis of integrating the uniform requirements of all business lines, and the standard data indexes are used as index standards for normative data of a wind control platform. Service personnel can select standard indexes in the dictionary according to specific service requirements so as to improve the deployment efficiency of risk decision configuration.
However, each index in the data dictionary has its specific use specification, such as use condition and limitation, and the complex business logic includes many indexes, and these heavy configurations have certain difficulties for general business personnel.
In summary, how to reduce the integration difficulty of the decision engine and the wind control platform and improve the deployment efficiency of the risk decision is a technical problem that needs to be solved urgently at present.
Disclosure of Invention
The invention provides a method and a device for realizing a decision service interface, electronic equipment and a non-transitory computer readable storage medium, which are used for overcoming the defect of low efficiency when a risk decision is deployed to a wind control platform in the prior art and realizing the automatic configuration of the decision service interface.
The invention provides a method for realizing a decision service interface, which comprises the following steps: acquiring the external service flow of the wind control platform; and inputting the service flow into a pre-configured risk decision service interface of the wind control platform to obtain first risk decision data, wherein the risk decision service interface is configured according to a configuration template file and a preset data dictionary, and the configuration template file is realized according to a decision engine intermediate file of a decision engine.
According to the implementation method of the decision service interface provided by the invention, before the business flow is input into the pre-configured risk decision service interface of the wind control platform, the implementation method further comprises the following steps: acquiring and analyzing the decision engine intermediate file to obtain the index of the decision engine and the service attribute thereof; generating a configuration template file according to the indexes and the service attributes thereof; and acquiring configuration information from the data dictionary according to the configuration template file, and configuring the risk decision service interface according to the configuration information.
According to the implementation method of the decision service interface provided by the present invention, after configuring the risk decision service interface according to the configuration information, the implementation method further includes: acquiring first index information of a currently running risk decision service interface and second index information of a configured risk decision service interface; and acquiring index modification information according to the first index information and the second index information so as to manually judge whether the risk decision service interface is successfully configured.
According to the implementation method of the decision service interface provided by the present invention, after the index modification information is obtained according to the first index information and the second index information, the implementation method further includes: acquiring a standard test case of the risk decision service interface; inputting the standard test case into the risk decision service interface to obtain second risk decision data; and judging whether the risk decision service interface is successfully configured or not according to the second risk decision data and the standard risk decision data corresponding to the standard test case.
According to the implementation method of the decision service interface provided by the invention, the obtaining and analyzing of the decision engine intermediate file to obtain the index of the decision engine and the service attribute thereof comprises the following steps: judging the encryption mode of the decision engine intermediate file; when the encryption mode is semi-encryption, directly acquiring the index of the decision engine and the service attribute thereof according to the decision engine intermediate file; and when the encryption mode is full encryption, acquiring the logic of an Application Program Interface (API) of the decision engine, and rewriting or inheriting the method class of the intermediate file of the decision engine according to the logic so as to further acquire the index and the service attribute of the decision engine.
According to the implementation method of the decision service interface provided by the invention, after the judgment of whether the risk decision service interface is configured successfully, the implementation method further comprises the following steps: and if the configuration is successful, saving the configuration template file for configuring the risk decision service interface.
According to the implementation method of the decision service interface provided by the invention, the acquiring configuration information from the data dictionary according to the configuration template file and configuring the risk decision service interface according to the configuration information comprises the following steps: fitting metrics of the decision engine in the configuration information to the interface; and configuring the interface according to the service attribute corresponding to the index.
The invention also provides a device for realizing the decision service interface, which comprises: the acquiring unit is used for acquiring the service flow outside the wind control platform; and the decision unit is used for inputting the service flow into a pre-configured risk decision service interface of the wind control platform to obtain first risk decision data, wherein the risk decision service interface is configured according to a configuration template file and a preset data dictionary, and the configuration template file is realized according to a decision engine intermediate file of a decision engine.
According to an implementation apparatus of a decision service interface provided by the present invention, the implementation apparatus further includes: the analysis unit is used for acquiring and analyzing the decision engine intermediate file to obtain the index of the decision engine and the service attribute of the decision engine; the generating unit is used for generating a configuration template file according to the indexes and the service attributes thereof; and the configuration unit is used for acquiring configuration information from the data dictionary according to the configuration template file and configuring the risk decision service interface according to the configuration information.
According to an implementation apparatus of a decision service interface provided by the present invention, the implementation apparatus further includes: and the test unit is used for acquiring a standard test case of the risk decision service interface, inputting the standard test case into the risk decision service interface to obtain second risk decision data, and judging whether the risk decision service interface is successfully configured according to the second risk decision data and the standard risk decision data corresponding to the standard test case.
The present invention also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the implementation method of the decision service interface as described in any one of the above when executing the program.
The invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of implementing a decision service interface as described in any one of the above.
According to the method and the device for realizing the decision-making service interface, the electronic equipment and the non-transitory computer readable storage medium, the risk decision-making service interface is automatically assembled through the decision engine intermediate file, so that the automatic assembly integration of the decision engine and the wind control platform is realized, the working difficulty of business personnel is reduced, and the configuration efficiency of the risk decision-making service interface is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flow chart of a method for implementing a decision service interface provided by the present invention;
FIG. 2 is a flow diagram illustrating a configuration process of a risk decision service interface provided by the present invention;
FIG. 3 is a flow chart of a parsing process of a decision engine intermediate file provided by the present invention;
FIG. 4 is a second flowchart illustrating a configuration process of a risk decision service interface provided by the present invention;
FIG. 5 is a schematic structural diagram of an implementation apparatus of a decision service interface provided by the present invention;
fig. 6 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the one or more embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the invention. As used in one or more embodiments of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present invention refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that, although the terms first, second, etc. may be used herein to describe various information in one or more embodiments of the present invention, such information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first aspect may be termed a second aspect, and, similarly, a second aspect may be termed a first aspect, without departing from the scope of one or more embodiments of the present invention. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In the related art, in the process of integrating the decision engine by the wind control platform, the following two problems exist. Firstly, the research and development ability of the platform is greatly depended on, decoupling of a decision engine and a wind control platform cannot be achieved, secondly, the configuration process of a decision service interface excessively depends on manual work, business personnel are required to deeply learn and understand the platform, and meanwhile, the probability of production accidents can be brought by manual configuration mistakes of the business personnel.
In summary, the process of integrating the decision engine by the wind control platform greatly depends on the support of the capability of the wind control platform and manual configuration, and the productivity of business operation cannot be liberated.
To solve the problem, an embodiment of the present invention provides an implementation scheme of a decision service interface. An exemplary embodiment of the present invention will be described in detail with reference to fig. 1 to 6.
Fig. 1 is a flowchart illustrating a method for implementing a decision service interface according to an embodiment of the present invention.
The method provided by the embodiment of the invention can be executed by any electronic equipment with computer processing capability, such as a terminal device and/or a server. As shown in fig. 1, the implementation method of the decision service interface includes:
and 102, acquiring the service flow outside the wind control platform.
In particular, the wind control platform is a container in which the decision engine operates. The traffic flow refers to the amount of data that is generated when a user uses a service corresponding to the traffic flow and is transmitted and processed in the system.
Wind control generally refers to risk control, which refers to a risk manager taking various measures and methods to eliminate or reduce various possibilities of occurrence of a risk event, or a risk controller reducing losses caused when a risk event occurs. The core thought of the wind control is that the characteristics of unqualified users are extracted based on a large amount of real sample data, and the unqualified users are removed from the aspect of probability, so that the unqualified rate of the remaining user groups is ensured to be in a relatively low interval.
The wind control decision engine is a set of wind control rules that identify absolute risk versus relative risk. The wind control decision engine needs to support the automatic processing of a large number of services in real time, and can greatly relieve the bottleneck and efficiency of manual processing.
And 104, inputting the service flow into a risk decision service interface of a pre-configured wind control platform to obtain first risk decision data, wherein the risk decision service interface is configured according to a configuration template file and a preset data dictionary, and the configuration template file is realized according to a decision engine intermediate file of a decision engine.
Specifically, the risk decision service interface is an interface for providing a risk decision service for the outside by the wind control platform, and the corresponding risk decision service realizes a risk decision function according to the wind control rule of the decision engine.
The decision engine intermediate file is an intermediate file generated after analyzing a workflow of the decision engine and automatically identifying the decision engine, and may be an xml (extensible markup language) file or an API (Application Programming Interface) function, and is not limited thereto.
The configuration template file is a template file generated according to the decision engine parameter information in the decision engine intermediate file and is used for providing parameter information required by the risk decision service interface when the risk decision service interface is loaded and configured.
A data dictionary refers to a combination of information defining and describing data items, data structures, data streams, data stores, processing logic, etc. of data, and is a collection of definitions of individual elements in a data flow diagram, descriptions of data objects or items in a data model. A data dictionary is a directory of records databases and application metadata that a user may access.
Using a data dictionary, each data object and item can be given a descriptive name and the relationship between the data object and item can be described again, or be part of a structure that potentially describes the relationship, then describe the data type, list all possible predefined values and provide a simple textual description. Here, the data type may be text, image, or binary value, and is not limited thereto.
According to the technical scheme of the embodiment of the invention, the configuration template file is obtained according to the decision engine intermediate file, and the risk decision service interface is configured according to the configuration template file and the data dictionary, so that the automatic assembly of the risk decision service interface according to the decision engine intermediate file is realized, the service and logic decoupling of the decision engine and the wind control platform can be realized, the productivity of service personnel is fully released, the decision operation iteration requirement can be quickly completed without depending on manual configuration, and the service exhibition speed is accelerated.
When the wind control decision engine identifies risks, the output result of the decision engine is 'refused' for absolute risks, namely refused if hit; for relative risk, the output of the decision engine may be an output score, which includes two categories. One is a risk score, which is used to measure the magnitude of risk, the higher the risk score, the greater the risk. One is the credit score, which is used to measure credit merit, with higher credit scores giving better merit.
Correspondingly, the business flow is input into a risk decision service interface of a pre-configured wind control platform, and the obtained first risk decision data can be an absolute risk output result or a relative risk output result. Wherein the output result of the relative risk can be an output score or an output label.
As shown in fig. 2, the process of configuring the risk decision service interface includes the following steps:
step 202, obtaining and analyzing the decision engine intermediate file to obtain the index of the decision engine and the service attribute thereof.
Specifically, the analysis is a resolution analysis. An index refers to an index, specification, or standard that a metric specified in a decision engine is expected to meet. The wind control indicator is a qualitative description of the risk factor. The risk factors are conditions that promote or cause the occurrence of risk events, and conditions that increase or enlarge the loss when the risk events occur. The indexes can be attached with business attributes, when the number of the indexes is much larger, the risk factors are described by using the indexes, and the risk factors are more favorably managed by using the indexes in comparison with the risk factors described by using variables. The service attribute of the index includes parameters of the index, which may be data type, length, precision, or array length.
And step 204, generating a configuration template file according to the indexes and the service attributes thereof.
And step 206, acquiring configuration information from the data dictionary according to the configuration template file, and configuring a risk decision service interface according to the configuration information.
Here, according to the indexes and their service attributes in the configuration template file, corresponding variables and parameters of the variables may be obtained from the data dictionary. The configuration information includes these variables and variable parameters. And configuring the risk decision service interface according to the configuration information, namely forming an interface function of the risk decision service interface according to the configuration information.
In step 202, when the decision engine intermediate file is analyzed to obtain the necessary index of the decision engine and the service attribute of the index, the encryption mode of the decision engine intermediate file needs to be determined first, and the index and the service attribute of the index are obtained in different modes according to the determination result.
Specifically, when the encryption mode is semi-encryption, the index and the service attribute of the decision engine are directly obtained according to the decision engine intermediate file; when the encryption mode is full encryption, the logic of the API of the decision engine can be obtained, and the index and the service attribute of the decision engine can be further obtained according to the method class of the logic rewriting or inheritance decision engine intermediate file.
At present, after the rule configuration of the mainstream decision engine is completed, an intermediate file is output, and the form of the intermediate file can be a JAR file or an ADB file. Among them, a JAR (Java Archive) file is a software package file format, which is generally used to aggregate a large number of Java class files, associated metadata, and resource files into one file in order to develop Java platform application software or libraries.
In these intermediate files, decision rules of the service configuration are usually compiled into bytecodes by decision engine manufacturers according to respective full-encryption or semi-encryption logic and compilation modes, and the bytecodes are parsed by using respective API calls. The intermediate file contains all the contents of the service configuration, including but not limited to the index information.
When the encryption mode is semi-encryption, a manufacturer encrypts specific rules and does not encrypt parameter information. Xml files provided by a certain manufacturer are taken as an example, and analysis shows that the parameter content specified in the decision engine is mainly under a data _ source label, and a plurality of attribute labels are specifically subdivided under the data _ source label, wherein each attribute label is one of indexes required by the decision engine. In addition, the attribute tag may include information such as data _ type, length, precision, array _ size, and the like, and information such as data type, length, precision, array length, and the like, which respectively correspond to the service attribute of the index.
When the encryption mode is full encryption, the standard API provided by the manufacturer needs to be referred to, the parameter part information is obtained as the index of the decision engine by analyzing the API analysis logic and by rewriting or inheriting the analysis method class, and the parameter part information also includes the information such as the service attribute of the index and the like according to the principle.
In step 202, the intermediate file generated by the decision engine can be automatically identified by intelligently and automatically analyzing the workflow of the decision engine, and then, the intermediate file of the decision engine is automatically analyzed, the indexes necessary for the decision engine are stripped, and the service attributes of specific indexes, such as index entry, index exit, type and length, are automatically identified according to the relevant service standards.
As shown in fig. 3, the parsing process of the decision engine intermediate file includes the following steps:
step 302, obtaining a decision engine intermediate file.
Step 304, the decision engine intermediate file is parsed.
Step 306, judging the encryption type of the decision engine intermediate file. If the encryption type is half encryption, step 308 is performed, and if the encryption type is full encryption, step 310 is performed.
And 308, directly acquiring the index of the decision engine and the service attribute thereof according to the decision engine intermediate file.
Step 310, the logic of the API of the decision engine is obtained, and the index of the decision engine and the service attribute thereof are obtained according to the method class of the logic rewriting or inheriting the intermediate file of the decision engine.
In step 204, a universal standard template file may be further generated according to the index and the service attribute of the index.
Through step 202, parameter information specified by the policy engine may be obtained, and in step 204, the indexes and the service attribute information thereof need to be converted into an analysis file, i.e., a configuration template file, that can be identified by the general wind control platform.
Taking the most common wind control platform implemented based on JAVA as an example, generally, the wind control platform packages the policy of the decision engine into a standard service interface to provide services to the outside, and the parameter configuration required by the interface is configured strictly according to the requirement of the decision engine, so that the parameter content required by the interface can be understood only by parsing the configuration template file when the interface loads and reads the parameter configuration logic and the configuration template file reversely generated by the decision engine parameter information in step 202 according to the platform loading. The policy package is an executable specific file generated by a decision engine manufacturer.
In step 206, on the premise of the standard data dictionary, the wind control platform automatically analyzes the configuration template file, automatically assembles various data index parameters and adapts to the use conditions and specifications of the parameters.
The configuration template file generated in step 204 is standard for the analysis and recognition of the wind control platform, so that in this step, when business personnel only need to import the policy package of the decision engine to the wind control platform, the wind control platform can obtain the content of the required parameters by analyzing the configuration template file, and as all the parameters are configured and used according to the data dictionary provided by the wind control platform, the wind control platform associates the information of the database table of the data dictionary according to the obtained content of the parameters, captures all the configuration information and automatically assembles the configuration information into the interface, and fills the required content according to the requirements of each index, so that the configuration of the risk decision service interface can be realized.
Here, the service personnel deploying the implemented decision engine should be configured strictly according to the unified data dictionary of the platform, and no additional user-defined parameter information is required, and if an index needs to be added newly or modified, the service personnel should be configured after the platform is adjusted.
After step 206, the logic data of the configuration template file is cleaned and processed by the index factory. The index factory refers to a feature value variable pool or a variable processing plant provided by a peripheral system of the wind control platform. Data cleansing refers to the last procedure to find and correct recognizable errors in data files, including checking data consistency, processing invalid and missing values, etc.
When the logic data of the configuration template file is cleaned and processed, the validity of the configuration template file needs to be checked, for example, whether a complete undamaged file is generated or not, whether parameters necessary for a decision engine are included, and the like are checked.
In step 206, the indexes of the decision engine in the configuration information are assembled to the risk decision service interface, and the risk decision service interface is configured according to the business attributes corresponding to the indexes.
After step 206, the service interface has basically implemented automatic assembly operation, and the interface can already provide service to the outside except condition information specified by individual service personnel. In order to ensure that the interface information of the risk decision service interface is accurate, manual proofreading and smoking test can be carried out on the configuration template file.
When the template configuration file is manually corrected, configuring a risk decision service interface according to the template configuration file and a data dictionary, and then acquiring first index information of the currently running risk decision service interface and second index information of the configured risk decision service interface; and acquiring index modification information according to the first index information and the second index information so as to manually judge whether the risk decision service interface is successfully configured.
And selecting the interface information of the current online running version and the latest assembly interface information to carry out data index checking, and identifying the modified data index information so as to be confirmed by business personnel for the second time and ensure that the interface information of the risk decision service interface is correct.
Specifically, the peripheral system of the wind control platform can reload the latest field information by analyzing the configuration template file, and at this time, the peripheral system can prompt the difference between the reloading and the existing interface information, prompt is made, service personnel can confirm whether the difference is normal with the current running version, and if the manual proofreading fails, the decision engine intermediate file needs to be re-analyzed.
When the template configuration file is subjected to smoke test, a standard test case of the risk decision service interface needs to be obtained, the standard test case is input into the risk decision service interface to obtain second risk decision data, and whether the risk decision service interface is successfully configured or not is judged according to the second risk decision data and the standard risk decision data corresponding to the standard test case.
Specifically, the standard test case of the risk decision service interface is obtained from the previous test case library, in some cases, the service flow of the wind control platform can be directly introduced, the connectivity of the interface is tested in a smoking mode, if the steps 202 to 206 are repeated, the configuration template file is tried again, if the configuration template file is not configured in a plurality of attempts, service personnel can be prompted to check whether the configuration information is configured according to the standard of the platform data dictionary. And if the configuration is successful, saving the configuration template file for configuring the risk decision service interface.
The automatic smoke emission test and the accurate difference correction of past versions are carried out according to the standard cases, so that the operation can be ensured to be accurate, and the accuracy of the automatic assembly of the decision engine and the wind control platform is improved.
As shown in fig. 4, the implementation method of the decision service interface according to an embodiment of the present invention includes the following steps:
step 401, parsing the decision engine intermediate file to obtain a rule set of the decision engine.
Step 402, saving the rule set.
The function is to extract an abstract public template, which can be used as a data analysis basis in the future and can also be used as a business template to be output externally.
And 403, obtaining the index of the decision engine and the service attribute thereof according to the rule set.
And step 404, generating a configuration template file according to the indexes and the service attributes thereof.
Step 405, obtaining configuration information from the data dictionary according to the configuration template file, and configuring a risk decision service interface according to the configuration information.
Step 406, a standard test case of the risk decision service interface is obtained.
Step 407, inputting the standard test case into the risk decision service interface to determine whether the risk decision service interface is successfully configured, and obtaining a determination result.
Step 408, judging whether the risk decision service interface is successfully configured according to the judgment result, executing step 409, and if not, executing step 410.
And step 409, storing the configuration template file to a wind control platform.
And step 410, generating inspection prompt information to remind service personnel to inspect whether the configuration information is configured according to the platform data dictionary standard.
According to the method for realizing the decision service interface, the risk decision service interface is automatically assembled through the decision engine intermediate file, so that the decision engine and the wind control platform are automatically assembled and integrated, the working difficulty of business personnel is reduced, and the configuration efficiency of the risk decision service interface is improved.
The following describes the implementation apparatus of the decision service interface provided by the present invention, and the implementation apparatus of the decision service interface described below and the implementation method of the decision service interface described above may be referred to correspondingly.
As shown in fig. 5, an implementation apparatus of a decision service interface according to an embodiment of the present invention includes:
an obtaining unit 502, configured to obtain a service flow outside the wind control platform;
the decision unit 504 is configured to input the service traffic into a risk decision service interface of a preconfigured wind control platform to obtain first risk decision data, where the risk decision service interface is configured according to a configuration template file and a preset data dictionary, and the configuration template file is implemented according to a decision engine intermediate file of a decision engine.
According to the technical scheme of the embodiment of the invention, the configuration template file is obtained according to the decision engine intermediate file, and the risk decision service interface is configured according to the configuration template file and the data dictionary, so that the automatic assembly of the risk decision service interface according to the decision engine intermediate file is realized, the service and logic decoupling of the decision engine and the wind control platform can be realized, the productivity of service personnel is fully released, the decision operation iteration requirement can be quickly completed without depending on manual configuration, and the service exhibition speed is accelerated.
In the embodiment of the invention, the implementation device further comprises an analysis unit, which is used for acquiring and analyzing the decision engine intermediate file to obtain the index of the decision engine and the service attribute thereof; the generating unit is used for generating a configuration template file according to the indexes and the service attributes thereof; and the configuration unit is used for acquiring configuration information from the data dictionary according to the configuration template file and configuring the risk decision service interface according to the configuration information.
According to the implementation device of the decision service interface provided by the invention, the implementation device further comprises: and the test unit is used for acquiring a standard test case of the risk decision service interface, inputting the standard test case into the risk decision service interface to obtain second risk decision data, and judging whether the risk decision service interface is successfully configured according to the second risk decision data and the standard risk decision data corresponding to the standard test case.
For details that are not disclosed in the embodiments of the apparatus of the present invention, please refer to the above embodiments of the implementation method of the decision service interface of the present invention for the details that are not disclosed in the embodiments of the apparatus of the present invention.
According to the implementation device of the decision-making service interface, the risk decision-making service interface is automatically assembled through the decision-making engine intermediate file, so that the decision-making engine and the wind control platform are automatically assembled and integrated, the working difficulty of business personnel is reduced, and the configuration efficiency of the risk decision-making service interface is improved.
Fig. 6 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 6: a processor (processor)610, a communication Interface (Communications Interface)620, a memory (memory)630 and a communication bus 640, wherein the processor 610, the communication Interface 620 and the memory 630 communicate with each other via the communication bus 640. The processor 610 may call logic instructions in the memory 630 to perform a method of implementing a decision service interface, the method comprising: acquiring the external service flow of the wind control platform; and inputting the service flow into a pre-configured risk decision service interface of the wind control platform to obtain first risk decision data, wherein the risk decision service interface is configured according to a configuration template file and a preset data dictionary, and the configuration template file is realized according to a decision engine intermediate file of a decision engine.
In addition, the logic instructions in the memory 630 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, which when executed by a computer, enable the computer to perform a method for implementing a decision service interface provided by the above methods, the method comprising: acquiring the external service flow of the wind control platform; and inputting the service flow into a pre-configured risk decision service interface of the wind control platform to obtain first risk decision data, wherein the risk decision service interface is configured according to a configuration template file and a preset data dictionary, and the configuration template file is realized according to a decision engine intermediate file of a decision engine.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to perform a method for implementing the decision service interface provided in the above, the method comprising: acquiring the external service flow of the wind control platform; and inputting the service flow into a pre-configured risk decision service interface of the wind control platform to obtain first risk decision data, wherein the risk decision service interface is configured according to a configuration template file and a preset data dictionary, and the configuration template file is realized according to a decision engine intermediate file of a decision engine.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for implementing a risk decision service, the method comprising:
acquiring the external service flow of the wind control platform;
and inputting the service flow into a pre-configured risk decision service interface of the wind control platform to obtain first risk decision data, wherein the risk decision service interface is configured according to a configuration template file and a preset data dictionary, and the configuration template file is realized according to a decision engine intermediate file of a decision engine.
2. The implementation method of claim 1, wherein before the inputting the traffic flow into a pre-configured risk decision service interface of the wind control platform, the implementation method further comprises:
acquiring and analyzing the decision engine intermediate file to obtain the index of the decision engine and the service attribute thereof;
generating a configuration template file according to the indexes and the service attributes thereof;
and acquiring configuration information from the data dictionary according to the configuration template file, and configuring the risk decision service interface according to the configuration information.
3. The implementation method of claim 2, wherein after the configuring the risk decision service interface according to the configuration information, the implementation method further comprises:
acquiring first index information of a currently running risk decision service interface and second index information of a configured risk decision service interface;
and acquiring index modification information according to the first index information and the second index information so as to manually judge whether the risk decision service interface is successfully configured.
4. The implementation method according to claim 3, wherein after obtaining the index modification information according to the first index information and the second index information, the implementation method further comprises:
acquiring a standard test case of the risk decision service interface;
inputting the standard test case into the risk decision service interface to obtain second risk decision data;
and judging whether the risk decision service interface is successfully configured or not according to the second risk decision data and the standard risk decision data corresponding to the standard test case.
5. The implementation method of claim 2, wherein the obtaining and parsing the decision engine intermediate file to obtain the index of the decision engine and the service attribute thereof comprises:
judging the encryption mode of the decision engine intermediate file;
when the encryption mode is semi-encryption, directly acquiring the index of the decision engine and the service attribute thereof according to the decision engine intermediate file;
and when the encryption mode is full encryption, acquiring the logic of an Application Program Interface (API) of the decision engine, and rewriting or inheriting the method class of the intermediate file of the decision engine according to the logic so as to further acquire the index and the service attribute of the decision engine.
6. The method of claim 4, wherein after determining whether the risk decision service interface is configured successfully, the method further comprises:
and if the configuration is successful, saving the configuration template file for configuring the risk decision service interface.
7. The method of claim 2, wherein the obtaining configuration information from the data dictionary according to the configuration template file and configuring the risk decision service interface according to the configuration information comprises:
fitting metrics of the decision engine in the configuration information to the interface;
and configuring the interface according to the service attribute corresponding to the index.
8. An apparatus for implementing a decision service interface, the apparatus comprising:
the acquiring unit is used for acquiring the service flow outside the wind control platform;
and the decision unit is used for inputting the service flow into a pre-configured risk decision service interface of the wind control platform to obtain first risk decision data, wherein the risk decision service interface is configured according to a configuration template file and a preset data dictionary, and the configuration template file is realized according to a decision engine intermediate file of a decision engine.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the implementation method according to any of claims 1 to 7 are implemented when the processor executes the program.
10. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the implementation method according to any one of claims 1 to 7.
CN202110744510.XA 2021-07-01 2021-07-01 Implementation method and device of decision service interface, electronic equipment and storage medium Pending CN113419877A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110744510.XA CN113419877A (en) 2021-07-01 2021-07-01 Implementation method and device of decision service interface, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110744510.XA CN113419877A (en) 2021-07-01 2021-07-01 Implementation method and device of decision service interface, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113419877A true CN113419877A (en) 2021-09-21

Family

ID=77717616

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110744510.XA Pending CN113419877A (en) 2021-07-01 2021-07-01 Implementation method and device of decision service interface, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113419877A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140279810A1 (en) * 2013-03-15 2014-09-18 Trans Union Llc System and method for developing business rules for decision engines
US20170124497A1 (en) * 2015-10-28 2017-05-04 Fractal Industries, Inc. System for automated capture and analysis of business information for reliable business venture outcome prediction
CN108764674A (en) * 2018-05-16 2018-11-06 普信恒业科技发展(北京)有限公司 A kind of risk control method and device of rule-based engine
US20180365578A1 (en) * 2017-06-16 2018-12-20 Fair Ip, Llc Computer system decision engine
US20200210914A1 (en) * 2018-12-31 2020-07-02 Paypal, Inc. Risk management system interface
CN111475144A (en) * 2020-04-13 2020-07-31 深圳前海微众银行股份有限公司 Wind control decision method, device, equipment and computer readable storage medium
CN113052676A (en) * 2021-03-22 2021-06-29 广东贤能数字科技有限公司 Intelligent wind control decision method, device, equipment and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140279810A1 (en) * 2013-03-15 2014-09-18 Trans Union Llc System and method for developing business rules for decision engines
US20170124497A1 (en) * 2015-10-28 2017-05-04 Fractal Industries, Inc. System for automated capture and analysis of business information for reliable business venture outcome prediction
US20180365578A1 (en) * 2017-06-16 2018-12-20 Fair Ip, Llc Computer system decision engine
CN108764674A (en) * 2018-05-16 2018-11-06 普信恒业科技发展(北京)有限公司 A kind of risk control method and device of rule-based engine
US20200210914A1 (en) * 2018-12-31 2020-07-02 Paypal, Inc. Risk management system interface
CN111475144A (en) * 2020-04-13 2020-07-31 深圳前海微众银行股份有限公司 Wind control decision method, device, equipment and computer readable storage medium
CN113052676A (en) * 2021-03-22 2021-06-29 广东贤能数字科技有限公司 Intelligent wind control decision method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
US10417644B2 (en) Identifying clusters for service management operations
US11062324B2 (en) Identifying clusters for service management operations
US9037549B2 (en) System and method for testing data at a data warehouse
US8869111B2 (en) Method and system for generating test cases for a software application
US7853549B2 (en) Method for rule compliance situation checking and related checking system
Becker et al. Decision criteria in digital preservation: What to measure and how
Maiti et al. Capturing, eliciting, predicting and prioritizing (CEPP) non-functional requirements metadata during the early stages of agile software development
CN111160045B (en) Game resource file translation method, device and equipment
CN108628748B (en) Automatic test management method and automatic test management system
US10404526B2 (en) Method and system for generating recommendations associated with client process execution in an organization
CN111259040B (en) SQL statement auditing method and system
CN111367530A (en) Code auditing method, terminal and server based on self-defined auditing rule
CN112799722A (en) Command recognition method, device, equipment and storage medium
CN115982012A (en) Evaluation model and method for interface management capability maturity
CN108804685B (en) Asset hosting and monitoring task processing method and device
US20210124752A1 (en) System for Data Collection, Aggregation, Storage, Verification and Analytics with User Interface
CN111984882A (en) Data processing method, system and equipment
KR102051580B1 (en) Integrated clinical trial apparatus based on cdisc
CN113419877A (en) Implementation method and device of decision service interface, electronic equipment and storage medium
CN115951916A (en) Component processing method and device, electronic equipment and storage medium
CN108536577B (en) Program code information processing method and device
KR102217092B1 (en) Method and apparatus for providing quality information of application
CN113051262A (en) Data quality inspection method, device, equipment and storage medium
CN112464237A (en) Static code safety diagnosis method and device
CN116401714B (en) Security information acquisition method, device, equipment and 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