drools

maven assembly 打包 mian

孤者浪人 提交于 2020-03-04 10:13:14
pom.xml如下 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.drools</groupId> <artifactId>drools</artifactId> <version>7.24.0.Final</version> </parent> <groupId>com.topnet</groupId> <artifactId>drools-demo</artifactId> <version>0.0.1-SNAPSHOT</version> <dependencies> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin<

Drools Performance Tests

荒凉一梦 提交于 2020-03-02 23:04:17
问题 Currently we are looking to use drools in a system for managing knowledge intensive processes. To the best of my knowledge information about and results of performance tests done for drools are scarce and hard to find. While use cases differ widely, it would be good to know common bottlenecks (the inserts are one, for example) and possible best practices to get around them for certain scenarios. Also, knowing more about the performance in general could help evaluating if Drools is a viable

Drools Performance Tests

天涯浪子 提交于 2020-03-02 23:02:06
问题 Currently we are looking to use drools in a system for managing knowledge intensive processes. To the best of my knowledge information about and results of performance tests done for drools are scarce and hard to find. While use cases differ widely, it would be good to know common bottlenecks (the inserts are one, for example) and possible best practices to get around them for certain scenarios. Also, knowing more about the performance in general could help evaluating if Drools is a viable

成功的特质:你能发现什么?又能坚持什么?

人盡茶涼 提交于 2020-02-27 04:44:23
一转眼在家“闭关”一个月了,并没有朋友圈其他人所产生的不适感,反而感觉现在的生活更加安逸了。这可能跟去年“闭关”一年的修炼有关。生活安逸归安逸,工作和思考的节奏却从未停下来。 你能发现什么? 有人说,时运不济,好的机会都让别人抓住了;有人说,资源有限,没办法像别人那样成功,只能甘于平庸;当然,也有人说,我可能没有慧眼,发现不了机会…… 我想,大多数人之所以没有抓住人生或生活的一些机会都是因为没有“慧眼”,其实也没达到慧眼的层面,只是认知不够。 说说我在家的一些感悟吧,或许能给你带来一些启发。因为疫情各种限制,出于嘚瑟的心态,在朋友圈发了自家产的蔬菜、柴鸡蛋等信息。一群朋友高呼“你才是真正的地主”。 还有朋友说,你可以出售这些东西……此刻,我才意识到我错过了当“地主”的机会,而我在其他人眼中可能真正是地主。 在北京,吃家里的带的花生油、芝麻油、柴鸡蛋、晒干的芝麻叶、黄花菜等。过年回去,带上一桶油基本上够吃一年。 此刻,才意识到搞互联网十年了,竟然没想着把家里这些优质的,原汁原味的物产通过互联网销售出去,不仅能给家人带来一些利润,同时也能给真正想吃上无添加食品的朋友带来放心的食品。 经历过这番思考,我再也不相信没有机会这一说。就像民间的谚语说的那样:只有懒婆娘,没有丑婆娘。 没有机会只有两个原因:要么是懒,要么是认知格局不够。而第二个的原因,同样是第一个引起的。 你能坚持什么

Drools规则引擎平台如何进行架构

删除回忆录丶 提交于 2020-02-25 16:55:51
在《 Drools7 规则引擎视频教程 》的交流群中,有同学提出这样的问题:如果不想使用Drools官方提供的Workbench和KIE-Server进行规则的管理,而自行进行相应系统研发,该如何设计相应的平台架构呢? 首先,我们必须承认,Drools官方提供的Workbench和KIE-Server的确很厚重,而且对部署环境也有要求,想抛弃它们是很正常的。但如果你的团队没有太多的时间投入,选择使用它们也是不错的。 其次,如果真的想自己开发对应的规则管理平台,那你需要做的事情就仿照它们、抄它们的思路,并简化实现它们。 下面的图是在《 Drools规则引擎Workbench实战 》视频教程中为大家分析的Drools官方几个系统的功能与角色。 既然我们了解了各个系统的功能,那么抄起来就容易多了。下面,为大家提供一个如果自己实现Workbench和Kie Server相关的系统的架构图。 在图中,主要分四部分左上角类似KIE Server的功能、右上角类似Workbench的功能、左下角总和了Workbench和KIE Server的一些功能、右下角为业务系统功能。其中,图中两个红框中的功能也可以合并成一个,提供完整的Workbench的功能。 Drools技术视频 CSDN学院:《 Drools7 规则引擎视频教程 》 CSDN学院: 《Drools7系列优惠套餐》 CSDN学院:

