Compartilhar via


SPWorkflowManager.GetWorkflowTasks method (SPListItem, SPWorkflow, SPWorkflowFilter)

Retorna uma coleção filtrada das tarefas pertencentes à instância de fluxo de trabalho especificado.

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

Syntax

'Declaração
Public Function GetWorkflowTasks ( _
    item As SPListItem, _
    workflow As SPWorkflow, _
    filter As SPWorkflowFilter _
) As SPWorkflowTaskCollection
'Uso
Dim instance As SPWorkflowManager
Dim item As SPListItem
Dim workflow As SPWorkflow
Dim filter As SPWorkflowFilter
Dim returnValue As SPWorkflowTaskCollection

returnValue = instance.GetWorkflowTasks(item, _
    workflow, filter)
public SPWorkflowTaskCollection GetWorkflowTasks(
    SPListItem item,
    SPWorkflow workflow,
    SPWorkflowFilter filter
)

Parâmetros

Valor retornado

Type: Microsoft.SharePoint.Workflow.SPWorkflowTaskCollection
Um objeto SPWorkflowTaskCollection que representa o conjunto de tarefas de fluxo de trabalho.

Comentários

Esse método obtém as tarefas de fluxo de trabalho associadas com o fluxo de trabalho especificado pelo parâmetro workflow em execução no item de lista especificado pelo parâmetro item que satisfazem o critério especificado pelo parâmetro filter .

Ver também

Referência

SPWorkflowManager class

SPWorkflowManager members

GetWorkflowTasks overload

Microsoft.SharePoint.Workflow namespace

Outros recursos

Workflows in Windows SharePoint Services

Workflow Development for Windows SharePoint Services

Workflow Object Model in Windows SharePoint Services Overview