Browse Source

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

use WorkflowExecutionStatus.name()
3.2.0-release
scorpig 2 years ago committed by GitHub
parent
commit
b8748e29ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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

@ -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));

Loading…
Cancel
Save