<%@ WebHandler Language="C#" Class="Kernel" %> using System; using System.Collections.Generic; using System.Web; using System.Data; using System.Data.Common; using System.Web.SessionState; using System.Text; using eMIS; public class Kernel : IHttpHandler , IRequiresSessionState { public void ProcessRequest (HttpContext context) { if (context.Session["userid"]==null) context.Response.End(); DataManager dm = new DataManager(); string fnid = context.Request.QueryString["fnid"].ToString(); string recordId = context.Request.QueryString["rid"].ToString(); string menuId = context.Request.QueryString["pid"].ToString(); InstanceManager im = new InstanceManager(context, dm,menuId); im.FlowNode = fnid; im.Flow.Init(recordId); string state = im.Flow.GetFlowState(recordId); context.Response.Write(im.Flow.GetNodeState(state,im.Flow.CurrentNodeID)); } public bool IsReusable { get { return false; } } }