I uploaded a WF custom activity library , which contains two activities: BackupDatabase : Performs a full or incremental backup of a database RestoreDatabase : Performs a restore of a database Both activities leverage the SQL Server 2005 System Management Objects (SMO). For details on the file contents, please refer to our downloads folder. This sample illustrates a couple of interesting concepts, specifically: Implementing a validator for a custom activity. Developing a custom Designer for an activity. Leveraging inheritance to develop custom activities. Leveraging a custom WorkflowRuntimeService to provide feedback about long-running operations to the hosting application. I am planning on writing a number of follow-up posts, which will highlight some of the more interesting aspects of these activities, so stay tuned!
Read More...