Share via


PSWorkflowService.BeforeWorkflowRun Method

Before the workflow starts to run, writes a message to the ULS log.

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

Syntax

'Declaration
Public Overrides Sub BeforeWorkflowRun ( _
    workflow As SPWorkflow, _
    pendingWork As IPendingWork _
)
'Usage
Dim instance As PSWorkflowService
Dim workflow As SPWorkflow
Dim pendingWork As IPendingWork

instance.BeforeWorkflowRun(workflow, _
    pendingWork)
public override void BeforeWorkflowRun(
    SPWorkflow workflow,
    IPendingWork pendingWork
)

Parameters

Remarks

The ULS message is, "Entering BeforeWorkflowRun for workflow: InstanceId = <GUID>".

See Also

Reference

PSWorkflowService Class

PSWorkflowService Members

Microsoft.Office.Project.Server.Workflow Namespace