[rules-users] Can a ruleflow be executed with a stateless session

Wishing Carebear wishing.carebear at gmail.com
Wed Jul 6 21:29:08 EDT 2011


Thanks

I tried the following but the rules are not executing:
List<Command> cmds = new ArrayList<Command>();
cmds.add( CommandFactory.newStartProcess("test-ruleflow"));

Client client = initClient();
cmds.add(CommandFactory.newInsert(client));

final StatelessKnowledgeSession ksless =
kbase.newStatelessKnowledgeSession();
ksless.execute(CommandFactory.newBatchExecution(cmds));


With the explicit stateful session, the test-ruleflow works fine. Any
pointers is very much appreciated.

On Wed, Jul 6, 2011 at 6:01 PM, Mark Proctor <mproctor at codehaus.org> wrote:

> On 07/07/2011 01:55, Wishing Carebear wrote:
> >
> >
> Yes, use the CommandFactory and build a batch execution  adding the
> StartProcessCommand.
>
> Mark
> > _______________________________________________
> > rules-users mailing list
> > rules-users at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110706/de4025cb/attachment.html 


More information about the rules-users mailing list