Create the Custom Activity Library

In this step you create two custom activities used for looking up a user to get her manager and to determine if the user is a manager. The actual logic of these services is not material. In a production system, these activities would most likely call out to Active directory or an HR system. They might also be exposed as services. However, in this example, they serve the purpose of demonstrating how you can create custom activities in a separate project and then use them in your workflows.

Create the IsManager Custom Composite Activity

The first activity checks to see whether the user is a manager. The following walks you through creating this activity:

1. Start with the UserLookupActivityLib project (an ActivityLibrary ...

Get Microsoft® Visual Studio® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.