<div>I asked this question on Aug 10 and got a reply from Mark Proctor saying the only way to currently do this is as follows:</div>
<div> </div>
<div>"you would have to call drools.getWorkingMemory().startProcess(id) from inside of a consequence."</div>
<div> </div>
<div>This means that you would have to create a rule that is always guaranteed to fire first e.g. with a "when" condition of true and a salience that is higher than all the other rules. The "then" part of the rule will be a call to
drools.getWorkingMemory().startProcess(id).</div>
<div> </div>
<div>Personally I don't like this, as there should really be an API option to set a ruleflow to a stateless session. Do a search for statelesssession + ruleflow in the rules-users archives for a the original thread (started on Aug 10).
<br><br>Regards</div>
<div>Shahad</div>
<div><br><br> </div>
<div><span class="gmail_quote">On 8/22/07, <b class="gmail_sendername">hypnosat7</b> <<a href="mailto:ablarbi@yahoo.fr">ablarbi@yahoo.fr</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Hi,<br><br>Is there any way to use rule flows with a statelessSession ?<br>Thanks<br>--<br>View this message in context:
<a href="http://www.nabble.com/statelessSession-and-rule-flow-tf4310262.html#a12270501">http://www.nabble.com/statelessSession-and-rule-flow-tf4310262.html#a12270501</a><br>Sent from the drools - user mailing list archive at
<a href="http://Nabble.com">Nabble.com</a>.<br><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br>