0 Replies Latest reply: Jun 16, 2014 3:45 PM by stefan quester RSS

    QMS GetTaskStatus returns null

      Hi there,

       

      I'm using the QMS API to get the task status - it works fine for DocumentTasks:

       

         TaskInfo task = client.FindTask(distService.ID, TaskType.DocumentTask , "Some DocumentTask");

         TaskStatus status = client.GetTaskStatus(task.ID, TaskStatusScope.All);

       

      When I do the same for ExternalProgramTask or DBCommandTask the GetTaskStatus-Method returns null:


         TaskInfo task = client.FindTask(distService.ID, TaskType.DBCommandTask , "My DB Command Task");

                 --> returns a valid task.ID


         TaskStatus status = client.GetTaskStatus(task.ID, TaskStatusScope.All);

               --> returns status == null

       

      How do I get the task status of a Non-DocumentTask via QMS API?               

       

      Regards

      Stefan