Re: [rules-users] How do you use Ruleflows with StatelessSession's?

2008-03-11 Thread Kris Verlaenen
<[EMAIL PROTECTED]> To: Sent: Tuesday, March 11, 2008 8:30 AM Subject: Re: [rules-users] How do you use Ruleflows with StatelessSession's? Hi I am using StatelessSession code in Java file and my rules are in drl file. Which drools variable are you talking about? How can I use it

Re: [rules-users] How do you use Ruleflows with StatelessSession's?

2008-03-11 Thread Mehak
Hi I am using StatelessSession code in Java file and my rules are in drl file. Which drools variable are you talking about? How can I use it in java file to set focus? Mark Proctor wrote: > > > The drools variable is available and you can get the working memory from > that. >> Do we have a s

Re: [rules-users] How do you use Ruleflows with StatelessSession's?

2008-03-06 Thread Mark Proctor
Mehak wrote: Hi Similarly can we set the focus on a particular agenda in stateless session. Like for statefull session, to fire the rules belonging to a given agenda, the code is : workingMemory.setFocus("agenda group name"); The drools variable is available and you can get the working memo

Re: [rules-users] How do you use Ruleflows with StatelessSession's?

2008-03-05 Thread Mehak
Hi Similarly can we set the focus on a particular agenda in stateless session. Like for statefull session, to fire the rules belonging to a given agenda, the code is : workingMemory.setFocus("agenda group name"); Do we have a similar method in stateless session as well? -- View this message i

Re: [rules-users] How do you use Ruleflows with StatelessSession's?

2007-08-10 Thread Mark Proctor
I'm not sure, will have to think on it the api is stateless and uses a single execute method, I'm not sure where the startProcess fits into that. Mark Shahad Ahmed wrote: Mark, Thanks for the reply. Are there any plans to make this functionality available directly via the API, rather than

Re: [rules-users] How do you use Ruleflows with StatelessSession's?

2007-08-10 Thread Shahad Ahmed
Mark, Thanks for the reply. Are there any plans to make this functionality available directly via the API, rather than having to add a "dummy" rule into a rulebase in order to get workflow to work with stateless sessions? I can see how to make the change myself to ReteooStatelessSession by addin

Re: [rules-users] How do you use Ruleflows with StatelessSession's?

2007-08-10 Thread Mark Proctor
you would have to call drools.getWorkingMemory().startProcess(id) from inside of a consequence. Mark Shahad Ahmed wrote: Does anyone know if it's possible to use a ruleflow with a StatelessSession? The current documentation and API seem to show examples with StatefullSessions i.e.: statefu

[rules-users] How do you use Ruleflows with StatelessSession's?

2007-08-10 Thread Shahad Ahmed
Does anyone know if it's possible to use a ruleflow with a StatelessSession? The current documentation and API seem to show examples with StatefullSessions i.e.: statefullSession.startProcess(id); statefullSession.fireAllRules(); etc... However, there doesn't seem to be anything equivalent in t