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.Type
The type of event.
- eventName
Type: System.String
The name of the event.
- eventData
Type: []
The event data.
- workflow
Type: Microsoft.SharePoint.Workflow.SPWorkflow
The workflow data.
- identity
Type: System.String
The identity of the workflow.
- workHandler
Type: System.Workflow.Runtime.IPendingWork
The work handler for workflow transactions, which is included in initialization of the event arguments.
- workItem
Type: System.Object
The 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>".