Business rule engine mode matching system based on compiling technology and implementation method

A technology of pattern matching and compiling technology, which is applied in the field of business rule engine pattern matching system based on compiling technology, can solve the problem of not being equal, achieve good business support flexibility, and ensure the effect of business continuity

Inactive Publication Date: 2019-11-08
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF2 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this technical solution is not a business rule engine pattern matching

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
  • Business rule engine mode matching system based on compiling technology and implementation method
  • Business rule engine mode matching system based on compiling technology and implementation method
  • Business rule engine mode matching system based on compiling technology and implementation method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0051] as attached figure 1 As shown, the business rule engine pattern matching system based on compilation technology of the present invention mainly includes an application program API module, a rule library module, a rule language compiler and an inference engine module. Among them, the application program API module is used to encapsulate the interaction details between internal modules, and provides a unified interface method to the application program; the rule library module is used to store rules and the calling conditions of the rules; the rule library module includes a rule database and a management access module; The rule database is used to store product rules, and the transaction mechanism of the database ensures the consistency of concurrent access data; the management access module is used to encapsulate the system call to the rule database, and provides internal interfaces for internal modules in the system except the management access module. as attached Figur...

Embodiment 2

[0068] The business rule engine pattern matching implementation method based on compilation technology of the present invention, the method steps are as follows:

[0069] S1. The PLN network data structure accepts a set of fact objects, and the root node does not perform a direction matching action, but directly sends it to all child nodes;

[0070] S2. Perform rule matching on each PLN network node:

[0071] (1) If the current matching node is an H node, calculate the HASH key value of the fact object set, and activate the child node of the key value;

[0072] (2) If the current matching node is an L node, calculate the logical value of the logical expression of the fact object set, and judge whether the logical value is true or false:

[0073] ①If true, activate all child nodes;

[0074] ②If it is false, return;

[0075] (3) If the current node is a P node, it means that the rule matching is successful, and the P node is added to the execution agenda, and returns to the u...

Embodiment 3

[0078] The definition of a tariff product rule is simulated. This tariff product is only for mobile voice services. Different approval rates are implemented according to different call areas and cumulative call durations. The rules language is used to define the billing approval rules for the above tariff products, as shown in the following table:

[0079]

[0080] The key codes of the rule language of telecom tariff products are as follows:

[0081]

[0082]

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 business rule engine mode matching system based on a compiling technology and an implementation method. Belonging to the field of computers, the technical problem to be solved by the invention is how to enable a rule engine to meet the application requirements of a large enterprise-level application system. According to the system and the method, (1), the system comprisesan application program API module, a rule base module, a rule language compiler and an inference engine module; and the rule language compiler is used for compiling the product rule code described bythe rule language to generate an equivalent PLN network data structure. (2) The method comprises the following steps: S1, receiving a fact object set by the PLN network data structure, and directly sending the fact object set to all child nodes by the root node without performing a direction matching action; S2, executing rule matching on each PLN network node; and S3, iteratively executing the step S2 until all the nodes are matched, and ending and returning.

Description

technical field [0001] The invention relates to the computer field, in particular to a compiling technology-based business rule engine pattern matching system and an implementation method. Background technique [0002] The rule engine is a rule-based expert system, which realizes the separation of rules and systems and provides better business support flexibility. Domestic and foreign researchers have done a lot of technical research on the rule engine, and there are many successful commercial products and open source products. [0003] The current mainstream rule engine products are basically based on the Rete algorithm. The Rete algorithm is designed for large-scale knowledge systems, and basically only applies to reasoning rules, but not to business rules that require data verification, data preprocessing, data access, and data conversion. The Rete algorithm is a tuple-based operation, and there are two basic prerequisites for designing application scenarios: 1) Time re...

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
IPC IPC(8): G06N5/04G06F8/41G06F9/30
CPCG06F8/447G06F9/30061G06N5/047
Inventor 吴东生张立勇董玉全
Owner SHANDONG LANGCHAO YUNTOU INFORMATION TECH 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