I have configured the Approval workflow for a Wiki list. The
workflow is set to "Start this workflow to approve publishing a major
version of an item.". Versioning is set to creat major and minor
versions.
When I manually "Publish a Major Version" for a wiki page the
workflow starts OK, but when I use a webpart with this code it does
not start:
SPFile myFile = SPContext.Current.File;
myFile.Publish("A comment");
What happens is SharePoint changes the Approval Status for the page
from "Draft" to "Pending" but does not start the workflow.
Is there something else I need to do to start the actual workflow
programmatically, please?