Browse Source

Fix TreeView "Task Status" not show bug and compatibility with older versions (#14207)

use WorkflowExecutionStatus.name()
3.1.8-release
scorpig 2 years ago committed by zhuangchong
parent
commit
d556528c78
  1. 4
      dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java

4
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java

@ -1755,7 +1755,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())));
}
@ -1814,7 +1814,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));

Loading…
Cancel
Save