From b8748e29ae27c48b6bd37ccc0bd198384c586ba1 Mon Sep 17 00:00:00 2001 From: scorpig <47138038+scorpig@users.noreply.github.com> Date: Mon, 29 May 2023 13:39:38 +0800 Subject: [PATCH] Fix TreeView "Task Status" not show bug and compatibility with older versions (#14207) use WorkflowExecutionStatus.name() --- .../api/service/impl/ProcessDefinitionServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java index 4cfb55223e..9f58046a49 100644 --- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java +++ b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java @@ -1939,7 +1939,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro parentTreeViewDto.getInstances() .add(new Instance(processInstance.getId(), processInstance.getName(), processInstance.getProcessDefinitionCode(), - "", processInstance.getState().toString(), processInstance.getStartTime(), endTime, + "", processInstance.getState().name(), processInstance.getStartTime(), endTime, processInstance.getHost(), DateUtils.format2Readable(endTime.getTime() - processInstance.getStartTime().getTime()))); } @@ -1984,7 +1984,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro } treeViewDto.getInstances().add(new Instance(taskInstance.getId(), taskInstance.getName(), taskInstance.getTaskCode(), - taskInstance.getTaskType(), taskInstance.getState().toString(), + taskInstance.getTaskType(), taskInstance.getState().name(), taskInstance.getStartTime(), taskInstance.getEndTime(), taskInstance.getHost(), DateUtils.format2Readable(endTime.getTime() - startTime.getTime()), subProcessCode));