Share via


WaitForDocumentStatusActivity.Execute Method

Pauses the workflow until a document is in a specific status.

Namespace:  Microsoft.SharePoint.WorkflowActions.WithKey
Assembly:  Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)

Syntax

'Declaration
Protected Overrides Function Execute ( _
    executionContext As ActivityExecutionContext _
) As ActivityExecutionStatus
'Usage
Dim executionContext As ActivityExecutionContext
Dim returnValue As ActivityExecutionStatus

returnValue = Me.Execute(executionContext)
protected override ActivityExecutionStatus Execute(
    ActivityExecutionContext executionContext
)

Parameters

Return Value

Type: System.Workflow.ComponentModel.ActivityExecutionStatus
The status of the activity.

Remarks

The workflow runtime calls this override to pause the workflow until the specified document is in the specified status.

This override pauses the workflow until the document specified by the __ListItem property is in the status specified by the DocumentStatus property. If the document has the desired status, this override returns Closed, otherwise it returns Executing.

See Also

Reference

WaitForDocumentStatusActivity Class

WaitForDocumentStatusActivity Members

Microsoft.SharePoint.WorkflowActions.WithKey Namespace