Member-only story
1. What is Drools?
Drools has an open source business that is easy to access with an enterprise strategy, easy to adjust, and easy to manage Rules Engine, in line with industry standards, fast speed and high efficiency. It allows business analysts or auditors to easily review business rules to verify that the coded rules are executing the required business rules. Formerly known as Codehaus, an open source project called Drools, it was later incorporated into JBoss and renamed JBoss Rules, which became the rules engine for JBoss application servers. Drools are divided into two main parts: compilation and runtime. Compilation is to parse the rule description file according to the ANTLR 3 syntax, check the correctness of the syntax, and then produce an intermediate structure “descr”, which uses AST to describe the rules. Currently, Drools supports four types of rule profiles, namely: drl file, xls file, brl file and dsl file, among which the commonly used description files are drl file and xls file, and xls file is easier to maintain, more intuitive and more understandable by business personnel. The runtime passes the AST to the PackageBuilder, which generates a RuleBase, which contains one or more Package objects.
principle
In the field of AI, generative systems are a very important theory, and generative inference is divided into forward inference and reverse inference generative inference, and the general form of its rules is: IF condition THEN operation. The…