>From what I understand the answer to 1, and 3 is no - once the list of 
>activations is generated it isn't regenerated.

This greatly increases performance if you are dealing with a problem where the 
input facts and consequences are partitioned and isolated - for instance you 
could have a load of complex routing rules which update the message with the 
destination it should be sent to. As long as your rules don't want to reason 
over the messages destination list you can execute this sequentially.

Thomas

From: [email protected] 
[mailto:[email protected]] On Behalf Of Harshit Bapna
Sent: 20 October 2010 08:30
To: Rules Users List
Subject: Re: [rules-users] Stateless K-Session but no Sequential Mode

Few more questions related to sequential mode in stateless session:

1. Can we insert objects in the RHS of the rule and these objects can be used 
in the LHS of another rule ?
2. Can anyone provide use case for sequential mode stateless session ?
3. Can I have a high salience rule which inserts fact using insert keyword and 
that fact can be used in the LHS of another rule with low salience.
On Wed, Oct 20, 2010 at 12:43 PM, Swindells, Thomas 
<[email protected]<mailto:[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:[email protected]>
>  [mailto:rules-users-<mailto:rules-users->
> [email protected]<mailto:[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]<mailto:[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]<mailto:[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]<mailto:[email protected]>
> >> https://lists.jboss.org/mailman/listinfo/rules-users
> >
> >
> > _______________________________________________
> > rules-users mailing list
> > [email protected]<mailto:[email protected]>
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
> >
> _______________________________________________
> rules-users mailing list
> [email protected]<mailto:[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]<mailto:[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]<mailto:[email protected]>
https://lists.jboss.org/mailman/listinfo/rules-users



--
-- Harshit Bapna

________________________________

**************************************************************************************
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

Reply via email to