Posted By

cchitsiang on 01/02/11


Tagged

WWF


Versions (?)

Simple Workflow in ASP.NET example


 / Published in: C#
 

  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  

You need to login to post a comment.