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

Pattern matching method and device for rule engine

A pattern-matching and rule-based technology, which is applied in the fields of instruments, computing, and electrical digital data processing, etc., can solve the problems of reducing the performance of the rule engine, consuming a lot of time and cost, and poor performance of the rule engine, and achieves simple modification methods, easy maintenance, and Performance-enhancing effects

Active Publication Date: 2017-06-30
ALIBABA GRP HLDG LTD
View PDF4 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Both program writing and data processing take a lot of time and cost
[0007] (2) When the RETE algorithm processes shared resources, the resource consumption is too large, resulting in poor performance of the rule engine
This is because the RETE algorithm matches the conditional statement according to the priority and executes the rule statement. After the rule is executed, the fact will change, and the rule engine will re-match the condition until it can no longer match. This way of feedback loop matching will reduce the rule. engine performance

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
  • Pattern matching method and device for rule engine
  • Pattern matching method and device for rule engine
  • Pattern matching method and device for rule engine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0059] In order to make the above objects, features and advantages of the present application more obvious and understandable, the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.

[0060] method embodiment

[0061] see figure 1 , figure 1 A flowchart of a pattern matching method for a rule engine provided by an embodiment of the present invention, the method can be executed by a user machine, and the user machine can be a personal PC, or various types of website servers, such as a Web server, or APP server. Such as figure 1 As shown, the method may include step S101 and step S102:

[0062] Step 101: Select the corresponding rule flow in the rule base according to the event type of the current event; the rule base includes: at least one rule flow, and the rule flow refers to a flow expressed in a weighted directed graph that can handle a specific type of event , the rules and processes are independen...

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 embodiment of the invention discloses a pattern matching method and device for a rule engine. The method comprises the steps that a rule flow corresponding to the event type of a current event is chosen in a rule base, wherein the rule base includes at least one rule flow which is expressed in a weighted directed graph pattern and is capable of processing specific type event, and the rule flows are independent from each other; a condition matching is conducted on the current event according to the weighted directed graph of the rule flow corresponding to the current event, so that the operations loaded by each node on a matched route from the beginning node to the end node in the weighted directed graph are executed. According to the pattern matching method, the weighted directed graph is used for realizing the matching of the rule engine, so that the backtracking problem of the matching process is avoided and the matching effect of the rule engine is improved. Furthermore, the rule flow with the structure above is convenient for the operation of maintenance personnel and has good extensibility.

Description

technical field [0001] This application relates to the field of computer applications, in particular to a pattern matching method and device for a rule engine. Background technique [0002] The development and maintenance of complex enterprise-level projects are faced with the problem that software must "change as needed". Since the business decisions and business logic that change frequently with external conditions and requirements are solidified in the code, this makes the development and maintenance of software extremely difficult and consumes a lot of time and cost. Therefore, it is urgent to separate the decision-making logic of enterprise decision makers from the Apply the technical decisions of developers, and put the decision logic of these enterprise decision makers in the central database or other places, so that they can be dynamically managed and modified at runtime, thereby improving the flexibility and adaptability of the software system. In such a dynamic en...

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): G06F17/30
CPCG06F16/24564
Inventor 邱添明
Owner ALIBABA GRP HLDG 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