I would like to add workflow to my webpart. Whenever items added or removed from webparts my workflow needs to be started. I am not sure what my web part will have - it can have any items like list, asp.net controls, etc. Is this possible?
if it is a webpart you have built you can manualy start and stop the workflow
here is a snippet
WorkFlow Manager Refrence http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.workflow.spworkflowmanager_members.aspx
You will have to create the method that fires the workflow i usualy use an eventreciver of some sort. but as your question is very general i cannot give you a solution for that. but if for example you are displaying a list via a webpart. attatch an event reciver to the list and it will be kicked of if you edit it in the workflow