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
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, and deployment of business rules to adapt to rapid business change.
Little brother here to talk about his drools in combat in the end how to use the view:
First, if the rules are written by developers, such as programming DRL files, in this case, you can play the rules into a jar package, deployed to Workbench, or kie-server;
Second, if the rules are configurable, so that the business staff to configure, do not require the participation of developers, you can save the rules in the form of a string to the database;
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 number of leave is given to
In general, when using drools in Eclipse, when the following error occurs, many online solutions are added to a org.eclipse.jdt.core_3.5.2.v_981_ R35x.jar package, in fact, is not, the following error is mainly the lack of Java dialect parsing class org.drools.rule.builder.dialect.java.JavaDialectConfiguration, using a drools plug-in packaged jar OK, p OM is:
Error exception information encountered:Exceptio
1. Download the following two zip packages from the official 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
1. Unzip the Droolsjbpm-tools-distribution-6.2.0.final.zip
2. Create the folder Drools under the Dropins package in the installation directory of Eclipse, Droolsjbpm-tools-distribu
When using Drools, the rules file contains the classes in the import jar package as follows:
Import Java.util.Map;Import Com.alibaba.fastjson.JSONObject;
Will error Java.lang.RuntimeException:wrong class format
Workaround: ORG.ECLIPSE.JDT jar package may not exist or have a low version
Can be added in the Maven Pom
Successfully resolvedAbout Jdt.core version reference: Http://mvnrepository.com/artifact/org.eclipse.jdt/org.eclipse.jdt.core
Installation environment has, the following start to do the first example.
Create a new Drools project that will generate a Hello World example when you create it. I looked at this example and didn't look much. Find a more complicated example from the Internet. The concrete contents of the example go to see for themselves. The following is mainly about the problems encountered in doing this example.
Directory structure of the
The first step:Download Drools Control jar PackageDownload Address: http://www.drools.org/download/download.htmlDownload the two zip in the image below
Step Two:Unzip the downloaded zip to the current directory.
Step Three:Droolsjbpm-tools-distribution-7.0.0.final\binaries\org.drools.updatesite\ Plugins copy all the jar packages in this directory into the plugins directory of your Eclipse installation directory
Fourth Step:Then go to eclipse and op
Drools a lot of information on the Internet, here for their contact understanding and practical application of the following summary,
Engineering introduced.Engineering Pom.xml, at least join
From the official website of the package, for example: Drools-distribution-6.5.0.final, from the binaries directory, the general need to manually introduce Third-party packages:
Ant-1.8.3.jar
Core-3.1.1.jar
Ecj-4.4.2.
Http://liureying.blog.163.com/blog/static/6151352011111810916588/?suggestedreading
Description: How Drools version 5.1.1 integrates with spring version 2.5.61.2. Add a drools-spring jar3.spring configuration File Declaration Knowledgebase Drools:kbaseId= "KBase" > drools:resources> Drools:resourceType= "DRL" source= "Classpath:com/demo/insert.drl"/> drools:resources>Drools:kbase> 4. Declare an interaction w
Sixth chapter expert System
Teaching Content: This chapter mainly introduces the definition, structure, characteristics and types of expert system, analyzes the rule-based expert system, the framework based expert system and the model based expert system, sums up the new
Tags: bsp between div Java code Select Java No HTTP mod Finally, to use the number attribution to the query, find a database file on the Internet. Size is more than 12M, compressed into a zip also has 1.9M, so for an apk size is very unfavorable, later looked at the database content, found that there is a lot of redundancy. In particular, Chinese characters occupy very large space, and find a way to separate a table on the Internet. Divided into two tables, two tables can be associated using a f
Every company has so-called "experts ". However, in terms of technology alone, it is not clear that every "expert" is a real expert, mostly a pseudo expert. This requires analysis from multiple aspects and consideration of personal positioning and company positioning. Some people are older and do not like Job hopping. They are inevitably dependent on a company. T
{
Diese unit kann in Ein package compiliert werden und erscheint danach im
Delphi menu unter Hilfe.
}
{This unit can be compiled into a package and will then appear in the DelphiHelp menu.}Unit sdcsimpleexpert;
Interface
Uses toolsapi;
TypeTsdcsimpleexpert = Class (tnotifierobject, iotamenuwizard, iotawizard)PublicFunction getidstring: string;Function getname: string;Function getstate: twizardstate;Procedure execute;Function getmenutext: string;End;
Procedure register;
Implementation
Uses dialo
This article is originally from V3 College Www.v3edu.org,FPGA training SpecialistIn order to improve the reuse rate of our code, we can write the code of different functions and then connect to the top layer. We give a simple example, the following procedure, we implement the LED water.In the LED module, we first divide the system clock into 1HZ clock, and then use the crossover clock to control the flow of LED lights, but my crossover and led light flow is not the same project, just put the fre
Silverlight music game expert game development (2) demo
Following the previous releaseSilverlight music game expert game development (1)
Work is not very busy! I want to develop and play this game without a stop! About 50% completion!
1. Currently, no music or button beats are added. The company's computer has no sound ....
(Sound nice! Great pace! I heard it in my notebook! This demo does not exist)
EventBus communications expert and EventBus communications expert
1. EventBus Introduction
EventBus is a lightweight Android event publishing/subscription framework developed by greenrobot. It features simple code and is a design pattern of publishing and subscription (observer design pattern ).
EventBus can replace the traditional Android Intent, Handler, Broadcast or interface functions, and transmit data
Tagged with: Database sqlite Android Attribution numberFinally to use to the number of the site of the query, find a database file on the Internet, the size of more than 12M, Compressed into a zip also has 1.9M, so for an apk size is very unfavorable, later looked at the database content, found that there are a lot of redundancy, especially the Chinese characters occupy a large space, on the internet to find a way to separate a table, divided into two tables, two tables can be associated with a
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.