Yes, but I just fired up a small project using it and it used 100% of CPU. If you build
the attached project you'll see the tests run just fine. (They use fireAllRules.) If
you launch from the commandline, ("java -jar target/DroolsBoxes-1.0.jar") which
uses fireUntilHalt, the rules fire (and complete) just fine, but it continues to use 100%
of a cpu core indefinitely. This is with 5.1.1. If I change the drools version to
5.2.0-SNAPSHOT it compiles but the tests won't run. They all fail with the following
exception:
java.lang.NoSuchMethodError:
org.drools.spi.DeclarationScopeResolver.<init>([Ljava/util/Map;Ljava/util/Stack;)V at
org.drools.rule.builder.RuleBuildContext.<init>(RuleBuildContext.java:72) at
org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:1198) at
org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:629) at
org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:278) at
org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:451) at
org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28) at
com.sample.DroolsTest.readKnowledgeBase(DroolsTest.java:75) at
com.sample.DroolsTest.go(DroolsTest.java:31) at com.sample.BoxTest.test0(BoxTest.java:21)
--- On Thu, 3/17/11, Edson Tirelli <ed.tirelli(a)gmail.com> wrote:
From: Edson Tirelli <ed.tirelli(a)gmail.com>
Subject: Re: [rules-users] Basic doubt regarding Drools Fusion - @expires
To: "Rules Users List" <rules-users(a)lists.jboss.org>
Date: Thursday, March 17, 2011, 10:47 AM
To be honest, I believe so, but didn't profiled it extensively. I used
fireUntilHalt() in my Webinar yesterday on a live demo and it worked nicely.
Edson
2011/3/17 Greg Barton <greg_barton(a)yahoo.com>
Has the performance problem with fireUntilHalt been fixed in 5.2?
--- On Thu, 3/17/11, Makewise - Vitor Rui Mendonça <Vitor.Mendonca(a)brisa.pt> wrote:
From: Makewise - Vitor Rui Mendonça <Vitor.Mendonca(a)brisa.pt>
Subject: Re: [rules-users] Basic doubt regarding Drools Fusion - @expires
To: "'Rules Users List'" <rules-users(a)lists.jboss.org>
Date: Thursday, March 17, 2011, 7:01 AM
Hi Thomas, thanks for the info!
I googled it quite a bit and I think it’s a path to be explored, albeit I’ve saw several
messages on the mailing list regarding performance issues
when using fireUntilHalt.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
Edson Tirelli
JBoss Drools Core Development
JBoss by Red Hat @
www.jboss.com
-----Inline Attachment Follows-----
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users