spring-projects / spring-webflow

Spring Web Flow
https://spring.io/projects/spring-webflow
Apache License 2.0
331 stars 234 forks source link

Conversation expiration facility [SWF-192] #135

Open spring-operator opened 18 years ago

spring-operator commented 18 years ago

GuoJian Zhang opened SWF-192 and commented

 In current version, Release the flow conversion via flow execution ended, the release it automatic.
 But, at the most scene, the flow couldn't reach the "end" state.
  i.e. user to view his interactions, in the page of interaction list, he can do some operate, eg:create/edit/delete/forward/perform..., but this flow's execution state relatively at the state of "interactionList", it couldn't reach the end  state forever. 
  Our system have 1,000,000 users, so, if it hasn't garbage collector features, that will  lead to have large quantity garbage of flow execution conversion. 
   Wish swf can provide support it.

  I have an idea:
       Let user to set timeout of flow conversion life,  the garbage collector to cleanup the timeout flow conversion by timing.
  Thanks.

Affects: 1.0.4

2 votes, 3 watchers

spring-operator commented 18 years ago

Keith Donald commented

Currently conversation expiration occurs when the user session expires. We'll revisit adding our own expiration service in the 1.1 timeframe. In the meantime, relying on container-provided session expiration should be sufficient for most cases.

spring-operator commented 15 years ago

Jon Osborn commented

It would be interesting to have a shorter expiration for 'old' conversations...particularly because, for some applications, the current conversation may be worked for a long period of time and the 'old' ones are dead and just taking up space. Setting maxConversations =1 doesn't always work either because the transition from old to new may require that the back button work across the transition.