Re: [rules-users] Stateless session with pre-inserted facts

2012-10-01 Thread Chris Selwyn
Thank-you Wolfgang. I had wondered whether that was the right thing to do. Thank-you for confirming it. I will have to investigate whether it is worth the effort. Chris On 30/09/2012 13:06, Wolfgang Laun wrote: > There's a section in the documentation "Persistence and Transactions", which > ex

Re: [rules-users] Stateless session with pre-inserted facts

2012-09-30 Thread Wolfgang Laun
There's a section in the documentation "Persistence and Transactions", which explains how to save and reload a session. It will have to be a StatefulKnowledgeSession, but that shouldn't matter - you just lose the simple "one shot" execution API call, and you don't want this any more anyway. But ha

[rules-users] Stateless session with pre-inserted facts

2012-09-30 Thread Chris Selwyn
I have a need to execute a set of rules on a complicated hierarchical data structure where some of the rules use a bunch of reference facts. At the moment I load the reference facts and the hierarchical structure into the WM of a stateless session on every execution. There are a lot of reference