}
@Override
public RuleResult verify(VerifyRuleLevel verifyRuleLevel, EnrolmentContext enrolmentContext,
DegreeModule degreeModuleToVerify, CourseGroup parentCourseGroup) {
RuleResult resultOR = RuleResult.createFalse(EnrolmentResultType.NULL, degreeModuleToVerify);
for (final CurricularRule curricularRule : getCurricularRulesSet()) {
resultOR =
resultOR.or(curricularRule.verify(verifyRuleLevel, enrolmentContext, degreeModuleToVerify, parentCourseGroup));
if (resultOR.isTrue() && resultOR.isValidated(degreeModuleToVerify)) {
return RuleResult.createTrue(degreeModuleToVerify);
}
}
return resultOR;
}