Windows Server AppFabric / Workflow Services Demo - Contoso HR

This sample demonstrates how you can use a Windows Workflow Foundation (WF4) Workflow Service and Windows Server AppFabric to construct a long running business process.

C# (6.3 MB)
 
 
 
 
 
4.9 Star
(8)
6,153 times
Add to favorites
12/3/2011
E-mail Twitter del.icio.us Digg Facebook

Solution explorer

C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HRApplicationServices.Contracts;

namespace HRApplicationServices
{
    public partial class SubmitAppResponse : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var response = Session["SubmitAppResponse"] as SubmitJobApplicationResponse;

            if (response == null)
            {
                Response.Redirect(GetRedirectString("HRMessage.aspx?MsgID=ErrNoAppResponse"),true);
            }

            if (response != null) this.lableResponse.Text = response.ResponseText;
        }

        private string GetRedirectString(string uriFormat, params object[] args)
        {
            return Server.UrlPathEncode(string.Format(uriFormat, args));
        }

    }
}