PSWorkflowService.CleanupAfterWF Method

Marks a workflow stage as completed, or completed with errors.

Namespace:  Microsoft.Office.Project.Server.Workflow
Assembly:  Microsoft.Office.Project.Server.Workflow (in Microsoft.Office.Project.Server.Workflow.dll)

Syntax

'Declaration
Public Sub CleanupAfterWF ( _
    workflowContext As ProjectWorkflowContext, _
    error As Boolean _
)
'Usage
Dim instance As PSWorkflowService
Dim workflowContext As ProjectWorkflowContext
Dim error As Boolean

instance.CleanupAfterWF(workflowContext, _
    error)
public void CleanupAfterWF(
    ProjectWorkflowContext workflowContext,
    bool error
)

Parameters

  • error
    Type: System.Boolean
    True if there is an error in the workflow; otherwise, false.

Implements

IPSWorkflowService.CleanupAfterWF(ProjectWorkflowContext, Boolean)

Remarks

The CleanupAfterWF method is used when the workflow completes a stage or when it encounters an error. The stage is marked as Completed or CompletedWithErrors.

See Also

Reference

PSWorkflowService Class

PSWorkflowService Members

Microsoft.Office.Project.Server.Workflow Namespace