I've got a few lines of code which programmatically add a workflow to a list content type. This works ok, but it also automatically adds a column to the default view of this list. I don't want that to happen, but I cannot find a way to prevent it. Of course I can retrieve the view again and delete the newly added column, but that seems a bit foolish.
SPWorkflowTemplate and SPWorkflowAssociation has an option for StatusColumn.
"True to display a status column for workflow instances based on this workflow template in the user interface."
"True to display a status column for this workflow association in the user interface."
Try setting it to false.
Haven't tested it.
This appears to work when creating an association, you can edit the template to set the StatusColumn to false at the point of setting the association, but you cannot edit this after the association is created.
Thanks for this info, it led me to the answer as well!!