Re: [rules-users] In drools what is the exact difference between Insert and Update ??

2012-03-30 Thread Richard Calmbach
Wolfgang: Are the slides for your presentation online? This would be very helpful. I have searched repeatedly for a rule design best practices document and have only found conference agenda items on the topic but no actual document. After more than a year of working with Drools, I have figured out

Re: [rules-users] Streaming mode

2012-03-05 Thread Richard Calmbach
> final Activation activation) throws > FactException { > > > try { > this.ruleBase.readLock(); > this.lock.lock(); > . > } finally { > this.

Re: [rules-users] Streaming mode

2012-03-03 Thread Richard Calmbach
2012/3/2 Matteo Cusmai > i see that there are some other threads that insert new event and some > others retract them. > How is the thread model? > Contrary to claims made on this mailing list, StatefulKnowledgeSession is not thread-safe (this may be due to bugs, but bottomline is: it's not thre

Re: [rules-users] Multiple threading

2012-02-13 Thread Richard Calmbach
Sorry to burst your bubble, but stateful knowledge sessions are most definitely not thread-safe. I have seen hard evidence to this effect in the form of incorrect execution results and log statements that clearly show that two threads were interacting in unexpected ways. In a nutshell: Rule consequ

Re: [rules-users] Drools-server KnowledgeSessions

2012-01-12 Thread Richard Calmbach
Here is how I create StatefulKnowledgeSession instances dynamically, while still leveraging Spring config: [...] Read [1,2] for background on Spring method injection and how to use it to get a factory method for Spring-configured prototype beans without you

Re: [rules-users] StatefulKnowledgeSession and multi-threaded processing

2011-12-22 Thread Richard Calmbach
When you are dealing with events, the processing works a bit differently. First, we have to clarify: Are you inserting events or plain facts? If it has a timestamp, it has to be handled as an event. The distinction matters because in an event-driven scenario, only events would be inserted "from the

Re: [rules-users] Bugs in Drools 5.3.0 break Fusion event processing

2011-11-09 Thread Richard Calmbach
Edson: Thanks for the quick reply. I created these JIRA issues: F1: Duplicate job scheduling in org.drools.time.impl.DefaultTimerJobInstance.call() - https://issues.jboss.org/browse/JBRULES-3284 F2: NullPointerException in org.drools.time.impl.DefaultTimerJobInstance.compareTo(DefaultTimerJobInst

[rules-users] Bugs in Drools 5.3.0 break Fusion event processing

2011-11-08 Thread Richard Calmbach
I am making extensive use of the event processing features of the Drools rule engine. Upgrading from Drools 5.2.0.Final to Drools 5.3.0.Final broke 47 of my unit tests and also broke my functional tests. There seem to be multiple changes in Drools 5.3.0 that cause incorrect behavior and/or break ba

Re: [rules-users] Help with troubleshooting rules/Drools

2011-10-31 Thread Richard Calmbach
Robert Crawford wrote: > > Any advice on how to troubleshoot problems? I have a fairly simple set of > rules (a couple dozen), but keep having problems with fatal exceptions. > The most recent was: > > org.drools.RuntimeDroolsException: Unexpected exception executing action > org.drools.reteoo.P

Re: [rules-users] Online 5.3.0 javadocs

2011-10-31 Thread Richard Calmbach
Martin A wrote: > > Hello, > I'm looking for the online 5.3.0 javadocs, but can't find it... Would you > point me to a reference? > I have not been able to find online (as opposed to download) javadoc for any version of Drools after 5.1.1 either. I created an issue about that here: https://issu