Get a collection of task stubs for the current user.
public TaskStubCollection GetTaskStubsForCurrentUser()
A collection of TaskStub objects, each of which represents a workflow task for the current user.
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.
The following example demonstrates how to use this operation to delete a form.
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>
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>
Processing workflow task responses
Web Service Reference