Thanks<br><br>I tried the following but the rules are not executing:<br><span style="color: rgb(0, 0, 153);">List<Command> cmds = new ArrayList<Command>();</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">cmds.add( CommandFactory.newStartProcess("test-ruleflow"));</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> </span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">Client client = initClient();</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">cmds.add(CommandFactory.newInsert(client));</span><br style="color: rgb(0, 0, 153);">
<br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">final StatelessKnowledgeSession ksless = kbase.newStatelessKnowledgeSession();</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">ksless.execute(CommandFactory.newBatchExecution(cmds));</span><br>
<br><br>With the explicit stateful session, the test-ruleflow works fine. Any pointers is very much appreciated.<br><br><div class="gmail_quote">On Wed, Jul 6, 2011 at 6:01 PM, Mark Proctor <span dir="ltr"><<a href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">On 07/07/2011 01:55, Wishing Carebear wrote:<br>
><br>
><br>
Yes, use the CommandFactory and build a batch execution adding the<br>
StartProcessCommand.<br>
<br>
Mark<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" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<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" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br>