will trigger rule 2, printing out the new type of message.
How to use drools in maven:
Drools is available in the MAVEN central repository, so there is no need to configure additional Maven repositories, as follows:
Run Time:
The runtime here is referring to: if you deploy a binary form of rules (Knowledgepackage objects or Knowledgebase objects),
-specific language (DSL) specifically written for rulesIn version 5.0, the introduction of important functional modules such as Drools Funsion/flowrule1.2, why should learn drools?The rule engine is the framework for organizing business logic. It allows developers to focus on what they are sure of, rather than making decisions on some low-level mechanisms.Often, business users are more comfortable with thin
language (DSL) specifically written for rulesIn version 5.0, the introduction of important functional modules such as Drools Funsion/flowrule1.2, why should learn drools?The rule engine is the framework for organizing business logic. It allows developers to focus on what they are sure of, rather than making decisions on some low-level mechanisms.Often, business users are more comfortable with things that m
live two examples have a DSL versionCompare the Java version with the following effect:
house:condition
>
House:room
name
= "Calvin"
>
House :
Temperature
>
House:greater-than
Scale
= "Celsius"
>
-
House:greater-than
>
House : Temperature
>
House:room
>
house:condition
>
vs but this kind of XML base DSL syntax is not much good, and the realization of the cost of a lot, to achieve their own conditons and consequence factory class, sel
strongest.To explain the code below, airplane has a property -- name, which has two sub-classes: jet and propeller aircraft. The propeller aircraft can use any runway, while the jet aircraft cannot use the Grass runway.
; Fact templates(Deftemplate airplane (slot name ))(Deftemplate jet extends airplane)(Deftemplate prop extends airplane );Rules(Defrule can-use-grass-Runway(Prop (name? N ))=>(Printout t "aircraft can use grass -"? N crlf )
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 di
Introduction: This paper introduces a typical business scene in the intelligent transportation system, and shows how to implement the dynamic management of the business rules through Drools BRMS.
Introduction
The Business Rules Management System (BRMS) is widely used in telecommunications, banking and government industries to support the editing, management, an
grammars)
Http://docs.jboss.org/drools/release/6.0.1.Final/drools-docs/html_single/index.html (English, 6.0.1 Official guide, covering all aspects of drools, suitable for advanced learning)
http://blog.csdn.net/quzishen/article/details/6163012 (Chinese, 5.x version, which can be used to control, and the explanation of DRL ru
Business rules are like this (no real meaning, just do demo demo)If the total number of days of absence is equal to 3 days, general manager approval is required, otherwise the general manager approval is not requiredIf the time of absence is less than 3 days, the total number of days leave is equal to the number of days of leave +2Otherwise, the total number of days leave is equal to the number of times to leave +5The calculation logic of the total nu
Examples of common rules for YII rules, yiirules example
This paper describes the rules commonly used in Yii rule. Share to everyone for your reference, as follows:
Public Function rules () {return array (//must be filled in with array (' email, username, Password,agree,ver
This series of articles is an online prolog learning material: Www.learnprolognow.org's Chinese translation. Hope to be able to translate this learning materials, to achieve two purposes: first, the system to learn prolog knowledge; second, improve the understanding of English articlesand translation capabilities.Content Summary:Give some simple examples of Prolog programming;The basic structure of Prolog: facts,
test ', in addition, there is no prerequisites here, that is, execute command at any timeLet's look at what the ' make ' will do if it does:1. Make will find the file named "Makefile" or "Makefile" in the current directory.2, if found, it will find the file in the first target file (target), in the above example, he will find the "test" this file, and the file as the final target file.3, if the test file does not exist, or test depends on the [. O] File modification time is newer than the test
.
/(\w+): \/\/([^/:]+) (: \d*)? ( [^#]*]/
resolves a URL to a protocol, domain, port, and relative path.
/^ (?: chapter| section) [1-9][0-9]{0,1}$/
locates the location of the chapter.
/[-a-z]/
A to Z a total of 26 letters plus one-number.
/ter\b/
can match chapter, not terminal.
/\bapt/
can match chapter, not aptitude.
/windows (? =95 |98 | NT)/
can match Windows95
Examples of common Yii rules and yiirules
This article describes common rules of Yii rules. We will share this with you for your reference. The details are as follows:
Public function rules () {return array (// you must enter array ('email, username, password, agree, verifyP
This article mainly describes the verification of jQueryValidate and describes the specific examples of verification rules written in the control. If you need them, you can refer to them and hope to help you write them into the control.
The Code is as follows:
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.