CN109241158A - Data source customizing method and device for regulation management - Google Patents

Data source customizing method and device for regulation management Download PDF

Info

Publication number
CN109241158A
CN109241158A CN201810878044.2A CN201810878044A CN109241158A CN 109241158 A CN109241158 A CN 109241158A CN 201810878044 A CN201810878044 A CN 201810878044A CN 109241158 A CN109241158 A CN 109241158A
Authority
CN
China
Prior art keywords
data source
data
information
regulation management
access
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.)
Granted
Application number
CN201810878044.2A
Other languages
Chinese (zh)
Other versions
CN109241158B (en
Inventor
谢世明
蒋纪匀
王睿
黄倩
毛玮
陈帅
樊安源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Chuang Frame Software Co ltd
Original Assignee
Shanghai Jiayin Financial Polytron Technologies Inc
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 Shanghai Jiayin Financial Polytron Technologies Inc filed Critical Shanghai Jiayin Financial Polytron Technologies Inc
Priority to CN201810878044.2A priority Critical patent/CN109241158B/en
Publication of CN109241158A publication Critical patent/CN109241158A/en
Application granted granted Critical
Publication of CN109241158B publication Critical patent/CN109241158B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of data source customizing method and device for regulation management, which includes: the parameter information that self-defining data source is accessed in visualization interface;The return value for being used for configuration rule is generated according to parameter information.Through the above technical solutions, user can be with self-defining data source, the return value of acquisition such as data field and by return value applied to rule;By using visualized interface, so that regulation management personnel can strengthen the safety of rule without code development with fast custom rule, centre.

Description

Data source customizing method and device for regulation management
Technical field
The present invention relates to field of computer technology, it particularly relates to which a kind of data source for regulation management is customized Method and device.
Background technique
In rule management system, system can define operation rule, and the field or user defined using system is customized Field, the value of these fields is in rule operation and rule passes to regulation engine operation together.There are two types of the sources of field value, One is API Calls persons to be come in by the transmitting of API parameter, and one is being hard-coded in code, when operation obtains from outside.Rule Management system provides custom rule, but field needed for custom rule is also confined to both acquisition modes.In caller In in such a way that parameter transmitting is come in, the field that rule is used has been exposed to outside, is unfavorable for regular secrecy.Hard coded Mode, the field used of rule and code development deployment are associated together, and cause the development cycle of rule long, be unfavorable for adjustment and Quick development rule.
In view of the above problems in the related art, currently no effective solution has been proposed.
Summary of the invention
For the problems in the relevant technologies, the present invention propose a kind of data source customizing method for regulation management and Device.
The technical scheme of the present invention is realized as follows:
According to an aspect of the invention, there is provided a kind of data source customizing method for regulation management, comprising:
The parameter information that self-defining data source is accessed in visualization interface;
The return value for being used for configuration rule is generated according to parameter information.
According to an embodiment of the invention, the parameter information of data source access includes: that the essential information of data access, data connect The metadata of the input information, data access output that enter;Wherein, essential information includes: needed for data access type and type Parameter.
According to an embodiment of the invention, the parameter information that self-defining data source is accessed in visualization interface includes: can Essential information is inputted depending on changing in interface, and uses template when inputting essential information;It is inquired according to essential information to obtain Return value.
According to an embodiment of the invention, being inquired according to essential information to obtain return value includes: using input information Replace the template in essential information.
According to an embodiment of the invention, the metadata of data access output includes: field, the analysis mode of field and field Type.
According to an embodiment of the invention, being generated according to parameter information for the return value of configuration rule includes: according to first number According to description generate key-value pair, and by key-value to returning to caller.
According to an embodiment of the invention, data source customizing method further include: check the parameter of rule before executing rule Field initiates the calling of data access when parameter field is not present in the name space of context.
According to an embodiment of the invention, wherein, being received according to the essential information of the data access in parameter information from context Collect data;The calling of data access is initiated using the data of collection;Return value of the key-value to form is filled to the name of context Word space.
According to another aspect of the present invention, a kind of customized device of the data source for regulation management is provided, comprising:
Visualization interface module, the parameter information for the access of self-defining data source;
Output module is connected to regular executive device, for generating the return value for being used for configuration rule according to parameter information.
The present invention through the above technical solutions, user can with self-defining data source, obtain such as data field return value, And return value is applied to rule;By using visualized interface, so that regulation management personnel can be advised with fast custom Then, intermediate without code development, strengthen the safety of rule.
Detailed description of the invention
It in order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, below will be to institute in embodiment Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is the flow chart of the data source customizing method according to an embodiment of the present invention for regulation management;
Fig. 2 is the schematic diagram of visualization interface according to an embodiment of the present invention;
Fig. 3 is the schematic diagram of the customized device of the data source for regulation management according to an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art's every other embodiment obtained belong to what the present invention protected Range.
As shown in Figure 1, according to an embodiment of the invention, providing a kind of data source for regulation management makes the right way of conduct by oneself Method, the data source customizing method can be applied to rule management system or other systems relevant to regulation management.Of the invention For regulation management data source customizing method the following steps are included:
S10, the parameter information that self-defining data source is accessed in visualization interface;And
S20 generates the return value for being used for configuration rule according to parameter information.
The present invention through the above technical solutions, user can with self-defining data source, obtain such as data field return value, And return value is applied to rule;By using visualized interface, so that regulation management personnel can be advised with fast custom Then, intermediate without code development, strengthen the safety of rule.
In one embodiment, the parameter information of data source access includes: the essential information of data access, data access Input the metadata of information, data access output.Wherein, essential information includes: parameter needed for data access type and type. Wherein, the metadata of data access output includes: the analysis mode and field type of field, field.
In order to support self-defining data source to access, a variety of common data access types, such as access MYSQL can be provided Database, ORACLE database, RESTFUL API approach etc..
As shown in Fig. 2, input selection should on the visual page after the data access type that user selects system to provide Necessary parameter information under mode.Such as in RESTFUL API access style, user needs to be arranged the URI of access (Uniform Resource Identifier, uniform resource identifier), selects the format of returned data.Class is accessed in MYSQL In type, user is other than needing to input SQL URI, it is also necessary to the SQL statement of input inquiry.In the input of user, it can support Template parameter, these template parameters can be replaced at runtime by the value of context.User needs to define when configuration data accesses Input and output are exposed to system as the self-description data of the data access.The output field of data access can become rule Optional custom field, user directly select the field in configuration rule, and the data access of field is generated without concern.
In one embodiment, step S10 includes: essential information to be inputted in visualization interface, and believe substantially in input Template is used when breath;It is inquired according to essential information to obtain return value.
Wherein, being inquired according to essential information to obtain return value includes: using in input information replacement essential information Template.
In one embodiment, step S20 includes: to generate key-value pair according to the description of metadata, and by key-value to returning Back to caller.
In one embodiment, data source customizing method of the invention is further comprising the steps of: S30, in executing rule The preceding parameter field for checking rule initiates the calling of data access when parameter field is not present in the name space of context. Wherein, according to the essential information of the data access in parameter information from context collection data;Number is initiated using the data of collection According to the calling of access;Return value of the key-value to form is filled to the name space of context.
In order to better understand the present invention, have below in conjunction with shown in Fig. 2 to data source customizing method of the invention Body explanation.As shown in connection with fig. 2, data source customizing method of the invention in the concrete realization the following steps are included:
S201, the essential information of data access, including data access type, parameter required for access style.This part Information is inputted by the interactive mode at interface by user.Template can be used when inputting essential information in user.Data access Code external inquiry will be initiated according to this partial information, obtain call return value.
S202, the input information of data access.This partial information is inputted on interface by user, in the form of metadata and The essential information of data access stores together, and describes the condition of data access operation.Data access code makes when calling With the template in this part input data replacement essential information parameter.
S203, the metadata of data access output, this partial information are inputted on interface by user, in the form of metadata It is stored together with the essential information of data access, describes the output of the data access.Output definition includes the name of field, word The mode (JSONPATH, XMLPATH) and field type that section is parsed from the external query result of data access.It is protecting When deposit data access definition, system generates custom field from output metadata, this part field is available to strictly all rules.Number Calling according to access will describe according to output, generate key-value to returning to caller.
S204, system are checked the parameter field of rule before execution, are worked as word using the DROOLS engine executing rule of open source For section from data access and when the value of the field is not present in context name word space, system initiates the calling of data access, first Metadata is first inputted from context collection data are executed according to data access, data are passed into data in the form of key-value pair The calling that code initiates data access is accessed, the name that the key-value of data access is then filled back context to return value is empty Between.The key-value in name space is then passed into DROOLS engine executing rule with rule together.
As shown in figure 3, according to an embodiment of the invention, additionally providing a kind of customized dress of the data source for regulation management It sets, comprising:
Visualization interface module 10, the parameter information for the access of self-defining data source;
Output module 20, is connected to regular executive device 30, and output module 20 is used to be generated according to parameter information for matching Set the return value of rule.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (9)

1. a kind of data source customizing method for regulation management characterized by comprising
The parameter information that self-defining data source is accessed in visualization interface;
The return value for being used for configuration rule is generated according to the parameter information.
2. the data source customizing method according to claim 1 for regulation management, which is characterized in that
The parameter information of data source access includes: that the essential information of data access, input information, the data of data access connect Enter the metadata of output;
Wherein, the essential information includes: parameter needed for data access type and the type.
3. the data source customizing method according to claim 2 for regulation management, which is characterized in that on visualization circle The parameter information of self-defining data source access includes: in face
The essential information is inputted in the visualization interface, and template is used when inputting the essential information;
It is inquired according to the essential information to obtain return value.
4. the data source customizing method according to claim 3 for regulation management, which is characterized in that according to the base This information is inquired to obtain return value and include:
Use the template in the input information replacement essential information.
5. the data source customizing method according to claim 2 for regulation management, which is characterized in that the data connect The metadata for entering output includes: the analysis mode and field type of field, field.
6. the data source customizing method according to claim 5 for regulation management, which is characterized in that according to the ginseng Number information is generated includes: for the return value of configuration rule
Key-value pair is generated according to the description of the metadata, and by the key-value to returning to caller.
7. the data source customizing method according to claim 1 for regulation management, which is characterized in that further include:
The parameter field that rule is checked before executing rule, when the parameter field is not present in the name space of context, Initiate the calling of data access.
8. the data source customizing method according to claim 7 for regulation management, which is characterized in that wherein,
According to the essential information of the data access in parameter information from context collection data;
The calling of data access is initiated using the data of collection;
Return value of the key-value to form is filled to the name space of the context.
9. a kind of customized device of data source for regulation management, which is characterized in that the customized device of data source includes:
Visualization interface module, the parameter information for the access of self-defining data source;
Output module is connected to regular executive device, for generating the return value for being used for configuration rule according to the parameter information.
CN201810878044.2A 2018-08-03 2018-08-03 Data source definition method and device for rule management Active CN109241158B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810878044.2A CN109241158B (en) 2018-08-03 2018-08-03 Data source definition method and device for rule management

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810878044.2A CN109241158B (en) 2018-08-03 2018-08-03 Data source definition method and device for rule management

Publications (2)

Publication Number Publication Date
CN109241158A true CN109241158A (en) 2019-01-18
CN109241158B CN109241158B (en) 2022-09-16

Family

ID=65070208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810878044.2A Active CN109241158B (en) 2018-08-03 2018-08-03 Data source definition method and device for rule management

Country Status (1)

Country Link
CN (1) CN109241158B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104497A (en) * 2019-11-21 2020-05-05 北京明略软件系统有限公司 Rule matching method and device and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186579A (en) * 2011-12-29 2013-07-03 北京亿阳信通科技有限公司 Database function-based rule implementation and application method and device
CN103942228A (en) * 2013-01-23 2014-07-23 纽海信息技术(上海)有限公司 Rule engine, calculating method, service system and calling method
CN107632842A (en) * 2017-09-26 2018-01-26 携程旅游信息技术(上海)有限公司 Rule configuration and dissemination method, system, equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186579A (en) * 2011-12-29 2013-07-03 北京亿阳信通科技有限公司 Database function-based rule implementation and application method and device
CN103942228A (en) * 2013-01-23 2014-07-23 纽海信息技术(上海)有限公司 Rule engine, calculating method, service system and calling method
CN107632842A (en) * 2017-09-26 2018-01-26 携程旅游信息技术(上海)有限公司 Rule configuration and dissemination method, system, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104497A (en) * 2019-11-21 2020-05-05 北京明略软件系统有限公司 Rule matching method and device and computer readable storage medium

Also Published As

Publication number Publication date
CN109241158B (en) 2022-09-16

Similar Documents

Publication Publication Date Title
US20140067836A1 (en) Visualizing reporting data using system models
AU2017352446B2 (en) Rendering user-interface elements based on variation Metamodels
CN103093000A (en) Database query modeling system and database query modeling method
CN109657128B (en) Data query method, device and storage medium
CN105243528A (en) Financial IT system graphical centralized reconciliation system and method under big data environment
CN105187365A (en) Method and device for access control based on roles and data items
CN104216912A (en) Method and device for achieving non-intrusive service form workflow
US20130080398A1 (en) Method and system for de-identification of data within a database
US11526573B1 (en) System and method for controlling electronic communications
CN103425778A (en) Intelligent development platform for database application system
CN105556517A (en) Smart search refinement
CN103678396B (en) A kind of data back up method and device based on data model
CN109241158A (en) Data source customizing method and device for regulation management
EP3532922B1 (en) Processing application programming interface (api) queries based on variable schemas
US20160191431A1 (en) Streamlining end-to-end flow of business-to-business integration processes
CN109670728B (en) Ship design quality information management system based on database
Nonchot et al. A tool for generating test case from BPMN diagram with a BPEL diagram
CN114036178A (en) Service interface generation method, device, computer and readable storage medium
CN111506644B (en) Application data processing method and device and electronic equipment
JP5778104B2 (en) Group creation query creation method, group creation query creation program, and group creation query creation device
CN108460077B (en) Index analysis method, system and computer readable storage medium
CN111610964A (en) Encoding rule generation method and device
CN109918084A (en) A kind of data mapping method of business management system
CN109684342A (en) Data managing method and device
CN116521686B (en) Dynamic data table processing method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230406

Address after: Room 314, Zone B, 3rd Floor, No. 452 Daduhe Road, Putuo District, Shanghai, 200000

Patentee after: Shanghai Chuang frame Software Co.,Ltd.

Address before: Room 2257, Building 5, No. 1630, Yecheng Road, Jiading Industrial Zone, Jiading District, Shanghai, 201800

Patentee before: SHANGHAI JIAYIN FIN-TECH Co.,Ltd.

TR01 Transfer of patent right