Skip to content

Commit

Permalink
[Fix-9610] Sub-workflow status check is limited to SUB_PROCESS compon…
Browse files Browse the repository at this point in the history
…ents (apache#9611)

* Sub-workflow status check is limited to SUB_PROCESS components

* Sub-workflow status check is limited to SUB_PROCESS components

Co-authored-by: WangJPLeo <wangjipeng@whaleops.com>
  • Loading branch information
2 people authored and 冯剑 Jian committed Apr 23, 2022
1 parent 496928a commit 0b4bb63
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ public boolean checkSubProcessDefinitionValid(ProcessDefinition processDefinitio
taskDefinitions.stream()
.filter(task -> TaskConstants.TASK_TYPE_SUB_PROCESS.equalsIgnoreCase(task.getTaskType()))
.forEach(taskDefinition -> processDefinitionCodeSet.add(Long.valueOf(JSONUtils.getNodeString(taskDefinition.getTaskParams(), Constants.CMD_PARAM_SUB_PROCESS_DEFINE_CODE))));
if (processDefinitionCodeSet.isEmpty()){
return true;
}

// check sub releaseState
List<ProcessDefinition> processDefinitions = processDefinitionMapper.queryByCodes(processDefinitionCodeSet);
Expand Down

0 comments on commit 0b4bb63

Please sign in to comment.