Share via


IPSWorkflowService.RegisterForEvent Method

Registers a workflow activity for an event that is raised for the workflow.

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

Syntax

'Declaration
Sub RegisterForEvent ( _
    workflowContext As ProjectWorkflowContext, _
    instanceUid As Guid, _
    eventName As String, _
    correlationId As Guid, _
    subscriptionUid As Guid _
)
'Usage
Dim instance As IPSWorkflowService
Dim workflowContext As ProjectWorkflowContext
Dim instanceUid As Guid
Dim eventName As String
Dim correlationId As Guid
Dim subscriptionUid As Guid

instance.RegisterForEvent(workflowContext, _
    instanceUid, eventName, correlationId, _
    subscriptionUid)
void RegisterForEvent(
    ProjectWorkflowContext workflowContext,
    Guid instanceUid,
    string eventName,
    Guid correlationId,
    Guid subscriptionUid
)

Parameters

  • instanceUid
    Type: System.Guid
    The GUID of the workflow activity instance.
  • eventName
    Type: System.String
    The name of the event that is being registered.
  • correlationId
    Type: System.Guid
    The GUID of the correlation identifier of the event. The correlation identifier can be used to uniquely identify an event within a workflow instance.
  • subscriptionUid
    Type: System.Guid
    The GUID that is supplied by the caller to register for the event. The registration is defined by the specified instance, event name, and correlation identifier.

Remarks

Project Server workflows integrate with the SPWorkflowExternalDataExchangeService to support raising events within the workflow.

Events that do not need to be uniquely identified within the workflow can use the workflow instance identifier for the correlation identifier. For example, the OnProjectSubmit event uses the workflow instance identifier as the correlation identifier.

See Also

Reference

IPSWorkflowService Interface

IPSWorkflowService Members

Microsoft.Office.Project.Server.Library Namespace