Hi,
I need to implement multithread drools execution.
Following i want to do
1. Load more than one drools rule set say drl1 and drl2.
2. Use core data model (facts) such that when independent thread executing
rules it doesnot modify facts simultaneously otherwise other drl wont get
executed.
Hi all!
I tried out Drools 6.0.0.CR3 and I have some difficulties in detecting patterns
with rules containing temporal parameters. I'm using following rule:
rule detect turn shifts
agenda-group evaluation
salience 100
when
$aae : AudioActivityEvent(value = 50) from
Unless you are using fireUntilHalt there is now no longer any async reactivity.
As discussed before, we have a stronger separation now between passive and
reactive mode.
If you want to see what's happening, there is now a new trace debug
information. You'll need a logback file similar to
If you were to wait for the required time and simply call fireAllRules again,
the timer base rule (as a result of the not) will be executed.
In 6.1 we now have a special TimerNode:
Thanks David. Short answer is yes, I have it set to false.
I am actually combining Spring and Java Configuration (I am doing this all
in the drools-server). I create my KnowledgeAgent in Spring and then pass
it (with the EntityManagerFactory, TransactionManager, and node) to an
Initializer
PseudoClockScheduler clock;
private void advance( Date eventDate ){
long currentTime = clock.getCurrentTime();
long eventTime = eventDate.getTime();
clock.advanceTime( eventTime - currentTime, TimeUnit.MILLISECONDS );
}
This simple but great piece of
Here's the problem I am trying to solve.
My users provide me a a list of configurations for what a truck can hold. For
example:
PickupTruck:
1xLargeSofa
3xSmallChair
PickupTruck:
1xLargeSofa
1xSmallSofa
1xSmallChair
PickupTruck:
5xSmallChair
TractorTrailer:
2xLargeSofa
4xSmallChair
…
The