Browse Source

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

use WorkflowExecutionStatus.name()
3.1.8-release
scorpig 1 year 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() parentTreeViewDto.getInstances()
.add(new Instance(processInstance.getId(), processInstance.getName(), .add(new Instance(processInstance.getId(), processInstance.getName(),
processInstance.getProcessDefinitionCode(), processInstance.getProcessDefinitionCode(),
"", processInstance.getState().toString(), processInstance.getStartTime(), endTime, "", processInstance.getState().name(), processInstance.getStartTime(), endTime,
processInstance.getHost(), processInstance.getHost(),
DateUtils.format2Readable(endTime.getTime() - processInstance.getStartTime().getTime()))); 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(), treeViewDto.getInstances().add(new Instance(taskInstance.getId(), taskInstance.getName(),
taskInstance.getTaskCode(), taskInstance.getTaskCode(),
taskInstance.getTaskType(), taskInstance.getState().toString(), taskInstance.getTaskType(), taskInstance.getState().name(),
taskInstance.getStartTime(), taskInstance.getEndTime(), taskInstance.getStartTime(), taskInstance.getEndTime(),
taskInstance.getHost(), taskInstance.getHost(),
DateUtils.format2Readable(endTime.getTime() - startTime.getTime()), subProcessCode)); DateUtils.format2Readable(endTime.getTime() - startTime.getTime()), subProcessCode));

Loading…
Cancel
Save