How to find all Workflows in an assembly
Posted by Igor Moochnick on 01/28/2008
This is a beginning of series of articles on workflows discoverablity and automation.
It’s easy to start a workflow if you know it’s type:
But what if you have an assembly and you don’t know a workflow type? Reflection is the answer. This is how you can find all the types in an assembly that inherit from an Activity (base type for all workflows) type:
Note: the list, returned by FindWorfklows function, will contain all Custom activities in the provided assembly as well.
If you want to know how to narrow down the list, stay tuned.