Skip to content

Commit

Permalink
Subtask component treemap problem fix. (apache#9755)
Browse files Browse the repository at this point in the history
Co-authored-by: WangJPLeo <wangjipeng@whaleops.com>
  • Loading branch information
2 people authored and zhongjiajie committed Apr 26, 2022
1 parent 21596ef commit 8f0f13e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1501,7 +1501,7 @@ public Map<String, Object> viewTree(long projectCode, long code, Integer limit)
// if process is sub process, the return sub id, or sub id=0
if (taskInstance.isSubProcess()) {
TaskDefinition taskDefinition = taskDefinitionMap.get(taskInstance.getTaskCode());
subProcessCode = Integer.parseInt(JSONUtils.parseObject(
subProcessCode = Long.parseLong(JSONUtils.parseObject(
taskDefinition.getTaskParams()).path(CMD_PARAM_SUB_PROCESS_DEFINE_CODE).asText());
}
treeViewDto.getInstances().add(new Instance(taskInstance.getId(), taskInstance.getName(), taskInstance.getTaskCode(),
Expand Down

0 comments on commit 8f0f13e

Please sign in to comment.