Share via


OnWorkflowActivated Class

Responds to the event Windows SharePoint Services raises when a new workflow instance is initiated for an item.

Inheritance Hierarchy

System.Object
  System.Workflow.ComponentModel.DependencyObject
    System.Workflow.ComponentModel.Activity
      System.Workflow.Activities.HandleExternalEventActivity
        Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated

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

Syntax

<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

Remarks

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

This activity responds to the ISharePointService.OnWorkflowActivated event. Windows SharePoint Services 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. Windows SharePoint Services 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

Reference

OnWorkflowActivated Members

Microsoft.SharePoint.WorkflowActions Namespace

Other Resources

Workflow Activities for Windows SharePoint Services Overview

Workflow Initiation in Windows SharePoint Services