Hi Ricardo,
Yes you can store the Drools working memory / knowledge session into a
persistence storage to restore the previous state later.
The same mechanisms are used for Processes. You will see that
jbpm-persistence-jpa contains a dependency to the drools-persistence-jpa
which contains the
See attached DRL. input is: condFt=supportedValue
I have a rule with the following 'when' part which will not hit, though it
should:
$supportFT: supportFT()
condFT(value == $supportFT.getValue())
$conclusion: testInferred()
while the
On 29/11/2012, dec roni.frant...@gmail.com wrote:
See attached DRL. input is: condFt=supportedValue
I have a rule with the following 'when' part which will not hit, though it
should:
$supportFT: supportFT()
condFT(value == $supportFT.getValue())
laune, thanks for the quick response.
laune wrote
$supportFT: supportFT(value == null || value !=null)
condFT(value == $supportFT.getValue())
$conclusion: testInferred()
This could be due to a misuse, e.g., a change of a fact without
Ah, I didn't notice the link to the .drl in the 1st mail.
You are using @propertyReactive. Have you read the documentation in
the Drools Introduction and General User Guide? It's too long to
repeat here...
You better not use this feature unless you are fully confident that it
meets your
If your program terminates without any new session, dispose() need
not be called.
Getting different results for different runs with the same program+data
is strange unless you use generated random test data or rules based on
time in some way.
That's all I can say given the info provided.
-W
On
Hi Team, I'm a newbie to Drools. Please help me here.1. I have
created a Package named org.sample.2. I have created a Model named
TestModel in the same package.3. I have created a Fact named Number
in the same Model.4. Number fact is as following:
laune wrote
If your program terminates without any new session, dispose() need
not be called.
I only have one session during every run. So using dispose is general
correct in my case.
laune wrote
Getting different results for different runs with the same program+data
is strange unless you
Hi Team,
I'm a newbie to Drools. Please help me here.
1. I have created a Package named org.sample.
2. I have created a Model named TestModel in the same package.
3. I have created a Fact named Number in the same Model.
4. Number fact is as following:
Hi,
As I see it , this is a big problem.
I was looking at drools about 10 months ago (5.3.0 Final) and debug worked
just fine ... ... so similar to earlier comment of Bruno here.
Today I downloaded drools 5.5.0 Final eclipse Juno and debug is broken
...
Can we expect a patch? I can't see
I suspect the version of drools and guvnor you are using are not identical.
Use of RuleAgent is most certainly not helping. Did you look at the
/droolsjbpm/guvnor/guvnor-examples demonstration using KnowledgeAgent?
On 29 November 2012 12:59, Hushen Savani hushen.sav...@elitecore.comwrote:
*Hi
Hi Kevin,
did you try the workaround I suggested; setting rule dialect to mvel? That
works for me.
There is a JIRA issue for the problem with debugging Java rules here:
https://issues.jboss.org/browse/JBRULES-3676
I created a pull request for it a few weeks ago but I don't think anyone from
Hi,
I have finally gained a tiny bit of control (and maybe even some competency) in
using the DROOLs language operators 'no-loop' and 'lock-on-active' as a basis
for controlling rule set firing behavior in response to Fact mutation events
(during consequence processing).
I now want to
Have you looked at agenda-group or ruleflow-group? You've reinvented some of
their functionality here.
From: Cotton, Ben ben.cot...@morganstanley.com
To: rules-users@lists.jboss.org rules-users@lists.jboss.org
Cc: O'Brien, Patrick
Ø Have you looked at agenda-group or ruleflow-group?
Sweet.
Ø You've reinvented some of their functionality here.
Gak! I figured I must have been doing that (and that’s the last thing I want
to do). Got stuck in my “Drools newbie deep dive” … knew had to hit this
forum and “surface for
Hi Mattias,
Thanks for your very quick reply
What I'm seeing is very strange!!!
I tried the workaround with eclipse juno it did not work,
I tried the workaround with eclipse helios it partially worked ...
The debugger stopped in the helloworld drl file but when stepping through
the
Hello everyone,
as I try to find the best solution for a scheduling problem Drools
Planner seems to be the perfect fit.
Instead of using drl files I want to implement the rules in Java, but I
still would like to use the power of Drools (Planner) to find the best
solution as fast as possible.
My
Thanks again laune.
I thought I did.. Didn't see how it would cause this.
Would you kindly help point me to the part in there that explains this kind
of behavior? where what would seem as two equivalent conditions yield
different result?
laune wrote
Ah, I didn't notice the link to the .drl in
Spectacular! this book has been very highly anticipated by my team, clients and
myself for a bit now and on behalf of all of us we appreciate all of your hard
work (and that of packt and editors) in putting this out in the world. It's
moved straight to the top of my weekend reading list.
Sent
Hi Cedric, you were always a good community supporter. I appreciate the
support, thank you for that! Are you around London during December? that
will be a good opportunity to meet.
Cheers
On Thu, Nov 29, 2012 at 10:43 PM, Cedric Hurst ced...@spantree.net wrote:
Spectacular! this book has been
Not a problem. Actually I prefer to perform flow control using working memory
objects like that instead of using the keywords, but I'm old school. :)
GreG
On Nov 29, 2012, at 11:11, Cotton, Ben ben.cot...@morganstanley.com wrote:
Ø Have you looked at agenda-group or ruleflow-group?
I want to keep only 1 fact with id==. But this is not working:
rule leave only one
when
$removeUs : java.util.List(size1)
from collect(Fact(id==)
then
size = $removeUs.size();
for (int i=1; i size; i++) {
retract($removeUs.get(i));
}
end
You cannot use an interfact (List) to instantiate an object, which
is happening due to the collect.
--W
On 30/11/2012, Martin Minka martin.mi...@gmail.com wrote:
I want to keep only 1 fact with id==. But this is not working:
rule leave only one
when
$removeUs : java.util.List(size1)
On 30/11/2012, Greg Barton greg_bar...@yahoo.com wrote:
Not a problem. Actually I prefer to perform flow control using working
memory objects like that instead of using the keywords, but I'm old school.
:)
GreG
Agenda groups provide a mechanism that's difficult to emulate using
guard
On 30/11/2012, Martin Minka martin.mi...@gmail.com wrote:
Thank you for the tip. What solution would you suggest to solve my problem
?
Look into the javadoc of java.util to find any class implementing List :-)
-W
Martin
2012/11/30 Wolfgang Laun wolfgang.l...@gmail.com
You cannot use an
25 matches
Mail list logo