use of models.datatable.TaskLogsDataTable in project coprhd-controller by CoprHD.
the class Tasks method details.
public static void details(String taskId) {
if (StringUtils.isBlank(taskId)) {
listAll(false);
}
TaskResourceRep task = TaskUtils.getTask(uri(taskId));
if (task == null) {
flash.error(MessagesUtils.get(UNKNOWN, taskId));
listAll(false);
}
if (task != null && task.getResource() != null && task.getResource().getId() != null) {
ResourceType resourceType = ResourceType.fromResourceId(task.getResource().getId().toString());
renderArgs.put("resourceType", resourceType);
}
String orderId = TagUtils.getOrderIdTagValue(task);
String orderNumber = TagUtils.getOrderNumberTagValue(task);
Common.angularRenderArgs().put("task", TaskUtils.getTaskSummary(task));
TaskLogsDataTable dataTable = new TaskLogsDataTable();
render(task, dataTable, orderId, orderNumber);
}
Aggregations