CN107797826A - A kind of regular collocation method, terminal and the equipment of rule-based engine - Google Patents

A kind of regular collocation method, terminal and the equipment of rule-based engine Download PDF

Info

Publication number
CN107797826A
CN107797826A CN201710357844.5A CN201710357844A CN107797826A CN 107797826 A CN107797826 A CN 107797826A CN 201710357844 A CN201710357844 A CN 201710357844A CN 107797826 A CN107797826 A CN 107797826A
Authority
CN
China
Prior art keywords
label
configuration information
rule
functions
executable script
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
CN201710357844.5A
Other languages
Chinese (zh)
Other versions
CN107797826B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201710357844.5A priority Critical patent/CN107797826B/en
Publication of CN107797826A publication Critical patent/CN107797826A/en
Priority to PCT/CN2018/083630 priority patent/WO2018210096A1/en
Application granted granted Critical
Publication of CN107797826B publication Critical patent/CN107797826B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The embodiment of the invention discloses a kind of regular collocation method, terminal and the equipment of rule-based engine, wherein methods described includes:Obtain the label configuration information of user's input;The label configuration information is assembled into corresponding JS functions;The JS functions are generated into executable script;The executable script is loaded onto in local data base;If receiving execute instruction, obtained from the local data base and perform the executable script.The present invention can neatly enter line discipline configuration, and the implementation procedure of rule is simple, can be combined closely with the rule in implementation rule engine and data source, meet the business demand of in the market.

Description

