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
- workflow
Type: Microsoft.SharePoint.Workflow.SPWorkflow
The GUID of the Project Server workflow.
- pendingWork
Type: System.Workflow.Runtime.IPendingWork
An instance of an IPendingWork object, for workflow transactions. Not used in Project Server 2010.
Remarks
The ULS message is, "Entering BeforeWorkflowRun for workflow: InstanceId = <GUID>".