Drools Eclipse IDE Update Site 3.5
by Brian Trezise
I'm not sure why, but when I try to get eclipse to download the
eclipse IDE from the drools update site as listed on the webpage,
Eclipse isn't seeing anything there. If i go to the link in Chrome I
get an error stating that the browser couldn't display the page; firefox
shows a list of three files. I'm trying to download the latest IDE
plugin from http://downloads.jboss.com/drools/updatesite3.5/
~Brian
14 years, 2 months
Can I have 2 different instance of Guvnor to use same SQL server DB?
by bbarani
Hi,
I have a Guvnor instance (instance 1) running in tomcat and its using SQL
server 2005 as its backend.
Now I am planning to have one more instance of Guvnor (instance 2) running
from another application server but want to point it to same SQL server
(configured for instance 1)
I just made changes to the persistance manager properties file and I was
able to view the package names listed in the new instance but I am not able
to view all the rules present in those package from instance 2.
Is there any other path related config changes that needs to be done when
using the same data for 2 different Guvnor instance?
Thanks,
BB
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Can-I-have-2-differen...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 2 months
iisue with Operator 'Operator = '>'' does not exist for StringEvaluator
by Ganesh Krishnan
Hi
I'm facing some issue with DRools . Could you help me to solve the issue.
The Error : Exception in thread "main" java.lang.RuntimeException: Operator 'Operator = '>'' does not exist for StringEvaluator
I'm using Drools 1.4 version and i'm having the following jars in my classpath.
ant-1.6.5.jar core-3.2.3.v_686_R32x.jar drools-compiler-4.0.7.jar
antlr-runtime-3.0.jar drools-analytics-4.0.7.jar drools-core-4.0.7.jar
ant-nodeps-1.6.5.jar drools-ant-4.0.7.jar drools-decisiontables-4.0.7.jar
drools-jsr94-4.0.7.jar janino-2.5.10.jar jsr94-1.1.jar
mvel-1.3.1-java1.4.jar
Please check the detail error deatils
Exception in thread "main" java.lang.RuntimeException: Operator 'Operator = '>'' does not exist for StringEvaluator.
at org.drools.base.evaluators.StringFactory.getEvaluator(StringFactory.java:70)
at org.drools.base.ValueType.getEvaluator(ValueType.java:166)
at org.drools.rule.builder.PatternBuilder.getEvaluator(PatternBuilder.java:900)
at org.drools.rule.builder.PatternBuilder.buildRestriction(PatternBuilder.java:714)
at org.drools.rule.builder.PatternBuilder.buildRestriction(PatternBuilder.java:625)
at org.drools.rule.builder.PatternBuilder.createRestriction(PatternBuilder.java:434)
at org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:308)
at org.drools.rule.builder.PatternBuilder.buildConstraint(PatternBuilder.java:199)
at org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:168)
at org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:93)
at org.drools.rule.builder.GroupElementBuilder.build(GroupElementBuilder.java:69)
at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:53)
at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:446)
at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:304)
at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:167)
at com.starwood.saratoga.scripting.poc.SaratogaApp.buildRuleBase(SaratogaApp.java:34)
at com.starwood.saratoga.scripting.poc.SaratogaApp.scriptGenerator(SaratogaApp.java:133)
at com.starwood.saratoga.scripting.poc.SaratogaApp.main(SaratogaApp.java:204)
To resolve this issue please suggest what are the jar's i supposed to use.
Thanks & regards
Ganesh K
14 years, 2 months
Parallel Processing(multiple threads) in Drools Flow
by Prafull Kumar
Hi All,
We are evaluating Drools flow and looking for the parallel processing (multiple
threads) of few activities in the flow.
Could you please confirm if this is already supported for there are any plans
for this functionality.
Note : (I tried the Gateway[diverge] but it runs in the single thread and not in
the different threads.)
Thanks a lot in advance!
Regards, Prafull
14 years, 2 months
Guvnor: rule fire counts don't match when running modified test scenario
by Scott Mayne
I'm still going through Paul Browne's "JBoss Drools Business Rules" and am using test scenarios now.
What I've noticed is the activation counts displayed on different parts of the screen don't match. As per the book, I originally had a value for "sales" that would fire the rule 11 times, then changed the rule to have "no-loop true". Re-running the test gives the correct 1 activation at the top, but in 2 other places the old 11 count is still displayed.
I also noticed this behavior when changing the test scenario value of "sales" - for example, I'd start with a value that would fire 3 times, then change it to one that would fire 11 times. In the second case, 11 would correctly show at the top, but 3 would incorrectly display in 2 places lower down.
14 years, 2 months
Multi threaded rule engine question.
by Nadav Hashimshony
My rule engine server is multi threaded.
in the server main i build a knowledgebase:
KnowledgeBuilderConfiguration config =
KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration(droolsConf, null);
KnowledgeBuilder builder =
KnowledgeBuilderFactory.newKnowledgeBuilder(config);
builder.add(ResourceFactory.newFileResource("path to drools pkg",
ResourceType.PKG);
KnowledgeBase knowledgeBase = KnowledgeBaseFactory.newKnowledgeBase();
knowledgeBase.addKnowledgePackages(builder.getKnowledgePackages());
i have 10 threads that have the following code:
thread run method:
as long as a Vector has data do:
1. StatelessKnowledgeSession droolsSession=
m_droolsKagent.getKnowledgeBase().newStatelessKnowledgeSession();
2. get data object from a vector
3. create fact model from data
4. droolsSession.insert(facts);
5. droolsSession.fireAllRules();
6. do stuff with the response
7.droosSession.dispose
8.get next object from vector.
Questions:
1. should i create each time the droolsSession? or can i resuse the same
one, meaning can i create it in the Thread's constractor?
Thanks
Nadav.
14 years, 2 months
Is RETE algo optimizes the performance in a stateless session.
by Harshit Bapna
Hi All,
In a scenario where lets say 10 rule are to be fired (in any order) in a
stateless session than will I get the benefits of RETE algorithm (i.e
increased performance).
i.e Whether the engine will fire all the ten results in a parallel fashion
or Whether the engine will file each rule one by one.
How RETE algorithm will improve the performance of the engine for rules
fired in stateless session ?
14 years, 2 months
Copy rule from package to pakcage in Guvnor.
by Nadav Hashimshony
Hi,
I have a package in Guvnor that has some rules in it.
i want to crate another package and use some of the rules i created in the
first package,
is there a way to copy these rules or a way to share them in some way?
Thanks,
Nadav.
14 years, 2 months