Dynamic rule maintenance and generation method based on Drools

A regular and dynamic technology, applied in the Web field, can solve problems such as low generation efficiency and inconvenient maintenance of processing rules, and achieve the effects of improved testing and debugging, easy to understand, and convenient unified understanding and recognition

Active Publication Date: 2019-10-01
SUNING COM CO LTD
View PDF3 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] Based on the above-mentioned defects of the prior art, the purpose of the present invention is to provide a method for maintaining and generating dynamic rules based on Drools, to solve the problems of inconvenient maintenance and low generation efficiency of the processing rules of existing web engines

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Dynamic rule maintenance and generation method based on Drools
  • Dynamic rule maintenance and generation method based on Drools
  • Dynamic rule maintenance and generation method based on Drools

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments.

[0026] refer to figure 1 Shown, the embodiment of the present invention discloses a kind of method based on Drools dynamic rule maintenance and generation, and this method comprises the steps:

[0027] S11. Use the two-dimensional form of the relational database to manage the business rules, and convert each type of Drools (JBoss Rules) rule file into two-dimensional tables;

[0028] First of all, the DRL syntax of Drools is unfamiliar to many people, and has a certain learning cost, and its syntax is different from the object-oriented and SQL that everyone is familiar with, so it is not easy to get started. Aiming at the uniqueness of DRL grammar, the present invention has done highly refining and abstracting to the DRL ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a dynamic rule maintenance and generation method based on Drools. The dynamic rule maintenance and generation method comprises the steps: carrying out the management of business rules through employing a two-dimensional form of a relational database, and converting each type of Drools rule files into a two-dimensional form; calling a unified rule generation engine, translating the two-dimensional table into a Drools rule file, and storing the Drools rule file in a Redis cache; informing a rule consumer in real time through the MQ asynchronous message and sending a rulechange message; and after the rule consumer monitors the rule change message, obtaining the latest rule file from the Redis cache, analyzing the rule file, compiling the rule file into a correspondingJAVA CLASS file, and enabling the latest rule to take effect by loading. According to the invention, the problems of inconvenient maintenance and low generation efficiency of the processing rule of the existing web engine are solved.

Description

technical field [0001] The invention belongs to the field of Web technology, relates to the development of a business support system, and in particular relates to a method for maintaining and generating dynamic rules based on Drools. [0002] technical background [0003] In the development process of a business support system, once the system is launched, major adjustments to the architecture are almost insignificant, but the business rules of the system change the most. How the system can effectively realize the decoupling of business rules and the overall architecture is a problem that is often considered and solved during the development process. [0004] The rule engine is usually an ideal solution. We separate complex and changeable business rules from the overall application architecture. It has high flexibility and can quickly respond to business needs. [0005] Drools is a rule engine framework based on Java language launched by JBoss. Its general working principle...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/20G06F8/41G06F9/54
CPCG06F8/24G06F8/41G06F9/546
Inventor 张建美
Owner SUNING COM CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products