fix dependent task when the dependent on process have forbidden tasks (#10952)
* fix dependent task when the dependent on process have forbidden tasks
* fix dependent task when the dependent on process have forbidden tasks
Co-authored-by: shenk-b <shenk-b@glodon.com>
logger.error("Cannot find the task definition, something error, taskCode: {}",taskCode);
}else{
logger.warn("Cannot find the task in the process instance when the ProcessInstance is finish, taskCode: {}, taskName: {}",taskCode,taskDefinition.getName());
returnDependResult.FAILED;
}
if(taskDefinition.getFlag()==Flag.NO){
logger.warn("Cannot find the task instance, but the task is forbidden, so dependent success, taskCode: {}, taskName: {}",taskCode,taskDefinition.getName());
returnDependResult.SUCCESS;
}
result=DependResult.FAILED;
if(!processInstance.getState().typeIsFinished()){
logger.info("Wait for the dependent workflow to complete, taskCode:{}, processInstanceId:{}, processInstance state:{}",taskCode,processInstance.getId(),processInstance.getState());
returnDependResult.WAITING;
}
logger.warn("Cannot find the task in the process instance when the ProcessInstance is finish, taskCode: {}, taskName: {}",taskCode,taskDefinition.getName());