I am working on setting up a simple workflow to control content publishing.
The workflow is going to be triggered when the page is CheckedIn ("Ready to Publish"). If the change is not approved we want the page to be set back to either Saved or Rejected (just not CheckedIn) and a task and email sent to inform the creator what needs changing.
We can do everything except setting the page from CheckedIn back to Save or Rejected. It seams that the LocalPageProvider doesn't support the SaveAction.Reject. the other option was to create a new version at saved status and delete the version at CheckedIn. This is only possible if you modify the page, even with ForceNewVersion set.
Am I missing something or are we going to have to create our own provider that does support this?
Ok, My stupid...
Was anding not oring SaveAction.Save and SaveAction.ForceNewVersion.
This works as required.