Fix TreeView "Task Status" not show bug and compatibility with older versions (#14207)
use WorkflowExecutionStatus.name()
This commit is contained in:
parent
9e0991145e
commit
b8748e29ae
|
|
@ -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…
Reference in New Issue