A kind of regular collocation method, terminal and the equipment of rule-based engine
Technical field
The present invention relates to field of computer technology, more particularly to a kind of regular collocation method of rule-based engine, terminal And equipment.
Background technology
Regulation engine, the expert system in artificial intelligence field, expert system use knowledge base processing industry earliest Business data and the conclusion for inferring correlation.Regulation engine is the software systems that one group of business rules is performed in production run environment, it Policy rule to depart from application code to be defined, test, perform and safeguard.Regulation engine use meets specific language The rule language of method enters the definition of line discipline, and generally rule separates with application code, and tells " need using the mode of statement formula What does ", rather than " how doing ", regulation engine receives data input, explains business rule and made according to business rule Corresponding decision-making.
At present, regulation engine is widely used in each market, such as finance, communication etc., to adapt to business in market Quick change.But the regular service logic with each market in the market in regulation engine combined it is not close, it is and each The business datum source in individual market combine it is also not close, and the execution implementation process of rule it is also very complicated, can not flexible configuration, this The business demand in each market can not be met using the rule formulated in existing regulation engine by resulting in.
The content of the invention
The embodiment of the present invention provides a kind of regular collocation method, terminal and the equipment of rule-based engine, can be flexible Ground enters line discipline configuration, and the implementation procedure of rule is simple, can be with regular tight with data source in implementation rule engine Close combination, meet the business demand of in the market.
On the one hand, the embodiments of the invention provide a kind of regular collocation method of rule-based engine, this method to include:
Obtain the label configuration information of user's input;
The label configuration information is assembled into corresponding JS functions;
The JS functions are generated into executable script;
The executable script is loaded onto in local data base;
If receiving execute instruction, obtained from the local data base and perform the executable script.
Further, the label configuration information for obtaining user's input, including:
There is provided page icon for selection by the user, the page icon includes one or more label;
Based on the label selected by user, there is provided the corresponding label configuration page;
The input of the page is configured in label based on user, generates the corresponding label configuration page;
The page is configured by the label and obtains the label configuration information.
Further, it is described that the label configuration information is spliced into corresponding JS functions, including:
Obtain the field information in label configuration information;
Obtain the label value and condition configuration information corresponding with the field information;
The label value and condition configuration information are assembled into corresponding JS functions.
Further, the executable script includes multiple JS functions, if described receive execute instruction, from the local Obtained in database and perform the executable script, including:
If receiving execute instruction, the executable script is obtained from the local data base;
Perform each JS function in the executable script;
Obtain and preserve the implementing result of each JS function.
Further, methods described also includes:
For multiple one JSON data file of JS function creations, different JS function pairs answer identical JSON data files;
The JSON Generating Data Files be can perform into script.
On the other hand, the embodiments of the invention provide a kind of regular configurating terminal of rule-based engine, the terminal to include:
First acquisition unit, for obtaining the label configuration information of user's input;
First assembled rigid unit, for the label configuration information to be assembled into corresponding JS functions;
First generation unit, for the JS functions to be generated into executable script;
Loading unit, for the executable script to be loaded onto in local data base;
First execution unit, if for receiving execute instruction, obtained from the local data base and perform it is described can Perform script.
Further, the first acquisition unit, including:
First provides unit, and for providing page icon for selection by the user, the page icon is including one or more Item label;
Second provides unit, for based on the label selected by user, there is provided the corresponding label configuration page;
Second generation unit, for configuring the input of the page in label based on user, generate corresponding label configuration page Face;
Second acquisition unit, the label configuration information is obtained for configuring the page by the label.
Further, first assembled rigid unit, including:
3rd acquiring unit, for obtaining the field information in label configuration information;
4th acquiring unit, for obtaining the label value and condition configuration information corresponding with the field information;
Second assembled rigid unit, for the label value and condition configuration information to be assembled into corresponding JS functions.
Further, the executable script includes multiple JS functions, first execution unit, including:
5th acquiring unit, if for receiving execute instruction, the executable pin is obtained from the local data base This;
Second execution unit, for performing each JS function in the executable script;
6th acquiring unit, for obtaining and preserving the implementing result of each JS function;
Methods described also includes:
Creating unit, for answering identical to multiple one JSON data file of JS function creations, different JS function pairs JSON data files;
3rd generation unit, for the JSON Generating Data Files to can perform into script.
On the other hand, the embodiment of the present invention also provides a kind of rule configuration equipment of rule-based engine, memory, is used for The program of engine rule configuration is realized in storage;And
Processor, for running the program for realizing engine rule configuration stored in the memory, to perform following grasp Make:
Obtain the label configuration information of user's input;
The label configuration information is assembled into corresponding JS functions;
The JS functions are generated into executable script;
The executable script is loaded onto in local data base;
If receiving execute instruction, obtained from the local data base and perform the executable script.
In summary, the invention has the advantages that:The embodiment of the present invention is matched somebody with somebody by obtaining the label that user inputs Confidence is ceased, and the label configuration information is assembled into corresponding JS functions, the JS functions is generated into executable script, by institute State executable script to be loaded onto in local data base, if receiving execute instruction, obtain and perform from the local data base The executable script, it can neatly enter line discipline configuration, and the implementation procedure of rule is simple, can draw with implementation rule Rule and data source in holding up are combined closely, and meet the business demand of in the market.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, it is required in being described below to embodiment to use Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow diagram of the regular collocation method of rule-based engine provided in an embodiment of the present invention.
Fig. 2 is a kind of another exemplary flow of the regular collocation method of rule-based engine provided in an embodiment of the present invention Figure.
Fig. 3 is the display schematic diagram of page icon described in the embodiment of the present invention.
Fig. 4 is the display schematic diagram of the label configuration page described in the embodiment of the present invention.
Fig. 5 is a kind of another exemplary flow of the regular collocation method of rule-based engine provided in an embodiment of the present invention Figure.
Fig. 6 is a kind of another exemplary flow of the regular collocation method of rule-based engine provided in an embodiment of the present invention Figure.
Fig. 7 is a kind of exemplary flow of the regular collocation method for rule-based engine that another embodiment of the present invention provides Figure.
Fig. 8 is a kind of schematic block diagram of the regular configurating terminal of rule-based engine provided in an embodiment of the present invention.
Fig. 9 is a kind of another schematic frame of the regular configurating terminal of rule-based engine provided in an embodiment of the present invention Figure.
Figure 10 is a kind of another schematic frame of the regular configurating terminal of rule-based engine provided in an embodiment of the present invention Figure.
Figure 11 is a kind of another schematic frame of the regular configurating terminal of rule-based engine provided in an embodiment of the present invention Figure.
Figure 12 is a kind of another schematic frame of the regular configurating terminal of rule-based engine provided in an embodiment of the present invention Figure.
Figure 13 is a kind of structure composition signal of the rule configuration equipment of rule-based engine provided in an embodiment of the present invention Figure.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but it is not precluded from one or more of the other feature, whole Body, step, operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
Referring to Fig. 1, Fig. 1 is a kind of showing for the regular collocation method for rule-based engine that the embodiment of the present invention one provides It is intended to.This method may operate in smart mobile phone (such as Android phone, IOS mobile phones), tablet personal computer, notebook computer with And in the terminal such as smart machine.This method mainly configures to the rule in regulation engine, it is possible to achieve neatly regular Configuration, the regular implementation procedure configured is simple, can combining closely with implementation rule engine and data source, to meet city Business demand on field.As shown in figure 1, the step of this method, includes S101~S105.
S101, obtain the label configuration information of user's input.
In embodiments of the present invention, the label configuration information can be according to the need of business by user's self-defining, user Label configuration information is edited, the label configuration information can include herein below:A) label value, risk FLAG, weight with And color etc.;B) the condition configuration information that the content in being directed to a) is formulated, wherein, condition configuration information is by logical operation Symbol is formed.
It should be noted that the rule in existing regulation engine, user can not combine the type of service of oneself to rule Flexible configuration is carried out, causes the means of existing rule process business single;Rule in the embodiment of the present invention, can be according to industry The needs of business by user from edlin label configuration information, to make the rule for meeting own service content.
Further, as shown in Fig. 2 step S101 includes step S201~S204.
S201, there is provided for selection by the user, the page icon includes one or more label to page icon.
In embodiments of the present invention, such as shown in Fig. 3, there is provided page icon G selects for user, right in page icon G Answer an item data field G1, the corresponding one or more label Gs 2 related to data field G1 of data field G1, each single item Label G 2 corresponds to related operation G3, and operation G3 can provide the user the edit operation of corresponding label G 2, for Family inputs corresponding label configuration information.
S202, based on the label selected by user, there is provided the corresponding label configuration page.
In embodiments of the present invention, each single item label on page icon corresponds to related operation, and user can select Any label on page icon is operated, and the operation is edit operation, such as shown in Fig. 3, user selects duration of opening an account Label, and click on edit operation and enter the label configuration page corresponding with the edit operation.
S203, the input of the page is configured in label based on user, generate the corresponding label configuration page.
In embodiments of the present invention, the label according to selected by user generates the corresponding label configuration page, a mark The corresponding label configuration page of label, such as shown in Fig. 4, user, which have selected, opens an account duration label mark and to click on edit operation laggard Enter the label configuration page H of the label, in the label configuration page H for duration of opening an account, what user can edit label matches somebody with somebody confidence Such as label value, risk FLAG, weight and color are ceased, such as label value, risk FLAG, weight wherein in the configuration information of label And color etc. voluntarily can be selected or defined by user, in addition, user can also edit the condition configuration information of label, such as Rule of judgment in Fig. 4, wherein Rule of judgment voluntarily can be selected or defined by user.
S204, the page is configured by the label and obtains the label configuration information.
In embodiments of the present invention, in the editor for label user inputted on the label configuration page Hold the configuration information as the label, the label configuration information inputted on the different labels configuration page differs.
S102, the label configuration information is assembled into corresponding JS functions.
Further, as shown in figure 5, step S102 includes step S301~S303.
S301, obtain the field information in label configuration information.
In embodiments of the present invention, the field information in the label configuration information is data field corresponding to label, mark Signature claims.For example, data field in figure 3 has Back ground Information and checking, bookmark name has identity real name certification, number shape State, duration of opening an account, bank card real-name authentication, identity card validity verification or work address matching checking.
S302, obtain the label value and condition configuration information corresponding with the field information.
S303, the label value and condition configuration information are assembled into corresponding JS functions.
In embodiments of the present invention, specifically, the JS functions are Java Script functions, described by label value and bar Part configuration information is assembled into corresponding JS functions, i.e. by defining Java Script functions, label value and condition are configured In Java Script functions defined in information write-in, and define the calling of Java Script functions.
S103, the JS functions are generated into executable script.
In embodiments of the present invention, the JS functions are entered by using script Core Generator config.properties Row parses and generates corresponding executable script, can be placed on the JS functions and script Core Generator Under the identical roots of config.properties, the JS functions can also be placed under other paths, wherein, script life JS functions can be configured, parsed and be generated corresponding executable script into instrument config.properties;If will The JS functions are placed under root identical with config.properties, config.properties acquiescence from its phase With acquisition JS functions under the path of catalogue;If the JS functions are placed in other paths, user can pass through The path configuration file that config.properties is provided sets the placement path of JS functions so that config.properties JS functions are obtained under the path set by user;After if config.properties gets JS functions, by JS functions Content reads in internal memory, and then the JS functions are parsed and generate executable script, pre- in config.properties Provided with parsing code, the JS functions are parsed by parsing code, according to default parsing code in resolving Obtain the content that should be obtained in JS functions.
S104, the executable script is loaded onto in local data base.
In embodiments of the present invention, the executable script is loaded onto in local data base, be specifically including but not limited to In the following manner:Component is extracted by data to extract in local data base the executable script, for example, user is first in local Database and form are established in database, component is extracted by data and establishes data extraction strategy, in the category of data extraction component Property setting options in select and fill in the address where the executable script, in the attribute setting options of data extraction component The form in local data base is selected, the executable script loaded can be stored by the form, i.e. hold described Travel far and wide and be originally loaded onto in local data base.
S105, if receiving execute instruction, obtained from the local data base and perform the executable script.
Further, as shown in fig. 6, the executable script includes multiple JS functions, step S105 includes step S401 ~S403.
S401, if receiving execute instruction, the executable script is obtained from the local data base.
S402, perform each JS function in the executable script.
S403, obtain and preserve the implementing result of each JS function.
As seen from the above, the label configuration information that the embodiment of the present invention is inputted by obtaining user, the label is configured Information is assembled into corresponding JS functions, and the JS functions are generated into executable script, the executable script is loaded onto into this In ground database, if receiving execute instruction, obtained from the local data base and perform the executable script, Ke Yiling Enter line discipline configuration livingly, and the implementation procedure of rule is simple, meets the business demand of in the market.
Referring to Fig. 7, Fig. 7 is a kind of showing for the regular collocation method for rule-based engine that the embodiment of the present invention two provides It is intended to.This method may operate in smart mobile phone (such as Android phone, IOS mobile phones), tablet personal computer, notebook computer with And in the terminal such as smart machine.This method mainly configures to the rule in regulation engine, it is possible to achieve neatly regular Configuration, the regular implementation procedure configured is simple, can combining closely with implementation rule engine and data source, to meet city Business demand on field.As shown in fig. 7, the step of this method, includes S501~S506.
S501, obtain the label configuration information of user's input.
In embodiments of the present invention, the label configuration information can be according to the need of business by user's self-defining, user Label configuration information is edited, the label configuration information can include herein below:A) label value, risk FLAG, weight with And color etc.;B) the condition configuration information that the content in being directed to a) is formulated, wherein, condition configuration information is by logical operation Symbol is formed.
It should be noted that the rule in existing regulation engine, user can not combine the type of service of oneself to rule Flexible configuration is carried out, causes the means of existing rule process business single;Rule in the embodiment of the present invention, can be according to industry The needs of business by user from edlin label configuration information, to make the rule for meeting own service content.
S502, the label configuration information is assembled into corresponding JS functions.
In embodiments of the present invention, the label value and condition configuration information in label configuration information are first obtained, then will be obtained The label value and condition configuration information taken is assembled into corresponding JS functions, and the mode for being assembled into JS functions specifically includes but unlimited In in the following manner:By defining Java Script functions, by Java defined in label value and the write-in of condition configuration information In Script functions, and define the calling of Java Script functions.
S503, is multiple one JSON data file of JS function creations, and different JS function pairs answer identical JSON data File.
In embodiments of the present invention, the JSON data file corresponding with multiple JS functions is created, wherein, different JS letters The corresponding identical JSON data files of number, can be combined the data source between different business by creating JSON data files Come, the rule solved in the market is combined untight problem with data source between each different business of in the market.
S504, the JSON Generating Data Files be can perform into script.
S505, the executable script is loaded onto in local data base.
In embodiments of the present invention, the executable script is loaded onto in local data base, be specifically including but not limited to In the following manner:Component is extracted by data to extract in local data base the executable script, for example, user is first in local Database and form are established in database, component is extracted by data and establishes data extraction strategy, in the category of data extraction component Property setting options in select and fill in the address where the executable script, in the attribute setting options of data extraction component The form in local data base is selected, the executable script loaded can be stored by the form, i.e. hold described Travel far and wide and be originally loaded onto in local data base.
S506, if receiving executable instruction, obtained from the local data base and perform the executable script.
As seen from the above, the embodiment of the present invention passes through to multiple one JSON data file of JS function creations, different JS Function pair answers identical JSON data files, the JSON Generating Data Files can perform into script, it is possible to achieve regulation engine In rule combined closely with data source, solve data between regular and in the market each different business in the market Source combines untight problem.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can To instruct the hardware of correlation to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Referring to Fig. 8, a kind of corresponding above-mentioned regular collocation method of rule-based engine, the embodiment of the present invention also propose one The regular configurating terminal of the rule-based engine of kind, the terminal 100 include:First acquisition unit 101, the first assembled rigid unit 102, One generation unit 103, loading unit 104, the first execution unit 105.
Wherein, the first acquisition unit 101, for obtaining the label configuration information of user's input.
First assembled rigid unit 102, for the label configuration information to be assembled into corresponding JS functions.
First generation unit 103, for the JS functions to be generated into executable script.
Loading unit 104, for the executable script to be loaded onto in local data base.
First execution unit 105, if for receiving execute instruction, obtain and perform described from the local data base Executable script.
As shown in figure 9, the first acquisition unit 101, including:
First provide unit 1011, for providing page icon for selection by the user, the page icon include one or The multinomial label of person.
Second provides unit 1012, for based on the label selected by user, there is provided the corresponding label configuration page.
Second generation unit 1013, for configuring the input of the page in label based on user, generate corresponding label and match somebody with somebody Put the page.
Second acquisition unit 1014, the label configuration information is obtained for configuring the page by the label.
As shown in Figure 10, first assembled rigid unit 102, including:
3rd acquiring unit 1021, for obtaining the field information in label configuration information.
4th acquiring unit 1022, for obtaining the label value and condition configuration information corresponding with the field information.
Second assembled rigid unit 1023, for the label value and condition configuration information to be assembled into corresponding JS functions.
As shown in figure 11, first execution unit 105, including:
5th acquiring unit 1051, if for receiving execute instruction, it can be held described in acquisition from the local data base Travel far and wide this.
Second execution unit 1051, for performing each JS function in the executable script.
6th acquiring unit 1052, for obtaining and preserving the implementing result of each JS function.
Figure 12, a kind of corresponding above-mentioned regular collocation method of rule-based engine are referred to, the embodiment of the present invention also proposes A kind of regular configurating terminal of rule-based engine, the terminal 200 include:First acquisition unit 201, the first assembled rigid unit 202, Creating unit 203, the 3rd generation unit 204, loading unit 205, the first execution unit 206.
Wherein, the first acquisition unit 201, for obtaining the label configuration information of user's input.
First assembled rigid unit 202, for the label configuration information to be assembled into corresponding JS functions.
Creating unit 203, for for multiple one JSON data file of JS function creations, different JS function pairs should be identical JSON data files.
3rd generation unit 204, for the JSON Generating Data Files to can perform into script.
Loading unit 205, for the executable script to be loaded onto in local data base.
First execution unit 206, if for receiving execute instruction, obtain and perform described from the local data base Executable script.
In hardware realization, above first acquisition unit 101, the first assembled rigid unit 102, the first generation unit 103, loading Unit 104, first execution unit 105 etc. can in the form of hardware be embedded in or independently of in data processing equipments, can also be with Software form is stored in the memory of data processing equipment, and behaviour corresponding to above unit is performed in order to which processor calls Make.The processor can be CPU (CPU), microprocessor, single-chip microcomputer etc..
Figure 13 is a kind of structure composition schematic diagram of the rule configuration equipment of rule-based engine of the present invention.Such as Figure 13 institutes Show, the equipment 300 may include:Input unit 301, output device 302, R-T unit 303, memory 304 and processor 305, wherein:
The input unit 301, for receiving the input data of outside access control device.It is in the specific implementation, of the invention Input unit 301 described in embodiment may include keyboard, mouse, photoelectricity input unit, acoustic input dephonoprojectoscope, touch input dress Put, scanner etc..
The output device 302, the output data for external output access control device.It is in the specific implementation, of the invention Output device 302 described in embodiment may include display, loudspeaker, printer etc..
The R-T unit 303, for sending data to other equipment by communication link or being received from other equipment Data.In the specific implementation, the R-T unit 303 of the embodiment of the present invention may include the transceiving devices such as radio-frequency antenna.
The memory 304, the program of the rule configuration of rule-based engine is realized for storing.In the specific implementation, this The memory 304 of inventive embodiments can be system storage, such as, volatile (such as RAM), it is non-volatile (such as ROM, flash memory etc.), or both combination.In the specific implementation, the memory 304 of the embodiment of the present invention can also be outside system External memory storage, such as, disk, CD, tape etc..
The processor 305, for running the rule configuration for realizing rule-based engine stored in the memory Program, and perform following operation:
Obtain the label configuration information of user's input;
The label configuration information is assembled into corresponding JS functions;
The JS functions are generated into executable script;
The executable script is loaded onto in local data base;
If receiving execute instruction, obtained from the local data base and perform the executable script.
Further, the label configuration information for obtaining user's input, including:
There is provided page icon for selection by the user, the page icon includes one or more label;
Based on the label selected by user, there is provided the corresponding label configuration page;
The input of the page is configured in label based on user, generates the corresponding label configuration page;
The page is configured by the label and obtains the label configuration information.
Further, it is described that the label configuration information is spliced into corresponding JS functions, including:
Obtain the field information in label configuration information;
Obtain the label value and condition configuration information corresponding with the field information;
The label value and condition configuration information are assembled into corresponding JS functions.
Further, the executable script includes multiple JS functions, if described receive execute instruction, from the local Obtained in database and perform the executable script, including:
If receiving execute instruction, the executable script is obtained from the local data base;
Perform each JS function in the executable script;
Obtain and preserve the implementing result of each JS function.
Further, the processor 305 also performs following operation:
For multiple one JSON data file of JS function creations, different JS function pairs answer identical JSON data files;
The JSON Generating Data Files be can perform into script.
It will be understood by those skilled in the art that the embodiment of the rule configuration equipment of the rule-based engine shown in Figure 13 The restriction that the rule configuration equipment to rule-based engine is specifically formed is not formed, it is in other embodiments, rule-based to draw The rule configuration equipment held up can be included than illustrating more or less parts, either combine some parts or different portions Part is arranged.For example, in certain embodiments, the rule configuration equipment of rule-based engine can only include memory and processing Device, in such embodiments, the structure and function of memory and processor are consistent with embodiment illustrated in fig. 13, no longer superfluous herein State.
The invention provides a kind of computer-readable recording medium, computer-readable recording medium storage has one or one Individual procedure above, one either more than one program can by one or more than one computing device, with realize with Lower step:
Obtain the label configuration information of user's input;
The label configuration information is assembled into corresponding JS functions;
The JS functions are generated into executable script;
The executable script is loaded onto in local data base;
If receiving execute instruction, obtained from the local data base and perform the executable script.
Further, the label configuration information for obtaining user's input, including:
There is provided page icon for selection by the user, the page icon includes one or more label;
Based on the label selected by user, there is provided the corresponding label configuration page;
The input of the page is configured in label based on user, generates the corresponding label configuration page;
The page is configured by the label and obtains the label configuration information.
Further, it is described that the label configuration information is spliced into corresponding JS functions, including:
Obtain the field information in label configuration information;
Obtain the label value and condition configuration information corresponding with the field information;
The label value and condition configuration information are assembled into corresponding JS functions.
Further, the executable script includes multiple JS functions, if described receive execute instruction, from the local Obtained in database and perform the executable script, including:
If receiving execute instruction, the executable script is obtained from the local data base;
Perform each JS function in the executable script;
Obtain and preserve the implementing result of each JS function.
Further, the step also includes:
For multiple one JSON data file of JS function creations, different JS function pairs answer identical JSON data files;
The JSON Generating Data Files be can perform into script.
The foregoing storage medium of the present invention includes:Magnetic disc, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc. is various can be with the medium of store program codes.
Unit in all embodiments of the invention can pass through universal integrated circuit, such as CPU (Central Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated Circuit, application specific integrated circuit) realize.
Step in present invention method can be sequentially adjusted, merged and deleted according to actual needs.
Unit in terminal of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain be defined.

