The stupid question is the question not asked | |
PerlMonks |
Re: (OT) Work flow in Web based applicationsby Ryszard (Priest) |
on Nov 07, 2002 at 09:39 UTC ( [id://211025]=note: print w/replies, xml ) | Need Help?? |
This will need a little bit of working thru' but how about something like this as a starting point:
So, the logic of your workflow's belong in your templates. You get to aggreate all the information the user supplies, and know which step the user wants to go to next. If the user wants to add a product, and the contact doesnt exist, you can take them to a step in the contact workflow, then return them to back to where they need to go. Flexible, as you can extend the workflow in arbitrary ways. draw_page could potentially call a library with the method being the step in the workflow, the library would then know exactly what information is needed then return back the html page. Not really a down side, but you'd have to be careful how you manage the expiry of each set of \%existing_detail, ie if someone doesnt click the cancel button and walks away, then comes back a day later - should their day-old data be restored? Potential downside, you'll have to be carefull how you manage multiple incomplete "actions" per user, ie if they are 1/2 way thru' the add product action and they want to go to the modify product workflow, what do you do?
In Section
Seekers of Perl Wisdom
|
|