OfficeTask members

The OfficeTask class workflow activity is included with the installation of Microsoft SharePoint Server 2010. It allows the customization of task centric workflows using SharePoint Designer that was not possible in Microsoft Office SharePoint Server 2007. The OfficeTask activity will not be available to users of Microsoft SharePoint Foundation 2010.

The OfficeTask type exposes the following members.

Constructors

  Name Description
Public method OfficeTask Creates a new instance of the OfficeTask class.

Top

Properties

  Name Description
Public property __ActivationProperties A activation properties for this OfficeTask's workflow. This property is recommended to be set.
Public property __Context An optional WorkflowContext for this OfficeTask. Binding this property is reccomended.
Public property ActiveTaskCount
Public property Activities (Inherited from CompositeActivity.)
Public property AllowChangeRequest Indicates whether a user can request a change to a workflow task.
Public property AllowReassign Indicates whether a user can reassign a workflow task to someone else.
Public property AssignedTaskCount
Public property AssignedTo Returns the names of the people assigned to the tasks in a task process.
Protected property Assignments A container of all of the initial stages for this OfficeTask.
Protected property CanModifyActivities (Inherited from CompositeActivity.)
Public property CC Returns an array of user names or e-mail addresses included on the CC line of task process notification e-mail messages.
Public property CCList A string form of the CC property in the format of Microsoft.Office.Workflow.Utility.Contact XML
Public property Comments Returns the value of the Description field of task list items that are created by the task process.
Public property CompletedTaskCount Returns the number of tasks in the task process that are marked as completed.
Public property ConsolidatedComments
Public property ContentTypeId Returns the value of the ContentTypeId property of the task.
Protected property CurrentUICulture Correct CultureInfo to use for UI this OfficeTask process
Protected property CurrentWeb The SPWeb of this workflow, with its Site.CurrentUser set according to impersonation settings in the workflow
Public property DeletedTaskCount The number of deleted tasks for this OfficeTask process
Public property DeleteTasksOnComplete Indicates whether the child tasks of the task process should be deleted when they are marked as completed.
Public property Description (Inherited from Activity.)
Protected property DesignMode (Inherited from DependencyObject.)
Public property DueDate Returns the date when child tasks of the task process are due to be completed.
Public property Duration Returns the amount of time from when the task was initially created to when it is due to be completed.
Public property DurationUnit Get or sets an enumeration value that indicates whether the value of the Duration property is counted in days, weeks, or months.
Public property Enabled (Inherited from Activity.)
Public property EnabledActivities (Inherited from CompositeActivity.)
Public property ExecutionResult (Inherited from Activity.)
Public property ExecutionStatus (Inherited from Activity.)
Public property ExpandGroups Indicates whether a task is assigned to each member of a group or to an entire group.
Public property FutureTaskCount
Public property IsDynamicActivity (Inherited from Activity.)
Protected property Item The SPListItem indicated by this OfficeTask's ItemId property
Public property ItemCreatedBy loginName of the SPUser who created the item for this OfficeTask process
Public property ItemExternalURL
Public property ItemId Returns the ID of the of list item that represents the workflow task that the task process is executing against.
Public property ItemModifiedBy loginName of the SPUser who last modified the item for this OfficeTask process
Public property ItemTitle encoded title property of the SPListItem for this OfficeTask process
Public property ItemTitleNotEncoded unencoded title property of the SPListItem for this OfficeTask process
Public property ItemURL encoded web-relative URL for the item for this OfficeTask process
Protected property List The SPList indicated by this OfficeTask's ListId property
Public property ListId Returns the ID of the list that contains the workflow task that the task process is executing against.
Public property Name (Inherited from Activity.)
Public property Outcomes A list of outcomes for all tasks in this process, in the form of "display1,outcome1;display2,outcome2"
Public property OverdueRepeat Gets or sets an object that represents the frequency with which OnTaskExpired should run, if the task is past the due date and not yet completed.
Public property OverdueRepeatTimes Gets or sets a value that represents the number of times that OnTaskExpired should be run on the frequency of OverdueRepeat, if the task is past the due date and not yet complete.
Public property Parent (Inherited from Activity.)
Protected property ParentDependencyObject (Inherited from DependencyObject.)
Public property ParticipantList A list of display name of each participant. This is delimited as if it were a multi-user lookup e.g."1;#John Doe;#2;#Jane Roe;#3;#FrontPage Lab Account"
Public property PermissionSet Returns the set of permissions associated with the workflow task list items that are generated as part of the task process.
Public property QualifiedName (Inherited from Activity.)
Public property SendDefaultTaskNotifications Indicates whether default task notifications are sent for a task created by the task process.
Public property Site (Inherited from DependencyObject.)
Public property Subject Returns the value of the Subject property of a workflow task.
Protected property SuperWeb an SPWeb created from an SPSite impersonated as the process account
Public property TaskDeletedOutcome Gets or sets a value that represents which key in the TaskResults hash table needs to be incremented if a task is deleted.
Public property TaskProcessName Gets or sets the name of the task process.
Public property TaskProcessOwner Returns the name of the owner of the task process.
Public property TaskProcessWasCanceled Bind to check if this task process has been canceled
Public property TaskResults Returns the results of a task process.
Public property UserData (Inherited from DependencyObject.)
Public property WebURL The full url pointing to the web. e.g."http://www.fabrikam.com:8080/foo/bar" or "http://www.fabrikam.com/foo/bar"
Protected property WorkflowInstanceId (Inherited from Activity.)