Claims (10)

1. a kind of regular collocation method of rule-based engine, it is characterised in that methods described includes:
Obtain the label configuration information of user's input;
The label configuration information is assembled into corresponding JS functions;
The JS functions are generated into executable script;
The executable script is loaded onto in local data base;
If receiving execute instruction, obtained from the local data base and perform the executable script.
2. the method as described in claim 1, it is characterised in that the label configuration information for obtaining user's input, including:
There is provided page icon for selection by the user, the page icon includes one or more label;
Based on the label selected by user, there is provided the corresponding label configuration page;
The input of the page is configured in label based on user, generates the corresponding label configuration page;
The page is configured by the label and obtains the label configuration information.
3. the method as described in claim 1, it is characterised in that described that the label configuration information is spliced into corresponding JS Function, including:
Obtain the field information in label configuration information;
Obtain the label value and condition configuration information corresponding with the field information;
The label value and condition configuration information are assembled into corresponding JS functions.
4. the method as described in claim 1, it is characterised in that the executable script includes multiple JS functions, if described connect Execute instruction is received, is obtained from the local data base and performs the executable script, including:
If receiving execute instruction, the executable script is obtained from the local data base;
Perform each JS function in the executable script;
Obtain and preserve the implementing result of each JS function.
5. the method as described in claim 1, it is characterised in that methods described also includes:
For multiple one JSON data file of JS function creations, different JS function pairs answer identical JSON data files;
The JSON Generating Data Files be can perform into script.
6. a kind of regular configurating terminal of rule-based engine, it is characterised in that the terminal includes:
First acquisition unit, for obtaining the label configuration information of user's input;
First assembled rigid unit, for the label configuration information to be assembled into corresponding JS functions;
First generation unit, for the JS functions to be generated into executable script;
Loading unit, for the executable script to be loaded onto in local data base;
First execution unit, if for receiving execute instruction, obtain and perform described executable from the local data base Script.
7. terminal as claimed in claim 6, it is characterised in that the first acquisition unit, including:
First provides unit, and for providing page icon for selection by the user, the page icon includes one or more mark Label;
Second provides unit, for based on the label selected by user, there is provided the corresponding label configuration page;
Second generation unit, for configuring the input of the page in label based on user, generate the corresponding label configuration page;
Second acquisition unit, the label configuration information is obtained for configuring the page by the label.
8. terminal as claimed in claim 6, it is characterised in that first assembled rigid unit, including:
3rd acquiring unit, for obtaining the field information in label configuration information;
4th acquiring unit, for obtaining the label value and condition configuration information corresponding with the field information;
Second assembled rigid unit, for the label value and condition configuration information to be assembled into corresponding JS functions.
9. terminal as claimed in claim 6, it is characterised in that the executable script includes multiple JS functions, and described first Execution unit, including:
5th acquiring unit, if for receiving execute instruction, the executable script is obtained from the local data base;
Second execution unit, for performing each JS function in the executable script;
6th acquiring unit, for obtaining and preserving the implementing result of each JS function;
Methods described also includes:
Creating unit, for answering identical JSON for multiple one JSON data file of JS function creations, different JS function pairs Data file;
3rd generation unit, for the JSON Generating Data Files to can perform into script.
A kind of 10. rule configuration equipment of rule-based engine, it is characterised in that including:
Memory, the program of engine rule configuration is realized for storing;And
Processor, for running the program for realizing engine rule configuration stored in the memory, to perform following operate:
Obtain the label configuration information of user's input;
The label configuration information is assembled into corresponding JS functions;
The JS functions are generated into executable script;
The executable script is loaded onto in local data base;
If receiving execute instruction, obtained from the local data base and perform the executable script.
CN201710357844.5A 2017-05-19 2017-05-19 Rule configuration method based on rule engine, terminal and equipment Active CN107797826B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710357844.5A CN107797826B (en) 2017-05-19 2017-05-19 Rule configuration method based on rule engine, terminal and equipment
PCT/CN2018/083630 WO2018210096A1 (en) 2017-05-19 2018-04-19 Rule engine-based rule configuration method, terminal and device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710357844.5A CN107797826B (en) 2017-05-19 2017-05-19 Rule configuration method based on rule engine, terminal and equipment

