Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

Flexible Web UI Workflow application through ASP.NET MVC & Windows Workflow Foundation

, 3 Sep 2009
An article on developing a flexible web UI workflow application, using ASP.NET MVC & Windows Workflow Foundation
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Reflection;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;

namespace EmpRegWorkflow
{
    partial class Workflow2
    {
        #region Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        [System.Diagnostics.DebuggerNonUserCode]
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            this.setStateActivity3 = new System.Workflow.Activities.SetStateActivity();
            this.handleExternalEventActivity8 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.handleExternalEventActivity7 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.setStateActivity4 = new System.Workflow.Activities.SetStateActivity();
            this.handleExternalEventActivity5 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.setStateActivity2 = new System.Workflow.Activities.SetStateActivity();
            this.handleExternalEventActivity6 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.handleExternalEventActivity3 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.setStateActivity1 = new System.Workflow.Activities.SetStateActivity();
            this.handleExternalEventActivity1 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.event3Prev = new System.Workflow.Activities.EventDrivenActivity();
            this.event3Next = new System.Workflow.Activities.EventDrivenActivity();
            this.event2Prev = new System.Workflow.Activities.EventDrivenActivity();
            this.event2Next = new System.Workflow.Activities.EventDrivenActivity();
            this.event1Prev = new System.Workflow.Activities.EventDrivenActivity();
            this.event1Next = new System.Workflow.Activities.EventDrivenActivity();
            this.Final = new System.Workflow.Activities.StateActivity();
            this.Step3 = new System.Workflow.Activities.StateActivity();
            this.Step1 = new System.Workflow.Activities.StateActivity();
            // 
            // setStateActivity3
            // 
            this.setStateActivity3.Name = "setStateActivity3";
            this.setStateActivity3.TargetStateName = "Step3";
            // 
            // handleExternalEventActivity8
            // 
            this.handleExternalEventActivity8.EventName = "PreviousStep";
            this.handleExternalEventActivity8.InterfaceType = typeof(EmpRegWorkflow.IStepMove);
            this.handleExternalEventActivity8.Name = "handleExternalEventActivity8";
            // 
            // handleExternalEventActivity7
            // 
            this.handleExternalEventActivity7.EventName = "NextStep";
            this.handleExternalEventActivity7.InterfaceType = typeof(EmpRegWorkflow.IStepMove);
            this.handleExternalEventActivity7.Name = "handleExternalEventActivity7";
            this.handleExternalEventActivity7.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.handleExternalEventActivity2_Invoked);
            // 
            // setStateActivity4
            // 
            this.setStateActivity4.Name = "setStateActivity4";
            this.setStateActivity4.TargetStateName = "Step1";
            // 
            // handleExternalEventActivity5
            // 
            this.handleExternalEventActivity5.EventName = "PreviousStep";
            this.handleExternalEventActivity5.InterfaceType = typeof(EmpRegWorkflow.IStepMove);
            this.handleExternalEventActivity5.Name = "handleExternalEventActivity5";
            // 
            // setStateActivity2
            // 
            this.setStateActivity2.Name = "setStateActivity2";
            this.setStateActivity2.TargetStateName = "Final";
            // 
            // handleExternalEventActivity6
            // 
            this.handleExternalEventActivity6.EventName = "NextStep";
            this.handleExternalEventActivity6.InterfaceType = typeof(EmpRegWorkflow.IStepMove);
            this.handleExternalEventActivity6.Name = "handleExternalEventActivity6";
            // 
            // handleExternalEventActivity3
            // 
            this.handleExternalEventActivity3.EventName = "PreviousStep";
            this.handleExternalEventActivity3.InterfaceType = typeof(EmpRegWorkflow.IStepMove);
            this.handleExternalEventActivity3.Name = "handleExternalEventActivity3";
            // 
            // setStateActivity1
            // 
            this.setStateActivity1.Name = "setStateActivity1";
            this.setStateActivity1.TargetStateName = "Step3";
            // 
            // handleExternalEventActivity1
            // 
            this.handleExternalEventActivity1.EventName = "NextStep";
            this.handleExternalEventActivity1.InterfaceType = typeof(EmpRegWorkflow.IStepMove);
            this.handleExternalEventActivity1.Name = "handleExternalEventActivity1";
            // 
            // event3Prev
            // 
            this.event3Prev.Activities.Add(this.handleExternalEventActivity8);
            this.event3Prev.Activities.Add(this.setStateActivity3);
            this.event3Prev.Name = "event3Prev";
            // 
            // event3Next
            // 
            this.event3Next.Activities.Add(this.handleExternalEventActivity7);
            this.event3Next.Name = "event3Next";
            // 
            // event2Prev
            // 
            this.event2Prev.Activities.Add(this.handleExternalEventActivity5);
            this.event2Prev.Activities.Add(this.setStateActivity4);
            this.event2Prev.Name = "event2Prev";
            // 
            // event2Next
            // 
            this.event2Next.Activities.Add(this.handleExternalEventActivity6);
            this.event2Next.Activities.Add(this.setStateActivity2);
            this.event2Next.Name = "event2Next";
            // 
            // event1Prev
            // 
            this.event1Prev.Activities.Add(this.handleExternalEventActivity3);
            this.event1Prev.Name = "event1Prev";
            // 
            // event1Next
            // 
            this.event1Next.Activities.Add(this.handleExternalEventActivity1);
            this.event1Next.Activities.Add(this.setStateActivity1);
            this.event1Next.Name = "event1Next";
            // 
            // Final
            // 
            this.Final.Activities.Add(this.event3Next);
            this.Final.Activities.Add(this.event3Prev);
            this.Final.Name = "Final";
            // 
            // Step3
            // 
            this.Step3.Activities.Add(this.event2Next);
            this.Step3.Activities.Add(this.event2Prev);
            this.Step3.Name = "Step3";
            // 
            // Step1
            // 
            this.Step1.Activities.Add(this.event1Next);
            this.Step1.Activities.Add(this.event1Prev);
            this.Step1.Name = "Step1";
            // 
            // Workflow2
            // 
            this.Activities.Add(this.Step1);
            this.Activities.Add(this.Step3);
            this.Activities.Add(this.Final);
            this.CompletedStateName = null;
            this.Description = "Employee Registration - Workflow1";
            this.DynamicUpdateCondition = null;
            this.InitialStateName = "Step1";
            this.Name = "Workflow2";
            this.CanModifyActivities = false;

        }

        #endregion

        private EventDrivenActivity event2Prev;
        private EventDrivenActivity event2Next;
        private EventDrivenActivity event1Prev;
        private StateActivity Step3;
        private EventDrivenActivity event1Next;
        private HandleExternalEventActivity handleExternalEventActivity1;
        private HandleExternalEventActivity handleExternalEventActivity5;
        private HandleExternalEventActivity handleExternalEventActivity6;
        private HandleExternalEventActivity handleExternalEventActivity3;
        private HandleExternalEventActivity handleExternalEventActivity8;
        private HandleExternalEventActivity handleExternalEventActivity7;
        private EventDrivenActivity event3Prev;
        private EventDrivenActivity event3Next;
        private StateActivity Final;
        private SetStateActivity setStateActivity3;
        private SetStateActivity setStateActivity4;
        private SetStateActivity setStateActivity2;
        private SetStateActivity setStateActivity1;
        private StateActivity Step1;






































































































    }
}

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

V.GNANASEKARAN
Architect Collabera
India India
Gnana (Gnanasekaran) is currently working as a Senior Architect at Collabera, Bangalore, India, having more than 10 years experience. His area of specialization includes SOA, BPM, Messaging, Integration and Enterprise Architecture. The emerging tech. trends like web 2.0 and Enterprise Mobility excites him a lot. Architectural consulting is his core expertise. He also possess experience in Data warehousing and business intelligence solutions consulting, based on the Microsoft technology stack like SSAS, SSIS and SQL Server. You can reach him via e-mails at gnana.sekaran@collabera.com & vgnanasekaran@yahoo.com or at www.gnanasekaran.com

| Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 3 Sep 2009
Article Copyright 2009 by V.GNANASEKARAN
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid