Drools is a Business Rules Management System (BRMS) solution. It provides a core Business Rules Engine (BRE), a web authoring and rules management application (Drools Workbench), full runtime support for Decision Model and Notation (DMN) models at Conformance level 3 and an Eclipse IDE plugin for core development. Drools is open source software, released under the Apache License 2.0. It is written
droolsã§ã¯ã«ã¼ã«ã¯åºæ¬çã«drlãã¡ã¤ã«ã«æ¸ãã¦ããã¾ããwhen+then以å¤ã«ç®ããããã¨ãµã³ãã«ã¿ã¦ããä½ãã®æ§æï¼ã£ã¦ãªã£ã¡ããã¾ããã§ã大ããæ§é ããµã¾ãã¦ã¡ãã£ã¨å解ããã ãã§å°ãèªã¿ããããªãã¾ãã大ããã¯ããããæ§é ã§ãã package package-name ã»ã»ã» imports ã»ã»ã» globals ã»ã»ã» functions ã»ã»ã» queries ã»ã»ã» rules ã»ã»ã»packageã¯javaã«è¿ãã§ãããnamespaceçãªä½ç½®ã¥ãã§ããç´°ãããã¨ã¯ãã¨ã§ãæ¸ãã¨æããã©drl,xmlãã¡ã¤ã«ããASTã¤ãã£ã¦æçµçã«packageã¨ããã«ã¼ã«ã®éã¾ããä½ãã¾ãããã®æã«ã«ã¼ã«ã¨ã³ã¸ã³ä¸ã§ä¸æã«ãªãååãã³ã¬ã«ãªãã¾ãã§ããã importsãjavaã¨ä¸ç·ã§ããjavaã®ã«ã¼ã«ã¨ã³ã¸ã³ãªã®ã§javaã¨ã®é£æºãå½ç¶ã·ã¼ã ã¬ã¹ã«è¡ãããªãã¨ãã¡ãª
The DroolsCompilerAntTask used to be the way to do this. It would take all your various rule files and compile them into a serialized file. It appears to have some bugs in 5.3 though which I am currently trying to work out. In the meantime, here is an illustrative build file that can be used for creating an executable JAR based on Drools. The build will fail if the rules cannot be compiled. <proje
ã¾ãã¯ä¸çªç°¡åãªãµã³ãã«ããã°ã©ã ããã ããã°ã©ã ã®æ¦è¦ ååã¨å¹´é½¢ãFactã¨ãã¦ã«ã¼ã«ã¨ã³ã¸ã³ã«æä¾ãããã¨ã«ããããé ã飲ããã飲ããªãããå¤å®ããããã°ã©ã ã§ãã Factã®å®ç¾© POJOã§è¨è¿°ãã¾ããFactã¨é£ããè¨ã£ã¦ãã¾ãããã ã®ç®±ã ã¨æã£ã¦ãã ãããæä½éå¿ è¦ãªãã®ã¨ãã¦ã¯ã«ã¼ã«å´ã§ãã¼ã¿ãåå¾ããããã®getterãå¿ è¦ã§ãã public class Profile { private int age; private String name; public Profile(String name, int age) { this.name = name; this.age = age; } public int getAge() { return age; } public String getName() { return name; } } DrinkTest
Yasuhiko Tsushima Drools 4.0 (JBoss Drools) 2008å¹´03æ20æ¥ åç §æ°: 10394 Drools 4.0 å ¥é1 (ã¤ã³ã¹ãã¼ã«) droolsã®4.0ã§ã¯ãEclipseã®ãã©ã°ã¤ã³ã¨ãã¦ã«ã¼ã«ã¯ã¼ã¯ãã³ã(IDE)ãæä¾ããã¦ãã¾ãã Droolsã®å ¥éã«ã¯ããã®ã«ã¼ã«ã¯ã¼ã¯ãã³ããç¨ããã®ãããã£ã¨ãæ軽ã ã¨ãããã¾ãã ã¾ãã¯ãã¤ã³ã¹ãã¼ã«ãã Drools Eclipse IDEã«å¿ è¦ãªç°å¢ã¯ãEclipseã®3.2以ä¸ã¨Eclipse GEF(Graphical Editing Framework)ã®3.2以ä¸ãå¿ è¦ã§ãã Eclipseã®ã¤ã³ã¹ãã¼ã«ã«ã¤ãã¦ã¯ãæ¤ç´¢ãµã¤ãã§ä¾ãã°ãEclipse 3.3 ã¤ã³ã¹ãã¼ã«ããªã©ã¨å ¥åãã¦æ¤ç´¢ããã° ãããã§ãåºã¦ããã®ã§çç¥ãããã¨ã¨ãã¦ãã²ã¨ã¾ãGEFã®ã¤ã³ã¹ãã¼ã«ãã(ãã§ã«G
ãã£ã¨ããã«ã¼ã«ã§ãããããè¦ãªãã¨Droolsãä½ãªã®ãåããã¾ãããã ã«ã¼ã«ã¯Drools Rule Language (DRL) ã¨ããè¨èªã§è¨è¿°ãã¾ãã twitterRules1.drl declare Status @role( event ) @timestamp( createdAt ) @expires( 2s ) end ã¾ããå ¥åãããPOJOãEventã¨ãã¦å®ç¾©ãã¾ããStatusã¨ããã®ã¯ï¼ã¤ã®tweetã表ããTwitter4Jã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ã§ãã @timestampã¯ãã®ã¤ãã³ãã®ã¿ã¤ã ã¹ã¿ã³ãã§ããã¿ã¤ã ã¹ã¿ã³ããã«ã¼ã«ãããã«é¢é£ããå ´åã«éè¦ã«ãªãã¾ããããã©ã«ãã§ã¯ã¤ãã³ããã¨ã³ããªãã¤ã³ãã«æå ¥ãããæå»ãã¿ã¤ã ã¹ã¿ã³ãã«ãªãã¾ãããStatusã®å ´åãcreatedAtã¨ããããããã£ãã¤ã¾ãtweetãæ稿ãããæå»ãæã£ã¦ããã®ã§ãã
Jboss Droolsã®4.Xç³»åã«ã¤ãã¦ã®è§£èª¬ã§ãã JBoss Rules ã¯ãç¾å¨(2009å¹´9æ) 5.0 ã¨ãªã æ¥æ¬ã§ãRedHatã®ãµãã¼ãããã¨ããã¨ãªãã¾ããããã® JBoss Rules ã®ã³ãã¥ããã£çã Drools 5.0 ã¨ãªã£ã¦ãã¾ãããããã JBoss Rules ( Drools )ãå©ç¨ããå ´åã¯ã5.0ãå©ç¨ãããã¨ããå§ããã¾ãã JBossã®ãªã¼ãã³ã½ã¼ã¹ã®ã«ã¼ã«ã¨ã³ã¸ã³JBoss Rule(drools3.x以é)ã«é¢ãããã¾ãã¾ãªæ å ±ãæä¾ãã¾ãã ç¾å¨ JBoss Rules 㯠RedHat ã®ãµãã¼ãããã¨ããã¨ãªãããã®ã³ãã¥ããã£çã¨ã㦠Drools 5.0 ãä¾ããã¦ãã¾ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}