Publications (2)

Publication Number Publication Date
CN107797826A true CN107797826A (en) 2018-03-13
CN107797826B CN107797826B (en) 2020-03-17

Family

ID=61530302

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710357844.5A Active CN107797826B (en) 2017-05-19 2017-05-19 Rule configuration method based on rule engine, terminal and equipment

Country Status (2)

Country Link
CN (1) CN107797826B (en)
WO (1) WO2018210096A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108304591A (en) * 2018-03-16 2018-07-20 深圳市买买提信息科技有限公司 A kind of method for customizing of label, system and terminal device
CN108614862A (en) * 2018-03-28 2018-10-02 国家计算机网络与信息安全管理中心 Real-time tag treating method and apparatus based on stream calculation engine
WO2018210096A1 (en) * 2017-05-19 2018-11-22 平安科技(深圳)有限公司 Rule engine-based rule configuration method, terminal and device, and storage medium
CN108958871A (en) * 2018-07-03 2018-12-07 广州唯品会信息科技有限公司 Page configuration of opening an account method, apparatus, system and computer readable storage medium
CN109446443A (en) * 2018-10-18 2019-03-08 武汉斗鱼网络科技有限公司 A kind of tag update method, apparatus, equipment and storage medium
CN109918048A (en) * 2018-12-27 2019-06-21 北京奇艺世纪科技有限公司 Target object extracting method, device, system and computer readable storage medium
CN110335079A (en) * 2019-07-02 2019-10-15 上海上湖信息技术有限公司 A kind of intelligent task dispatching method and device collected based on instruction
CN110895463A (en) * 2018-09-13 2020-03-20 百度在线网络技术(北京)有限公司 Label processing method, device, equipment and computer readable storage medium
CN111552506A (en) * 2020-02-24 2020-08-18 远景智能国际私人投资有限公司 Business rule configuration method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117202A (en) * 2009-12-30 2011-07-06 北大方正集团有限公司 J2EE architecture-based code generating device
US20150373196A1 (en) * 2009-07-13 2015-12-24 Genesys Telecommunications Laboratories, Inc. System for analyzing interactions and reporting analytic results to human operated and system interfaces in real time
CN105446799A (en) * 2014-08-22 2016-03-30 阿里巴巴集团控股有限公司 Method and system for performing rule management in computer system
CN106055716A (en) * 2016-07-13 2016-10-26 北京智网易联科技有限公司 Method and equipment for automatically generating website

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7975232B2 (en) * 2005-10-31 2011-07-05 Sap Ag Systems and methods for extensible document generation
CN104331288B (en) * 2014-10-31 2017-08-01 北京思特奇信息技术股份有限公司 A kind of configurationization shows the method and system of dynamic page
CN107797826B (en) * 2017-05-19 2020-03-17 平安科技(深圳)有限公司 Rule configuration method based on rule engine, terminal and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150373196A1 (en) * 2009-07-13 2015-12-24 Genesys Telecommunications Laboratories, Inc. System for analyzing interactions and reporting analytic results to human operated and system interfaces in real time
CN102117202A (en) * 2009-12-30 2011-07-06 北大方正集团有限公司 J2EE architecture-based code generating device
CN105446799A (en) * 2014-08-22 2016-03-30 阿里巴巴集团控股有限公司 Method and system for performing rule management in computer system
CN106055716A (en) * 2016-07-13 2016-10-26 北京智网易联科技有限公司 Method and equipment for automatically generating website

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018210096A1 (en) * 2017-05-19 2018-11-22 平安科技(深圳)有限公司 Rule engine-based rule configuration method, terminal and device, and storage medium
CN108304591A (en) * 2018-03-16 2018-07-20 深圳市买买提信息科技有限公司 A kind of method for customizing of label, system and terminal device
CN108614862A (en) * 2018-03-28 2018-10-02 国家计算机网络与信息安全管理中心 Real-time tag treating method and apparatus based on stream calculation engine
CN108958871A (en) * 2018-07-03 2018-12-07 广州唯品会信息科技有限公司 Page configuration of opening an account method, apparatus, system and computer readable storage medium
CN110895463A (en) * 2018-09-13 2020-03-20 百度在线网络技术(北京)有限公司 Label processing method, device, equipment and computer readable storage medium
CN109446443A (en) * 2018-10-18 2019-03-08 武汉斗鱼网络科技有限公司 A kind of tag update method, apparatus, equipment and storage medium
CN109446443B (en) * 2018-10-18 2021-11-09 武汉斗鱼网络科技有限公司 Label updating method, device, equipment and storage medium
CN109918048A (en) * 2018-12-27 2019-06-21 北京奇艺世纪科技有限公司 Target object extracting method, device, system and computer readable storage medium
CN109918048B (en) * 2018-12-27 2022-09-06 北京奇艺世纪科技有限公司 Target object extraction method, device and system and computer readable storage medium
CN110335079A (en) * 2019-07-02 2019-10-15 上海上湖信息技术有限公司 A kind of intelligent task dispatching method and device collected based on instruction
CN110335079B (en) * 2019-07-02 2022-02-25 上海上湖信息技术有限公司 Intelligent task scheduling method and device based on instruction set
CN111552506A (en) * 2020-02-24 2020-08-18 远景智能国际私人投资有限公司 Business rule configuration method, device and storage medium

