WF as a web service & capturing WF events  
Author Message
Etowah_man





PostPosted: Windows Workflow Foundation, WF as a web service & capturing WF events Top

I have seen a few examples of using ASP.Net as a WF host and then the host code subscribing to workflow completed, terminated etc. events.

When you expose a WF as a web service, in this case you do not have any such code. What would be the appropriate way to capture such events in cases like this

I would think that if I added a global.asax and tried to capture the information there, that this could cause a problem with not knowing which particular workflow was being completed or terminated.

Thanks!




Software Development for Windows Vista1  
 
 
kushals





PostPosted: Windows Workflow Foundation, WF as a web service & capturing WF events Top

Hi -

Globals.asax seems to be a possible approach!

You can get the specific information about the instance from WorkflowTerminatedEventArgs: e.WorkflowInstance. I guess that was your specific question - right

Thanks,

Kushal.