If I understand this correctly, there isn't much point in having a non-sequential-mode stateless session.
If I want a one-shot execution, I can call inserts, fireAllRules and dispose() just as well in a stateful session. Possibly this is due to past development. Thanks! -W On 20 October 2010 09:13, Swindells, Thomas <[email protected]> wrote: > I've not used it but from what I understand: > Sequential mode: > 1. Insert facts > 2. Create activations. > 3. Fire all activations. > 4. Done. > > None Sequential (Standard) mode: > 1. Insert facts. > 2. Create initial activations. > 3. Pop and fire highest salience activation. > 4. Update activations (if update, retract etc was performed). > 5. If there are more activations goto 3. > 6. Done. > > They key difference is that in the standard mode rule consequences can > activate and deactivate activations as they update the working memory. > > Thomas > >> -----Original Message----- >> From: [email protected] [mailto:rules-users- >> [email protected]] On Behalf Of Wolfgang Laun >> Sent: 19 October 2010 22:34 >> To: Rules Users List >> Subject: Re: [rules-users] Stateless K-Session but no Sequential Mode >> >> Indeed I have, and I've read it down to the last paragraph: >> "Sequential mode can only be used with a Stateless Session and is off >> by default. To turn it on, either call..." This tells me about a >> StatelessKnowledgeSession WITH sequential mode. >> >> So, what if I create a StatelessKnowledgeSession from a KnowledgeBase, >> but do not turn sequential mode on? >> >> Best >> -W >> >> >> 2010/10/19 Michael Anstis <[email protected]>: >> > No doubt I'm missing the point but have you seen "3.3.7.1. Sequential Mode" >> > in Expert's documentation? >> > >> > On 19 October 2010 21:27, Wolfgang Laun <[email protected]> wrote: >> >> >> >> As I understand the Expert documentation, Sequential Mode has to be >> >> turned on, even with a Stateless Knowledge Session to achieve all the >> >> shortcuts and speed-ups. >> >> >> >> What the documentation does not tell me (or I haven't seen it) is the >> >> difference of a Stateless Knowledge Session with and without Sequential >> >> Mode. >> >> >> >> Cheers >> >> Wolfgang >> >> _______________________________________________ >> >> rules-users mailing list >> >> [email protected] >> >> https://lists.jboss.org/mailman/listinfo/rules-users >> > >> > >> > _______________________________________________ >> > rules-users mailing list >> > [email protected] >> > https://lists.jboss.org/mailman/listinfo/rules-users >> > >> > >> _______________________________________________ >> rules-users mailing list >> [email protected] >> https://lists.jboss.org/mailman/listinfo/rules-users > > > ************************************************************************************** > This message is confidential and intended only for the addressee. If you have > received this message in error, please immediately notify the > [email protected] and delete it from your system as well as any copies. The > content of e-mails as well as traffic data may be monitored by NDS for > employment and security purposes. To protect the environment please do not > print this e-mail unless necessary. > > NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 > 4EX, United Kingdom. A company registered in England and Wales. Registered > no. 3080780. VAT no. GB 603 8808 40-00 > ************************************************************************************** > > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users > _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
