cherry-pick [Fix-11583][UI] Fix the API usage of gantt graph #13778

This commit is contained in:
lxorc 2023-03-28 17:17:10 +08:00 committed by zhuangchong
parent eea397a0dd
commit eae10c9287

View File

@ -835,7 +835,7 @@ public class ProcessInstanceServiceImpl extends BaseServiceImpl implements Proce
task.getEndDate().add(endTime.getTime());
task.setIsoStart(startTime);
task.setIsoEnd(endTime);
task.setStatus(taskInstance.getState().toString());
task.setStatus(taskInstance.getState().name());
task.setExecutionDate(taskInstance.getStartTime());
task.setDuration(DateUtils.format2Readable(endTime.getTime() - startTime.getTime()));
taskList.add(task);