①: First of all, please open the link http://download.jboss.org/drools/release/5.5.0.Final/Two files in a red box in the Download box650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/74/6C/wKiom1YctYGCyPZbAAKx5PZo2_I348.jpg "title=" Untitled. png "alt=" wkiom1yctygcypzbaakx5pzo2_i348.jpg "style=" float:left; "/>②: Unzip it separately as shown650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/74/6C/wKiom1YctrvTR1OkAADpA2wD6Fw740.jpg "t
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,
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. 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
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
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
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
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
in the plugin just unzipped)-Click OK-Select So plugin.-Here is the click Next,finishAfter the plug-in is installed, you need to add the drools environment in eclipse:-click "Windows"-"preferencess"-Select "Drools"-"Installed Drools runtimes" in the tree menu of the window-In the empty Drools runtime list on the right
Java tutorial translation Sequence Java Introduction Build a JSE development environment-install JDK and eclipse Language basics Java Hello World Program Analysis Variable Java Variables Java Native type Conversion of Java
CXF )~ Apache CXF is an open-source Services framework that helps you build and develop Services like JAX-WS using Frontend programming APIs. These Services can support multiple protocols, such as SOAP, XML/HTTP, RESTful HTTP, or CORBA, and can run on multiple transmission protocols, such as HTTP, JMS, or JBI, CXF greatly simplifies the creation of Services and inherits the XFire tradition. It can also be seamlessly integrated with Spring.
Dom4j ~ A Java
possible. To make a choice, rails should be the first in the flow of meta programming frameworks that use Ruby or other dynamic programming languages. But Java has started to introduce Ruby's features, such as Trails,groovy.
2, 2005 Java new gadgets
· Drools:drools is a rete algorithm based on the Charles Forgy ' s, designed specifically for the Java language. T
are in a normal job, need to get some information of different format files, such as file size, location, file last change time, etc., or we need to do some regular operation of the file, such as deleting files, copying files and so on, then the VFS in Apache Commons (Virtual File system) is an open source system that you can consider.CXF (Apache CXF) ~apache CXF is an open Source services framework that CXF helps you build and develop services using the Frontend programming API, like Jax-ws. T
different format files, such as file size, location, file last change time, etc., or we need to do some regular operation of the file, such as deleting files, copying files and so on, then the VFS in Apache Commons (Virtual File system) is an open source system that you can consider.CXF (Apache CXF) ~apache CXF is an open Source services framework that CXF helps you build and develop services using the Frontend programming API, like Jax-ws. These services can support multiple protocols, such as
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.