<div>Mark,</div>
<div>&nbsp;</div>
<div>Thanks for the reply.&nbsp;Are there any plans to make this functionality available directly via the API, rather than having to add a &quot;dummy&quot; rule into a rulebase&nbsp;in order to get workflow to work with stateless sessions? 
</div>
<div>&nbsp;</div>
<div>I can see how to make the change myself to ReteooStatelessSession&nbsp;&nbsp;by adding&nbsp;a setRuleFlow method that sets a private processId instance that all the execute methods can start if set (I guess an unset method wouldn&#39;t be needed for stateless sessions).&nbsp;An alternative might be to&nbsp;add&nbsp;variants of the existing execute and executeWithResults that also takes a Ruleflow processid, but I think this would add too many variations of execute. I&#39;ll probably have to make this change to use drools with the current application I&#39;m writing, as modifying the rules will not be an option - I&#39;m happy to submit the changes if you think this is worthwhile.
</div>
<div>&nbsp;</div>
<div>Shahad</div>
<div>&nbsp;</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 8/10/07, <b class="gmail_sendername">Mark Proctor</b> &lt;<a href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div text="#000000" bgcolor="#ffffff">you would have to call drools.getWorkingMemory().startProcess(id) from inside of a consequence.<br><br>Mark<br>Shahad Ahmed wrote: 
<blockquote type="cite">
<div><span class="e" id="q_11451bad697b08fa_1">
<div>Does anyone know if it&#39;s possible to use a ruleflow with a StatelessSession? </div>
<div>&nbsp;</div>
<div>The current documentation and API seem to show examples with StatefullSessions i.e.:</div>
<div>&nbsp;</div>
<div>statefullSession.startProcess(id); </div>
<div>statefullSession.fireAllRules(); </div>
<div>etc...</div>
<div>&nbsp;</div>
<div>However, there doesn&#39;t seem to be anything equivalent in the API for StatelessSesssion&#39;s. I&#39;d really like to be able to use the new sequential mode (i.e. with a StatelessSession) and ruleflow.</div>
<div>&nbsp;</div>
<div>Regards,</div>
<div>Shahad</div>
<div>&nbsp;</div>
<div>&nbsp;</div></span></div><pre><hr width="90%" size="4">
_______________________________________________
rules-users mailing list
<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  </pre></blockquote><br>&nbsp;</div><br>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br></blockquote></div>
<br>