in

Foo Theory

Partners in Community - serving up some ice cold Kool-Aid!

Custom SMO Activities

Downloads: 550 File Size: 36.8kB
Posted By: bennie Views: 1,227
Date Added: 05-21-2007

The enclosed zip file contains two custom Windows Workflow Foundation 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). The implementation of the activities is done in the SMOActivityLibrary project. The TestWorkflow sequential workflow project contains two sample workflows that leverage these activities. A simple console application which invokes both workflows is provided in the WorkflowConsoleApplication1 project.

 This sample illustrates a couple of interesting concepts, specifically:

  1. Implementing Validators for custom activities.
  2. Developing a custom Designer for an activity.
  3. Leveraging inheritance to develop custom activities.
  4. Leveraging a custom WorkflowRuntimeService to provide feedback about long-running operations to the hosting application.

 

Comments

No comments exist for this file.

Add Comment

(required) 
(required)
(optional)
(required) 
Add
Copyright ASIQS Corporation © 2006, All rights reserved.
Powered by Community Server (Commercial Edition), by Telligent Systems