locked
How to: auto resume upon termination? RRS feed

  • Question

  • One of the activities that our WWF would perform is sending and getting files from our FTP server. What happens in an event when someone forcibly terminates (quite possibly withour their knowledge) this WWF by either shutting down the machine, power failure, whatever. The point is that WWF was terminated while being in process of sending/getting a file. When machine is powered back up and host is started we would like that fact to be recognized and the whole process resumed but how?

    Thursday, July 22, 2010 3:16 PM

All replies

  • You need to save your current state somehow. One way would be to add persist points to your workflow, and persist the whole workflow. This basically saves the workflow's entire state, for later resumption. You need to enable a persistant store for this. WorkflowServiceHost samples may be helpful to understand this.
    If this doesn't look appropriate, you may choose a more custom way to save whatever current state you need...
    Tim

    Friday, July 23, 2010 5:15 AM
  • Hi,

    I think Appfabric fits your scenario. for more infomation about Appfabric, please check:
    http://msdn.microsoft.com/en-us/windowsserver/ee695849.aspx

    The fundamental thing is persisting the Workflow Execution state into persistence store. Before sending file to your FTP server, use a persist Activity to save the workflow state. You can also use the transcation feature to enable transaction messaging.

    Regards


    This posting is provided "AS IS" with no warranties, and confers no rights. Microsoft Online Community Support. My Blog:http://xhinker.com
    Monday, July 26, 2010 8:37 AM