Top

Methods

  Name Description
Public method AddHandler (Inherited from DependencyObject.)
Protected method AllowEnableModificationUpdateAllTasks Override this function to allow or disallow the UpdateAllTasks modificiation for this OfficeTask process
Protected method AllowEnableModificationUpdateReviewers Override this function to allow or disallow the UpdateReviewers modificiation for this OfficeTask process
Protected method AllowEnableWorkflowModificationCancelTaskProcess Override this function to allow or disallow the CancelTask modificiation for this OfficeTask process
Protected method ApplyWorkflowChanges (Inherited from CompositeActivity.)
Protected method AssignNextSetOfTasks
Protected method AssignNextSetOfTasksForCurrentStage Override this method to alter how new sets of tasks are assigned, stages are evaluated and update existing modifications
Protected method Cancel (Overrides Activity.Cancel(ActivityExecutionContext).)
Public method Clone (Inherited from Activity.)
Protected method CreateTaskAssignments
Public method Dispose() (Inherited from DependencyObject.)
Protected method Dispose(Boolean) (Overrides CompositeActivity.Dispose(Boolean).)
Protected method EnableModificationUpdateReviewers
Public method Equals (Inherited from Object.)
Protected method Execute (Overrides Activity.Execute(ActivityExecutionContext).)
Protected method Finalize (Inherited from DependencyObject.)
Public method GetActivityByName(String) (Inherited from Activity.)
Public method GetActivityByName(String, Boolean) (Inherited from Activity.)
Public method GetActivityDetails Gets ActivityDetails XML for this OfficeTask process
Public method GetBinding (Inherited from DependencyObject.)
Protected method GetBoundValue (Inherited from DependencyObject.)
Protected method GetDynamicActivities (Inherited from CompositeActivity.)
Public method GetHashCode (Inherited from Object.)
Protected method GetInvocationList<T> (Inherited from DependencyObject.)
Public method GetType (Inherited from Object.)
Public method GetValue (Inherited from DependencyObject.)
Public method GetValueBase (Inherited from DependencyObject.)
Protected method HandleFault (Inherited from CompositeActivity.)
Protected method Initialize (Inherited from CompositeActivity.)
Protected method InitializeProperties (Inherited from DependencyObject.)
Protected method Invoke<T>(EventHandler<T>, T) (Inherited from Activity.)
Protected method Invoke<T>(IActivityEventListener<T>, T) (Inherited from Activity.)
Public method IsBindingSet (Inherited from DependencyObject.)
Protected method IsChangeAllowed 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
Protected method IsTaskCompleted Override this method to control how a task determines its completion
Protected method MemberwiseClone (Inherited from Object.)
Public method MetaEquals (Inherited from DependencyObject.)
Protected method MoveToNextStage Moves the OfficeTask on to the next stage of this OfficeTask process
Protected method OnActivityChangeAdd (Inherited from CompositeActivity.)
Protected method OnActivityChangeRemove (Inherited from CompositeActivity.)
Protected method OnActivityExecutionContextLoad (Inherited from CompositeActivity.)
Protected method OnActivityExecutionContextUnload (Inherited from CompositeActivity.)
Protected method OnClosed (Inherited from Activity.)
Protected method OnListChanged (Inherited from CompositeActivity.)
Protected method OnListChanging (Inherited from CompositeActivity.)
Protected method OnTaskCanceled Override this method to alter behavior when this OfficeTask process has one of its tasks canceled
Protected method OnWorkflowChangesCompleted (Inherited from CompositeActivity.)
Protected method RaiseEvent (Inherited from Activity.)
Protected method RaiseGenericEvent<T> (Inherited from Activity.)
Public method RegisterForStatusChange (Inherited from Activity.)
Public method RemoveHandler (Inherited from DependencyObject.)
Public method RemoveProperty (Inherited from DependencyObject.)
Public method Save(Stream) (Inherited from Activity.)
Public method Save(Stream, IFormatter) (Inherited from Activity.)
Public method SetBinding (Inherited from DependencyObject.)
Protected method SetBoundValue (Inherited from DependencyObject.)
Protected method SetReadOnlyPropertyValue (Inherited from DependencyObject.)
Public method SetValue (Inherited from DependencyObject.)
Public method SetValueBase (Inherited from DependencyObject.)
Protected method ShouldDelete Override this method to bypass reliance on DeleteTasksOnComplete
Public method ToString (Inherited from Activity.)
Protected method TrackData(Object) (Inherited from Activity.)
Protected method TrackData(String, Object) (Inherited from Activity.)
Protected method Uninitialize (Inherited from CompositeActivity.)
Public method UnregisterForStatusChange (Inherited from Activity.)

