[rules-users] Accumulator being executed depending on the number of events

2012-06-21 Thread e...@yahoo.com
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

Re: [rules-users] Accumulator being executed depending on the number of events

2012-06-21 Thread e...@yahoo.com
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,

Re: [rules-users] Accumulator being executed depending on the number of events

2012-06-21 Thread e...@yahoo.com
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

Re: [rules-users] Accumulator being executed depending on the number of events

2012-06-22 Thread e...@yahoo.com
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

Re: [rules-users] Accumulator being executed depending on the number of events

2012-06-25 Thread e...@yahoo.com
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

Re: [rules-users] Inserting Facts from Json Format

2012-07-05 Thread e...@yahoo.com
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