Jboss Rule Engine KIE Drools 6.3.0 Final tutorial (3)
The first two tutorials show you how to run the. drools file locally and use the stateless method to access the rules on remote repository. KIE Drools also provides a stateful-stateful access method.Running rules on a KIE-DROOLS-another way of writing code first
Str
Introduction: Using the Rules engine can reduce the maintenance and scalability costs of applications by reducing the complexity of components that implement complex business logic. This updated article shows how to use the open source Drools rule engine to make Java™ applications more adaptable to change. The Drools project introduces a new local rule expression language and an Eclipse plug-in that makes
1. What is drools.
Drools is a Java-language based rule engine framework. Solves the problem that the complex business logic in the business system is hard coded into the program code. The advent of drools can separate business logic from program code, and can also change business logic in real time. Support the rule implementation of simple scripting language,
Kie-server is a stand-alone execution server that can be used to remotely execute rules using the REST,JMS or Java interface. In the case of Workbench installation, to install Kie-server,workbench installation method see younger brother Blog
First, the installation environment
1.windows operating System (for example, Linux is similar to Windows here)
2.tomcat8
3.jdk1.8
Second, installation steps
1. Download good tomcat and install the JDK, from the drools
The blog about Drools 6.0 has been written for a long time. On the one hand is recently more rambling, although also learned not to click on the open link less new things, but are not willing to record down; on the other hand, drools itself is more cumbersome, even if the introduction also needs to involve a lot of internal things, more write more feel the power is insufficient. This is the third time that
The instance is transferred from: http://blog.csdn.net/quzishen/article/details/6163012
Easy to understand application Example 1:
Now we are simulating an application scenario: a site that is associated with a business-generated point issuance operation. such as Alipay credit card repayment bonus points.
Issuance points may be accompanied by different operating strategies and seasonal adjustments, the number and rules of issuance are completely different, if the use of hard-coded to accompan
Tags: Different version number of BSP down Open Blog folder https droolsThe demo here is drools7.5.0, you can install different drools versions according to your needsDrools Installation Address:http://download.jboss.org/drools/release/OneSecond, click to enter 7.6.0.Final, and select Droolsjbpm-tools-distribution-xxx.zip (XXX for version number) to downloadThird, unzip the downloaded plugin to the localLau
DroolsJBoss rules is an open-source business rule engine that is easy to access enterprise policies, easy to adjust, and easy to manage. It complies with industry standards and is fast and efficient. Business analysts or reviewers can use it to easily view business rules, so as to check whether the encoded rules have executed the required business rules.
The predecessor of JBoss rules is a codehaus open-source project called drools. Recently added to
Tags: program is file format technology share file test demand technology BubukoWeb engineering and MAVEN engineering are more commonly used today, and of course MAVEN engineering is the most commonly used in development.Two drools projects are created by creating a drools project directly, and the other is creating a Drools project based on MavenI. Create a Web
This is a creation in
Article, where the information may have evolved or changed. Ilog JRules
is the most famous commercial brms, just took the jolt;
Drools is the most active open source rules engine, all the way up;Jess is the clips Java implementation, as JRuby to Ruby, is the representative of the AI department.
Today, we compare the rules of these three quite representative rules engines. Ilog is a commercial product, there is no chance to combat
Infoq published an introduction to the rule engine real-world rule engines, the original http://www.infoq.com/articles/Rule-Engines
There are also two articles on onjava:
Give your business logic a framework with drools http://www.onjava.com/lpt/a/6093
Using drools in your Enterprise Java application http://www.onjava.com/lpt/a/6160
Below is a summary of the essence:
Most Web and Enterprise Java application
The drools version used in the space is 6.3.0.Final, and the 5.x version of the API has a big difference, please note the development tool settings
Development tools for IntelliJ idea, I've been on the internet for a long time and haven't found a description of using idea to develop droolsOnly one of the idea's settings files was found, and the new. DrL file after importing the file will have smart hints for drool
1. Download the following two files on the website http://www.drools.org/download/download.html
Drools-distribution-6.2.0.final.zip
Droolsjbpm-tools-distribution-6.2.0.final.zip
2. Install Eclipse plugin
Unzip the Droolsjbpm-tools-distribution-6.2.0.final.zip and set its directory
The jar file under \binaries\org.drools.updatesite\plugins is copied to the plugins directory of the Eclipse installation directory, open Eclipse,window->preferences,
Ilog jrules
Today, we have compared these three representative Rule Engine rule languages. Among them, ilog is a commercial product and has no chance to practice it.
Author: Jiangnan Baiyi1. The same if-then sentence and Rete Engine
All three will solve the chaotic if --- else --- elseif ---- else mystery,Split it into the sentence format of "If condition statement then execution statement" with N strip priority.The three mainly use the foreward-chaining rete engine to execute the rule Statement
Problem Description:1, Xiao Ming Hand has 50 yuan money;2, 1 yuan money can buy a bottle of drink;3, 2 empty bottles can be exchanged for a bottle of drink;4. The question is: how many bottles of drink can Xiao Ming drink at last?First, create a new MAVEN project and join the drools dependencyPackage Com.lala.bean;public class Drinks {private integer money;private integer total = 0;//drink quantity private integer bottle = 0; Number of empty bottles p
1.1. ConditionsDrools It is a Java open-source rule engine. Therefore, using drools and pre-installed in the development machine JDK perimeter, Drools5.5 requires a JDK version number of 1.5 or more.1.2. Development environment ConstructionThe first step in most software learning is to build the development environment for the software, and Drools is no exception.This section describes how to build a Drools
1, the basic matching rules
1.1 Variables
Drools uses the matching method to compare the fact,
such as Java code account:account (Balance > 100)
The meaning of this rule is to find all account instances with the type account in fact and the balance property value greater than 100.
You can specify a variable to describe a type or a property that maps a class.
For example, Java code $account: Account ($type: type)
Use $variable to define a variable, whe
1.1. Pre-conditionsDrools is a Java-based open source rule engine, so you need to install the JDK environment on your development machine before using drools, DROOLS5 requires a JDK version of 1.5 or more.1.2. Development environment ConstructionThe first step in most software learning is to build the development environment for the software, and Drools is no exception. This section describes how to build a
No code, no truth. Online blog code, are quite fragments of. So, I want to find a ready-made demo experiment code. On GitHub ------------------------------------------------- Ecipse Configuring the GitHub process Idea: First, GitHub configures three ways to get repository: Svn,https, ssh. Once the GitHub plugin is installed on eclipse, the URL should be ready for use. Reference: How to import project source on GitHub from Eclipse : http://blog.csdn.net/hil2000/article/details/8566456 Eclipse Pl
Tags: blog http ar OS use java sp file divHttp://www.oschina.net/p/droolsDrools is an open source rules engine written in Java. It uses the Rete algorithm to evaluate the written rules. Drools allows declarative expression of business logic. You can use a non-XML local language to write rules for easy learning and understanding. In addition, Java code can be directly embedded into rule files, which makes Drools
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.