Skip to content

Commit

Permalink
[fix-apache#3962][api] Avoid ClassCastException for LoggerService.que…
Browse files Browse the repository at this point in the history
…ryLog().
  • Loading branch information
yh2388 committed Oct 21, 2020
1 parent e446af5 commit c4af9d5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,10 @@ public Map<String, Object> queryTaskListByProcessId(User loginUser, String proje
private void addDependResultForTaskList(List<TaskInstance> taskInstanceList) throws IOException {
for (TaskInstance taskInstance : taskInstanceList) {
if (taskInstance.getTaskType().equalsIgnoreCase(TaskType.DEPENDENT.toString())) {
Result logResult = loggerService.queryLog(
Result<String> logResult = loggerService.queryLog(
taskInstance.getId(), 0, 4098);
if (logResult.getCode() == Status.SUCCESS.ordinal()) {
String log = (String) logResult.getData();
String log = logResult.getData();
Map<String, DependResult> resultMap = parseLogForDependentResult(log);
taskInstance.setDependentResult(JSONUtils.toJsonString(resultMap));
}
Expand Down

0 comments on commit c4af9d5

Please sign in to comment.