All Products
Document Center


Last Updated: May 11, 2018

Method description

Obtains status details of a task based on the job ID and task name.

Parameter description

Parameter Type Description
jobId String Job ID
taskName String Name of a task

Response description

  • If the call succeeds, a GetTaskResponse instance is returned. You can use the getTask() method of this instance to obtain the Task object.

  • If a failure occurs, a ClientException is thrown.

Sample code

  1. try{
  2. GetTaskResponse response = client.getTask("job-0101010299123","Find");
  3. //Succeeded
  4. Task task = response.getTask();
  5. }catch(ClientException e){
  6. e.printStackTrace();
  7. // Failed
  8. }