Wolfgang Laun-2 wrote:
After reading this description, I don't see any reason for using
auto-focus
in the rule you have presented in the original email; especially the
combination with setFocus() in the RHS looks rather kinky to me.
I stole this reasoning from an old post I read
Hi,
Please help on the case below. I tried to create a package last night by
importing a drl file with 9000 rules. However, it takes almost 4 hours to
finish the importing. And my application is going to integrate with the
BRMS, however, it also take more than 2 hours to download the binary
Hi,
I created a package by uploading a large drl file with 9000 rules into the
Guvnor/BRMS. It takes almost 4 hours to complete. Could you tell me how
you can upload ~76,000 rules in 7 minutes to the package? It is very fast.
Please advise
Thanks
2011/1/14 Joe White
There is no import (or include) for .drl.
You should be able to keep all .drl-files in a single directory. Code to get
all .drl-Files from a directory and to feed them to the KnowledgeBuilder,
one by one, is simple.
-W
On 27 January 2011 08:36, Ayush ayush.vatsya...@alcatel-lucent.com wrote:
Consider building the Knowledge Base off-line and to load the serialized
object during application startup.
-W
2011/1/27 Benson Fung benson.red...@gmail.com
Hi,
I need to import a drl file with 9000 rules inside into BRMS. However, I
found that it takes very long time to import and it also
According to Section 3.3.7 StatelessKnowledgeSession of
http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html/ch03.html#d0e1956
the Drools document , the act of calling execute() is a single-shot method
that will internally instantiate a StatefulKnowledgeSession.
Why
Hi Wolfgang,
Thanks for your information. Can you tell me more about how to build the
knowledge base off line? And how to load the serialized object during
startup? What I usually do is put the following code fragment into the
init(...) method of the Servlet first and it will be invoked during
Hi,
I finally noticed a forall keyword that might be useful (see section
5.1.4.1. Syntax of templates).
Maybe can you try something like:
[forall(){Option(code == $)}]
Bruno.
Bruno Freudensprung a écrit :
Hi Gurvinder,
I've just taken a look at chapter 5.1 of Drools Expert about decision
Hi,
Is that possible to use templates with dsl without converting the dsl and
dslr to drl?
I have opted the below way to support templates with DSL and dslr.
But want to know is there a way to use the templates in dsl without
converting it to drl for ObjectDataCompiler.compile method
2011/1/27 Bruno Freudensprung bruno.freudenspr...@temis.com
Hi,
I finally noticed a forall keyword that might be useful (see section
5.1.4.1. Syntax of templates).
Maybe can you try something like:
[forall(){Option(code == $)}]
This must be written as
forall(){Option(code == $)}
so
Compiling to DRL is a low-level technique, useful for debugging or
unit tests of Drools itself.
Standard procedure is to add dsl and dslr (in this order) to a KnowledgeBuilder:
KnowledgeBuilder kBuilder = ...
Resource dsl = ResourceFactory.newClassPathResource( dslPath, getClass() );
Thanks...
This way i have done for rules without any templates and it works.
But for rules with templates, i need to pass the collection of data and the
rules to ObjectDataCompiler to compile. How can i do that?
Thanks,
Bala
--
View this message in context:
There is no Builder interface for this; you'll have to create the DRL
as a String and pass this to the builder.
-W
On 27 January 2011 13:27, Bala bala.gan...@accenture.com wrote:
Thanks...
This way i have done for rules without any templates and it works.
But for rules with templates, i
Dear Jeff:
First, thank you very much for your quick reply.
Concerning your StoneSide shop, yes indeed this is pretty much the
functionality that I target, and it is a proof that it works well for a
*web* app.
If I got it right, you used a pure *server*-centric rules-based architecture
based
Hi All,
When I'm trying to execute multiple evals I'm getting errors. Below is what
I'm trying to do
MyEvent(prop1=XYZ) over window:time(1m) from entry-point
MyStream
or
(MyEvent() over window:time(1m) from entry-point MyStream
and
Sessions are cheap to create.
The problem of removing all the facts and then insert new ones is that
depending on you rules, could be much more expensive than throw the old
session and create a new one. And you should also think about globals as
well. Removing a Fact is not just taking it off from
Hi, I even tried using below approach
AlertReceivedEvent() over window:time(1m) from entry-point
NotificationStream
$I1 : Double() from getIsgNodeCount()
Number(doubleValue $I1) from accumulate(
Usually the result of an accumulate is tested right there in the
pattern matching that object:
...
Number($i1 : doubleValue (getNodeCount()*0.35) )
from accumulate(...
Hopefully, getNodeCount() is a DRL function or an imported static method.
-W
On 27 January 2011
pls avoid this is just to make my post ACCEPTABLE
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Error-using-multiple-evals-tp2362605p2363456.html
Sent from the Drools - User mailing list archive at Nabble.com.
OK, I'll avoid it.
I hope your post is accepted.
:)
On 27 January 2011 18:32, Ayush ayush.vatsya...@alcatel-lucent.com wrote:
pls avoid this is just to make my post ACCEPTABLE
--
View this message in context:
Hi Greg,
Thank you for the reply. I converted the rules back to being processed in
singular mode versus through an ArrayList as you recommended. I am curious
about the reason though -- is it a performance issue or does it just make it
more difficult to work with within the rule?
I tried your
Not a bug in drools, but a bug in my brain. :) The first term in a condition
element must come from the object, and objCode was bound in the previous
object. I didn't test that rule before posting, so my bad.
GreG
On Jan 27, 2011, at 15:15, mviens m...@viens.com wrote:
Hi Greg,
Thank
Hi, I even tried using below approach
AlertReceivedEvent() over window:time(1m) from entry-point
NotificationStream
$I1 : Double() from getIsgNodeCount()
Number(doubleValue $I1) from accumulate(
Has anyone ever tried to persist Drools Flow processes to HBase (or
some other NoSQL DB)? We are working on a cloud-based system sitting
with HDFS and HBase for storage. We would rather not introduce a
RDBMS into the architecture simply to support Drools Flow's JPA
requirement for
When I'm trying to execute multiple evals I'm getting errors. Below is what
I'm trying to do
MyEvent(prop1=XYZ) over window:time(1m) from entry-point
MyStream
or
(MyEvent() over window:time(1m) from entry-point MyStream
and
Hi,
I am a newbie to drools/guvnor. I am trying to populate a drop-down list
in guvnor rule generation with preconfigured values(which would come from
database).
I tried to populate the titles property of AgeTest class with values from
loadData() method of AgeValues class.
In the new
The rule you have shown is not capable of producing that error message.
Which version of Drools are you using?
(1) You cannot use = (in: MyEvent(prop1=XYZ) to compare two values.
(2) You cannot use matches in eval, where Java expressions are expected
(in: eval((prop3 matches ...).
(3) You must
27 matches
Mail list logo