return RuleResult.createNA(sourceDegreeModuleToEvaluate.getDegreeModule());
}
final CurricularCourse curricularCourseToEnrol;
if (sourceDegreeModuleToEvaluate.isEnroling()) {
final OptionalDegreeModuleToEnrol optionalDegreeModuleToEnrol =
(OptionalDegreeModuleToEnrol) sourceDegreeModuleToEvaluate;
curricularCourseToEnrol = optionalDegreeModuleToEnrol.getCurricularCourse();
if (isApproved(enrolmentContext, curricularCourseToEnrol) || isEnroled(enrolmentContext, curricularCourseToEnrol)
|| isApproved(enrolmentContext, optionalDegreeModuleToEnrol.getCurricularCourse())
|| isEnroled(enrolmentContext, optionalDegreeModuleToEnrol.getCurricularCourse())) {
return RuleResult.createFalse(sourceDegreeModuleToEvaluate.getDegreeModule(),
"curricularRules.ruleExecutors.AnyCurricularCourseExecutor.already.approved.or.enroled",
curricularCourseToEnrol.getName(), rule.getDegreeModuleToApplyRule().getName());
}