CN108563490A - Explanation type rules process method, device, equipment and medium - Google Patents
Explanation type rules process method, device, equipment and medium Download PDFInfo
- Publication number
- CN108563490A CN108563490A CN201810331848.0A CN201810331848A CN108563490A CN 108563490 A CN108563490 A CN 108563490A CN 201810331848 A CN201810331848 A CN 201810331848A CN 108563490 A CN108563490 A CN 108563490A
- Authority
- CN
- China
- Prior art keywords
- rule
- result
- service request
- regular collection
- calculate
- 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
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45504—Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The present invention provides a kind of explanation type rules process method, device, equipment and media.Wherein, this method includes:Receive service request;According to preset rules set, calculate the service request as a result, and the rule executed during the result for calculating the service request is saved as the first regular collection;Export the result and first regular collection.Through the invention, it solves regulation engine and only exports regular result of calculation, and can not know that the result of output matches or perform on earth the problem of which rule, improves the ease for use of regulation engine.
Description
Technical field
The present invention relates to data processing fields, in particular to a kind of explanation type rules process method, device, equipment
And medium.
Background technology
Regulation engine is a kind of system for realizing processing logic according to rule.In regulation engine, retouched using rule
State the unit of a processing logic.For a kind of service request, a corresponding regular collection, this regular collection passes through regular text
Part describes.Regulation engine is realized at the logic to this kind of service request using the regular collection described in rule file
Reason, final output handling result.
With the increase of the regular quantity used in regulation engine, the user of regulation engine exports result to verify
The purpose of accuracy and the whether reasonable rule of verification setting, it is to be understood which rule is service request be matched to, and
Handling result is calculated according to which rule.
Existing regulation engine only supports the output of result, can not know that the result of output arrives by existing regulation engine
Which rule bottom matches or performs.
Invention content
The present invention provides a kind of explanation type rules process method, device, equipment and media, at least to solve the relevant technologies
In regulation engine only export regular result of calculation, and can not know which rule is the result of output match or perform on earth
The problem of.
In a first aspect, an embodiment of the present invention provides a kind of explanation type rules process methods, including:
Receive service request;
According to preset rules set, calculate the service request as a result, and will calculate the result of the service request
The rule executed in the process saves as the first regular collection;
Export the result and first regular collection.
Second aspect, an embodiment of the present invention provides a kind of explanation type rule process devices, including:
First receiving module, for receiving service request;
Computing module, for according to preset rules set, calculate the service request as a result, and the business will be calculated
The rule executed during the result of request saves as the first regular collection;
Output module, for exporting the result and first regular collection.
The third aspect, an embodiment of the present invention provides a kind of explanation type rule processing apparatus, including:At least one processing
Device, at least one processor and the computer program instructions being stored in the memory, when the computer program instructions
The method described in first aspect is realized when being executed by the processor.
Fourth aspect, an embodiment of the present invention provides a kind of computer readable storage mediums, are stored thereon with computer journey
Sequence instructs, and the method described in first aspect is realized when the computer program instructions are executed by processor.
Explanation type rules process method, device, equipment and the medium provided through the embodiment of the present invention, using the business of reception
Request;According to preset rules set, calculate the service request as a result, and will calculate the service request result process
The rule of middle execution saves as the first regular collection;The mode for exporting the result and first regular collection, solves rule
Then engine only exports regular result of calculation, and can not know the result of output and match or perform on earth asking for which rule
Topic, improves the ease for use of regulation engine.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and is constituted part of this application, this hair
Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of explanation type rules process method according to the ... of the embodiment of the present invention;
Fig. 2 is the structure diagram of explanation type rule process device according to the ... of the embodiment of the present invention;
Fig. 3 is the structural schematic diagram of rule engine system according to the ... of the embodiment of the present invention;
Fig. 4 is the hardware architecture diagram of explanation type rule processing apparatus according to the ... of the embodiment of the present invention.
Specific implementation mode
The feature and exemplary embodiment of various aspects of the invention is described more fully below, in order to make the mesh of the present invention
, technical solution and advantage be more clearly understood, with reference to the accompanying drawings and embodiments, the present invention is further retouched in detail
It states.It should be understood that specific embodiment described herein is only used for explaining the present invention, it is not intended to limit the present invention.For ability
For field technique personnel, the present invention can be implemented in the case of some details in not needing these details.It is right below
The description of embodiment is just for the sake of by showing that the example of the present invention is better understood from the present invention to provide.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence " including ... ", it is not excluded that including
There is also other identical elements in the process, method, article or equipment of the element.
A kind of explanation type rules process method is provided in the present embodiment, and Fig. 1 is explanation according to the ... of the embodiment of the present invention
The flow chart of type rules process method, as shown in Figure 1, the flow includes the following steps:
Step S101 receives service request;
Step S102, according to preset rules set, calculate service request as a result, and will calculate the result of service request
The rule executed in the process saves as the first regular collection;
Step S103 exports result and the first regular collection.
Through the above steps, when calculating the result of service request, while will be during the result that service request be calculated
The rule of execution saves as the first regular collection, and exports the first regular collection simultaneously when exporting result so that user can
Recognize which rule is the result being calculated perform, solve regulation engine and only export regular result of calculation, and can not obtain
Know that the result of output matches or perform on earth the problem of which rule, improves the ease for use of regulation engine.
Optionally, preset rules set is described by rule file, and the preset rules set in regulation engine can be straight
It connects in the configuration file for writing regulation engine, such regulation engine can utilize the preset rules set in configuration file to business
Request is handled.In order to further facilitate the update of regular collection, in the present embodiment using rule management come
Management rule set, and new regular or newer rule is distributed to by regulation engine by rule management.
Optionally, the rule of execution can be exported together in company with the result of service request by step S102.At some
In the case of, user also wants to know which rule is service request be matched to.To achieve the goals above, in step s 102,
It may include steps of:It is service request matching rule from preset rules set, and the rule that will match to saves as the
Two regular collections;Using the rule in Second Rule set, calculate service request as a result, and will calculate the result of service request
During the rule that executes save as the first regular collection.
Optionally, when exporting result and the first regular collection, Second Rule set can also be exported simultaneously.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical scheme of the present invention is substantially in other words to existing
The part that technology contributes can be expressed in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Additionally provide a kind of explanation type rule process device in the present embodiment, the device for realizing above-described embodiment and
Preferred embodiment had carried out repeating no more for explanation.As used below, term " module ", " unit " or " son
The combination of the software and/or hardware of predetermined function may be implemented in unit " etc..Although device is preferably described in following embodiment
It is realized with software, but the realization of the combination of hardware or software and hardware is also that may and be contemplated.
Fig. 2 is the structure diagram of explanation type rule process device according to the ... of the embodiment of the present invention, as shown in Fig. 2, the device
Including:
First receiving module 21, for receiving service request;
Computing module 22, for according to preset rules set, calculate service request as a result, and service request will be calculated
As a result the rule executed during saves as the first regular collection;
Output module 23, for exporting result and the first regular collection.
Optionally, device further includes:Second receiving module, for receiving rule file, rule file is for describing to preset
Regular collection.
Optionally, computing module 22 includes:Matching unit, for being service request matching rule from preset rules set
Then, and the rule that will match to saves as Second Rule set;Computing unit, for utilizing the rule in Second Rule set,
Calculate service request as a result, and the rule executed during the result for calculating service request is saved as the first rule set
It closes.
Optionally, output module 23 are additionally operable to export Second Rule collection while exporting result and the first regular collection
It closes.
Above-mentioned explanation type rule process device is applied in rule engine system, is specifically desirably integrated into rule and is drawn
Hold up reception service request, calculating and the function of exporting result of middle substitution rule engine.
Fig. 3 is the structural schematic diagram of rule engine system according to the ... of the embodiment of the present invention, as shown in figure 3, the regulation engine
System includes:Rule management and regulation engine, wherein rule management includes at least a database, and rule management is used
In rule is safeguarded (include rule establishment, update, storage) and rule change when issue new regular collection to
Regulation engine.Regulation engine for realizing above-mentioned explanation type rule process device function.
In addition, the explanation type rules process method and device that are provided in the embodiment of the present invention, can be also used for the field of emulation
Under scape, i.e., for operation system, the still only result of regular calculating of regulation engine output;But it can draw in rule
An interface is provided in holding up, which is used to call the first regular collection and Second Rule set of storage, and first is advised
Then gather, Second Rule set and result are exported together to user, to realize explanation type rule simulation.
In further embodiments, it using the advantage of rule management and the communication of multiple regulation engines, can be managed in rule
Manage the operation pages that explanation type rule simulation is configured on device;The result of explanation type rule process device output, the first regular collection
And Second Rule set is sent to rule management also through the connection between rule management and regulation engine, and be presented to
User.In this way, it may be implemented to explain type rule to multiple regulation engines using a rule management imitative
Very.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Following manner realization is crossed, but not limited to this:Above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned module be located at it is more
In a processor.
In addition, the explanation type rules process method in conjunction with Fig. 1 embodiment of the present invention described can be by explanation type rule
Equipment is managed to realize.Fig. 4 shows the hardware architecture diagram of explanation type rule processing apparatus provided in an embodiment of the present invention.
Explanation type rule processing apparatus may include processor 41 and be stored with the memory 42 of computer program instructions.
Specifically, above-mentioned processor 41 may include central processing unit (CPU) or specific integrated circuit
(Application Specific Integrated Circuit, ASIC), or may be configured to implement implementation of the present invention
One or more integrated circuits of example.
Memory 42 may include the mass storage for data or instruction.For example unrestricted, memory
42 may include hard disk drive (Hard Disk Drive, HDD), floppy disk, flash memory, CD, magneto-optic disk, tape or logical
With the combination of universal serial bus (Universal Serial Bus, USB) driver or two or more the above.It is closing
In the case of suitable, memory 42 may include the medium of removable or non-removable (or fixed).In a suitable case, memory
42 can be inside or outside data processing equipment.In a particular embodiment, memory 42 is non-volatile solid state memory.
In specific embodiment, memory 42 includes read-only memory (ROM).In a suitable case, which can be masked edit program
ROM, programming ROM (PROM), erasable PROM (EPROM), electric erasable PROM (EEPROM), electrically-alterable ROM (EAROM)
Or the combination of flash memory or two or more the above.
Processor 41 is by reading and executing the computer program instructions stored in memory 42, to realize above-described embodiment
In any one explanation type rules process method.
In one example, explanation type rule processing apparatus may also include communication interface 43 and bus 40.Wherein, such as Fig. 4
Shown, processor 41, memory 42, communication interface 43 are connected by bus 40 and complete mutual communication.
Communication interface 43 is mainly used for realizing in the embodiment of the present invention between each module, device, unit and/or equipment
Communication.
Bus 40 includes hardware, software or both, and the component of explanation type rule processing apparatus is coupled to each other together.It lifts
Unrestricted for example, bus may include accelerated graphics port (AGP) or other graphics bus, enhancing Industry Standard Architecture
(EISA) bus, front side bus (FSB), super transmission (HT) interconnection, Industry Standard Architecture (ISA) bus, infinite bandwidth interconnect, are low
Number of pins (LPC) bus, memory bus, micro- channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-
Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association part (VLB) bus or
The combination of other suitable buses or two or more the above.In a suitable case, bus 40 may include one
Or multiple buses.Although specific bus has been described and illustrated in the embodiment of the present invention, the present invention considers any suitable bus
Or interconnection.
The explanation type rule processing apparatus can execute the explanation type rule in the embodiment of the present invention based on the data got
Then processing method, to realize the explanation type rules process method described in conjunction with Fig. 1.
In addition, in conjunction with the explanation type rules process method in above-described embodiment, the embodiment of the present invention can provide a kind of calculating
Machine readable storage medium storing program for executing is realized.It is stored with computer program instructions on the computer readable storage medium;The computer program
Any one explanation type rules process method in above-described embodiment is realized in instruction when being executed by processor.
It should be clear that the invention is not limited in specific configuration described above and shown in figure and processing.
For brevity, it is omitted here the detailed description to known method.In the above-described embodiments, several tools have been described and illustrated
The step of body, is as example.But procedure of the invention is not limited to described and illustrated specific steps, this field
Technical staff can be variously modified, modification and addition after the spirit for understanding the present invention, or suitable between changing the step
Sequence.
Functional block shown in structures described above block diagram can be implemented as hardware, software, firmware or their group
It closes.When realizing in hardware, it may, for example, be electronic circuit, application-specific integrated circuit (ASIC), firmware appropriate, insert
Part, function card etc..When being realized with software mode, element of the invention is used to execute program or the generation of required task
Code section.Either code segment can be stored in machine readable media program or the data-signal by being carried in carrier wave is passing
Defeated medium or communication links are sent." machine readable media " may include any medium for capableing of storage or transmission information.
The example of machine readable media includes electronic circuit, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), soft
Disk, CD-ROM, CD, hard disk, fiber medium, radio frequency (RF) link, etc..Code segment can be via such as internet, inline
The computer network of net etc. is downloaded.
It should also be noted that, the exemplary embodiment referred in the present invention, is retouched based on a series of step or device
State certain methods or system.But the present invention is not limited to the sequence of above-mentioned steps, that is to say, that can be according in embodiment
The sequence referred to executes step, may also be distinct from that the sequence in embodiment or several steps are performed simultaneously.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of explanation type rules process method, which is characterized in that including:
Receive service request;
According to preset rules set, calculate the service request as a result, and will calculate the service request result process
The rule of middle execution saves as the first regular collection;
Export the result and first regular collection.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
Rule file is received, the rule file is for describing the preset rules set.
3. according to the method described in claim 1, it is characterized in that, according to preset rules set, the service request is calculated
As a result, and the rule executed during the result for calculating the service request saved as the first regular collection including:
It is the service request matching rule from the preset rules set, and the rule that will match to saves as Second Rule
Set;
Using the rule in the Second Rule set, calculate the service request as a result, and the service request will be calculated
Result during the rule that executes save as first regular collection.
4. according to the method described in claim 1, it is characterized in that, exporting the result and when first regular collection,
The method further includes:
Export the Second Rule set simultaneously.
5. a kind of explanation type rule process device, which is characterized in that including:
First receiving module, for receiving service request;
Computing module, for according to preset rules set, calculate the service request as a result, and the service request will be calculated
Result during the rule that executes save as the first regular collection;
Output module, for exporting the result and first regular collection.
6. device according to claim 5, which is characterized in that described device further includes:
Second receiving module, for receiving rule file, the rule file is for describing the preset rules set.
7. device according to claim 5, which is characterized in that computing module includes:
Matching unit, for being the service request matching rule from the preset rules set, and the rule that will match to
Save as Second Rule set;
Computing unit, for using the rule in the Second Rule set, calculate the service request as a result, and will calculate
The rule executed during the result of the service request saves as first regular collection.
8. device according to claim 5, which is characterized in that
The output module is additionally operable to export the Second Rule while exporting the result and first regular collection
Set.
9. a kind of explanation type rule processing apparatus, which is characterized in that including:At least one processor, at least one processor with
And the computer program instructions in the memory are stored in, it is real when the computer program instructions are executed by the processor
The now method as described in any one of claim 1-4.
10. a kind of computer readable storage medium, is stored thereon with computer program instructions, which is characterized in that when the calculating
The method as described in any one of claim 1-4 is realized when machine program instruction is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810331848.0A CN108563490A (en) | 2018-04-13 | 2018-04-13 | Explanation type rules process method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810331848.0A CN108563490A (en) | 2018-04-13 | 2018-04-13 | Explanation type rules process method, device, equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108563490A true CN108563490A (en) | 2018-09-21 |
Family
ID=63534980
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810331848.0A Pending CN108563490A (en) | 2018-04-13 | 2018-04-13 | Explanation type rules process method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108563490A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110532559A (en) * | 2019-08-29 | 2019-12-03 | 北京明略软件系统有限公司 | The processing method and processing device of rule |
CN112306637A (en) * | 2020-11-06 | 2021-02-02 | 深圳市广和通无线股份有限公司 | Script extension method and device, computer equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090125468A1 (en) * | 2007-11-09 | 2009-05-14 | Mitchell Jon Arends | Ruleset optimization through blocked and concurrent rule dispatch |
CN103942228A (en) * | 2013-01-23 | 2014-07-23 | 纽海信息技术(上海)有限公司 | Rule engine, calculating method, service system and calling method |
CN107003924A (en) * | 2014-10-15 | 2017-08-01 | 艾拉物联公司 | The elastic regulation engine of consumer device has been connected for managing |
-
2018
- 2018-04-13 CN CN201810331848.0A patent/CN108563490A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090125468A1 (en) * | 2007-11-09 | 2009-05-14 | Mitchell Jon Arends | Ruleset optimization through blocked and concurrent rule dispatch |
CN103942228A (en) * | 2013-01-23 | 2014-07-23 | 纽海信息技术(上海)有限公司 | Rule engine, calculating method, service system and calling method |
CN107003924A (en) * | 2014-10-15 | 2017-08-01 | 艾拉物联公司 | The elastic regulation engine of consumer device has been connected for managing |
Non-Patent Citations (1)
Title |
---|
刘晨帆: ""基于规则引擎的军事地理信息自定义查询技术研究与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110532559A (en) * | 2019-08-29 | 2019-12-03 | 北京明略软件系统有限公司 | The processing method and processing device of rule |
CN110532559B (en) * | 2019-08-29 | 2022-12-06 | 北京明略软件系统有限公司 | Rule processing method and device |
CN112306637A (en) * | 2020-11-06 | 2021-02-02 | 深圳市广和通无线股份有限公司 | Script extension method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108090198B (en) | Graph database creating method, graph database creating device, graph database loading device, and graph database loading medium | |
CN108563961B (en) | Sensitive data identification method, device, equipment and medium for data desensitization platform | |
CN108476391A (en) | Activating method, wireless router and the user terminal of ESIM cards | |
CN110377462B (en) | Interface testing method and device and terminal equipment | |
CN108595979A (en) | Dynamic desensitization method and device | |
CN107341668A (en) | A kind of method and device for judging True Data | |
CN109299222A (en) | Verification of data method and device | |
CN108089923A (en) | User's access area division methods and device based on weighted Voronoi diagrams figure | |
CN108256646A (en) | model generating method and device | |
CN112559635B (en) | Service processing method, device, equipment and medium for Ethernet alliance chain node | |
CN107564204A (en) | A kind of wholesale withdrawal method and atm device | |
CN109672735A (en) | A kind of method, device and equipment of Message Processing | |
CN108563490A (en) | Explanation type rules process method, device, equipment and medium | |
CN108537712A (en) | Support certificate method of calibration, device, equipment and the medium of a variety of verification modes | |
CN114064112A (en) | Business process configuration method, device, equipment and storage medium | |
CN110516258A (en) | Data verification method and device, storage medium, electronic device | |
CN107798612A (en) | One kind, which is saved from damage, red rushes treating method and apparatus | |
CN110222286A (en) | Information acquisition method, device, terminal and computer readable storage medium | |
CN114675822A (en) | AUTOSAR software component development method, device, equipment and storage medium | |
CN109739626A (en) | A kind of workflow engine and the access control method based on workflow engine | |
CN110515604A (en) | The acquisition methods and device of the executable program file of verification environment | |
CN110033189B (en) | Method, device and equipment for automatically generating fiber core segment | |
CN109981804A (en) | Generation, recognition methods, system, equipment and the medium of terminal device identification id | |
CN107509179A (en) | Obtain method, apparatus, terminal device and the storage medium of own mobile phone number | |
CN109981540A (en) | Firewall data optimization methods, device, computer equipment and readable storage medium storing program for executing |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180921 |