Click here to Skip to main content
12,629,978 members (26,201 online)
Click here to Skip to main content

Stats

167.6K views
1.5K downloads
165 bookmarked
Posted

Navigational Workflows Unleashed in WWF/ASP.NET 3.5

, 21 Oct 2008 CPOL
Case-study on the internals of a Navigational Workflow engine for a fictional dating website called “World Wide Dating”.
DateSite
App_Data
bin
database setup procedure
DateSite.csproj.user
Global.asax
images
complete.png
critical.png
logo2.png
warning.png
Profile.dbml
Profile.dbml.layout
Properties
Service References
NavigationWorkflow
bin
NavigationWorkflow.layout
Properties
using System;

namespace DateSite
{
    /// <summary>
    /// This page is used to show an example of how to recover when an unknown
    /// error occurs. To generate this pseudo unknown error, click the "generate
    /// unknown error" hyperlink on the NavigationPane. The navigation pane is
    /// visible on all pages except for default.aspx.
    /// </summary>
    public partial class unknownError : System.Web.UI.Page
    {
        /// <summary>
        /// Attempts recovery of this error by making an attempt to 
        /// rehydrate the workflow instance that is in session.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnOk_Click(object sender, EventArgs e)
        {
            WorkflowManager workflowManager = new WorkflowManager(Application, Session, Request, Response);
            string pageToGoTo = workflowManager.Rehydrate(workflowManager.CurrentWorkflowInstanceId);
            workflowManager.ManagedRedirect(pageToGoTo);
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Pero Matić
Software Developer (Senior) Plan A Software
United States United States
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161205.3 | Last Updated 21 Oct 2008
Article Copyright 2008 by Pero Matić
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid