PSWorkflowService.CallEventHandler method
Used internally. Calls the event handler for the specified Project Server workflow event.
Namespace: Microsoft.Office.Project.Server.Workflow
Assembly: Microsoft.Office.Project.Server.Workflow (in Microsoft.Office.Project.Server.Workflow.dll)
Syntax
'Declaration
Public Overrides Sub CallEventHandler ( _
eventType As Type, _
eventName As String, _
eventData As Object(), _
workflow As SPWorkflow, _
identity As String, _
workHandler As IPendingWork, _
workItem As Object _
)
'Usage
Dim instance As PSWorkflowService
Dim eventType As Type
Dim eventName As String
Dim eventData As Object()
Dim workflow As SPWorkflow
Dim identity As String
Dim workHandler As IPendingWork
Dim workItem As Object
instance.CallEventHandler(eventType, _
eventName, eventData, workflow, identity, _
workHandler, workItem)
public override void CallEventHandler(
Type eventType,
string eventName,
Object[] eventData,
SPWorkflow workflow,
string identity,
IPendingWork workHandler,
Object workItem
)
Parameters
eventType
Type: System.TypeThe type of event.
eventName
Type: System.StringThe name of the event.
eventData
Type: []The event data.
workflow
Type: Microsoft.SharePoint.Workflow.SPWorkflowThe workflow data.
identity
Type: System.StringThe identity of the workflow.
workHandler
Type: System.Workflow.Runtime.IPendingWorkThe work handler for workflow transactions, which is included in initialization of the event arguments.
workItem
Type: System.ObjectThe work item, which is included in initialization of the event arguments.
Remarks
The CallEventHandler method writes the following message to the ULS log: "Entering CallEventHandler for workflow: InstanceId = <GUID>, eventName = <name of event>".