Thanks for pointing that out, Paul! I was already wondering how to get the InterpreterId to look up the continuation, but it's all clear now looking at that action. Kind Regards, Jan Paul Focke wrote: Hi, I have a flow in which I create a form. When this form is displayed, I like to keep the continuation to stay alive for as long as the user is filling in that form (which can take more than one hour, depends on how many times the user is refilling his cup of tea or coffee, and how many colleagues are passing by to have a nice chat with ;-) ). I'm thinking of something similar like daisy does (http://cocoondev.org/daisy/index.html, made by outerthought): sending a form which carries an internal frame that refreshes itself every x minutes. This frame will load a page which contains the original ID from the form continuation (by request). A small flowscript function will then call the continuationmanager and retrieve the WebContinuation. Getting the continuation from this object will trigger the WebContinuation to update its access time and thus it will stay alive.Is this sensible? Has anyone else ever tried something alike or solved this another way? Any comments welcome!I've done something similar. The most interesting part was getting the continuation and refreshing it. Luckily there is an action in the ajax block which takes care of the refreshing for you. <map:actions default="getContinuation"> <map:action name="getContinuation" src=""/> </map:actions> So in the page I wanted to have the continuation kept alive I put a hidden iframe with as src "keep-continuation-alive?continuation-id={put your continuation here}". So in the sitemap I added a matcher for this : <map:match pattern="keep-continuation-alive"> <map:act type="getContinuation"> <map:generate type="file" src=""/> <map:serialize type="html"/> </map:act> </map:match> The pacemaker.xml is just a little page that refreshes itself every x minutes or so.Kind Regards, Jan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] |
- Re: continuations Paul Focke
- Re: continuations Jan Hoskens