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;
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
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
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
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
Document directory
1. Visual Editor
2. SWT-Designer
3. jigloo
1. Visual Editor
2. SWT-Designer
3. jigloo
From http://www.cnblogs.com/NationWoo/archive/2011/05/31/2065176.html
Eclipse does not provide GUI visual development tools. If you want to implement visual GUI development in Eclipse, You need to rely on third-party plug-ins.1. Visual Editor
Eclipse officially provides an open-source
Using the GUI to implement the main code of the formUsing unityengine;using System.collections;public class Mygui:monobehaviour {//public Texture aaa; public string BBB; public int CCC; public string ddd; private bool showwindow;//Controls whether the main form is open private rect windowrectb;//main form private rect btnclose;//Close button public Guiskin customskin;//Custom Skin Texture Thero; Public Texture Status1; Public Texture
1. In fact, the GUI of MATLAB can be fully implemented using the functions of various controls in MATLAB. It can also be said that GUI is a figure, and I am also a learner interested in MATLAB GUI, in the course of learning MATLAB, I searched a lot of materials to understand how to use the function form, that is, to do not rely on the GUIDE to complete the
Game Engine/GUI Design and Implementation-sequence, engine gui
I wrote "Design and Implementation of Embedded gui ftk" a few years ago, and I stopped updating without writing a few articles. At that time, I studied the GUI of MicroWindows, X Window, DirectFB, GTK + and Android, and wrote the embedded
[Go to] eclipse for visual GUI development of three GUI plug-ins
Eclipse does not provide GUI visual development tools. If you want to implement visual GUI development in eclipse, You need to rely on third-party plug-ins. 1. visual editor
Eclipse officially provides an open-source
Java gui programming Overview Study Notes (22), gui Study Notes
The following content is my study notes on the java video tutorial of Miss Bi Xiangdong!
Java gui programming:Windows provides two methods:1. GUI2. CLI;GUI: Grahi User Interface, graphical User Interface.Features: displays the computer operation interfa
Original quote: http://blog.soulwire.co.uk/code/actionscript-3/simple-flash-prototype-gui-tool#more-1242A simple flash GUI tool +Code: AS3 prototypes with the smallest and fastest comparison
Update: Keith himself has been working on similar ideas and releasing Minimalconfigurator .
Keith Peter's Smallest component any flash developer is a very good tool when adding a real-time configuration s
Most of the applications we develop require a graphical user interface (GUI ). there are already many patterns in the architectural design of GUI applications. For example, Martin Fowler's Blog contains "Gui ubuntures", which describes form control, MVC, MVP, passive view, presentation Model, supervising controller, event aggregator, observer synchronization,
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.