Simple Workflow in ASP.NET example


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function DoWebserviceJob()
  2. {
  3. MywebService.DoJob(onComplete, onFailed);
  4. }
  5.  
  6. [WebMethod]
  7. public DoJob()
  8. {
  9. //code from library
  10. }
  11.  
  12. [WebMethod]
  13. public DoJob()
  14. {
  15. WorkflowRuntime runtime = Application["RUNTIME"] as WorkflowRuntime;
  16. MyWorkflowManager.DoJob(runtime);
  17. }
  18.  
  19. public void DoJob(WorkflowRuntime runtime)
  20. {
  21. WorkflowInstance instance = runtime.CreateWorkflow(typeof(MyWorkflow));
  22. instance.Start();
  23. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.