Take the 2-minute tour ×    Any help will be highly appreciated.
share|improve this question  1 Answer 1  up vote 1 down vote
accepted  I would go for:    1. Make the workflow attach himself
to a content type. You could easily do this by adding the
Content Type to your solution (deploy via a Site Collection
scoped feature - recomanded) and irrelevant of whether you have
or not a Site Definition, everywhere where the Content Type gets
deployed and used (with the workflow code too of course) it will
attached automatically. Here example of declarative connecting
them http://howtosharepoint.blogspot.ch/2010/05/custom-workflow-
not-available-to-be.html   2. In the Feature Activated receiver
you could programatically attach the workflow to either list,
site, etc. depending of course of your workflow intended use.
Attaching programatically here http://msdn.microsoft.com/en-us/l
ibrary/microsoft.sharepoint.spcontenttype.workflowassociations.a
spx or here
http://www.thorntontechnical.com/tech/sharepoint/sharepoint-2010