You are here

getTasks

getTasks returns tasks associated with a process.
Attention: These methods were introduced in SDK version 1.3.

public List<Task> getTasks()

public List<Task> getTasks() returns a list of tasks.

Parameters

None.

Returns

A List<Task> a list of tasks.

Exception

Throws an SkyVaultServiceException if the operation cannot be completed.

Example

          
  // get all tasks
  Log.d(TAG, "Tasks...");
  List<Task> tasks = workflowService.getTasks();
  for (Task task : tasks){
    Log.d(TAG, "identifier: "+task.getIdentifier());
    Log.d(TAG, "name: "+task.getName());
    Log.d(TAG, "description: "+task.getDescription());
  }

        

Returns output such as the following:


Tasks...
identifier: 74
name: Adhoc Task
description: Read over this and write a new editor.

        

public PagingResult<Task> getTasks(ListingContext listingContext)

public PagingResult<Task> getTasks(ListingContext listingContext) returns a paged list of tasks.

Parameters

ListingContext listingContext
The listing context to use to control paging of results. See ListingContext for further information.

Returns

A PagingResult<Task> a paged list of tasks.

Exception

Throws an SkyVaultServiceException if the operation cannot be completed.

public List<Task> getTasks(Process process)

public List<Task> getTasks(Process process) returns a list of tasks for the specified process.

Parameters

Process process
The process to return a list of tasks for.

Returns

A List<Task> a list of tasks for the specified process.

Exception

Throws an SkyVaultServiceException if the operation cannot be completed.

public PagingResult<Task> getTasks(Process process, ListingContext listingContext)

public PagingResult<Task> getTasks(Process process, ListingContext listingContext) returns a paged list of tasks.

Parameters

Process process
The process to return a list of tasks for.
ListingContext listingContext
The listing context to use to control paging of results. See ListingContext for further information.

Returns

A PagingResult<Task> a paged list of tasks.

Exception

Throws an SkyVaultServiceException if the operation cannot be completed.