[rules-users] Stateless session and rule flows
Anstis, Michael (M.)
manstis1 at ford.com
Thu Jun 26 10:55:10 EDT 2008
Somewhat better than my reply, now where was that stone I crawled from
under? ;-)
-----Original Message-----
From: rules-users-bounces at lists.jboss.org
[mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Kris Verlaenen
Sent: 26 June 2008 15:49
To: Rules Users List
Subject: Re: [rules-users] Stateless session and rule flows
Use a rule (probably without conditions and high salience) to start your
ruleflow:
rule "Start Process" salience 10
when
then
drools.getWorkingMemory().startProcess("yourName");
end
Kris
----- Original Message -----
From: "Yoni Mazar" <y.mazar at gmail.com>
To: <rules-users at lists.jboss.org>
Sent: Thursday, June 26, 2008 4:30 PM
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 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 --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 7206 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20080626/674036cb/attachment.bin
More information about the rules-users
mailing list