Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Rule engine implementation method and device

A technology for implementing methods and rules, applied in program control devices, program code conversion, program control design, etc., can solve problems such as difficulty in decoupling business codes, inability to respond to business changes in a timely manner, and low level of visual editing, etc. The effect of saving audit labor costs and development costs, reducing development and operation and maintenance costs, and reducing resource consumption

Active Publication Date: 2017-09-29
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF2 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] For business systems, complex and changeable business rules, without the support of a rule engine, it is difficult to decouple business code and respond to business changes in a timely manner
Existing rule engines, such as open source Drools (JBossRules, an open source business rule engine that is easy to access enterprise policies, easy to adjust, and easy to manage), are configured based on Xml (Extensible Markup Language, Extensible Markup Language) and specific Drl Files (files with the extension drl.) are implemented. The level of visual editing of Drools rule configuration is not high, and it is mainly maintained by background developers, so the cost of visual development and maintenance is relatively high.

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
  • Rule engine implementation method and device
  • Rule engine implementation method and device
  • Rule engine implementation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0023] see figure 1 , which is a flowchart of a method for implementing a rule engine provided by an embodiment of the present invention, the method includes:

[0024] S101: receiving input data;

[0025] S102: Match the input data in the rule set of the rule engine, wherein the rule set includes multiple rules, and the rules are configured based on JSON format;

[0026] S103: Determine whether the key attribute corresponding to the rule is included in the input data, if it is included, execute step S104, if not, execute step S105;

[0027] S104: Perform rule verification on the input data according to key attributes, and update the input data according to the rules;

[0028] S105: Extract the object from the input data, use th...

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 provides a rule engine implementation method and device. The method includes the steps: receiving input data; matching the input data in a rule set of a rule engine; performing rule verification on the input data according to key attributes if the input data comprise the key attributes corresponding to rules for rules, performing updating operation on the input data according to the rules, extracting objects from the input data if the input data do not comprise the key attributes, acquiring attribute values corresponding to the objects by the aid of Java reflection mechanisms, performing rule verification on the input data according to the objects and the attribute values, and performing updating operation on the input data according to the rules. The rule set comprises various rules, and the rules are configured based on a JSON format. According to the rule engine implementation method, development processes of the rule engine can be simplified, and efficiency is improved.

Description

technical field [0001] The invention relates to the technical fields of computers and the Internet, in particular to a method and device for realizing a rule engine. Background technique [0002] Developed from the inference engine, the rule engine is a component embedded in the application to separate business decisions from application code and write business decisions using predefined semantic modules. The workflow of the rule engine can be understood as: first accept data input, then interpret business rules, and finally make business decisions based on business rules. [0003] For business systems, complex and changeable business rules, without the support of a rule engine, it is difficult to decouple business codes and respond to business changes in a timely manner. Existing rule engines, such as open source Drools (JBossRules, an open source business rule engine that is easy to access enterprise policies, easy to adjust, and easy to manage), are configured based on X...

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): G06F9/45G06F9/44
CPCG06F8/315G06F8/37G06F8/43
Inventor 柴海鹏李顺龙樊京鑫张木召
Owner BEIJING QIYI CENTURY SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products