Start SharePoint Workflow Programmatically on List Items
Few days ago while working on a WSS 3.0 project I came a cross an issue that needed better solution that the one that we had in the moment. What we had was a custom list with a couple of items in it, and 2 workflows attached to the list. Both workflows were set to start automatically when new item is added or be started manualy by the administrator. While working on the test environment it was very easy to propagate new version of the workflows (remove the old version and add the new one) and start them manualy on the existing items. Taking in consideration that I had to do that for ~10 items in the list, it was not hard for me...but, what will happen in the future when this goes to production and the list have 1000 or more items??? I can't go through all items and manualy start the workflows...no way.
Well, the solution is a simple application that will allow you to explore your site collection, select the list, select attached workflow on that list and with one click of a button it will go through all items in the list and start the workflow.
The link to download the application is here. I hope it will help you in your daily work.
Cheers
UPDATE
You can find the full code for the application here.