OnWorkflowActivated class

Defines a workflow activity that is used to respond to the ISharePointService.OnWorkflowActivated event.

Inheritance hierarchy


Namespace:  Microsoft.SharePoint.WorkflowActions
Assembly:  Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)


<ActivityToolboxDisplayAttribute("VSTTSharePointWorkflow", True)> _
<ToolboxBitmapAttribute(GetType(OnWorkflowActivated), "Resources.OnWorkflowActivated.bmp")> _
Public NotInheritable Class OnWorkflowActivated _
    Inherits HandleExternalEventActivity
Dim instance As OnWorkflowActivated
[ActivityToolboxDisplayAttribute("VSTTSharePointWorkflow", true)]
[ToolboxBitmapAttribute(typeof(OnWorkflowActivated), "Resources.OnWorkflowActivated.bmp")]
public sealed class OnWorkflowActivated : HandleExternalEventActivity


An OnWorkflowActivated activity must be the first activity in a SharePoint Foundation workflow.

SharePoint Foundation raises this event activity when a workflow is initiated for a SharePoint item. This activity initializes the correlation between the workflow id and the correlation token.

The OnWorkflowActivated event is valid only as the first activity in a workflow. SharePoint Foundation ignores OnWorkflowActivated activities placed at any other position in the workflow.

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also


OnWorkflowActivated members

Microsoft.SharePoint.WorkflowActions namespace

Other resources

Workflow Activities for Windows SharePoint Services Overview

Workflow Initialization in Windows SharePoint Services