Also Published As

Publication number Publication date
CN107797826B (en) 2020-03-17
WO2018210096A1 (en) 2018-11-22

Similar Documents

Publication Publication Date Title
CN107797826A (en) A kind of regular collocation method, terminal and the equipment of rule-based engine
CN107220094B (en) Page loading method and device and electronic equipment
CN108197114B (en) Method and device for detecting table data, storage medium and electronic device
US8392884B2 (en) Test case automatic generation method for testing proactive GSM application on SIM cards
CN108292231A (en) It generates and applies from data
CN104049974B (en) Control changeable assembling method and system
CN107870798A (en) The page layout processing method and terminal of application program
CN107908657A (en) Querying method, device, computer equipment and the storage medium of bordereau
CN104679532B (en) kernel module loading method and device
CN107657973A (en) Text and audio mix display methods, device, terminal device and storage medium
CN111414739B (en) Excel data entry component, entry method and device
CN107256428A (en) Data processing method, data processing equipment, storage device and the network equipment
CN106250104A (en) A kind of remote operating system for server, method and device
CN108762760A (en) Software interface customizing method, device, computer equipment and storage medium
CN107592636A (en) A kind of method of processing information, terminal and server
CN108876619A (en) Processing method, device, equipment and medium based on block chain intelligence contract
CN110377522A (en) The test method for scene of trading, calculates equipment and medium at device
CN107358439A (en) Using method of payment, device and terminal device
CN107832448A (en) Database operation method, device and equipment
CN108039173A (en) Voice messaging input method, mobile terminal, system and readable storage medium storing program for executing
CN109360092A (en) Transaction node configuration method, device and computer equipment
CN108664392A (en) A kind of application testing method, device, terminal and storage medium
CN110427213A (en) Method, device, equipment and storage medium for realizing intelligent configuration software
CN109646953A (en) A kind of display methods of interface, device and terminal
CN107909243A (en) Method for building up, device, server and the storage medium of client layer category relation

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