views:

183

answers:

1

I am trying to create a SharePoint designer workflow which should be triggered every time a document is checked in.

How do I pause till the document is checked in? Will the condition

Wait For "Checked Out To" "To Be Empty" work fine?

Some posts on MSDN and CodePlex indicate that this might throw an error.

+1  A: 

Do you have the possibilty to create (and more importantly, deploy) your own Workflow activities using Visual Studio? I.e. Are you allowed to use custom dll's in your sharepoint farm environment?

If so you could create an activity that uses the following code:

if (SPListItemFromWorkflowListItemProperty.File.CheckOutStatus != SPFile.SPCheckOutStatus.None)
{
  // do your stuff here, like pause the workflow
}
Colin
Unfortunately, no... Other than the "checked out to" complication, the rest of the workflow is pretty simple and easily implementable using SPDesigner. I don't want to whip out visual studio unless I absolutely have to...
ashwnacharya