[Fix-9610] Sub-workflow status check is limited to SUB_PROCESS components (#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>
This commit is contained in:
WangJPLeo 2022-04-20 15:04:27 +08:00 committed by GitHub
parent a3bf10c88d
commit e2ec489042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -248,6 +248,9 @@ public class ExecutorServiceImpl extends BaseServiceImpl implements ExecutorServ
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);