mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-11-30 03:08:01 +08:00
[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:
parent
a3bf10c88d
commit
e2ec489042
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user