Hello,
Please share some documentation to create test scenarios in drools guvnor.
How to initialize the java objects, on which the test scenarios have to be
executed?
Do drools allow rule testing where the input is nested objects?
Thanks,
Boban
--
View this message in context:
http://drools.4
We use mysql to store the data, hence mysql db credentials are mentioned in
repository.xml
The DB user password in repository.xml is not encrypted currently.
What are the options available to place encrypted password in
repository.xml?
--
View this message in context:
http://drools.46999.n3.nab
According to First order Logic, (from a rule perspective), one can represent
their statements using:
PREDICATES, METHODS, CONNECTORS (including existential quantifiers)
..while PREDICATES can be synonymous with Object and Object expressions; the
only way of using methods has been via "eval" (AFAI
On 19/04/2011 18:58, Vincent LEGENDRE wrote:
Hi All
First : sorry for the misplaced reply to another thread
This post is to continue an interresting (to me) discussion started
there : https://issues.jboss.org/browse/JBRULES-46
This was about my remark about a backward-chaining mode that could
Hi All
First : sorry for the misplaced reply to another thread
This post is to continue an interresting (to me) discussion started there :
https://issues.jboss.org/browse/JBRULES-46
This was about my remark about a backward-chaining mode that could be used to
allow sequential mode to handle
I don't think that having one binary package per rule will solve your problem,
as you will build you KB by merging some packages, and will then fall into
exactly the same "compilation" time (to merge common nodes and build the merged
RETE for your packages).
Note than this problem is exactly th
Hi All
This post is to continue an interresting (to me) discussion started there :
https://issues.jboss.org/browse/JBRULES-46
This was about my remark about a backward-chaining mode that could be used to
allow sequential mode to handle some kind of RETE updates (first rules could
then trigge
100K concurrent threads tends to be a problem, with or without Drools. There
are
several strategies for limiting this, but this is not a Drools topic.
Hint 1: You can limit connects on sockets.
Hint 2: Java thread pool, a design pattern.
-W
On 19 April 2011 18:13, Sumeet Karawal wrote:
>
>
>
I have recently looked into Knowledge Agent and I don't think that this will
update the
Knowledge Base of an existing Stateful Knowledge Session.
For a Stateful KS you do a kAgent.getKnowledgeBase() to get the new KBase
and start a new KS from it.
For a Stateless KS that has been created with
kAg
Sumeet Karawal wrote:
> Thanks Esteban!!. I got you point. But how to make the rule to run
> according to a condition, in a loop.
>
> Also, how can we trigger the firing of one rule from another rule. Like
> when the Condition part of a rule satisfies then, in the Action part a
> particular rule is
Thanks David for your reply.
To clarify: the performance problem is specifically related to the build
package. This task takes longer as the package has more and more rules. The
build package process is complex, and performs also rule validation. That's why
I asked if there is a way to increment
Sorry about the name typo in my previous reply Sumeet.
On 4/19/11 12:14 PM, Tihomir Surdilovic wrote:
> Hi Samarat, as Esteban suggested, please read the documentation as for
> example your question is answered there very early on in chapter "2.2.1.
> Methods versus Rules".
>
> Tihomir
>
> On 4/19
Hi Samarat, as Esteban suggested, please read the documentation as for
example your question is answered there very early on in chapter "2.2.1.
Methods versus Rules".
Tihomir
On 4/19/11 12:06 PM, Sumeet Karawal wrote:
> Thanks Esteban!!. I got you point. But how to make the rule to run
> accord
Thanks a lot Randhish!!!
Stateful sessions will have to be disposed. But what if the sessions are
taking too long, same with the case of stateless sessions, then what to do
in that case.
Also in the multi- threaded environment, if I have 10 - 100 Ks of threads,
will the rule engines performance
Thanks Esteban!!. I got you point. But how to make the rule to run
according to a condition, in a loop.
Also, how can we trigger the firing of one rule from another rule. Like
when the Condition part of a rule satisfies then, in the Action part a
particular rule is triggered and after that the con
Patricia,
My understanding (which is certainly open to being corrected) is that in
general there is no way to do an incremental compilation of rules. The entire
package is analyzed together and significant optimizations are performed to
combine common items between rules (which is one of the bi
I am using Drools-Guvnor 5.1 release in
an enterprise application. The rules created are separated per
packages, and for each package there is a snapshot package called
LATEST. The KnowledgeAgent polls the snapshot packages
to get the latest data and load into the rule engine. Whenever there is a
Hi,
I am quite new to drools but I will try to answer your questions.
I don't think Drools will cause your application to crash if you ensure
1. You develop rules that will not result in infinite loops.
2. Dispose sessions if you are using Stateful sessions.
Basically, you would want to create t
Drools is an inference engine and it let you express your knowledge using
rules.
A rule has 2 parts: CONDITION par and ACTION part.
The CONDITION part is expressed in a drools' proprietary syntax, but in the
ACTION part you can use plain java code.
What you have described looks like an action that
There is no need to update your kbase in the listener. The agent will apply
all the changes to the provided kbase. If you already have a stateful
ksession from that kbase, then the changes in the kbase should be
reflected immediately.
Could you please post the log output of the kagent?
Best Regard
Hello everybody:
I'm trying to write rules in which fact int attributes and fact String
attributes should be compared in condition elements. When I compare them,
let's say from int to String,
rule
when
Fact1($intAttr : attrInt1)
Fact2(attrString == $intAttr)
the rule seems to beh
Hi sir ,
I have 10 rules . rules are created dynamically .Now if any of them is
causing problem so none of them runs
so I want to compile each rule separately , so that i can create knowledge
base with rules which have no errors
but can i do this ?
I am not finding the way how i can do it . is
i tried to load the session from a store like below and then query it for
work items/nodes but it doesn't give me an access to e.g. workItem
parameters as this value is empty.
Is there any API that would provide this information or should i somehow
duplicate drools flow and try to use NodeListener
Hi Everybody,
I had posted this earlier. It would be very greatful if anybody could help
me on these queries, any suggestions or any document that I can refer to.
Thanks and Regards,
Sumeet Karawal
Mailto: sumeet.kara...@tcs.com
Hi!
Yes, I have already implemented a KnowledgeAgentEventListener acts on
KnowledgeBaseUpdatedEvent and ResourceCompilationFailedEvent. I use this to
update my knowledgebase reference in my class that wraps the KnowledgeBase and
KnowledgeAgent. Below is the code for this class ("DynamicDecision
25 matches
Mail list logo