CN106446116A - Business rule parameter interaction method and business rule parameter interaction device applied to rule engine - Google Patents
Business rule parameter interaction method and business rule parameter interaction device applied to rule engine Download PDFInfo
- Publication number
- CN106446116A CN106446116A CN201610828193.9A CN201610828193A CN106446116A CN 106446116 A CN106446116 A CN 106446116A CN 201610828193 A CN201610828193 A CN 201610828193A CN 106446116 A CN106446116 A CN 106446116A
- Authority
- CN
- China
- Prior art keywords
- rule
- parameter
- body information
- regulatory body
- type
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/34—Browsing; Visualisation therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/30—Semantic analysis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Machine Translation (AREA)
Abstract
An embodiment of the invention provides a business rule parameter interaction method and a business rule parameter interaction device applied to a rule engine. The business rule parameter interaction method applied to the rule engine includes: rule description language acquisition, to be more specific, acquiring inputted rule description language; rule semantic analysis, to be more specific, analyzing the rule description language according to a rule semantic analysis method to acquire at least one rule body message; displaying, to be more specific, selecting a form control corresponding to a parameter type of the rule body message according to the parameter type of the rule body message, displaying the form control in at least one page, and displaying the rule body message in the form control. The business rule parameter interaction method and the business rule parameter interaction device applied to the rule engine have advantages that business rules can be displayed on a web page in a form manner, and an operator can complete parameter setup of the business rules on an application platform through the form.
Description
Technical field
The present invention relates to field of cloud computer technology, more particularly, to a kind of business rule parameter friendship being applied in regulation engine
Mutually method and device.
Background technology
Existing insurance rule operates on regulation engine, and rule engine technique has very important to insurance company
Effect, is that insurance company cuts operating costs, realizes runing automatization, improves the demands such as service quality, fast responding market
Technical way.By rule engine technique, user can quickly become more regular and change program without dependence IT personnel.
At present, insurance rule setting be a complete insurance rule is split on the page in the form of list multiple
Part is write, and user fills in each several part content of insurance rule in the way of rule editor, then by filled in each portion
Point content carries out preserving being combined into a complete new rule.However, for a user, existing insurance rule compares
In a jumble, the display to insurance parameter and setting are all inconvenient.
Content of the invention
Embodiment of the present invention technical problem to be solved is, provides a kind of business rule being applied in regulation engine
Parameter exchange method and device, to improve the interactive convenience of the parameter of insurance rule.
In order to solve above-mentioned technical problem, the embodiment of the present invention proposes a kind of business rule being applied in regulation engine
Parameter exchange method, the described business rule parameter exchange method being applied in regulation engine includes:
Regular description language obtaining step, obtains the regular description language of input;
Rule semantics analyzing step, is parsed to described rule description language using rule semantics analytic method, obtains at least
One regulatory body information;
Step display, the parameter type according to described regulatory body information selects the parameter type pair with described regulatory body information
The form controls answered, shows this form controls at least one page, and shows described regulatory body letter in this form controls
Breath.
Additionally, the embodiment of the present invention also proposed a kind of business rule parameter interactive device being applied in regulation engine,
The described business rule parameter interactive device being applied in regulation engine includes:
Regular description language acquisition module, for obtaining the regular description language of input;
Rule semantics parsing module, for being parsed to described rule description language using rule semantics analytic method, is obtained
At least one regulatory body information;
Display module, selects the parameter class with described regulatory body information for the parameter type according to described regulatory body information
The corresponding form controls of type, shows this form controls at least one page, and shows that in this form controls described rule is main
Body information.
A kind of business rule parameter exchange method being applied in regulation engine and device energy that the embodiment of the present invention proposes
Enough business rule is illustrated in the form of list on web page so that operating personnel can be by list in application platform
The parameter setting of finishing service rule.
Brief description
Fig. 1 is the structural representation that the embodiment of the present invention is used for the business rule parameter interactive device in regulation engine;
Fig. 2 is the flow chart that the present invention is used for the business rule parameter exchange method first embodiment in regulation engine;
Fig. 3 is the structural representation of binary tree corresponding with a business rule;
Fig. 4 is the flow chart that the present invention is used for the business rule parameter exchange method second embodiment in regulation engine;
Fig. 5 is the flow chart that the present invention is used for business rule parameter exchange method the 3rd embodiment in regulation engine;
In figure:
Regular description language acquisition module:10;
Rule semantics parsing module:20;
Parameter memory module:30;
Retrieval module:40;
Character conversion module:50;
Display module:60.
Specific embodiment
It should be noted that in the case of not conflicting, the embodiment in the application and the feature in embodiment can phases
Mutually combine, with specific embodiment, the present invention is described in further detail below in conjunction with the accompanying drawings.
If directional instruction in the embodiment of the present invention(Such as up, down, left, right, before and after ...)It is only used for explaining at certain
One particular pose(As shown in drawings)Under relative position relation between each part, motion conditions etc., if this particular pose is sent out
During raw change, then directionality instruction also correspondingly changes therewith.
If in addition, the description being related to " first ", " second " etc. in the present invention is only used for describing purpose, and it is not intended that
Indicate or imply its relative importance or the implicit quantity indicating indicated technical characteristic.Thus, define " first ",
The feature of " second " can be expressed or implicitly include at least one this feature.
Referring to Fig. 1, Fig. 1 is that the structure of the business rule parameter interactive device that the embodiment of the present invention is used in regulation engine is shown
It is intended to.The business rule parameter interactive device being applied in regulation engine shown in Fig. 1 includes regular description language acquisition module
10th, rule semantics parsing module 20, parameter memory module 30, retrieval module 40, character conversion module 50 and display module 60.
Specifically, regular description language acquisition module 10 is used for obtaining the regular description language of input.Specifically, may be used
To be to regulation engine input rule description language.Wherein, regulation engine is a kind of embedded assembly in the application, realizes
Operational decision making is separated from application code, and writes operational decision making using predefined semantic modules, accept
Data input, explains business rule, and makes operational decision making according to business rule.
Rule semantics parsing module 20 is used for using rule semantics analytic method, described rule description language being parsed,
At least one regulatory body information of acquisition.Specifically, rule semantics parsing module 20 is by the data of described business rule description language
Structure is converted to binary tree structure, and each node for this binary tree structure is parsed, and obtains at least one regulatory body information.
Parameter memory module 30 is used for by described regulatory body information Store in a data base, and by this regulatory body
Information is corresponding with least one of rule numbers, parameter type, parameter numbering.
Retrieval module 40 is used for according at least one of described rule numbers, parameter type, parameter numbering from described data
Described regulatory body information is retrieved in storehouse.
If character conversion module 50 is used for there is foreign language symbol, by described foreign language symbol in described regulatory body information
Be converted to Chinese symbol.
The parameter type that display module 60 is used for according to described regulatory body information selects and described regulatory body information
The corresponding form controls of parameter type, shows this form controls at least one page, and shows described in this form controls
Regulatory body information.Therefore, user can obtain this regulatory body information from this form controls, and can also be in this list
The information of alteration ruler main body on control.Wherein, the parameter type of described regulatory body information includes text type, date class
Type, described form controls includes Text Entry corresponding with described text type, and day corresponding with described date type
Phase selects control.This page can be web page, and this form controls can be HTML form control.
Referring to Fig. 2, Fig. 2 is that the present invention is used for the business rule parameter exchange method first embodiment in regulation engine
Flow chart.The business rule parameter exchange method being applied in regulation engine shown in Fig. 2 includes step S201 ~ step S203.
Step S201 is regular description language obtaining step, in step s 201, obtains the regular description language of input.Rule
Then description language is defined to rule and describes using meeting the form that regulation engine specifies.In this step, rule is retouched
Predicate speech is as input, to obtain the information related to rule in subsequent step from this regular description language.
Step S202 is rule semantics analyzing step, in step S202, using rule semantics analytic method to described rule
Then description language is parsed, and obtains at least one regulatory body information.In this step, regular description language is parsed,
Or one or more regulatory body information, peel off other incoherent information.
In order to realize the understanding to regular description language, the data structure of described business rule description language can be changed
For binary tree structure, each node for this binary tree structure is parsed.
Referring to Fig. 3, Fig. 3 is the structural representation of binary tree corresponding with a business rule.For example, for business rule table
State for:Type of insuring is(List parameter:New guarantor, continuation of insurance, turn guarantor), and car age can not be more than(Argument of type integer)Nian Kezhuan
Turn to the binary tree structure shown in Fig. 3.For conjunction " and " have two conjunction "Yes" and " more than ".Wherein conjunction
"Yes" comprises " type of insuring " and " list parameter " Liang Ge branch;Conjunction " more than " there is " car age " and " argument of type integer " two
Branch.As such, it is possible to be processed for each node in binary tree, obtain the regulatory body information in business rule.
Step S203 is step display, in step S203, according to the parameter type of described regulatory body information select with
The corresponding form controls of parameter type of described regulatory body information, shows this form controls at least one page, and at this
Described regulatory body information is shown in form controls.So, different types of parameter shows different HTML on web page
Form controls.Wherein, the parameter type of described regulatory body information includes text type, date type, described form controls bag
Include Text Entry corresponding with described text type, and the date corresponding with described date type selects control.Therefore, one
Individual text parameter, is just shown as a Text Entry on the page, if the parameter of a date type, then on the page
It is shown as a date selection control.
Referring to Fig. 4, Fig. 4 is that the present invention is used for the business rule parameter exchange method second embodiment in regulation engine
Flow chart.Business rule parameter exchange method second embodiment shown in Fig. 4 includes step S401 ~ S404.With shown in Fig. 2
First embodiment is compared, the step 401 of this second embodiment, step S402 and step 404 respectively with first embodiment
Step S201, step S202 identical with step S302, here is omitted.
Additionally, second embodiment also includes step S403.Step S403 is character switch process.In step S403,
If there is foreign language symbol in described regulatory body information, described foreign language symbol is converted to Chinese symbol.Wherein, this place
The foreign language symbol stated refers to that English, Greek, Latin character etc. are not belonging to other symbols of Chinese symbol, Chinese described herein
Symbol refers to be issued by State General Bureau of Standardization《Chinese Character Set Code for Informati baseset》The symbol of regulation.
Referring to Fig. 5, Fig. 5 is that the present invention is used for business rule parameter exchange method the 3rd embodiment in regulation engine
Flow chart.The business rule parameter exchange method being applied in regulation engine shown in Fig. 5 includes step S501 ~ step 506.
In step S501, obtain the regular description language of input, regular description language specifies using meeting regulation engine
Form rule is defined and describes.In this step, regular description language is as input, so as in subsequent step from
The information related to rule is obtained in this regular description language.
In step S502, using rule semantics analytic method, described rule description language is parsed, obtain at least
One regulatory body information.
In step S503, if there is foreign language symbol in described regulatory body information, described foreign language symbol is changed
For Chinese symbol.Wherein, foreign language symbol described herein refers to that English, Greek, Latin character etc. are not belonging to Chinese symbol
Other symbols, Chinese symbol described herein refers to be issued by State General Bureau of Standardization《Information exchange Chinese character coding set
Collection baseset》The symbol of regulation.
In step S504, by described regulatory body information Store in a data base, and by this regulatory body information
Corresponding with least one of rule numbers, parameter type, parameter numbering.
In step S505, according at least one of described rule numbers, parameter type, parameter numbering from described data base
The described regulatory body information of middle retrieval.
In step S506, the parameter type according to described regulatory body information selects the ginseng with described regulatory body information
The corresponding form controls of several classes of type, shows described regulatory body information in this form controls.Wherein, described regulatory body information
Parameter type include text type, date type, described form controls includes text input corresponding with described text type
Frame, and date corresponding with described date type selection control.
The embodiment of the present invention is passed through to propose a kind of business rule parameter exchange method being applied in regulation engine and device,
Business rule can be illustrated in the form of list on web page so that operating personnel can be by list in application platform
The parameter setting of upper finishing service rule.
Although an embodiment of the present invention has been shown and described, for the ordinary skill in the art, permissible
Understand and can carry out multiple changes, modification, replacement to these embodiments without departing from the principles and spirit of the present invention
And modification, the scope of the present invention limits by claims and its equivalency range.
Claims (10)
1. a kind of business rule parameter exchange method being applied in regulation engine is it is characterised in that the described rule that is applied to is drawn
Business rule parameter exchange method in holding up includes:
Regular description language obtaining step, obtains the regular description language of input;
Rule semantics analyzing step, is parsed to described rule description language using rule semantics analytic method, obtains at least
One regulatory body information;
Step display, the parameter type according to described regulatory body information selects the parameter type pair with described regulatory body information
The form controls answered, shows this form controls at least one page, and shows described regulatory body letter in this form controls
Breath.
2. it is applied to business rule parameter exchange method in regulation engine as claimed in claim 1 it is characterised in that described
The parameter type of regulatory body information includes text type, date type, and described form controls includes and described text type pair
The Text Entry answered, and date corresponding with described date type selection control.
3. it is applied to business rule parameter exchange method in regulation engine as claimed in claim 1 it is characterised in that described
Rule semantics analyzing step includes:
The data structure of described business rule description language is converted to binary tree structure, for each node of this binary tree structure
Parsed, obtained at least one regulatory body information.
4. it is applied to business rule parameter exchange method in regulation engine as claimed in claim 1 it is characterised in that in institute
After stating rule semantics analyzing step, and also included before described step display:
, if there is foreign language symbol in described regulatory body information, during described foreign language symbol is converted in character switch process
Civilian symbol.
5. it is applied to business rule parameter exchange method in regulation engine as claimed in claim 4 it is characterised in that in institute
After stating character switch process, and also included before described step display:
Parameter storing step, by described regulatory body information Store in a data base, and by this regulatory body information and rule
Then at least one of numbering, parameter type, parameter numbering are corresponding, and,
Searching step, retrieves institute according at least one of described rule numbers, parameter type, parameter numbering from described data base
State regulatory body information.
6. a kind of business rule parameter interactive device being applied in regulation engine is it is characterised in that the described rule that is applied to is drawn
Business rule parameter interactive device in holding up includes:
Regular description language acquisition module, for obtaining the regular description language of input;
Rule semantics parsing module, for being parsed to described rule description language using rule semantics analytic method, is obtained
At least one regulatory body information;
Display module, selects the parameter class with described regulatory body information for the parameter type according to described regulatory body information
The corresponding form controls of type, shows this form controls at least one page, and shows that in this form controls described rule is main
Body information.
7. it is applied to business rule parameter interactive device in regulation engine as claimed in claim 6 it is characterised in that described
The parameter type of regulatory body information includes text type, date type, and described form controls includes and described text type pair
The Text Entry answered, and date corresponding with described date type selection control.
8. it is applied to business rule parameter interactive device in regulation engine as claimed in claim 6 it is characterised in that described
Rule semantics parsing module includes:
The data structure of described business rule description language is converted to binary tree structure, for each node of this binary tree structure
Parsed, obtained at least one regulatory body information.
9. the business rule parameter interactive device being applied to as claimed in claim 6 in regulation engine is it is characterised in that also wrap
Include:
Character conversion module, if there is foreign language symbol in described regulatory body information, described foreign language symbol is changed
For Chinese symbol.
10. the business rule parameter interactive device being applied to as claimed in claim 6 in regulation engine is it is characterised in that go back
Including:
Parameter memory module, for by described regulatory body information Store in a data base, and by this regulatory body information
Corresponding with least one of rule numbers, parameter type, parameter numbering, and,
Retrieval module, for examining from described data base according at least one of described rule numbers, parameter type, parameter numbering
Suo Suoshu regulatory body information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610828193.9A CN106446116A (en) | 2016-09-18 | 2016-09-18 | Business rule parameter interaction method and business rule parameter interaction device applied to rule engine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610828193.9A CN106446116A (en) | 2016-09-18 | 2016-09-18 | Business rule parameter interaction method and business rule parameter interaction device applied to rule engine |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106446116A true CN106446116A (en) | 2017-02-22 |
Family
ID=58168486
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610828193.9A Pending CN106446116A (en) | 2016-09-18 | 2016-09-18 | Business rule parameter interaction method and business rule parameter interaction device applied to rule engine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106446116A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108038665A (en) * | 2017-12-08 | 2018-05-15 | 平安科技(深圳)有限公司 | Business Rule Management method, apparatus, equipment and computer-readable recording medium |
CN109684638A (en) * | 2018-12-24 | 2019-04-26 | 北京金山安全软件有限公司 | Sentence segmentation method and device, electronic equipment and computer readable storage medium |
CN109947401A (en) * | 2019-03-15 | 2019-06-28 | 第四范式(北京)技术有限公司 | The method and device handled by computer executing rule |
CN112905681A (en) * | 2021-02-09 | 2021-06-04 | 上海易校信息科技有限公司 | Data conversion method |
WO2022142016A1 (en) * | 2020-12-30 | 2022-07-07 | 平安科技(深圳)有限公司 | Rule engine-based parameter conversion method and apparatus, and device and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092967A (en) * | 2013-01-22 | 2013-05-08 | 交通银行股份有限公司 | Business rule decision-making method and device based on rule engine |
CN103927174A (en) * | 2014-04-17 | 2014-07-16 | 北京视博数字电视科技有限公司 | Service processing method and device |
CN105573726A (en) * | 2014-10-10 | 2016-05-11 | 阿里巴巴集团控股有限公司 | Rule processing method and equipment |
-
2016
- 2016-09-18 CN CN201610828193.9A patent/CN106446116A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092967A (en) * | 2013-01-22 | 2013-05-08 | 交通银行股份有限公司 | Business rule decision-making method and device based on rule engine |
CN103927174A (en) * | 2014-04-17 | 2014-07-16 | 北京视博数字电视科技有限公司 | Service processing method and device |
CN105573726A (en) * | 2014-10-10 | 2016-05-11 | 阿里巴巴集团控股有限公司 | Rule processing method and equipment |
Non-Patent Citations (1)
Title |
---|
王小红: "规则引擎应用框架及其在信贷业务中的应用", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108038665A (en) * | 2017-12-08 | 2018-05-15 | 平安科技(深圳)有限公司 | Business Rule Management method, apparatus, equipment and computer-readable recording medium |
CN108038665B (en) * | 2017-12-08 | 2020-01-24 | 平安科技(深圳)有限公司 | Business rule management method, device, equipment and computer readable storage medium |
CN109684638A (en) * | 2018-12-24 | 2019-04-26 | 北京金山安全软件有限公司 | Sentence segmentation method and device, electronic equipment and computer readable storage medium |
CN109684638B (en) * | 2018-12-24 | 2023-08-11 | 北京金山安全软件有限公司 | Clause method and device, electronic equipment and computer readable storage medium |
CN109947401A (en) * | 2019-03-15 | 2019-06-28 | 第四范式(北京)技术有限公司 | The method and device handled by computer executing rule |
WO2022142016A1 (en) * | 2020-12-30 | 2022-07-07 | 平安科技(深圳)有限公司 | Rule engine-based parameter conversion method and apparatus, and device and medium |
CN112905681A (en) * | 2021-02-09 | 2021-06-04 | 上海易校信息科技有限公司 | Data conversion method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108073680B (en) | Generating presentation slides with refined content | |
CN106446116A (en) | Business rule parameter interaction method and business rule parameter interaction device applied to rule engine | |
CN102103605B (en) | Method and system for intelligently extracting document structure | |
JP2019530921A (en) | Method and system for server-side rendering of native content for presentation | |
CN104133772A (en) | Automatic test data generation method | |
CN106990970B (en) | MVC-based dynamic page generation method and system | |
CN101025738A (en) | Template-free dynamic website generating method | |
US9286278B2 (en) | Range-based text editing | |
CN104298721B (en) | A kind of arbitrarily a object split screen layout edit methods of the online courseware development based on Web | |
US9910554B2 (en) | Assisting graphical user interface design | |
CN105739963A (en) | Method and device for generating webpage | |
US20140164915A1 (en) | Conversion of non-book documents for consistency in e-reader experience | |
CN112507666A (en) | Document conversion method and device, electronic equipment and storage medium | |
CN110738035A (en) | document template generation method and device | |
CN110990345A (en) | Method and device for online preview of Excel file | |
JP2018501551A (en) | Formula processing method, apparatus, device, and program | |
US9781065B2 (en) | Lightweight application integration for mobile cloud computing | |
CN113283216A (en) | Webpage content display method, device, equipment and storage medium | |
US10628526B2 (en) | Providing suggested diagrammatic representations of user entered textual information | |
CN112306594A (en) | Rendering method and device based on mobile terminal and storage medium | |
CN110609981A (en) | Text processing method and device, electronic equipment and computer readable storage medium | |
CN109992580A (en) | Processing method and processing device, storage medium, the computer equipment of table data | |
US20090287994A1 (en) | Document processing device and document processing method | |
CN115469849A (en) | Service processing system, method, electronic device and storage medium | |
US10402482B2 (en) | Content management system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170222 |