/**
  * Copies a task into a completely new task
  * Copies entirely everything, all the existing
  * relations like forms, analyte matrix etc
  * into the new task
  */
 public function executeCopyEntireTask(\Library\HttpRequest $rq)
 {
     // Init result
     $result = $this->InitResponseWS();
     //Copy the task corresponding to the passed task id with the new task name
     $new_task_id = \Applications\PMTool\Helpers\TaskHelper::copyTaskWithDependencies($this, $this->dataPost['task_id'], $this->dataPost['new_taskname'], $this->app()->user());
     $result["dataOut"] = $new_task_id;
     $this->SendResponseWS($result, array("resx_file" => \Applications\PMTool\Resources\Enums\ResxFileNameKeys::Task, "resx_key" => $this->action(), "step" => $result["dataOut"] > 0 ? "success" : "error"));
 }