OfficeTask.IsChangeAllowed method

Override this function to manage if task changes should be rolled back or not Users who are allowed to change the task: 1) AssignedTo for the task, including if the original assigned to was a group, any user of the group. 2) Task process owner (TaskProcessOwner is the login name of the user/group) 3) Members of the site owners group, aka the group pointed to by SPWeb.AssociatedOwnersGroup 4) Site collection admins

Namespace:  Microsoft.Office.Workflow.Actions
Assembly:  Microsoft.Office.Workflow.Actions (in Microsoft.Office.Workflow.Actions.dll)

Syntax

'Declaration
Protected Overridable Function IsChangeAllowed ( _
    context As ActivityExecutionContext, _
    taskId As Guid, _
    beforeProperties As SPWorkflowTaskProperties, _
    afterProperties As SPWorkflowTaskProperties, _
    executorLogon As String, _
    <OutAttribute> ByRef reason As String _
) As Boolean
'Usage
Dim context As ActivityExecutionContext
Dim taskId As Guid
Dim beforeProperties As SPWorkflowTaskProperties
Dim afterProperties As SPWorkflowTaskProperties
Dim executorLogon As String
Dim reason As String
Dim returnValue As Boolean

returnValue = Me.IsChangeAllowed(context, _
    taskId, beforeProperties, afterProperties, _
    executorLogon, reason)
protected virtual bool IsChangeAllowed(
    ActivityExecutionContext context,
    Guid taskId,
    SPWorkflowTaskProperties beforeProperties,
    SPWorkflowTaskProperties afterProperties,
    string executorLogon,
    out string reason
)

Parameters

Return value

Type: System.Boolean
Returns Boolean.

See also

Reference

OfficeTask class

OfficeTask members

Microsoft.Office.Workflow.Actions namespace