Hi,
I believe Stateless session is only a wrapper around a stateful session, so
you're only gaining convenience by using a Stateless one.
Why not write your own wrapper that allows for the execution of a rule flow
too?
Cheers,
Mike
-----Original Message-----
From: rules-users-bounces(a)lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Yoni Mazar
Sent: 26 June 2008 15:31
To: rules-users(a)lists.jboss.org
Subject: [rules-users] Stateless session and rule flows
Hi Guys,
We are trying to work with drools with stateless session (Sequential) and to
apply rule flows.
we use the following code:
//define diagnosis and patient here
...
StatelessSession session = ruleBase.newStatelessSession();
//Here we would like to use: session.startProcess("ruleflow id") but this is
a method which belongs to
//StatefullSession only.
session.execute(new Object[] {diagnosis, patient});
How can we do that in steteless mode?
Thanks,
Yoni
--
View this message in context:
http://www.nabble.com/Stateless-session-and-rule-flows-tp17863849p17863849.h
tml
Sent from the drools - user mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users