[rules-users] Drools FLow Persistence and Sessions

2010-09-07 Thread Chrystall, Greg
Hi, When using persistence what is the best approach to creating sessions? I can resume a session if the service was shutdown based on the session ID, but how often should I be creating new sessions? Can I have multiple sessions writing to the same database? Any guidance appreciated. Greg __

Re: [rules-users] Drools FLow Persistence and Sessions

2010-09-07 Thread Vlach Miloslav
Hi, Every process in my webapplication creates a session and this session is persisted to the database. I don’t know what is the best practice. But all seems to works. One problem is only with loading the session from the database… So I will wait for the community answer. Thanks Mila

Re: [rules-users] Question about BPMN2 and Drools

2010-09-07 Thread Cristiano Gavião
Hi Kris, Thanks very much for your clarification... Now I thinking I know how I will use Drools Flow... :-D and thanks for the Savara tips... And again thanks for this amazing tool... Cristiano Kris Verlaenen escreveu: > Cristiano, > > Drools Flow allows you to run executable BPMN2 proces

Re: [rules-users] Drools FLow Persistence and Sessions

2010-09-07 Thread Chrystall, Greg
When you say "every process in my webapplication" do you mean everytim you need to start a new ProcessInstance of a workflow? From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Vlach Miloslav Sent: 07 September 2010 12:23 To: Rules Users List Subj

Re: [rules-users] Drools FLow Persistence and Sessions

2010-09-07 Thread Vlach Miloslav
Yes, every process – I don’t know if this is best practice. From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Chrystall, Greg Sent: Tuesday, September 07, 2010 2:02 PM To: Rules Users List Subject: Re: [rules-users] Drools FLow Persistence and

[rules-users] Memory management manual or automatic?

2010-09-07 Thread marton.bokor
Hi, If I have many processes (one starts every minute or so) and I pass parameters as a map in startProcess and then I am inserting facts into the working memory. These are local variables (both parameters and facts) in my code which will eventually come out of scope when leaving their block and w

[rules-users] Memory usage tied to rule report?

2010-09-07 Thread Jared Davis
Hi, I'm attempting to track down an out of memory error. I have ~400 rules that operate on ~1 facts. One set of facts throws an out of memory error while other sets process w/o an error. It is easy to reproduce. When the system runs out of memory there are about 22,000,000 ReteTuple objects

Re: [rules-users] Memory usage tied to rule report?

2010-09-07 Thread Edson Tirelli
Jared, Which version of Drools are you using? Drools 5.1 massively reduces memory consumption for long-running stateful sessions, when there are lots of update/modify calls, when compared to Drools 5.0. Also, in 5.1 there is an internal report you can run. I did not exposed this in dr

Re: [rules-users] Drools FLow Persistence and Sessions

2010-09-07 Thread Kris Verlaenen
You yourself can decide how many sessions you want. Sessions are rather lightweight (so yes, you could simply create a new session for each process instance) and simply act as an independent processing unit. So then the question is, how many sessions do you normally need? Well, simple applicatio

[rules-users] ProcessEventListener event order

2010-09-07 Thread Carlos Villegas
Hi, I'm testing the ProcessEventListener on a simple process and I get the "after" events in reverse order. For example, Process completed : 1283915643204 Node left: 5: 1283915643268 Node triggered: 5: 1283915643268 Node left: 4: 1283915643268 Node triggered: 4: 1283915643269 Node left: 3: 128

Re: [rules-users] JMS Messenger

2010-09-07 Thread Wolfgang Laun
On 7 September 2010 01:14, Tina Vießmann wrote: > Hi, > > I'm using JMS (especially Apache ActiveMQ) in my application. Right > now, I'm manually establishing the JMS connection, extracting my Java > objects from the JMS messages and inserting the objects into the > knowledge base. It's simple w