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 (#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
WangJPLeo and WangJPLeo authored Apr 20, 2022
1 parent a3bf10c commit e2ec489
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 e2ec489

Please sign in to comment.