On 06.03.2007, at 18:32, Tobia wrote:
Torsten Curdt wrote:
That's a misuse of continuations. Why the steps?
That's what the continuation will do for you.
Think outside of the state machine
showPasswordForm();
sendEmail();
// now the email will have the link to the continuation
showSentPage();
// execution will suspend here
showNewPasswordForm();
updateDatabase();
showPasswordUpdatedPage();
How can I put the continuation id in the email text, but have the
continuation resume several blocks after, where you put 'execution
will suspend here'?
Cannot remember from the top of my head ...but you should be able to
get access to the currently running continuation.
You send out the mail with that id/link and then just suspend.
cheers
--
Torsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]