On 06.03.2007, at 14:58, Tobia wrote:
Dev at weitling wrote:
Any idea how to "misuse" FlowScript is appreciated :-)
I don't know if this can be considered "misuse" of flowscript.
It's an email confirmation thingy made as a trivial state machine.
The interesting part is the interaction of the step variable with
the continuation. Here it is in "pseudo-flowscript":
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();
...that is the beauty of continuations in the web world
cheers
--
Torsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]