You are here

completeTask

public Task completeTask(Task task, Map<String, Serializable> variables) completes the specified task.
Attention: This method was introduced in SDK version 1.3.

Parameters

Task task
The task to be completed.
Map<String, Serializable> variables
Variables.

Returns

Returns the completed Task object.

Exception

Throws an SkyVaultServiceException if the operation cannot be completed.

Example


  // Prepare Variable to complete task
  Map<String, Serializable> variables = new HashMap<String, Serializable>();
  variables.put(WorkflowModel.PROP_COMMENT, COMMENT_1);

  // Close Active Task
  Task taskCompleted = workflowService.completeTask(taskInProgress, variables);