Top

Events

  Name Description
Public event Canceling (Inherited from Activity.)
Public event Closed (Inherited from Activity.)
Public event Compensating (Inherited from Activity.)
Public event Executing (Inherited from Activity.)
Public event Faulting (Inherited from Activity.)
Public event StatusChanged (Inherited from Activity.)

Top

Fields

  Name Description
Public fieldStatic member __ActivationPropertiesProperty Represents a DependencyProperty object that contains the initial properties of the workflow instance as it starts. Initialization properties are stored in an SPWorkflowActivationProperties object exposed by the dependency property.
Public fieldStatic member __ContextProperty Returns a DependencyProperty object that a solution developer can use to promote the context of the task.
Public fieldStatic member AssignedToProperty Returns a DependencyProperty object that a solution developer can use to promote the AssignedTo property of the SharePoint Foundation 2010 list item that is associated with the workflow instance.
Public fieldStatic member CCProperty Returns a DependencyProperty object that a solution developer can use to promote the CC property of the SharePoint Foundation 2010 list item that is associated with the workflow instance.
Public fieldStatic member CommentsProperty Returns a DependencyProperty object that a solution developer can use to promote the Comments property of the SharePoint Foundation 2010 list item that is associated with the workflow instance.
Public fieldStatic member ContentTypeIdProperty A DependencyProperty used to promote the ContentTypeId property of the SharePoint list item associated with the running workflow instance.
Public fieldStatic member DeleteTasksOnCompleteProperty A DependencyProperty used to promote the Boolean DeleteTasksOnComplete property of the SharePoint list item associated with the running workflow instance.
Public fieldStatic member DueDateProperty A DependencyProperty used to promote the DueDate property of the SharePoint list item associated with the running workflow instance.
Public fieldStatic member DurationProperty A DependencyProperty used to promote the Duration property of the SharePoint list item associated with the running workflow instance.
Public fieldStatic member DurationUnitProperty A DependencyProperty used to promote the DurationUnit property of the SharePoint list item associated with the running workflow instance.
Public fieldStatic member ExpandGroupsProperty
Public fieldStatic member ItemIdProperty DependencyProperty for a bindable property of this workflow activity. This should not be used directly.
Public fieldStatic member ListIdProperty DependencyProperty for a bindable property of this workflow activity. This should not be used directly.
Public fieldStatic member OutcomesProperty A DependencyProperty used to promote the Outcomes property of the list item associated with the task.
Public fieldStatic member OverdueRepeatProperty
Public fieldStatic member OverdueRepeatTimesProperty
Public fieldStatic member PermissionSetProperty
Public fieldStatic member SendDefaultTaskNotificationsProperty
Public fieldStatic member SubjectProperty
Public fieldStatic member TaskDeletedOutcomeProperty
Public fieldStatic member TaskProcessNameProperty
Public fieldStatic member TaskProcessOwnerProperty

Top

Explicit interface implementations

  Name Description
Explicit interface implemetationPrivate method IActivityEventListener<QueueEventArgs>.OnEvent
Explicit interface implemetationPrivate event IComponent.Disposed (Inherited from DependencyObject.)

Top

See also

Reference

OfficeTask class

Microsoft.Office.Workflow.Actions namespace