Drools workbench kie-server部署和简单使用(全流程)

久未见 提交于 2020-02-04 11:06:20
kie-server workbench 的部署方式有很多,有tomcat(7.1*后停止发布tomcat版本)wildfly 部署 workbench 没什么问题,但是到kie-sever出各种稀奇古怪的毛病,最后使用docker的方式最方便易于使用! 1.docker 安装 首先本地按照docker,windows 需要 企业或专业版本,我用家庭版本,出现了一些安装问题 家庭版又不支持Hyper-V,docker是无法直接安装 解决方式详见下面链接 https://www.jianshu.com/p/1329954aa329 做好前期准备 去 docker官网 下载 建议注册,因为我发现不登录 官方的一些 文档无法查看 https://www.docker.com/products/docker-desktop 安装完之后,右键左面右下角的鲸鱼图标点击setting,然后点击Advance,适当调整以下虚拟机的cpu 内存等参数。 2.workbench 的安装 右键点击左下角windows,选择powershell 拉取镜像到本地 docker pull jboss/drools-workbench-showcase 官方的操作文档: https://hub.docker.com/r/jboss/drools-workbench-showcase 执行运行命令: docker

Using the “extends” functionality in drools spreadsheets?

孤人 提交于 2020-01-25 21:09:48
问题 I have a question about using a certian drools functionality in drools decision spreadsheet, that would help a lot in reducing the files and making them more readable. I can't add more than two links so please downlad this .zip file that includes: Version1.PNG, Version1.drl, Version2.PNG, Version2.drl, Version3desired.drl http://s000.tinyupload.com/?file_id=89653236807266194978 So here is the sample rule that we are using right now (something similar)Version1.PNG And this when converted to a

Drools rule fire only for inserted event

点点圈 提交于 2020-01-25 08:59:08
问题 I have a multiple uses with each a sensor that sends pedometer data. I have a rule file that based on the macAddress, fires the rule: declare Steps @role(event) end declare User @role(fact) end rule "MAC" when User( $mac: macAddress ) from entry-point "entrySteps" then end rule "ACC STEPS RULE" extends "MAC" when accumulate( Steps( $s : steps , macAddress == $mac ) over window:time( 1h ) from entry-point "entrySteps"; $fst: min( $s ), $lst: max( $s ); $lst - $fst < 50 ) then System.out

Drools get first element of List in where clause

泪湿孤枕 提交于 2020-01-24 15:08:42
问题 Is it possible to get first element of list from when clause in Drools? If I don't know Object fields values inside the list and I want just to retrieve first element, how can I do this? rule "TestRule1" dialect "java" when $c : Collection() $listCustObjs : ArrayList() from collect (CustomObject() from $c) $first : $listCustObjs.get(0) //<- something like this $otherObj : $first.other // <- take other element from first object from the list then ... end; 回答1: You need to cast the

Drools.NET vs Windows Workflow Foundation (WF)

不想你离开。 提交于 2020-01-22 05:19:05
问题 I am currently in the process of searching for a rules engine that works in .NET. Our logic is pretty simple, +, -, *, /, and, or, basic order of operations stuff. However we are going to need to store this information in the database and then generate the rules file when a new version is pulled from the database. So the common UI editors are going to be useless to us, unless one of them has a web version UI editor. So my question is, given what I have said, which is going to be the best