GetTaskStubsForCurrentUser

Get a collection of task stubs for the current user.

Syntax

public TaskStubCollection GetTaskStubsForCurrentUser()

Returns

Type: TaskStubCollection

A collection of TaskStub objects, each of which represents a workflow task for the current user.

Remarks

Task stubs provide a task token and basic information for running workflow tasks. This method retrieves task stubs for the current user context, so that the task tokens can be used with the ProcessTaskResponseUsingToken method to register task responses for running workflow tasks, or with the GetTaskDetailsUsingStub method to get more information about the task represented by the task token.

Example

The following example demonstrates how to use this operation to delete a form.

Request

The following SOAP request attempts to get the collection of task stubs for the current user.

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:nin="http://nintex.com">
   <soap:Header/>
   <soap:Body>
      <nin:GetTaskStubsForCurrentUser/>
   </soap:Body>
</soap:Envelope>

Response

The following SOAP response returns a task stub representing the only running workflow task for the current user.

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" 
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
   xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetTaskStubsForCurrentUserResponse xmlns="http://nintex.com">
         <GetTaskStubsForCurrentUserResult>
            <TaskStub>
               <TaskToken>[#BBBDFF#]</TaskToken>
               <WorkflowName>TestFlexiTaskWorkflow</WorkflowName>
               <ActivityTitle>Assign to-do task</ActivityTitle>
               <EntryTime>2015-01-27T18:26:10</EntryTime>
            </TaskStub>
         </GetTaskStubsForCurrentUserResult>
      </GetTaskStubsForCurrentUserResponse>
   </soap:Body>
</soap:Envelope>

See Also

Concepts

Workflow tasks

Operations

Processing workflow task responses

Reference

GetTaskDetailsUsingStub

ProcessTaskResponseUsingToken

Web Service Reference