RoadFlow2.1 临时演示

Install.ashx.cs 875B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.SessionState;
  6. namespace WebForm.Platform.WorkFlowDesigner
  7. {
  8. /// <summary>
  9. /// Install 的摘要说明
  10. /// </summary>
  11. public class Install : IHttpHandler, IReadOnlySessionState
  12. {
  13. public void ProcessRequest(HttpContext context)
  14. {
  15. context.Response.ContentType = "text/plain";
  16. string json = context.Request.Form["json"];
  17. string msg = new RoadFlow.Platform.WorkFlow().InstallFlow(json, false);
  18. RoadFlow.Platform.Log.Add("安装了流程", json + "(" + msg + ")", RoadFlow.Platform.Log.Types.流程相关);
  19. context.Response.Write(msg);
  20. }
  21. public bool IsReusable
  22. {
  23. get
  24. {
  25. return false;
  26. }
  27. }
  28. }
  29. }