Re: [rules-users] Inserting String Object and accessing it in Guvnor

2012-09-30 Thread Michael Anstis
Sessions are a runtime concept, Guvnor is a design time environment. Ignoring this disconnect and assuming you want to use java.lang.String as a fact type in Guvnor you should be able to simply add an import for said class. sent on the move On 30 Sep 2012 18:55, "Manasi" wrote: > Hi, > > Curre

[rules-users] Inserting String Object and accessing it in Guvnor

2012-09-30 Thread Manasi
Hi, Currently in my application I want to insert a *String object* into a StatefulKnowledgeSession. I don't want to insert object of any *User defined type* ,as input parameter contains only one string parameter. I am able to insert String object into my StatefulKnowledgeSession, but don't know h

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