/// <summary> /// Information about a task /// </summary> /// <param name="folder">folder contains a workflow</param> /// <param name="workflow">workflow name contains a task</param> /// <param name="taskName">task\session name</param> /// <returns>object task details</returns> public TaskDetails GetTaskDetails(string folder, string workflow, string taskName) { Guard.ThrowIsNull(folder, workflow, taskName); var command = "gettaskdetails -folder " + folder + " -workflow " + workflow + " " + taskName; var result = _pmwork.ExecuteCommand(command); return(TaskDetailsAdapter.GetConvertsResultToTaskDetails(result)); }
/// <summary> /// Information about a task /// </summary> /// <param name="parameters">command parameters</param> /// <returns>object task details</returns> public TaskDetails GetTaskDetails(PmcmdGetTaskDetails parameters) { Guard.ThrowIsNull(parameters); var command = "gettaskdetails " + parameters.Folder + parameters.RunInsName + parameters.Workflow + parameters.TaskInstancePath; var result = _pmwork.ExecuteCommand(command); return(TaskDetailsAdapter.GetConvertsResultToTaskDetails(result)); }