Hi,
I'm experimenting with Drools and have troubles understanding the way
accumulators work. Before i go and look at the source code i was wondering
if the way the accumulators work is designed as described below or of it has
something to do with my rules configuration.
I'm using drools distibuti
Hi Wolfgang,
thanks for the swift reply. Probalby you are right about the fact that a new
context is created instead of a new accumulator. But why is it looping over
all the context that are created for that accumulator?
Surely the output attached to the first thread is not what you would expect,
Wolfgang,
Again many thanks for you response but it's just not clear for me.
According to me if i have 1 million TestEvents and after each insert I call
fireAllRules i will end up with 1 million accumulate context of type test in
my example.
Meaning that if the event in my case belongs to the
Hi Wolfgang,
I couldn't agree more with your analysis unfortunately it seems that or i
have something wrong with my rule or there is something wrong with the
implementation?
First off all the reserve was set to false this would mean that once the
rule is finished the context shouldn't be availabl
Wolfgang,
Looking at my generated outputI don't see any difference between reverse set
to false or true? But perhaps if i would reverse an event the init method
would be called on the existing context, i didn't try this yet.
Regards,
e
--
View this message in context:
http://drools.46999.n3.nab
Hi,
I'm facing the same problem.
The following code works fine if i know upfront wht the object should be:
ObjectMapper mapper = new ObjectMapper();
FactType type = kbase.getFactType("eu.mc2bis.events",
"DeviceEventDeclared");
System.out.p